Nextcloud version: 26.0.2
Operating system and version: Docker
Apache or nginx version (eg, Apache 2.4.25): unknown
PHP version: 8.2.6
The issue you are facing:
I am getting a 500 error when trying to access my nextcloud instance after having restored it from a backup. It did work okay on the previous server this backup came from. This is the exact error message:
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Start docker compose file
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\APCu',
'redis' =>
array (
'host' => '192.168.7.233',
'port' => 6379,
'password' => $password,
),
'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' => 'oc75b4bpvmuy',
'passwordsalt' => $passwordsalt,
'secret' => $secret,
'trusted_domains' =>
array (
0 => '192.168.7.233:8080',
1 => 'cloud.nitrogendioxide.xyz',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '26.0.2.1',
'overwrite.cli.url' => 'https://cloud.nitrogendioxide.xyz',
'overwriteprotocol' => 'https',
'dbname' => 'nextcloud',
'dbhost' => 'db',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => $dbpass,
'installed' => true,
'updater.release.channel' => 'stable',
'maintenance' => false,
'trashbin_retention_obligation' => 'auto, 30',
'app_install_overwrite' =>
array (
0 => 'mindmap_app',
1 => 'cookbook',
2 => 'occweb',
3 => 'news',
),
'loglevel' => 0,
'theme' => '',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_sendmailmode' => 'smtp',
'mail_smtpauth' => 1,
'mail_smtpsecure' => 'tls',
'mail_from_address' => $emailname,
'mail_domain' => 'gmail.com',
'mail_smtphost' => 'smtp.gmail.com',
'mail_smtpport' => '587',
'mail_smtpname' => $emailname,
'mail_smtppassword' => $mailpass,
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
),
);
I don’t believe there should be any permissions issues with the config.php files and so on. this is the ls for that directory.
total 132
drwxr-xr-x 1 www-data www-data 562 Sep 4 2022 .
drwxr-xr-x 1 www-data www-data 468 Jun 3 14:51 ..
-rw-r--r-- 1 www-data www-data 495 Sep 5 2021 .htaccess
drwxrwxrwx 1 www-data www-data 46 Sep 4 2022 @eaDir
-rw-r--r-- 1 www-data www-data 60 Sep 5 2021 apache-pretty-urls.config.php
-rw-r--r-- 1 www-data www-data 70 Sep 5 2021 apcu.config.php
-rw-r--r-- 1 www-data www-data 377 Sep 5 2021 apps.config.php
-rw-r----- 1 www-data www-data 2092 Jun 3 14:52 config.php
-rw-r--r-- 1 www-data www-data 60432 Sep 5 2021 config.sample.php
-rw-r--r-- 1 www-data www-data 484 Sep 5 2021 redis.config.php
-rw-r--r-- 1 www-data www-data 674 Sep 5 2021 reverse-proxy.config.php
-rw-r--r-- 1 www-data www-data 1330 Sep 5 2021 s3.config.php
-rw-r--r-- 1 www-data www-data 944 Sep 5 2021 smtp.config.php
-rw-r--r-- 1 www-data www-data 1103 Sep 5 2021 swift.config.php
-rw-rw-rw- 1 www-data www-data 1717 Sep 4 2022 '~gvf3oSy.tmp'
-rw-rw-rw- 1 www-data www-data 1273 Apr 1 2022 '~gvf7qI7.tmp'
-rw-rw-rw- 1 www-data www-data 1919 Sep 4 2022 '~gvfWzOb.tmp'
-rw-rw-rw- 1 www-data www-data 1832 Sep 4 2022 '~gvfYvlw.tmp'
-rw-rw-rw- 1 www-data www-data 1846 Sep 4 2022 '~gvfcxEH.tmp'
-rw-rw-rw- 1 www-data www-data 1915 Sep 4 2022 '~gvfitDg.tmp'
-rw-rw-rw- 1 www-data www-data 2031 Sep 4 2022 '~gvfitVt.tmp'
-rw-rw-rw- 1 www-data www-data 1867 Sep 4 2022 '~gvfu79D.tmp'
I don’t see any usable errors in my log files. The nextcloud.log file in /var/www/html/data appears to only go up to before the server was redeployed. If there is another one which would be better please let me know.
Edit: here are the first few lines in my docker container’s log file after it starts up:
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.96.4. 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.96.4. Set the 'ServerName' directive globally to suppress this message
[Thu Jun 08 00:16:44.046972 2023] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.56 (Debian) PHP/8.2.6 configured -- resuming normal operations
[Thu Jun 08 00:16:44.047005 2023] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
192.168.7.227 - - [08/Jun/2023:00:16:56 +0000] "GET / HTTP/1.1" 500 701 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
192.168.7.227 - - [08/Jun/2023:00:16:57 +0000] "GET /favicon.ico HTTP/1.1" 500 701 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
162.158.159.160 - Brian [08/Jun/2023:00:17:05 +0000] "GET /status.php HTTP/1.1" 500 409 "-" "Mozilla/5.0 (Macintosh) mirall/3.3.6git (build 7956) (Nextcloud, osx-22.5.0 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
172.71.22.45 - - [08/Jun/2023:00:17:12 +0000] "POST /apps/text/public/session/push HTTP/1.1" 500 701 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 OPR/98.0.0.0"
172.71.22.45 - - [08/Jun/2023:00:17:12 +0000] "POST /apps/text/public/session/sync HTTP/1.1" 500 701 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 OPR/98.0.0.0"
172.71.22.45 - - [08/Jun/2023:00:17:12 +0000] "POST /apps/text/public/session/close HTTP/1.1" 500 701 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 OPR/98.0.0.0"