Problems installing recognize dependencies

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.7snap1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04.3 LTS
  • Web server and version (e.g, Apache 2.4.25):
    • Included in the snap
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Included in the snap
  • PHP version (e.g, 8.3):
    • Included in the snap
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • A week or to since
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Snap
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I have been running Nextcloud on a Raspberry Pi, using Ubuntu 24.04. Nextcloud was installed using the snap, and have been updated multiple times. However it stopped wokring a couple of weeks ago. When trying to log into Ubuntu and running:

sudo nextcloud.occ maintenance:repair

things appear to be OK (i.e. text in green) except the following warnings that are printed in yellow:

Install recognize dependencies

  • WARNING: Failed to install node binary
  • WARNING: Failed to automatically install dependencies for recognize. Check the recognize admin panel for potential problems.

Steps to replicate it (hint: details matter!)

  1. Originally, the snap version was 31.0.8snap1. I reverted to a previous version using “sudo snap revert nextcloud”the problem stil remains.

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.

Last two lines from log:Error
recognize
Exception
Failed to install Tensorflow.js: sh: 1: /var/snap/nextcloud/42232/nextcloud/extra-apps/recognize/bin/node: not found

11. sep. 2025, 16:44:59

Error
recognize
Failed to install Tensorflow.js: sh: 1: /var/snap/nextcloud/42232/nextcloud/extra-apps/recognize/bin/node: not found

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.

PASTE

Web server / Reverse Proxy

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

PASTE HERE

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

