Maintenance mode despite "...mode already disabled"

Hi guys


Nextcloud version: [installed] => 1
[maintenance] =>
[needsDbUpgrade] =>
[version] =>
[versionstring] => 15.0.7

Operating system and version: Debian GNU/Linux 9
Apache or nginx version _: Apache/2.4.25
PHP version : 7.3

The issue you are facing:

I think I accidently switched off an important app and now my nextcloud is in maintenance mode … sort of. Because when I try to disable it via

sudo -u www-data php occ maintenance:mode --off

I get

“Maintenance mode already disabled”

But I still can’t procede. Using a browser it stills shows

“Maintenance mode
This Nextcloud instance is currently in maintenance mode, which may take a while. This page will refresh itself when the instance is available again.
Contact your system administrator if this message persists or appeared unexpectedly.”

It’s also very interesting that status-php gives me this … no information on maintenance on or off

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

The output of your Nextcloud log in Admin > Logging:


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

$CONFIG = array (
  'passwordsalt' => '****',
  'secret' => '*****',
  'trusted_domains' =>
  array (
    0 => 'localhost',
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'oc_admin3',
  'dbpassword' => '****',
  'installed' => true,
  'instanceid' => 'ocenp6d0r39s',
  'maintenance' => false,
); - magmdot [12/Apr/2020:06:46:20 +0000] “PROPFIND /remote.php/dav/files/magmdot/ HTTP/1.1” 503 816 “-” “Mozilla/5.0 (Windows) mirall/2.6.4stable-Win64 (build 20200303) (Nextcloud)”

Thank you!