Problems with Recognize and Photos apps

Good morning everyone! I’m having some issues with the Photos and Recognize apps, so I’d like to ask for some help.

I’m using Nextcloud-AIO v11.5.0 with Docker v28.3.2 on Debian v12 and have Nextcloud v31.0.7 installed (I think it’s the latest version available, but I try to keep it up to date).

The Photos app is v4.0.0, and Recognize is v9.0.3. I also use the Cloudflare tunnel to connect to my Nextcloud instance, but I don’t think that’s related to this (though I think it’s worth mentioning just in case).

I installed Nextcloud using the AIO Docker image and am stepping through some apps to get them working. Now it’s Photos’ turn, which seems to be working fine, but I decided to try Recognize to group my media files by people’s faces.

People’s faces are displayed in Photos > People, but when I try to click on a face to see all related photos, nothing is displayed. It tries to load, and then the screen goes blank.


How can I fix this? I can view photos and videos normally in all media, for example, but they’re not showing up in the face cluster.

I’d also like to ask how to troubleshoot an error related to Recognize and memory usage.
When Recognize runs the Cluster Faces background job, it usually ends with the error “Cron job used more than 300 MB of RAM after executing job OCA\Recognize\BackgroundJobs\ClusterFacesJob.” While searching for the error, I tried setting the PHP_MEMORY_LIMIT and NEXTCLOUD_MEMORY_LIMIT environment variables to 2048 MB, but the error persists. Do you know what could be happening?


Here’s some other information the template suggests you provide, if you need more information just ask and I’ll try to provide it:

System config:

{
    "system": {
        "one-click-instance": true,
        "one-click-instance.user-limit": 100,
        "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
            }
        ],
        "check_data_directory_permissions": false,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwritehost": "nextcloud.domain.com",
        "overwriteprotocol": "https",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "nextcloud.domain.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "31.0.7.1",
        "overwrite.cli.url": "https:\/\/nextcloud.domain.com\/",
        "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***",
        "maintenance": false,
        "updatechecker": false,
        "loglevel": 2,
        "log_type": "file",
        "logfile": "\/var\/www\/html\/data\/nextcloud.log",
        "log_rotate_size": 10485760,
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "jpeg_quality": 60,
        "enabledPreviewProviders": {
            "1": "OC\\Preview\\Image",
            "2": "OC\\Preview\\MarkDown",
            "3": "OC\\Preview\\MP3",
            "4": "OC\\Preview\\TXT",
            "5": "OC\\Preview\\OpenDocument",
            "6": "OC\\Preview\\Movie",
            "7": "OC\\Preview\\Krita",
            "0": "OC\\Preview\\Imaginary",
            "23": "OC\\Preview\\ImaginaryPDF"
        },
        "enable_previews": true,
        "upgrade.disable-web": true,
        "mail_smtpmode": "smtp",
        "trashbin_retention_obligation": "auto, 30",
        "versions_retention_obligation": "auto, 30",
        "activity_expire_days": 30,
        "simpleSignUpLink.shown": false,
        "share_folder": "\/Shared",
        "one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/",
        "upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726",
        "updatedirectory": "\/nc-updater",
        "maintenance_window_start": 100,
        "allow_local_remote_servers": true,
        "davstorage.request_timeout": 3600,
        "documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",
        "htaccess.RewriteBase": "\/",
        "dbpersistent": false,
        "auth.bruteforce.protection.enabled": true,
        "ratelimit.protection.enabled": true,
        "files_external_allow_create_new_local": true,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_key": "***REMOVED SENSITIVE VALUE***",
        "app_install_overwrite": {
            "1": "extract",
            "2": "printer"
        },
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": true,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "DOMAIN": "nextcloud.domain.com"
    }
}

Apps:

