I’m trying to diagnose an Internal Server Error, but have no clue where it’s coming from. I’m glad for all the help I can get!
Nextcloud version (eg, 20.0.5): 27.1.1
Operating system and version (eg, Ubuntu 20.04): Arch Linux
Apache or nginx version (eg, Apache 2.4.25): nginx 1.25.2
PHP version (eg, 7.4): 8.2.10
The issue you are facing:
When trying to access my nextcloud via web interface, I only get a webpage saying
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.
Logs indicate that there has been a 500 error, but I can’t find anything beyond that. Maybe I’m looking in the wrong places?
Is this the first time you’ve seen this error? (Y/N): Yes
Steps to replicate it:
- Upgraded to 27.1.1 (not sure from which version, probably 26.x.x)
- Fix a few other problems to get it to run at all again
- Go to the web-site in a browser
The output of your Nextcloud log in Admin > Logging:
I can’t access it on the web, but I used the occ
tool to get it in the command line.
Debug serverDI The requested alias "SystemConfig" is deprecated. Please request "OC\SystemConfig" directly. This alias will be removed in a future Nextcloud version. 2023-09-24T15:48:43+00:00
Debug serverDI The requested alias "SystemConfig" is deprecated. Please request "OC\SystemConfig" directly. This alias will be removed in a future Nextcloud version. 2023-09-24T15:49:26+00:00
Debug serverDI The requested alias "SystemConfig" is deprecated. Please request "OC\SystemConfig" directly. This alias will be removed in a future Nextcloud version. 2023-09-24T15:49:59+00:00
------- ---------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ---------------------------
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'config_is_read_only' => true,
'datadirectory' => '/data/nextcloud/data',
'logfile' => '/var/log/nextcloud/nextcloud.log',
'apps_paths' =>
array (
0 =>
array (
'path' => '/usr/share/webapps/nextcloud/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/data/nextcloud/wapps',
'url' => '/wapps',
'writable' => true,
),
),
'passwordsalt' => '[redacted]',
'secret' => '[redacted]',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '[redacted]',
),
'dbtype' => 'mysql',
'version' => '27.1.1.0',
'overwrite.cli.url' => '[redacted]',
'htaccess.RewriteBase' => '/',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '[redacted]',
'installed' => true,
'instanceid' => 'ocr6pn53tsnb',
'default_phone_region' => 'DE',
'memcache.local' => '\\OC\\Memcache\\APCu',
'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'smtp.strato.de',
'mail_smtpport' => '465',
'mail_smtpsecure' => 'ssl',
'mail_smtpauth' => true,
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpname' => '[redacted]',
'mail_smtppassword' => '[redacted]',
'maintenance' => false,
'loglevel' => 0,
);
The output of your Apache/nginx/system log in /var/log/____
:
2.243.135.160 - jens [24/Sep/2023:17:39:08 +0200] "GET /index.php/204 HTTP/1.1" 500 301 "-" "Mozilla/5.0 (Linux) mirall/3.10.0git (Nextcloud, arch-6.5.3-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
2.243.135.160 - jens [24/Sep/2023:17:39:08 +0200] "GET /index.php/204 HTTP/1.1" 500 301 "-" "Mozilla/5.0 (Linux) mirall/3.10.0git (Nextcloud, arch-6.5.3-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
2.243.135.160 - jens [24/Sep/2023:17:39:08 +0200] "GET /status.php HTTP/1.1" 500 5 "-" "Mozilla/5.0 (Linux) mirall/3.10.0git (Nextcloud, arch-6.5.3-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
71.6.134.233 - - [24/Sep/2023:17:39:46 +0200] "GET / HTTP/1.1" 301 169 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36"
2.243.135.160 - jens [24/Sep/2023:17:40:08 +0200] "GET /index.php/204 HTTP/1.1" 500 301 "-" "Mozilla/5.0 (Linux) mirall/3.10.0git (Nextcloud, arch-6.5.3-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
2.243.135.160 - jens [24/Sep/2023:17:41:10 +0200] "GET /index.php/204 HTTP/1.1" 500 301 "-" "Mozilla/5.0 (Linux) mirall/3.10.0git (Nextcloud, arch-6.5.3-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
2.243.135.160 - jens [24/Sep/2023:17:42:12 +0200] "GET /index.php/204 HTTP/1.1" 500 301 "-" "Mozilla/5.0 (Linux) mirall/3.10.0git (Nextcloud, arch-6.5.3-arch1-1 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
Output of my php-fpm log (latest few entries, others are the same):
2023-09-24T17:35:32+0200 -: "PROPFIND /remote.php" 500 /usr/share/webapps/nextcloud/remote.php 6.684 2048 0.00%
2023-09-24T17:36:00+0200 -: "GET /index.php" 500 /usr/share/webapps/nextcloud/index.php 20.727 2048 96.49%
2023-09-24T17:37:02+0200 -: "GET /index.php" 500 /usr/share/webapps/nextcloud/index.php 26.882 2048 111.60%
2023-09-24T17:38:04+0200 -: "GET /index.php" 500 /usr/share/webapps/nextcloud/index.php 25.492 2048 117.68%
2023-09-24T17:39:02+0200 -: "PROPFIND /remote.php" 500 /usr/share/webapps/nextcloud/remote.php 25.584 2048 78.17%
2023-09-24T17:39:08+0200 -: "GET /index.php" 500 /usr/share/webapps/nextcloud/index.php 29.708 2048 100.98%
2023-09-24T17:39:08+0200 -: "GET /index.php" 500 /usr/share/webapps/nextcloud/index.php 7.072 2048 141.40%
2023-09-24T17:39:08+0200 -: "GET /status.php" 500 /usr/share/webapps/nextcloud/status.php 6.029 2048 0.00%
2023-09-24T17:40:08+0200 -: "GET /index.php" 500 /usr/share/webapps/nextcloud/index.php 30.428 2048 98.59%
2023-09-24T17:41:10+0200 -: "GET /index.php" 500 /usr/share/webapps/nextcloud/index.php 21.099 2048 94.79%
2023-09-24T17:42:12+0200 -: "GET /index.php" 500 /usr/share/webapps/nextcloud/index.php 25.290 2048 79.08%
2023-09-24T17:43:14+0200 -: "GET /index.php" 500 /usr/share/webapps/nextcloud/index.php 25.319 2048 118.49%
2023-09-24T17:44:16+0200 -: "GET /index.php" 500 /usr/share/webapps/nextcloud/index.php 23.727 2048 126.44%
2023-09-24T17:45:01+0200 -: "GET /index.php" 500 /usr/share/webapps/nextcloud/index.php 29.873 2048 100.43%