[solved] Maintenance mode locked

Nextcloud version (eg, 20.0.5): 25.0.4
Operating system and version (eg, Ubuntu 20.04): Debian
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.52
PHP version (eg, 7.4): PHP 8.0.15

The issue you are facing:
Hi,
I upgraded an app (Polls in my memory) and I have an error message.
So I try to finish the update by ssh command :

  • occ upgrade
  • files:scan --all
  • maintenance:repair
  • maintenance:mode --off

=> all seem OK : no error
But in the URL, the maintenance page is locked : I can do nothing or I have no access.

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

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

BLoAd8/","message":"Unable to generate a URL for the named route \"timetracker.page.index\" as such route does not exist.","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0","version":"25.0.4.1","exception":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"timetracker.page.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/home/www/<HOME_DIR>/www/lib/private/Route/Router.php","line":361,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/home/www/<HOME_DIR>/www/lib/private/URLGenerator.php","line":103,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/home/www/<HOME_DIR>/www/lib/private/NavigationManager.php","line":318,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/home/www/<HOME_DIR>/www/lib/private/NavigationManager.php","line":113,"function":"init","class":"OC\\NavigationManager","type":"->"},{"file":"/home/www/<HOME_DIR>/www/apps/theming/lib/ThemingDefaults.php","line":188,"function":"getAll","class":"OC\\NavigationManager","type":"->"},{"file":"/home/www/<HOME_DIR>/www/lib/private/legacy/OC_Defaults.php","line":280,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/home/www/<HOME_DIR>/www/lib/public/Defaults.php","line":177,"function":"getLongFooter","class":"OC_Defaults","type":"->"},{"file":"/home/www/<HOME_DIR>/www/core/templates/layout.guest.php","line":52,"function":"getLongFooter","class":"OCP\\Defaults","type":"->"},{"file":"/home/www/<HOME_DIR>/www/lib/private/Template/Base.php","line":180,"args":["/home/www/<HOME_DIR>/www/core/templates/layout.guest.php"],"function":"include"},{"file":"/home/www/<HOME_DIR>/www/lib/private/Template/Base.php","line":150,"function":"load","class":"OC\\Template\\Base","type":"->"},{"file":"/home/www/<HOME_DIR>/www/lib/private/legacy/OC_Template.php","line":181,"function":"fetchPage","class":"OC\\Template\\Base","type":"->"},{"file":"/home/www/<HOME_DIR>/www/lib/private/legacy/OC_Template.php","line":212,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/home/www/<HOME_DIR>/www/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/home/www/<HOME_DIR>/www/lib/base.php","line":305,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/home/www/<HOME_DIR>/www/lib/base.php","line":990,"function":"checkMaintenanceMode","class":"OC","type":"::"},{"file":"/home/www/<HOME_DIR>/www/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/home/www/<HOME_DIR>/www/3rdparty/symfony/routing/Generator/UrlGenerator.php","Line":143,"message":"Unable to generate a URL for the named route \"timetracker.page.index\" as such route does not exist.","exception":{},"CustomMessage":"Unable to generate a URL for the named route \"timetracker.page.index\" as such route does not exist."}}

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

<?php
$CONFIG = array (
  'instanceid' => '<xxxxx>',
  'passwordsalt' => '<xxxxx>',
  'secret' => '<xxxxx>',
  'trusted_domains' => 
  array (
    0 => '<xxxxx>',
  ),
  'datadirectory' => '/home/www/<HOME_DIR>/www/data',
  'dbtype' => 'mysql',
  'version' => '25.0.4.1',
  'overwrite.cli.url' => '<xxxxx>',
  'dbname' => '<xxxxx>',
  'dbhost' => '<xxxxx>',
  'dbport' => '',
  'dbtableprefix' => '<xxxxx>',
  'dbuser' => '<xxxxx>',
  'dbpassword' => '<xxxxx>',
  'installed' => true,
  'mysql.utf8mb4' => true,
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => '<xxxxx>',
  'mail_domain' => '<xxxxx>',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '<xxxxx>',
  'mail_smtpport' => '465',
  'mail_smtpname' => '<xxxxx>',
  'mail_smtppassword' => '<xxxxx>,',
  'theme' => '',
  'loglevel' => 0,
  'default_phone_region' => 'FR',
  'app_install_overwrite' => 
  array (
    0 => 'announcementcenter',
    1 => 'admin_notifications',
    2 => 'workflow_pdf_converter',
    3 => 'ocr',
    4 => 'flowupload',
    5 => 'ocdownloader',
  ),
  'updater.release.channel' => 'stable',
);

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

There is no error

Thanks

Re,

After all maintenance / repair command, nothing change.
I do an Apache restart and all works again : so, why not.

Thanks