[Memories] Forbidden You must provide a valid X-Recognize-Api-Key Uncaught exception

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):
    • Nextcloud Hub 26 Winter (33.0.0)
  • Operating system and version (e.g., Ubuntu 24.04):
    • TrueNAS SCALE Community Edition version 25.10.1 - Goldeye
  • Web server and version (e.g, Apache 2.4.25):
    • nginx/1.28.2
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Caddy 2.10.2
  • PHP version (e.g, 8.3):
    • 8.4.16
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Adter updated NC to 33.0.0
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • from this docker image linuxserver/nextcloud
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

When I try to assign a face from the Unassigned faces, it shows an error:

Failed to move 26-02-15 19-05-26 9.jpg from face.

Steps to replicate it (hint: details matter!):

  1. Memories tab > People > Unassigned faces > Select a face > Move selected photos to person > Select a person > Move

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

Formatted entry

[no app in context] Info: Uncaught exception
	MOVE /remote.php/dav/recognize/janus/unassigned-faces/115872-26-02-15%2019-05-26%209.jpg
	from 10.27.2.14 by janus at 19 Feb 2026, 19:04:32

Raw entry

{"reqId":"GMTVsGfTozmDhb8QYPUZ","level":1,"time":"2026-02-19T19:04:32+00:00","remoteAddr":"10.27.2.14","user":"janus","app":"no app in context","method":"MOVE","url":"/remote.php/dav/recognize/janus/unassigned-faces/115872-26-02-15%2019-05-26%209.jpg","scriptName":"/remote.php","message":"Uncaught exception","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36","version":"33.0.0.16","exception":{"Exception":"Sabre\\DAV\\Exception\\Forbidden","Message":"You must provide a valid X-Recognize-Api-Key","Code":0,"Trace":[{"file":"/app/www/public/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"OCA\\Recognize\\Dav\\Faces\\PropFindPlugin","type":"->"},{"file":"/app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php","line":212,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/lib/Server.php","line":427,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":25,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/app/www/public/remote.php","line":151,"args":["/config/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/config/www/nextcloud/apps/recognize/lib/Dav/Faces/PropFindPlugin.php","Line":135,"message":"Uncaught exception","exception":"{\"class\":\"Sabre\\DAV\\Exception\\Forbidden\",\"message\":\"You must provide a valid X-Recognize-Api-Key\",\"code\":0,\"file\":\"/config/www/nextcloud/apps/recognize/lib/Dav/Faces/PropFindPlugin.php:135\",\"trace\":\"#0 /app/www/public/3rdparty/sabre/event/lib/WildcardEmitterTrait.php(89): OCA\\Recognize\\Dav\\Faces\\PropFindPlugin->beforeMethod()\\n#1 /app/www/public/3rdparty/sabre/dav/lib/DAV/Server.php(456): Sabre\\DAV\\Server->emit()\\n#2 /config/www/nextcloud/apps/dav/lib/Connector/Sabre/Server.php(212): Sabre\\DAV\\Server->invokeMethod()\\n#3 /config/www/nextcloud/apps/dav/lib/Server.php(427): OCA\\DAV\\Connector\\Sabre\\Server->start()\\n#4 /config/www/nextcloud/apps/dav/appinfo/v2/remote.php(25): OCA\\DAV\\Server->exec()\\n#5 /app/www/public/remote.php(151): require_once('...')\\n#6 {main}\"}","CustomMessage":"Uncaught exception"},"id":"69975ec612e83"}

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

Google Chrome for macOS Version 145.0.7632.76 (Official Build) (arm64)

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:
access.log

10.27.0.203 - - [19/Feb/2026:19:04:32 +0000] "MOVE /remote.php/dav/recognize/janus/unassigned-faces/115872-26-02-15%2019-05-26%209.jpg HTTP/1.1" 403 206 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36"

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!):

Nextcloud is in maintenance mode, no apps are loaded.
Commands provided by apps are unavailable.
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "version": "33.0.0.16",
        "overwriteprotocol": "https",
        "installed": true,
        "default_phone_region": "GB",
        "maintenance": true,
        "debug": true,
        "loglevel": 1,
        "logfilemode": 416,
        "log_rotate_size": 10485760,
        "theme": "",
        "filelocking.enabled": true,
        "upgrade.disable-web": true,
        "filesystem_check_changes": 0,
        "maintenance_window_start": 1,
        "remember_login_cookie_lifetime": 2592000,
        "session_lifetime": 604800,
        "memories.exiftool": "\/config\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-musl",
        "memories.vod.path": "\/config\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "memories.gis_type": 1,
        "memories.db.triggers.fcu": true,
        "dbtype": "mysql",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "example.com",
        ],
        "overwrite.cli.url": "https:\/\/example.com",
        "overwritehost": "example.com",
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "tls",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "enable_previews": true,
        "preview_concurrency_all": 72,
        "preview_concurrency_new": 36,
        "preview_max_x": 4096,
        "preview_max_y": 4096,
        "jpeg_quality": 80,
        "preview_max_scale_factor": 1,
        "preview_max_filesize_image": 50,
        "preview_max_memory": 256,
        "enabledPreviewProviders": [
            "OC\\Preview\\Krita",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\TXT",
            "OC\\Preview\\Movie",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\Imaginary",
            "OC\\Preview\\Image"
        ],
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "app_install_overwrite": {
            "1": "memories",
            "2": "imageconverter",
            "3": "maps",
            "4": "recognize"
        }
    }
}

