Skip to content

Notes fail to load after upgrade to Nextcloud 32.0.0 #1649

@M0dEx

Description

@M0dEx

Notes fail to load after upgrading Nextcloud server to v32.0.0 with error Error from Nextcloud server: Reading notes from filesystem has failed. (Error)

Logs show this error from notes: Undefined constant OCP\Share::SHARE_TYPE_USER

I can still see the Notes .md files in the configured folder.

Steps to reproduce

  1. Have a working instance of Nextcloud w/ Notes running on v31.0.0
  2. Upgrade to v32.0.0

Expected behaviour

Notes should load as usual, as nothing about the way they are stored changed.

Actual behaviour

Notes fail to load.

Server

Please complete the following information.

  • Notes app version: 4.2.13
  • Nextcloud version: 32.0.0
  • OS: Docker (linuxserver/nextcloud)
  • Web server: nginx/1.28.0
  • PHP version: 8.4.13
  • Database: Postgres 14

Nextcloud configuration:

``` { "system": { "memcache.local": "\\OC\\Memcache\\APCu", "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 6379 }, "datadirectory": "***REMOVED SENSITIVE VALUE***", "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "***REMOVED SENSITIVE VALUE***", "***REMOVED SENSITIVE VALUE***" ], "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "default_phone_region": "***REMOVED SENSITIVE VALUE***", "allow_local_remote_servers": true, "dbtype": "pgsql", "version": "32.0.0.13", "overwritehost": "***REMOVED SENSITIVE VALUE***", "skeletondirectory": "", "installed": true, "twofactor_enforced": "false", "twofactor_enforced_groups": [ "Users", "admin" ], "twofactor_enforced_excluded_groups": [], "maintenance": false, "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "theme": "", "loglevel": 2, "preview_max_x": 2048, "preview_max_y": 2048, "jpeg_quality": 60, "app_install_overwrite": [ "facerecognition", "bruteforcesettings", "drawio", "impersonate", "files_markdown", "metadata", "maps", "memories", "files_rightclick", "l10n_override", "tasks", "side_menu", "timemanager", "twofactor_webauthn" ], "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "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": "25", "mail_smtpstreamoptions": { "ssl": { "allow_self_signed": true, "verify_peer": false, "verify_peer_name": false } }, "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "filelocking.enabled": "true", "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", "updater.secret": "***REMOVED SENSITIVE VALUE***", "enabledPreviewProviders": [ "OC\\Preview\\Image", "OC\\Preview\\HEIC", "OC\\Preview\\TIFF", "OC\\Preview\\Movie" ], "memories.vod.nvenc.scale": "cuda", "upgrade.disable-web": true, "memories.vod.nvenc.temporal_aq": true, "memories.vod.connect": "***REMOVED SENSITIVE VALUE***", "memories.vod.external": true, "memories.vod.disable": false, "memories.vod.nvenc": true, "memories.vod.qf": 25, "maintenance_window_start": 2, "memories.db.triggers.fcu": true, "files.chunked_upload.max_size": 0 } } ```

Client

Please complete the following information.

  • Browser (incl. version): Brave 1.79.126
  • OS: MacOS 15

Log files

Add relevant parts of your nextcloud.log and/or your browser's JavaScript console here.

{"reqId":"***REMOVED SENSITIVE VALUE***","level":3,"time":"2025-10-19T09:15:15+00:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"***REMOVED SENSITIVE VALUE***","app":"notes","method":"GET","url":"/apps/notes/notes","message":"Controller failed with Error","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36","version":"32.0.0.13","exception":{"Exception":"Error","Message":"Undefined constant OCP\\Share::SHARE_TYPE_USER","Code":0,"Trace":[{"file":"/app/www/public/lib/private/legacy/OC_Hook.php","line":85,"function":"preUnShare","class":"OCA\\Maps\\Hooks\\FileHooks","type":"->"},{"file":"/app/www/public/lib/private/Share20/LegacyHooks.php","line":47,"function":"emit","class":"OC_Hook","type":"::"},{"file":"/app/www/public/lib/private/Share20/LegacyHooks.php","line":27,"function":"preUnshare","class":"OC\\Share20\\LegacyHooks","type":"->"},{"file":"/app/www/public/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":220,"function":"{closure:OC\\Share20\\LegacyHooks::__construct():26}","class":"OC\\Share20\\LegacyHooks","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/app/www/public/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":56,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/app/www/public/lib/private/EventDispatcher/EventDispatcher.php","line":67,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/app/www/public/lib/private/EventDispatcher/EventDispatcher.php","line":79,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/app/www/public/lib/private/Share20/Manager.php","line":2069,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/app/www/public/lib/private/Share20/Manager.php","line":1135,"function":"dispatchEvent","class":"OC\\Share20\\Manager","type":"->"},{"file":"/app/www/public/lib/private/Share20/Manager.php","line":1487,"function":"deleteShare","class":"OC\\Share20\\Manager","type":"->"},{"file":"/app/www/public/lib/private/Share20/Manager.php","line":1270,"function":"checkShare","class":"OC\\Share20\\Manager","type":"->"},{"file":"/config/www/nextcloud/apps/notes/lib/Service/NoteUtil.php","line":290,"function":"getSharesBy","class":"OC\\Share20\\Manager","type":"->"},{"file":"/config/www/nextcloud/apps/notes/lib/Service/Note.php","line":114,"function":"getShareTypes","class":"OCA\\Notes\\Service\\NoteUtil","type":"->"},{"file":"/config/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":67,"function":"getData","class":"OCA\\Notes\\Service\\Note","type":"->"},{"file":"/config/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":119,"function":"getNoteData","class":"OCA\\Notes\\Controller\\Helper","type":"->"},{"function":"{closure:OCA\\Notes\\Controller\\Helper::getNotesAndCategories():118}","class":"OCA\\Notes\\Controller\\Helper","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/config/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":118,"function":"array_map"},{"file":"/config/www/nextcloud/apps/notes/lib/Controller/NotesController.php","line":77,"function":"getNotesAndCategories","class":"OCA\\Notes\\Controller\\Helper","type":"->"},{"file":"/config/www/nextcloud/apps/notes/lib/Service/Util.php","line":31,"function":"{closure:OCA\\Notes\\Controller\\NotesController::index():63}","class":"OCA\\Notes\\Controller\\NotesController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/config/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":146,"function":"retryIfLocked","class":"OCA\\Notes\\Service\\Util","type":"::"},{"file":"/config/www/nextcloud/apps/notes/lib/Controller/NotesController.php","line":63,"function":"handleErrorResponse","class":"OCA\\Notes\\Controller\\Helper","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Http/Dispatcher.php","line":204,"function":"index","class":"OCA\\Notes\\Controller\\NotesController","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/Http/Dispatcher.php","line":118,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/app/www/public/lib/private/AppFramework/App.php","line":153,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/app/www/public/lib/private/Route/Router.php","line":321,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/app/www/public/lib/base.php","line":1061,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/app/www/public/index.php","line":25,"function":"handleRequest","class":"OC","type":"::"}],"File":"/config/www/nextcloud/apps/maps/lib/Hooks/FileHooks.php","Line":154,"message":"Controller failed with Error","exception":[],"CustomMessage":"Controller failed with Error"},"id":"68f4ad381ac34"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneed to reproduceIssue that has not been reproduced

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions