Face recognition, how to Maximum memory assigned for image processing?

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.9
  • Operating system and version (e.g., Ubuntu 24.04):
    • TrueNas 25.04.2.1
  • Web server and version (e.g, Apache 2.4.25):
    • nginx 2.0.33
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx 2.0.33
  • PHP version (e.g, 8.3):
    • 8.3.25
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • first installation
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • docker
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • no

Summary of the issue you are facing:

New installation of Nextcloud, with Photo and face recognition

the recognition complain about this

Configuration information

Current model: Not installed

Maximum memory assigned for image processing: Not configured.

Seems that you still have to configure the assigned memory for image processing.

I’ve configured the Max memory for the app but I can’t find how to set the max memory for the face recognition

php occ face:setup
Current setup:
Minimum value to assign to image processing.: 682.7 MB (715827882B)Maximum value to assign to image processing.: 4 GB (4294967296B)Maximum memory assigned for image processing: Pending configuration
Available models:
±—±--------±---------------±--------------------------------------------------------------------------------+
| Id | Enabled | Name           | Description                                                                     |
±—±--------±---------------±--------------------------------------------------------------------------------+
| 1  |         | Default        | Main model, using dlib defaults.                                                |
| 2  |         | DlibCnn68      | DEPRECATED: Alternative default model, using dlib with 68 point landmarks model |
| 3  |         | DlibHog        | Dlib HOG Model which needs lower requirements                                   |
| 4  |         | DlibCnnHog5    | Extends the main model, doing a face validation with the Hog detector           |
| 5  |         | ExternalModel  | External model to separate image processing from the web server                 |
| 6  |         | DlibTaguchiHog | Extends the Taguchi model, doing a face validation with the Hog detector        |
±—±--------±---------------±--------------------------------------------------------------------------------+

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

