Maintnance mode after upgrade to 23.0.4

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

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:

Nextcloud version (eg, 20.0.5): 23.0.4
Operating system and version (eg, Ubuntu 20.04): Debian 11.3
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.53
PHP version (eg, 7.4): 7.4.28

The issue you are facing:
After upgrading to 23.0.4 it is stuck in maintenance mode. Config says

'maintenance' => false,

Is this the first time you’ve seen this error? (Y)

Steps to replicate it:

  1. upgrade via updater.phar

The output of your Nextcloud log in Admin > Logging:
/var/log/nextcloud.log

[/var/www] # tail /log/nextcloud.log
{"reqId":"YmKLK7b8SBstWd5L16laVgAARAE","level":1,"time":"2022-04-22T11:02:03+00:00","remoteAddr":"80.138.165.35","user":"--","app":"no app in context","method":"GET","url":"/nextcloud/index.php/204","message":"Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist.","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.19.1","version":"23.0.3.2","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"ocs.password_policy.API.validate\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":59,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":107,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->"},{"file":"/var/www/nextcloud/apps/password_policy/lib/Capabilities.php","line":59,"function":"linkToOCSRouteAbsolute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/CapabilitiesManager.php","line":69,"function":"getCapabilities","class":"OCA\\Password_Policy\\Capabilities","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":190,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":297,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":951,"function":"checkMaintenanceMode","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"}}
{"reqId":"YmKLK7b8SBstWd5L16laVgAARAE","level":1,"time":"2022-04-22T11:02:03+00:00","remoteAddr":"80.138.165.35","user":"--","app":"no app in context","method":"GET","url":"/nextcloud/index.php/204","message":"Unable to generate a URL for the named route \"activity.Activities.showList\" as such route does not exist.","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.19.1","version":"23.0.3.2","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"activity.Activities.showList\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":59,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":91,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":287,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":113,"function":"init","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ThemingDefaults.php","line":194,"function":"getAll","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/lib/public/Defaults.php","line":168,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":304,"function":"getShortFooter","class":"OCP\\Defaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":297,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":951,"function":"checkMaintenanceMode","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"}}
{"reqId":"YmKLK7b8SBstWd5L16laVgAARAE","level":1,"time":"2022-04-22T11:02:03+00:00","remoteAddr":"80.138.165.35","user":"--","app":"no app in context","method":"GET","url":"/nextcloud/index.php/204","message":"Unable to generate a URL for the named route \"audioplayer.page.index\" as such route does not exist.","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.19.1","version":"23.0.3.2","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"audioplayer.page.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":59,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":91,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":287,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":113,"function":"init","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ThemingDefaults.php","line":194,"function":"getAll","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/lib/public/Defaults.php","line":168,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":304,"function":"getShortFooter","class":"OCP\\Defaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":297,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":951,"function":"checkMaintenanceMode","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"}}
{"reqId":"YmKLK7b8SBstWd5L16laVgAARAE","level":1,"time":"2022-04-22T11:02:03+00:00","remoteAddr":"80.138.165.35","user":"--","app":"no app in context","method":"GET","url":"/nextcloud/index.php/204","message":"Unable to generate a URL for the named route \"calendar.view.index\" as such route does not exist.","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.19.1","version":"23.0.3.2","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"calendar.view.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":59,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":91,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":287,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":113,"function":"init","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ThemingDefaults.php","line":194,"function":"getAll","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/lib/public/Defaults.php","line":168,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":304,"function":"getShortFooter","class":"OCP\\Defaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":297,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":951,"function":"checkMaintenanceMode","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"}}
{"reqId":"YmKLK7b8SBstWd5L16laVgAARAE","level":1,"time":"2022-04-22T11:02:03+00:00","remoteAddr":"80.138.165.35","user":"--","app":"no app in context","method":"GET","url":"/nextcloud/index.php/204","message":"Unable to generate a URL for the named route \"contacts.page.index\" as such route does not exist.","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.19.1","version":"23.0.3.2","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"contacts.page.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":59,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":91,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":287,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":113,"function":"init","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ThemingDefaults.php","line":194,"function":"getAll","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/lib/public/Defaults.php","line":168,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":304,"function":"getShortFooter","class":"OCP\\Defaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":297,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":951,"function":"checkMaintenanceMode","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"}}
{"reqId":"YmKLK7b8SBstWd5L16laVgAARAE","level":1,"time":"2022-04-22T11:02:03+00:00","remoteAddr":"80.138.165.35","user":"--","app":"no app in context","method":"GET","url":"/nextcloud/index.php/204","message":"Unable to generate a URL for the named route \"cookbook.main.index\" as such route does not exist.","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.19.1","version":"23.0.3.2","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"cookbook.main.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":59,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":91,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":287,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":113,"function":"init","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ThemingDefaults.php","line":194,"function":"getAll","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/lib/public/Defaults.php","line":168,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":304,"function":"getShortFooter","class":"OCP\\Defaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":297,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":951,"function":"checkMaintenanceMode","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"}}
{"reqId":"YmKLK7b8SBstWd5L16laVgAARAE","level":1,"time":"2022-04-22T11:02:03+00:00","remoteAddr":"80.138.165.35","user":"--","app":"no app in context","method":"GET","url":"/nextcloud/index.php/204","message":"Unable to generate a URL for the named route \"dashboard.dashboard.index\" as such route does not exist.","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.19.1","version":"23.0.3.2","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"dashboard.dashboard.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":59,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":91,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":287,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":113,"function":"init","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ThemingDefaults.php","line":194,"function":"getAll","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/lib/public/Defaults.php","line":168,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":304,"function":"getShortFooter","class":"OCP\\Defaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":297,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":951,"function":"checkMaintenanceMode","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"}}
{"reqId":"YmKLK7b8SBstWd5L16laVgAARAE","level":1,"time":"2022-04-22T11:02:03+00:00","remoteAddr":"80.138.165.35","user":"--","app":"no app in context","method":"GET","url":"/nextcloud/index.php/204","message":"Unable to generate a URL for the named route \"files.view.index\" as such route does not exist.","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.19.1","version":"23.0.3.2","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"files.view.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":59,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":91,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":287,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":113,"function":"init","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ThemingDefaults.php","line":194,"function":"getAll","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/lib/public/Defaults.php","line":168,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":304,"function":"getShortFooter","class":"OCP\\Defaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":297,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":951,"function":"checkMaintenanceMode","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"}}
{"reqId":"YmKLK7b8SBstWd5L16laVgAARAE","level":1,"time":"2022-04-22T11:02:03+00:00","remoteAddr":"80.138.165.35","user":"--","app":"no app in context","method":"GET","url":"/nextcloud/index.php/204","message":"Unable to generate a URL for the named route \"notes.page.index\" as such route does not exist.","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.19.1","version":"23.0.3.2","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"notes.page.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":59,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":91,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":287,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":113,"function":"init","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ThemingDefaults.php","line":194,"function":"getAll","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/lib/public/Defaults.php","line":168,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":304,"function":"getShortFooter","class":"OCP\\Defaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":297,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":951,"function":"checkMaintenanceMode","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"}}
{"reqId":"YmKLK7b8SBstWd5L16laVgAARAE","level":1,"time":"2022-04-22T11:02:03+00:00","remoteAddr":"80.138.165.35","user":"--","app":"no app in context","method":"GET","url":"/nextcloud/index.php/204","message":"Unable to generate a URL for the named route \"photos.page.index\" as such route does not exist.","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.19.1","version":"23.0.3.2","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"photos.page.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":365,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/CachingRouter.php","line":59,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/lib/private/URLGenerator.php","line":91,"function":"generate","class":"OC\\Route\\CachingRouter","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":287,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":113,"function":"init","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ThemingDefaults.php","line":194,"function":"getAll","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/lib/public/Defaults.php","line":168,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":304,"function":"getShortFooter","class":"OCP\\Defaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":234,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":297,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":951,"function":"checkMaintenanceMode","class":"OC","type":"::"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"CustomMessage":"--"}}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'x',
  'passwordsalt' => 'x',
  'secret' => 'x/x+x',
  'trusted_domains' => 
  array (
    0 => 'x.x.net',
    1 => 'x.x.net',
    2 => 'x-x',
  ),
  'datadirectory' => '/var/nextcloud_data',
  'dbtype' => 'mysql',
  'version' => '23.0.4.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'x',
  'dbpassword' => 'x+x',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0,
    'password' => '',
    'dbindex' => 0,
  ),
  'logtimezone' => 'UTC',
  'installed' => true,
  'updater.release.channel' => 'stable',
  'mail_smtpmode' => 'smtp',
  'mail_from_address' => 'x',
  'mail_domain' => 'x.de',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'x.x.x',
  'mail_smtpsecure' => 'tls',
  'mail_smtpname' => 'x',
  'mail_smtppassword' => 'x?/x',
  'maintenance' => false,
  'theme' => '',
  'trashbin_retention_obligation' => 'auto, 30',
  'logfile' => '/var/log/nextcloud.log',
  'loglevel' => 2,
  'log_rotate_size' => 10485760,
  'htaccess.RewriteBase' => '/nextcloud',
  'overwrite.cli.url' => 'https://x.x.x/nextcloud',
  'mysql.utf8mb4' => true,
  'mail_smtpport' => 'x',
  'mail_sendmailmode' => 'smtp',
  'default_phone_region' => 'DE',
);

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