sudo nextcloud.occ config:list
{
    "system": {
        "apps_paths": [
            {
                "path": "\/snap\/nextcloud\/current\/htdocs\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/snap\/nextcloud\/current\/nextcloud\/extra-apps",
                "url": "\/extra-apps",
                "writable": true
            }
        ],
        "supportedDatabases": [
            "mysql"
        ],
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "log_type": "file",
        "logfile": "\/var\/snap\/nextcloud\/current\/logs\/nextcloud.log",
        "logfilemode": 416,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "storhaug.dyndns.org"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "31.0.7.1",
        "overwrite.cli.url": "https:\/\/storhaug.dyndns.org",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "maintenance": false,
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "loglevel": 2,
        "theme": "",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "maintenance_window_start": 1,
        "mail_smtpport": "587",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "NO"
    },
    "apps": {
        "activity": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": "filesystem"
        },
        "admin_audit": {
            "enabled": "yes",
            "installed_version": "1.21.0",
            "types": "logging"
        },
        "app_api": {
            "enabled": "yes",
            "installed_version": "5.0.2",
            "types": ""
        },
        "backgroundjob": {
            "lastjob": "27"
        },
        "bruteforcesettings": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": ""
        },
        "calendar": {
            "enabled": "yes",
            "installed_version": "5.5.3",
            "types": ""
        },
        "circles": {
            "enabled": "yes",
            "installed_version": "31.0.0",
            "loopback_tmp_scheme": "https",
            "maintenance_run": "0",
            "maintenance_update": "{\"3\":1757601106,\"2\":1757602784,\"1\":1757602784}",
            "migration_22": "1",
            "migration_run": "0",
            "types": "filesystem,dav"
        },
        "cloud_federation_api": {
            "enabled": "yes",
            "installed_version": "1.14.0",
            "types": "filesystem"
        },
        "comments": {
            "enabled": "yes",
            "installed_version": "1.21.0",
            "types": "logging"
        },
        "contacts": {
            "enabled": "yes",
            "installed_version": "7.3.0",
            "types": "dav"
        },
        "contactsinteraction": {
            "enabled": "yes",
            "installed_version": "1.12.0",
            "types": "dav"
        },
        "core": {
            "backgroundjobs_mode": "cron",
            "emailTestSuccessful": "0",
            "files_metadata_installed": "1",
            "installedat": "1678793548.5301",
            "lastcron": 1757602785,
            "lastupdatedat": "0",
            "metadataGenerationDone": true,
            "moveavatarsdone": "yes",
            "previewsCleanedUp": "1",
            "public_files": "files_sharing\/public.php",
            "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php",
            "vendor": "nextcloud",
            "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
                },
                "photos-place": {
                    "value": null,
                    "type": "string",
                    "etag": "",
                    "indexed": true,
                    "editPermission": 0
                },
                "blurhash": {
                    "value": null,
                    "type": "string",
                    "etag": "00297c963cac559f71ef858cf23dfb85",
                    "indexed": false,
                    "editPermission": 0
                }
            },
            "oc.integritycheck.checker": []
        },
        "dashboard": {
            "enabled": "yes",
            "installed_version": "7.11.0",
            "types": ""
        },
        "dav": {
            "buildCalendarReminderIndex": "yes",
            "buildCalendarSearchIndex": "yes",
            "builtSocialSearchIndex": "yes",
            "chunks_migrated": "1",
            "enabled": "yes",
            "installed_version": "1.33.0",
            "regeneratedBirthdayCalendarsForYearFix": "yes",
            "types": "filesystem"
        },
        "drawio": {
            "enabled": "yes",
            "installed_version": "3.1.0",
            "types": "filesystem"
        },
        "federatedfilesharing": {
            "enabled": "yes",
            "installed_version": "1.21.0",
            "types": ""
        },
        "federation": {
            "enabled": "yes",
            "installed_version": "1.21.0",
            "types": "authentication"
        },
        "files": {
            "enabled": "yes",
            "installed_version": "2.3.1",
            "mimetype_version": "31.0.7.1",
            "types": "filesystem"
        },
        "files_downloadlimit": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": ""
        },
        "files_pdfviewer": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": ""
        },
        "files_reminders": {
            "enabled": "yes",
            "installed_version": "1.4.0",
            "types": ""
        },
        "files_rightclick": {
            "enabled": "no",
            "installed_version": "1.6.0",
            "types": ""
        },
        "files_sharing": {
            "enabled": "yes",
            "installed_version": "1.23.1",
            "types": "filesystem"
        },
        "files_trashbin": {
            "enabled": "yes",
            "installed_version": "1.21.0",
            "types": "filesystem,dav"
        },
        "files_versions": {
            "enabled": "yes",
            "installed_version": "1.24.0",
            "types": "filesystem,dav"
        },
        "firstrunwizard": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": ""
        },
        "logreader": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": "logging"
        },
        "lookup_server_connector": {
            "enabled": "yes",
            "installed_version": "1.19.0",
            "types": "authentication"
        },
        "mail": {
            "enabled": "yes",
            "installed_version": "5.4.0",
            "types": ""
        },
        "nextcloud_announcements": {
            "enabled": "yes",
            "installed_version": "3.0.0",
            "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200",
            "types": "logging"
        },
        "notes": {
            "enabled": "yes",
            "installed_version": "4.12.3",
            "types": ""
        },
        "notifications": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": "logging"
        },
        "oauth2": {
            "enabled": "yes",
            "installed_version": "1.19.1",
            "types": "authentication"
        },
        "password_policy": {
            "enabled": "yes",
            "installed_version": "3.0.0",
            "types": "authentication"
        },
        "photos": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "lastPlaceMappedUser": "gas",
            "lastPlaceMappingDone": "true",
            "types": "dav,authentication"
        },
        "privacy": {
            "enabled": "yes",
            "installed_version": "3.0.0",
            "types": ""
        },
        "profile": {
            "enabled": "yes",
            "installed_version": "1.0.0",
            "types": ""
        },
        "provisioning_api": {
            "enabled": "yes",
            "installed_version": "1.21.0",
            "types": "prevent_group_restriction"
        },
        "recognize": {
            "enabled": "yes",
            "installed_version": "9.0.7",
            "nice_binary": "\/usr\/bin\/nice",
            "node_binary": "\/var\/snap\/nextcloud\/42232\/nextcloud\/extra-apps\/recognize\/bin\/node",
            "tensorflow.purejs": "true",
            "types": "filesystem,dav"
        },
        "recommendations": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": ""
        },
        "related_resources": {
            "enabled": "yes",
            "installed_version": "2.0.0",
            "types": ""
        },
        "richdocuments": {
            "enabled": "yes",
            "installed_version": "8.7.4",
            "types": "filesystem,prevent_group_restriction"
        },
        "serverinfo": {
            "cached_count_appdata_files": 594647,
            "cached_count_filecache": 937619,
            "cached_count_storages": "2",
            "enabled": "yes",
            "installed_version": "3.0.0",
            "size_appdata_storage": 151925657,
            "types": ""
        },
        "settings": {
            "enabled": "yes",
            "installed_version": "1.14.0",
            "types": ""
        },
        "sharebymail": {
            "enabled": "yes",
            "installed_version": "1.21.0",
            "types": "filesystem"
        },
        "spreed": {
            "enabled": "yes",
            "has_reference_id": "yes",
            "installed_version": "21.1.4",
            "project_access_invalidated": "1",
            "signaling_ticket_secret": "***REMOVED SENSITIVE VALUE***",
            "signaling_token_privkey_es256": "***REMOVED SENSITIVE VALUE***",
            "signaling_token_pubkey_es256": "***REMOVED SENSITIVE VALUE***",
            "types": "dav,prevent_group_restriction"
        },
        "support": {
            "SwitchUpdaterServerHasRun": "yes",
            "enabled": "yes",
            "installed_version": "3.0.0",
            "types": "session"
        },
        "survey_client": {
            "enabled": "yes",
            "installed_version": "3.0.0",
            "last_report": "{\"id\":\"ochpakwd3ipc\",\"items\":[[\"server\",\"version\",\"31.0.7.1\"],[\"server\",\"code\",\"other\"],[\"server\",\"enable_avatars\",\"yes\"],[\"server\",\"enable_previews\",\"yes\"],[\"server\",\"memcache.local\",\"\\\\OC\\\\Memcache\\\\Redis\"],[\"server\",\"memcache.distributed\",\"none\"],[\"server\",\"asset-pipeline.enabled\",\"no\"],[\"server\",\"filelocking.enabled\",\"yes\"],[\"server\",\"memcache.locking\",\"\\\\OC\\\\Memcache\\\\Redis\"],[\"server\",\"debug\",\"no\"],[\"server\",\"cron\",\"cron\"],[\"php\",\"version\",\"8.3.23\"],[\"php\",\"memory_limit\",536870912],[\"php\",\"max_execution_time\",0],[\"php\",\"upload_max_filesize\",2097152],[\"database\",\"type\",\"mysql\"],[\"database\",\"version\",\"8.0.42\"],[\"database\",\"size\",993705984],[\"apps\",\"activity\",\"4.0.0\"],[\"apps\",\"admin_audit\",\"1.21.0\"],[\"apps\",\"app_api\",\"5.0.2\"],[\"apps\",\"bruteforcesettings\",\"4.0.0\"],[\"apps\",\"calendar\",\"5.5.3\"],[\"apps\",\"circles\",\"31.0.0\"],[\"apps\",\"cloud_federation_api\",\"1.14.0\"],[\"apps\",\"comments\",\"1.21.0\"],[\"apps\",\"contacts\",\"7.2.5\"],[\"apps\",\"contactsinteraction\",\"1.12.0\"],[\"apps\",\"dashboard\",\"7.11.0\"],[\"apps\",\"dav\",\"1.33.0\"],[\"apps\",\"drawio\",\"3.1.0\"],[\"apps\",\"federatedfilesharing\",\"1.21.0\"],[\"apps\",\"federation\",\"1.21.0\"],[\"apps\",\"files\",\"2.3.1\"],[\"apps\",\"files_downloadlimit\",\"4.0.0\"],[\"apps\",\"files_pdfviewer\",\"4.0.0\"],[\"apps\",\"files_reminders\",\"1.4.0\"],[\"apps\",\"files_rightclick\",\"disabled\"],[\"apps\",\"files_sharing\",\"1.23.1\"],[\"apps\",\"files_trashbin\",\"1.21.0\"],[\"apps\",\"files_versions\",\"1.24.0\"],[\"apps\",\"firstrunwizard\",\"4.0.0\"],[\"apps\",\"logreader\",\"4.0.0\"],[\"apps\",\"lookup_server_connector\",\"1.19.0\"],[\"apps\",\"mail\",\"5.4.0\"],[\"apps\",\"nextcloud_announcements\",\"3.0.0\"],[\"apps\",\"notes\",\"4.12.3\"],[\"apps\",\"notifications\",\"4.0.0\"],[\"apps\",\"oauth2\",\"1.19.1\"],[\"apps\",\"password_policy\",\"3.0.0\"],[\"apps\",\"photos\",\"4.0.0\"],[\"apps\",\"privacy\",\"3.0.0\"],[\"apps\",\"profile\",\"1.0.0\"],[\"apps\",\"provisioning_api\",\"1.21.0\"],[\"apps\",\"recognize\",\"9.0.3\"],[\"apps\",\"recommendations\",\"4.0.0\"],[\"apps\",\"related_resources\",\"2.0.0\"],[\"apps\",\"richdocuments\",\"8.7.4\"],[\"apps\",\"serverinfo\",\"3.0.0\"],[\"apps\",\"settings\",\"1.14.0\"],[\"apps\",\"sharebymail\",\"1.21.0\"],[\"apps\",\"spreed\",\"21.1.4\"],[\"apps\",\"support\",\"3.0.0\"],[\"apps\",\"survey_client\",\"3.0.0\"],[\"apps\",\"suspicious_login\",\"9.0.1\"],[\"apps\",\"systemtags\",\"1.21.1\"],[\"apps\",\"text\",\"5.0.0\"],[\"apps\",\"theming\",\"2.6.1\"],[\"apps\",\"twofactor_backupcodes\",\"1.20.0\"],[\"apps\",\"user_status\",\"1.11.0\"],[\"apps\",\"viewer\",\"4.0.0\"],[\"apps\",\"weather_status\",\"1.11.0\"],[\"apps\",\"webhook_listeners\",\"1.2.0\"],[\"apps\",\"workflowengine\",\"2.13.0\"],[\"stats\",\"num_files\",937627],[\"stats\",\"num_users\",1],[\"stats\",\"num_storages\",2],[\"stats\",\"num_storages_local\",1],[\"stats\",\"num_storages_home\",1],[\"stats\",\"num_storages_other\",0],[\"stats\",\"num_comments\",80],[\"stats\",\"num_comment_markers\",0],[\"stats\",\"num_systemtags\",0],[\"stats\",\"num_systemtags_mappings\",0],[\"files_sharing\",\"num_shares\",83],[\"files_sharing\",\"num_shares_user\",0],[\"files_sharing\",\"num_shares_groups\",0],[\"files_sharing\",\"num_shares_link\",83],[\"files_sharing\",\"num_shares_link_no_password\",83],[\"files_sharing\",\"num_fed_shares_sent\",0],[\"files_sharing\",\"num_fed_shares_received\",0],[\"files_sharing\",\"permissions_3_17\",83],[\"encryption\",\"enabled\",\"no\"],[\"encryption\",\"default_module\",\"no\"]]}",
            "last_sent": "1757601257",
            "types": ""
        },
        "suspicious_login": {
            "enabled": "yes",
            "installed_version": "9.0.1",
            "types": "authentication"
        },
        "systemtags": {
            "enabled": "yes",
            "installed_version": "1.21.1",
            "types": "logging"
        },
        "text": {
            "enabled": "yes",
            "installed_version": "5.0.0",
            "types": "dav"
        },
        "theming": {
            "enabled": "yes",
            "installed_version": "2.6.1",
            "types": "logging"
        },
        "twofactor_backupcodes": {
            "enabled": "yes",
            "installed_version": "1.20.0",
            "types": ""
        },
        "user_status": {
            "enabled": "yes",
            "installed_version": "1.11.0",
            "types": ""
        },
        "viewer": {
            "enabled": "yes",
            "installed_version": "4.0.0",
            "types": ""
        },
        "weather_status": {
            "enabled": "yes",
            "installed_version": "1.11.0",
            "types": ""
        },
        "webhook_listeners": {
            "enabled": "yes",
            "installed_version": "1.2.0",
            "types": "filesystem"
        },
        "workflowengine": {
            "enabled": "yes",
            "installed_version": "2.13.0",
            "types": "filesystem"
        }
    }
}