# php occ config:list
{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwriteprotocol": "https",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "upgrade.disable-web": true,
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "31.0.9.1",
        "overwrite.cli.url": "https:\/\/localhost",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "trusted_domains": [
            "127.0.0.1",
            "192.168.*.*",
            "localhost",
            "nextcloud",
            "nginx"
        ]
    },
    "apps": {
        "activity": {
            "installed_version": "4.0.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "app_api": {
            "installed_version": "5.0.2",
            "types": "",
            "enabled": "yes"
        },
        "backgroundjob": {
            "lastjob": "87"
        },
        "bookmarks": {
            "enabled": "yes",
            "installed_version": "15.2.0",
            "types": ""
        },
        "bruteforcesettings": {
            "installed_version": "4.0.0",
            "types": "",
            "enabled": "yes"
        },
        "calendar": {
            "installed_version": "5.5.7",
            "types": "",
            "enabled": "yes"
        },
        "certificate24": {
            "installed_version": "0.3.7",
            "types": "dav",
            "enabled": "yes"
        },
        "circles": {
            "installed_version": "31.0.0",
            "types": "filesystem,dav",
            "enabled": "yes",
            "loopback_tmp_scheme": "https",
            "maintenance_run": "0",
            "maintenance_update": "{\"3\":1758716219,\"2\":1758716219,\"1\":1758716219}"
        },
        "cloud_federation_api": {
            "installed_version": "1.14.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "comments": {
            "installed_version": "1.21.0",
            "types": "logging",
            "enabled": "yes"
        },
        "contactsinteraction": {
            "installed_version": "1.12.0",
            "types": "dav",
            "enabled": "yes"
        },
        "context_chat": {
            "installed_time": 1760532324,
            "installed_version": "4.5.0",
            "types": "",
            "enabled": "yes",
            "providers": "{\"files__default\":{\"isInitiated\":true,\"classString\":\"\"},\"bookmarks__bookmarks\":{\"isInitiated\":false,\"classString\":\"OCA\\\\Bookmarks\\\\ContextChat\\\\ContextChatProvider\"}}"
        },
        "cookbook": {
            "types": "",
            "enabled": "yes",
            "installed_version": "0.11.4"
        },
        "core": {
            "installedat": "1758715319.114",
            "vendor": "nextcloud",
            "public_files": "files_sharing\/public.php",
            "lastupdatedat": 1760535321,
            "lastupdateResult": "{\"version\":\"32.0.0.13\",\"versionstring\":\"Nextcloud 32.0.0\",\"url\":\"https:\\\/\\\/download.nextcloud.com\\\/server\\\/releases\\\/nextcloud-32.0.0.zip\",\"web\":\"https:\\\/\\\/docs.nextcloud.com\\\/server\\\/32\\\/admin_manual\\\/maintenance\\\/upgrade.html\",\"changes\":\"https:\\\/\\\/updates.nextcloud.com\\\/changelog_server\\\/?version=32.0.0\",\"autoupdater\":\"1\",\"eol\":\"0\"}",
            "metadataGenerationLastHandledUser": "cris",
            "lastcron": 1760532983,
            "backgroundjobs_mode": "cron",
            "files_metadata": {
                "photos-original_date_time": {
                    "value": null,
                    "type": "int",
                    "etag": "",
                    "indexed": true,
                    "editPermission": 0
                },
                "photos-size": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-exif": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-ifd0": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-gps": {
                    "value": null,
                    "type": "array",
                    "etag": "",
                    "indexed": false,
                    "editPermission": 0
                },
                "blurhash": {
                    "value": null,
                    "type": "string",
                    "etag": "35645c9999380f5d77791a4d010f2f6f",
                    "indexed": false,
                    "editPermission": 0
                },
                "photos-place": {
                    "value": null,
                    "type": "string",
                    "etag": "",
                    "indexed": true,
                    "editPermission": 0
                }
            },
            "oc.integritycheck.checker": []
        },
        "dashboard": {
            "installed_version": "7.11.0",
            "types": "",
            "enabled": "yes"
        },
        "dav": {
            "installed_version": "1.33.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "facerecognition": {
            "installed_version": "0.9.70",
            "types": "filesystem",
            "enabled": "yes",
            "handle_shared_files": "true"
        },
        "federatedfilesharing": {
            "installed_version": "1.21.0",
            "types": "",
            "enabled": "yes"
        },
        "federation": {
            "installed_version": "1.21.0",
            "types": "authentication",
            "enabled": "yes"
        },
        "files": {
            "installed_version": "2.3.1",
            "types": "filesystem",
            "enabled": "yes"
        },
        "files_downloadlimit": {
            "installed_version": "4.0.0",
            "types": "",
            "enabled": "yes"
        },
        "files_pdfviewer": {
            "installed_version": "4.0.0",
            "types": "",
            "enabled": "yes"
        },
        "files_reminders": {
            "installed_version": "1.4.0",
            "types": "",
            "enabled": "yes"
        },
        "files_sharing": {
            "installed_version": "1.23.1",
            "types": "filesystem",
            "enabled": "yes"
        },
        "files_trashbin": {
            "installed_version": "1.21.0",
            "types": "filesystem,dav",
            "enabled": "yes"
        },
        "files_versions": {
            "installed_version": "1.24.0",
            "types": "filesystem,dav",
            "enabled": "yes"
        },
        "fileslibreofficeedit": {
            "installed_version": "2.0.1",
            "types": "",
            "enabled": "yes"
        },
        "firstrunwizard": {
            "installed_version": "4.0.0",
            "types": "",
            "enabled": "yes"
        },
        "impersonate": {
            "installed_version": "2.0.0",
            "types": "prevent_group_restriction",
            "enabled": "yes"
        },
        "integration_deepl": {
            "installed_version": "2.0.0",
            "types": "",
            "enabled": "yes"
        },
        "logreader": {
            "installed_version": "4.0.0",
            "types": "logging",
            "enabled": "yes"
        },
        "lookup_server_connector": {
            "installed_version": "1.19.0",
            "types": "authentication",
            "enabled": "yes"
        },
        "maps": {
            "installed_version": "1.6.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "mediadc": {
            "installed_version": "0.4.0",
            "types": "",
            "enabled": "yes"
        },
        "money": {
            "installed_version": "0.30.0",
            "types": "",
            "enabled": "yes"
        },
        "nextcloud_announcements": {
            "installed_version": "3.0.0",
            "types": "logging",
            "enabled": "yes",
            "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200"
        },
        "notifications": {
            "installed_version": "4.0.0",
            "types": "logging",
            "enabled": "yes"
        },
        "oauth2": {
            "installed_version": "1.19.1",
            "types": "authentication",
            "enabled": "yes"
        },
        "password_policy": {
            "installed_version": "3.0.0",
            "types": "authentication",
            "enabled": "yes"
        },
        "passwords": {
            "types": "",
            "enabled": "yes",
            "installed_version": "2025.10.20"
        },
        "photos": {
            "installed_version": "4.0.0",
            "types": "dav,authentication",
            "enabled": "yes",
            "lastPlaceMappedUser": "admin",
            "lastPlaceMappingDone": "true"
        },
        "privacy": {
            "installed_version": "3.0.0",
            "types": "",
            "enabled": "yes"
        },
        "profile": {
            "installed_version": "1.0.0",
            "types": "",
            "enabled": "yes"
        },
        "provisioning_api": {
            "installed_version": "1.21.0",
            "types": "prevent_group_restriction",
            "enabled": "yes"
        },
        "recognize": {
            "node_binary": "\/var\/www\/html\/custom_apps\/recognize\/bin\/node",
            "nice_binary": "\/usr\/bin\/nice",
            "installed_version": "9.0.7",
            "types": "filesystem,dav",
            "enabled": "yes"
        },
        "recommendations": {
            "installed_version": "4.0.0",
            "types": "",
            "enabled": "yes"
        },
        "related_resources": {
            "installed_version": "2.0.0",
            "types": "",
            "enabled": "yes"
        },
        "serverinfo": {
            "installed_version": "3.0.0",
            "types": "",
            "enabled": "yes",
            "size_appdata_storage": 0,
            "cached_count_appdata_files": 72,
            "cached_count_filecache": 139,
            "cached_count_storages": 6
        },
        "settings": {
            "installed_version": "1.14.0",
            "types": "",
            "enabled": "yes"
        },
        "sharebymail": {
            "installed_version": "1.21.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "sip_trip_phone": {
            "installed_version": "1.1.8",
            "types": "",
            "enabled": "yes"
        },
        "socialsharing_telegram": {
            "installed_version": "3.3.0",
            "types": "",
            "enabled": "yes"
        },
        "socialsharing_whatsapp": {
            "installed_version": "3.3.0",
            "types": "",
            "enabled": "yes"
        },
        "spreed": {
            "installed_version": "21.1.5",
            "types": "dav,prevent_group_restriction",
            "enabled": "yes",
            "signaling_token_privkey_es256": "***REMOVED SENSITIVE VALUE***",
            "signaling_token_pubkey_es256": "***REMOVED SENSITIVE VALUE***"
        },
        "support": {
            "installed_version": "3.0.0",
            "types": "session",
            "enabled": "yes"
        },
        "survey_client": {
            "installed_version": "3.0.0",
            "types": "",
            "enabled": "yes"
        },
        "systemtags": {
            "installed_version": "1.21.1",
            "types": "logging",
            "enabled": "yes"
        },
        "text": {
            "installed_version": "5.0.0",
            "types": "dav",
            "enabled": "yes"
        },
        "theming": {
            "installed_version": "2.6.1",
            "types": "logging",
            "enabled": "yes"
        },
        "twofactor_backupcodes": {
            "installed_version": "1.20.0",
            "types": "",
            "enabled": "yes"
        },
        "updatenotification": {
            "installed_version": "1.21.0",
            "types": "",
            "enabled": "yes",
            "update_check_errors": 0
        },
        "user_status": {
            "installed_version": "1.11.0",
            "types": "",
            "enabled": "yes"
        },
        "viewer": {
            "installed_version": "4.0.0",
            "types": "",
            "enabled": "yes"
        },
        "weather_status": {
            "installed_version": "1.11.0",
            "types": "",
            "enabled": "yes"
        },
        "webhook_listeners": {
            "installed_version": "1.2.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "whiteboard": {
            "installed_version": "1.3.0",
            "types": "",
            "enabled": "yes"
        },
        "workflow_media_converter": {
            "installed_version": "1.15.1",
            "types": "",
            "enabled": "yes"
        },
        "workflow_pdf_converter": {
            "installed_version": "2.0.0",
            "types": "filesystem",
            "enabled": "yes"
        },
        "workflowengine": {
            "installed_version": "2.13.0",
            "types": "filesystem",
            "enabled": "yes"
        }
    }
}
# 