[/var/www] # tail /log/apache2/other_vhosts_access.log
darkwing.dynu.net:443 80.138.165.35 - - [22/Apr/2022:13:05:38 +0200] "GET /nextcloud/index.php/204 HTTP/2.0" 503 11578 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.19.1"
darkwing.dynu.net:443 80.138.165.35 - - [22/Apr/2022:13:05:38 +0200] "GET /nextcloud/index.php/204 HTTP/2.0" 503 11576 "-" "Mozilla/5.0 (Android) Nextcloud-android/3.19.1"
darkwing.dynu.net:443 80.138.165.35 - - [22/Apr/2022:13:05:40 +0200] "GET /nextcloud/status.php HTTP/2.0" 200 981 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
darkwing.dynu.net:443 80.138.165.35 - - [22/Apr/2022:13:06:01 +0200] "GET /nextcloud/status.php HTTP/2.0" 200 981 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
darkwing.dynu.net:443 80.138.165.35 - - [22/Apr/2022:13:06:22 +0200] "GET /nextcloud/status.php HTTP/2.0" 200 981 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
darkwing.dynu.net:443 80.138.165.35 - - [22/Apr/2022:13:06:37 +0200] "GET /nextcloud/status.php HTTP/1.1" 200 5948 "-" "Mozilla/5.0 (Linux) mirall/3.4.4-20220415.123906.a3ece50dd-1.0~focal1 (Nextcloud, linuxmint-5.4.0-109-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)"
darkwing.dynu.net:443 80.138.165.35 - - [22/Apr/2022:13:06:43 +0200] "GET /nextcloud/status.php HTTP/2.0" 200 981 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
darkwing.dynu.net:443 80.138.165.35 - - [22/Apr/2022:13:07:04 +0200] "GET /nextcloud/status.php HTTP/2.0" 200 981 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
darkwing.dynu.net:443 80.138.165.35 - - [22/Apr/2022:13:07:25 +0200] "GET /nextcloud/status.php HTTP/2.0" 200 981 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0"
darkwing.dynu.net:443 80.138.165.35 - - [22/Apr/2022:13:07:40 +0200] "GET /nextcloud/status.php HTTP/1.1" 200 5948 "-" "Mozilla/5.0 (Linux) mirall/3.4.4-20220415.123906.a3ece50dd-1.0~focal1 (Nextcloud, linuxmint-5.4.0-109-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)"

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