Enabled:
  - activity: 4.0.0
  - admin_audit: 1.21.0
  - bruteforcesettings: 4.0.0
  - camerarawpreviews: 0.8.7
  - checksum: 1.2.6
  - circles: 31.0.0
  - cloud_federation_api: 1.14.0
  - comments: 1.21.0
  - contacts: 7.2.5
  - contactsinteraction: 1.12.0
  - dashboard: 7.11.0
  - dav: 1.33.0
  - deck: 1.15.2
  - epubviewer: 1.8.0
  - extract: 1.3.6
  - federatedfilesharing: 1.21.0
  - files: 2.3.1
  - files_3dmodelviewer: 0.0.15
  - files_antivirus: 6.0.3
  - files_external: 1.23.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
  - firstrunwizard: 4.0.0
  - forms: 5.1.2
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - metadata: 0.22.0
  - nextcloud-aio: 0.8.0
  - nextcloud_announcements: 3.0.0
  - notes: 4.12.3
  - notifications: 4.0.0
  - notify_push: 1.2.0
  - oauth2: 1.19.1
  - oidc_login: 3.2.2
  - password_policy: 3.0.0
  - photos: 4.0.0
  - printer: 0.0.5
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recognize: 9.0.3
  - recommendations: 4.0.0
  - related_resources: 2.0.0
  - richdocuments: 8.7.4
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - sharebymail: 1.21.0
  - spreed: 21.1.3
  - support: 3.0.0
  - survey_client: 3.0.0
  - suspicious_login: 9.0.1
  - systemtags: 1.21.1
  - tasks: 0.16.1
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - twofactor_totp: 13.0.0-dev.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.1.3
  - workflowengine: 2.13.0
Disabled:
  - app_api: 5.0.2 (installed 5.0.2)
  - encryption: 2.19.0
  - federation: 1.21.0 (installed 1.21.0)
  - files_downloadlimit: 4.0.0 (installed 4.0.0)
  - twofactor_nextcloud_notification: 5.0.0 (installed 5.0.0)
  - user_ldap: 1.22.0
2 Likes

Hey! I’m just a little stuck on this. Could someone help me solve these issues?

Having the same issue.

The mantainers of the Photos App are aware of this in https://github.com/nextcloud/photos/issues/3105

Some guy in the GitHub issue recomend use “memories” app instead as an alternative.

1 Like

Thank you for the GitHub issue. I will keep an eye on the progress.

Regarding memory errors, does anyone know how to resolve them? I increased the limit with environment variables, as shown in the screenshots, but it is still giving me errors about maximum memory exceeded

Maybe it is offtopic but if you use Nexcloud AIO you can try increase memory limit as I have im my docker-compose.yml file …. here → Testing Large File Synchronization with Nextcloud AIO and NGINX Proxy — June 2025 Update

    environment:
      - APACHE_PORT=11000
      - NEXTCLOUD_MEMORY_LIMIT=4096M

Maybe it helps.

1 Like

Hello @vawaver and thank you for your answer.

I have already set NEXTCLOUD_MEMORY_LIMIT to 2048M, the same as PHP_MEMORY_LIMIT.
This is wya I don’t understand the given errors, as the limit should be greater than 300MB as thrown in the error log.

These are the environment variables I’m using to try to solve some errors or warnings shown in the Logs or Overview tab:

APACHE_PORT: 11000
APACHE_IP_BINDING=0.0.0.0
APACHE_ADDITIONAL_NETWORK=""
SKIP_DOMAIN_VALIDATION: true
NEXTCLOUD_DATADIR: "/storage/nextcloud"
NEXTCLOUD_MOUNT: "/storage/" 
PHP_MEMORY_LIMIT: 2048M 
NEXTCLOUD_MEMORY_LIMIT: 2048M 
NC_default_phone_region: es
NC_default_language: es 
NC_default_locale: es_ES

Actually, the NC_default_* are not working, as the warnings are still shown in the Overview tab

The error is hardcoded, so no matter the variables it will still show up, if you already increase the memory limit then you can ignore the error

1 Like

Hi, this particular issue is not related to the memory usage, it’s a code bug in v31, I issue a fix since I was also experiencing this, but from what a see in the code, it should be fix in v32 and if my PR is approve, it will be fix for v31 too.

1 Like

Okay, thank you.
I will wait until v32 to check if this still happens

Have you tried v32? I’ve updated my aio installation yesterday and I’m still seeing these errors populating the log files… :frowning: Thanks in advance to anyone that is able to help

Hi! I updated Nextcloud to v32, but not through AIO (since there’s no new version), so I was waiting for the official update to be released to see if this still happened.

So far, the errors are still appearing