Apps

The output of occ app:list (if possible).

php occ app:list

Enabled:

  • activity: 4.0.0
  • app_api: 5.0.2
  • bookmarks: 15.2.0
  • bruteforcesettings: 4.0.0
  • calendar: 5.5.7
  • certificate24: 0.3.7
  • circles: 31.0.0
  • cloud_federation_api: 1.14.0
  • comments: 1.21.0
  • contactsinteraction: 1.12.0
  • context_chat: 4.5.0
  • cookbook: 0.11.4
  • dashboard: 7.11.0
  • dav: 1.33.0
  • facerecognition: 0.9.70
  • federatedfilesharing: 1.21.0
  • federation: 1.21.0
  • files: 2.3.1
  • files_downloadlimit: 4.0.0
  • files_pdfviewer: 4.0.0
  • files_reminders: 1.4.0
  • files_sharing: 1.23.1
  • files_trashbin: 1.21.0
  • files_versions: 1.24.0
  • fileslibreofficeedit: 2.0.1
  • firstrunwizard: 4.0.0
  • impersonate: 2.0.0
  • integration_deepl: 2.0.0
  • logreader: 4.0.0
  • lookup_server_connector: 1.19.0
  • maps: 1.6.0
  • mediadc: 0.4.0
  • money: 0.30.0
  • nextcloud_announcements: 3.0.0
  • notifications: 4.0.0
  • oauth2: 1.19.1
  • password_policy: 3.0.0
  • passwords: 2025.10.20
  • photos: 4.0.0
  • privacy: 3.0.0
  • profile: 1.0.0
  • provisioning_api: 1.21.0
  • recognize: 9.0.7
  • recommendations: 4.0.0
  • related_resources: 2.0.0
  • serverinfo: 3.0.0
  • settings: 1.14.0
  • sharebymail: 1.21.0
  • sip_trip_phone: 1.1.8
  • socialsharing_telegram: 3.3.0
  • socialsharing_whatsapp: 3.3.0
  • spreed: 21.1.5
  • support: 3.0.0
  • survey_client: 3.0.0
  • systemtags: 1.21.1
  • text: 5.0.0
  • theming: 2.6.1
  • twofactor_backupcodes: 1.20.0
  • updatenotification: 1.21.0
  • user_status: 1.11.0
  • viewer: 4.0.0
  • weather_status: 1.11.0
  • webhook_listeners: 1.2.0
  • whiteboard: 1.3.0
  • workflow_media_converter: 1.15.1
  • workflow_pdf_converter: 2.0.0
  • workflowengine: 2.13.0
    Disabled:
  • admin_audit: 1.21.0
  • encryption: 2.19.0
  • files_external: 1.23.0
  • suspicious_login: 9.0.1
  • twofactor_nextcloud_notification: 5.0.0
  • twofactor_totp: 13.0.0-dev.0
  • user_ldap: 1.22.0