Update from 20 to 21 failed

I updated using command line and phar from version 20 to 21. Had many issues since I’m on Freebsd (TrueNas) and it tried to update to v24 directly from v20 (which is not possible)…

Now I managed to install V21 over V20 but I get this error message when trying to run occ upgrade.

  • The files of the app Cloud Federation API (cloud_federation_api), Dashboard (dashboard), WebDAV (dav), Federated file sharing (federatedfilesharing), Federation (federation), Files (files), Right click (files_rightclick), File sharing (files_sharing), Deleted files (files_trashbin), Versions (files_versions), First run wizard (firstrunwizard), Log Reader (logreader), Lookup Server Connector (lookup_server_connector), Notifications (notifications), OAuth 2.0 (oauth2), Password policy (password_policy), Photos (photos), Privacy (privacy), Provisioning API (provisioning_api), Recommendations (recommendations), Monitoring (serverinfo), Nextcloud settings (settings), Share by mail (sharebymail), Two factor backup codes (twofactor_backupcodes), Update notification (updatenotification), User status (user_status), Viewer (viewer), Weather status (weather_status), Nextcloud workflow engine (workflowengine) were not replaced correctly. Make sure it is a version compatible with the server.

I tried to disabled apps one by one but now I can’t disable “cloud_federation_api”.

I check the apps version in the apps folder and they are “21”.

Any idea what to do from now? I also tried replacing apps folders with the folders from the proper version (21.0.9) downloaded here: Index of /server/releases without success…

I’m using TrueNas 12. Maybe using jails upgrade with the proper tag could help me out… For now I’m stuck in between 21 to 22.

Versions:



This is the release “seen” in TrueNas after the failed update:

More information from the log, I see this error message:

“CustomMessage”:“Error during app service registration: Call to undefined method class@anonymous::registerNotifierService()”

Tail of log file