[/var/www] # tail /log/syslog
Apr 22 12:46:08 MCP-Server systemd[1]: Started The Apache HTTP Server.
Apr 22 12:55:00 MCP-Server systemd[1]: Starting Check pmlogger instances are running...
Apr 22 12:55:00 MCP-Server systemd[1]: pmlogger_check.service: Succeeded.
Apr 22 12:55:00 MCP-Server systemd[1]: Finished Check pmlogger instances are running.
Apr 22 12:58:00 MCP-Server systemd[1]: Starting Check PMIE instances are running...
Apr 22 12:58:00 MCP-Server systemd[1]: pmie_check.service: Succeeded.
Apr 22 12:58:00 MCP-Server systemd[1]: Finished Check PMIE instances are running.
Apr 22 13:00:01 MCP-Server CRON[2180408]: (www-data) CMD (/usr/bin/php -f /var/www/nextcloud/cron.php)
Apr 22 13:05:01 MCP-Server CRON[2180604]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)

what happen when using

sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off

and

sudo -u www-data php /var/www/nextcloud/occ maintenance:repair

??

Thank you for the help. Entered the suggestet commands. But server is still showing maintenence mode
Output was:

root auf MCP-Server am 22.04.2022 16:58 
[~] # sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off
Maintenance mode already disabled
root auf MCP-Server am 22.04.2022 16:58 
[~] # sudo -u www-data php /var/www/nextcloud/occ maintenance:repair
 - Repair MySQL collation
     - All tables already have the correct collation -> nothing to do
 - Repair mime types
 - Clean tags and favorites
     - 0 tags of deleted users have been removed.
     - 0 tags for delete files have been removed.
     - 0 tag entries for deleted tags have been removed.
     - 0 tags with no entries have been removed.
 - Repair invalid shares
 - Move .step file of updater to backup location
 - Add move avatar background job
     - Repair step already executed
 - Add preview cleanup background jobs
 - Migrate oauth2_clients table to nextcloud schema
     - Update the oauth2_access_tokens table schema.
     - Update the oauth2_clients table schema.
 - Fix potential broken mount points
     - No mounts updated
 - Repair language codes
 - Install new core bundle components
 - Add log rotate job
 - Clear frontend caches
     - Image cache cleared
     - SCSS cache cleared
     - JS cache cleared
 - Clear every generated avatar on major updates
 - Add preview background cleanup job
 - Queue a one-time job to cleanup old backups of the updater
 - Cleanup invalid photocache files for carddav
 - Add background job to cleanup login flow v2 tokens
 - Remove potentially over exposing share links
     - No need to remove link shares.
 - Clear access cache of projects
 - Reset generated avatar flag
 - Keep legacy encryption enabled
 - Check encryption key format
 - Remove old dashboard app config data
 - Add job to cleanup the bruteforce entries
 - Queue a one-time job to check for user uploaded certificates
 - Repair DAV shares
 - Add background job to set the lookup server share state for users
 - Update name of the stored view
 - Upgrading Circles App
 - Fix component of birthday calendars
     - 4 birthday calendars updated.
 - Regenerating birthday calendars to use new icons and fix old birthday events without year
     - Repair step already executed
 - Fix broken values of calendar objects
    0 [->--------------------------]
 - Registering building of calendar search index as background job
     - Repair step already executed
 - Register building of social profile search index as background job
 - Registering background jobs to update cache for webcal calendars
     - Added 0 background jobs to update webcal calendars
 - Registering building of calendar reminder index as background job
     - Repair step already executed
 - Clean up orphan event and contact data
     - 0 events without a calendar have been cleaned up
     - 0 properties without an events have been cleaned up
     - 0 changes without a calendar have been cleaned up
     - 0 cached events without a calendar subscription have been cleaned up
     - 0 changes without a calendar subscription have been cleaned up
     - 0 contacts without an addressbook have been cleaned up
     - 0 properties without a contact have been cleaned up
     - 0 changes without an addressbook have been cleaned up
 - Remove activity entries of private events
     - Removed 0 activity entries
 - Clean up old calendar subscriptions from deleted users that were not cleaned-up
 1/1 [============================] 100%
     - 0 calendar subscriptions without an user have been cleaned up
 - Fix the share type of guest shares when migrating from ownCloud
 - Copy the share password into the dedicated column
 - Set existing shares as accepted
 - Remove any playlist files mistakenly added to music_tracks table
 - Combine multi-disk albums and store disk numbers per track
 - Set creation and update dates for the library entities without one
 - Clean up meta table
 - Update OAuth token expiration times
 - Create help command
 - Invalidate access cache for projects conversation provider
     - Invalidation not required
 - Cache the user display names
 - Switches from default updater server to the customer one if a valid subscription is available
     - Repair step already executed
 - Send an admin notification if monthly report is disabled
 - Register the Matterbridge binary
sh: 1: /var/www/nextcloud/apps/talk_matterbridge/bin/matterbridge-1.23.2-linux-arm64: Exec format error
 - Add background job to check for backup codes
 - Populating added database structures for workflows
root auf MCP-Server am 22.04.2022 16:58 
[~] # 

What the server displays
Auswahl_157

Had the same problem after update, I just had to restart PHP FPM, in my case “systemctl restart php8.0-fpm.service”.

1 Like

Thank you very much. Restarting php7.4-fpm solved the problem

1 Like