Apps

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

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.

Hey @GeirS, welcome to the Nextcloud community and thanks for supporting Nextcloud snap :handshake:

Sorry to hear you’re having issues with your Nextcloud snap automatic update. The following steps will get you up and running again… but you’ll need to discover some log reference to resolve the cause of the failed automatic update.

1. Check your logs to discover the cause of the update failure

2. Revert to last known good revision

Snaps were designed to have a robust upgrade story. In the case of the Nextcloud snap, every time it refreshes (updates), it takes a snapshot of the database and other version-specific things (not the raw data though, e.g. pictures and documents) and holds them alongside the old revision of the snap.

sudo snap revert nextcloud

With that command, you should be back up and running right at the moment before the automatic update happened.

see How to revert Nextcloud snap after failed update

Backup your running snap now!

This would be the perfect occasion to create a complete Nextcloud snap backup including configuration, apps, certificates, database and data.

  • stop Nextcloud snap sudo snap stop nextcloud
  • save Nextcloud snap sudo snap save nextcloud
  • start Nextcloud snap sudo snap start nextcloud
  • copy/move snapshot (*.zip) in /var/lib/snapd/snapshots to wherever

see How to backup, restore and migrate Nextcloud snap

3. Resolve automatic update issues

A prevalent cause of automatic update issues is attributed to incompatible third party apps due to snap confinement. Any apps requiring access to executable binaries will fail since these are not included in the snap. Disabling the misbehaving apps frequently resolves the automatic update issue. Sometimes apps can be re-installed or re-enabled after successful manual refresh (update)… but may recur during the next automatic update.