{"reqId":"a9KhiEDbBivzo03tXreC","level":4,"time":"August 16, 2022 21:46:16","remoteAddr":"99.999.999.99","user":"--","app":"federatedfilesharing","method":"GET","url":"/status.php","message":{"Exception":"Error","Message":"Call to undefined method class@anonymous::registerNotifierService()","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":125,"function":"register","class":"OCA\\FederatedFileSharing\\AppInfo\\Application","type":"->","args":[{"__class__":"class@anonymous\u0000/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/RegistrationContext.php:92$1d8c"}]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":82,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[["files","cloud_federation_api","dav","federatedfilesharing","federation","And 26 more entries, set log level to debug to see all entries"]]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":634,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":1076,"function":"init","class":"OC","type":"::","args":[]},{"file":"/usr/local/www/nextcloud/status.php","line":38,"args":["/usr/local/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/apps-pkg/federatedfilesharing/lib/AppInfo/Application.php","Line":48,"CustomMessage":"Error during app service registration: Call to undefined method class@anonymous::registerNotifierService()"},"userAgent":"Mozilla/5.0 (Windows) mirall/3.4.2stable-Win64 (build 20220127) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"20.0.14.2"}
{"reqId":"a9KhiEDbBivzo03tXreC","level":4,"time":"August 16, 2022 21:46:16","remoteAddr":"99.999.999.99","user":"--","app":"files_sharing","method":"GET","url":"/status.php","message":{"Exception":"Error","Message":"Call to undefined method class@anonymous::registerNotifierService()","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":125,"function":"register","class":"OCA\\Files_Sharing\\AppInfo\\Application","type":"->","args":[{"__class__":"class@anonymous\u0000/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/RegistrationContext.php:92$1d8c"}]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":82,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[["files","cloud_federation_api","dav","federatedfilesharing","federation","And 26 more entries, set log level to debug to see all entries"]]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":634,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":1076,"function":"init","class":"OC","type":"::","args":[]},{"file":"/usr/local/www/nextcloud/status.php","line":38,"args":["/usr/local/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/apps-pkg/files_sharing/lib/AppInfo/Application.php","Line":102,"CustomMessage":"Error during app service registration: Call to undefined method class@anonymous::registerNotifierService()"},"userAgent":"Mozilla/5.0 (Windows) mirall/3.4.2stable-Win64 (build 20220127) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"20.0.14.2"}
{"reqId":"a9KhiEDbBivzo03tXreC","level":4,"time":"August 16, 2022 21:46:16","remoteAddr":"99.999.999.99","user":"--","app":"files_trashbin","method":"GET","url":"/status.php","message":{"Exception":"Error","Message":"Call to undefined method class@anonymous::registerUserMigrator()","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":125,"function":"register","class":"OCA\\Files_Trashbin\\AppInfo\\Application","type":"->","args":[{"__class__":"class@anonymous\u0000/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/RegistrationContext.php:92$1d8c"}]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":82,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[["files","cloud_federation_api","dav","federatedfilesharing","federation","And 26 more entries, set log level to debug to see all entries"]]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":634,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":1076,"function":"init","class":"OC","type":"::","args":[]},{"file":"/usr/local/www/nextcloud/status.php","line":38,"args":["/usr/local/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/apps-pkg/files_trashbin/lib/AppInfo/Application.php","Line":57,"CustomMessage":"Error during app service registration: Call to undefined method class@anonymous::registerUserMigrator()"},"userAgent":"Mozilla/5.0 (Windows) mirall/3.4.2stable-Win64 (build 20220127) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"20.0.14.2"}
{"reqId":"a9KhiEDbBivzo03tXreC","level":4,"time":"August 16, 2022 21:46:16","remoteAddr":"99.999.999.99","user":"--","app":"notifications","method":"GET","url":"/status.php","message":{"Exception":"Error","Message":"Call to undefined method class@anonymous::registerNotifierService()","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":125,"function":"register","class":"OCA\\Notifications\\AppInfo\\Application","type":"->","args":[{"__class__":"class@anonymous\u0000/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/RegistrationContext.php:92$1d8c"}]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":82,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[["files","cloud_federation_api","dav","federatedfilesharing","federation","And 26 more entries, set log level to debug to see all entries"]]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":634,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":1076,"function":"init","class":"OC","type":"::","args":[]},{"file":"/usr/local/www/nextcloud/status.php","line":38,"args":["/usr/local/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/apps-pkg/notifications/lib/AppInfo/Application.php","Line":54,"CustomMessage":"Error during app service registration: Call to undefined method class@anonymous::registerNotifierService()"},"userAgent":"Mozilla/5.0 (Windows) mirall/3.4.2stable-Win64 (build 20220127) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"20.0.14.2"}
{"reqId":"a9KhiEDbBivzo03tXreC","level":4,"time":"August 16, 2022 21:46:16","remoteAddr":"99.999.999.99","user":"--","app":"settings","method":"GET","url":"/status.php","message":{"Exception":"Error","Message":"Call to undefined method class@anonymous::registerUserMigrator()","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":125,"function":"register","class":"OCA\\Settings\\AppInfo\\Application","type":"->","args":[{"__class__":"class@anonymous\u0000/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/RegistrationContext.php:92$1d8c"}]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":82,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[["files","cloud_federation_api","dav","federatedfilesharing","federation","And 26 more entries, set log level to debug to see all entries"]]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":634,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":1076,"function":"init","class":"OC","type":"::","args":[]},{"file":"/usr/local/www/nextcloud/status.php","line":38,"args":["/usr/local/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/apps-pkg/settings/lib/AppInfo/Application.php","Line":136,"CustomMessage":"Error during app service registration: Call to undefined method class@anonymous::registerUserMigrator()"},"userAgent":"Mozilla/5.0 (Windows) mirall/3.4.2stable-Win64 (build 20220127) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"20.0.14.2"}
{"reqId":"a9KhiEDbBivzo03tXreC","level":4,"time":"August 16, 2022 21:46:16","remoteAddr":"99.999.999.99","user":"--","app":"twofactor_backupcodes","method":"GET","url":"/status.php","message":{"Exception":"Error","Message":"Call to undefined method class@anonymous::registerNotifierService()","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":125,"function":"register","class":"OCA\\TwoFactorBackupCodes\\AppInfo\\Application","type":"->","args":[{"__class__":"class@anonymous\u0000/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/RegistrationContext.php:92$1d8c"}]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":82,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[["files","cloud_federation_api","dav","federatedfilesharing","federation","And 26 more entries, set log level to debug to see all entries"]]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":634,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":1076,"function":"init","class":"OC","type":"::","args":[]},{"file":"/usr/local/www/nextcloud/status.php","line":38,"args":["/usr/local/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/apps-pkg/twofactor_backupcodes/lib/AppInfo/Application.php","Line":54,"CustomMessage":"Error during app service registration: Call to undefined method class@anonymous::registerNotifierService()"},"userAgent":"Mozilla/5.0 (Windows) mirall/3.4.2stable-Win64 (build 20220127) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"20.0.14.2"}
{"reqId":"a9KhiEDbBivzo03tXreC","level":4,"time":"August 16, 2022 21:46:16","remoteAddr":"99.999.999.99","user":"--","app":"updatenotification","method":"GET","url":"/status.php","message":{"Exception":"Error","Message":"Call to undefined method class@anonymous::registerNotifierService()","Code":0,"Trace":[{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":125,"function":"register","class":"OCA\\UpdateNotification\\AppInfo\\Application","type":"->","args":[{"__class__":"class@anonymous\u0000/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/RegistrationContext.php:92$1d8c"}]},{"file":"/usr/local/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":82,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[["files","cloud_federation_api","dav","federatedfilesharing","federation","And 26 more entries, set log level to debug to see all entries"]]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":634,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->","args":[]},{"file":"/usr/local/www/nextcloud/lib/base.php","line":1076,"function":"init","class":"OC","type":"::","args":[]},{"file":"/usr/local/www/nextcloud/status.php","line":38,"args":["/usr/local/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/usr/local/www/nextcloud/apps-pkg/updatenotification/lib/AppInfo/Application.php"

Could it be the source of the problem?

Thanks for the help!

More information.

oc_whats_new table show 21.0.9 as latest version.
in config.php, version is at 20.0.14.2
in version.php, I’m at 21.0.9.1.

What could cause this?

I dont have db backup for version 20 (unless there is an automatic dump during update). I do have update backups available.

Any clue on how to escape this situation is more than welcome.