Apps

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

Nextcloud is in maintenance mode, no apps are loaded.
Commands provided by apps are unavailable.
Enabled:
  - activity: 6.0.0-dev.0
  - bruteforcesettings: 6.0.0-dev.0
  - circles: 33.0.0
  - cloud_federation_api: 1.17.0
  - comments: 1.23.0
  - contactsinteraction: 1.14.1
  - dashboard: 7.13.0
  - dav: 1.36.0
  - external: 8.0.0
  - federatedfilesharing: 1.23.0
  - federation: 1.23.0
  - files: 2.5.0
  - files_downloadlimit: 5.1.0-dev.0
  - files_external: 1.25.1
  - files_pdfviewer: 6.0.0-dev.0
  - files_reminders: 1.6.0
  - files_sharing: 1.25.2
  - files_trashbin: 1.23.0
  - files_versions: 1.26.0
  - firstrunwizard: 6.0.0-dev.0
  - imageconverter: 2.1.0
  - logreader: 6.0.0
  - lookup_server_connector: 1.21.0
  - memories: 7.8.2
  - nextcloud_announcements: 5.0.0
  - notifications: 6.0.0
  - oauth2: 1.21.0
  - password_policy: 5.0.0-dev.0
  - photos: 6.0.0-dev.0
  - previewgenerator: 5.12.1
  - privacy: 5.0.0-dev.0
  - profile: 1.2.0
  - provisioning_api: 1.23.0
  - recognize: 11.0.1
  - recommendations: 6.0.0-dev.0
  - related_resources: 4.0.0-dev.0
  - serverinfo: 5.0.0-dev.0
  - settings: 1.16.0
  - sharebymail: 1.23.0
  - support: 5.0.0
  - survey_client: 5.0.0-dev.0
  - systemtags: 1.23.0
  - text: 7.0.0-dev.3
  - theming: 2.8.0
  - twofactor_backupcodes: 1.22.0
  - twofactor_totp: 15.0.0-dev.0
  - updatenotification: 1.23.0
  - user_status: 1.13.0
  - viewer: 6.0.0-dev.0
  - weather_status: 1.13.0
  - webhook_listeners: 1.5.0
  - workflowengine: 2.15.0
Disabled:
  - admin_audit: 1.23.0
  - app_api: 33.0.0 (installed 32.0.0)
  - encryption: 2.21.0
  - maps: 1.6.0 (installed 1.6.0)
  - suspicious_login: 11.0.0-dev.0 (installed 10.0.0-dev.0)
  - twofactor_nextcloud_notification: 7.0.0
  - user_ldap: 1.24.0

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

It’s likely this, but that’s only because Memories hasn’t officially been released for Nextcloud v33 yet. You appear to have it force enabled.

1 Like

Thank you.

It is good that it is a known issue.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.