If your Nextcloud interface is not available or your Nextcloud is in “Maintenance mode”, you can disable apps using the OCC management console or command line:

  1. List apps: sudo nextcloud.occ app:list
  2. Disable app: sudo nextcloud.occ app:disable <appname>
    • Remove app: sudo nextcloud.occ app:remove <appname>
  3. Enable app: sudo nextcloud.occ app:enable <appname>

see How to manage automatic updates in Nextcloud snap

4. Manually update = refresh Nextcloud snap

sudo snap refresh nextcloud

see How to manage Nextcloud snap with snap

In your specific case you’ll need to remove recognize see FAQ's · nextcloud-snap/nextcloud-snap Wiki · GitHub

Nextcloud snap - remove incompatible Recognize app

NOTE

Recognize app path to node.js is reset by the app after an Nextcloud snap update. The admin would need to configure the path to be /var/snap/nextcloud/current/nextcloud/extra-apps/recognize/bin/node.

TIP

uninstall Recognize app before an update and reinstall after update – if the Snap will not start after update, revert and remove Recognize, then update manually and reinstall Recognize

IMPORTANT

Latest Recognize versions, when in WASM mode, require Node.js 20, which in turn requires a version of glibc >= 2.28 (more context here). The nextcloud snap is still using glibc 2.27 (from core18) due to Snap confinement, so Recognize’s WASM mode won’t work with the snap till this issue is solved.

sudo nextcloud.occ app:disable recognize

Fantastic quick and to the point response - thank you very, very much!

Looks like disabling recognize get me up and running again. Will review the information you provided in more detail when I have more time during the weekend.

Again, thank you!

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