Nextcloud version (eg, 18.0.2): 20.0.0.9 (Official Docker Image)
Operating system and version (eg, Ubuntu 20.04): Centos 8. Docker version 19.03
The issue you are facing:
My Nextcloud is always in Maintenance Mode, even trying to recreate or restart my container.
Is this the first time you’ve seen this error? (Y/N): Yes
I’ve downloaded Docker’s official image and I tried to update Nextcloud’s version like I always have done before. However, this time the upgrading turned in maintenance mode. If i take a look at container log I can see this error :
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.28.13. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.28.13. Set the 'ServerName' directive globally to suppress this message
[Fri Oct 09 21:35:03.729874 2020] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.38 (Debian) PHP/7.4.11 configured -- resuming normal operations
[Fri Oct 09 21:35:03.729932 2020] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
Below there is my config.php :
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'instanceid' => 'REMOVED',
'passwordsalt' => 'REMOVED',
'secret' => 'REMOVED',
'trusted_domains' =>
array (
0 => 'nextcloud.REMOVED.com',
1 => '192.168.28.4',
2 => '192.168.28.254',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '20.0.0.9',
'overwritehost' => 'nextcloud.REMOVED.com:443',
'overwrite.cli.url' => 'https://nextcloud.REMOVED.com',
'overwriteprotocol' => '“https”',
'dbname' => 'nextcloud',
'dbhost' => 'REMOVED',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'REMOVED',
'dbpassword' => 'REMOVED',
'installed' => true,
'maintenance' => 'false',
'loglevel' => 0,
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
0 => 'user',
),
'twofactor_enforced_excluded_groups' =>
array (
0 => 'admin',
),
'app_install_overwrite' =>
array (
0 => 'joplin',
),
);
If you need more information, please tell me what logs do you need. So, like I said at the beginning, previously I upgraded my Nextcloud docker instance a lot of times, even to 18 version to 19 without any problem.
I tried to force, like you can see at my config.php, maintenance option to false without success. I executed these commands with no result, too
sudo docker exec --user www-data nextcloud php occ upgrade
and
sudo docker exec -it -u www-data nextcloud bash -c './occ config:system:set overwriteprotocol --value=“https”'
Any solution that you can give me will be welcomed.
Thanks in advanced.