Nextcloud version (eg, 20.0.5): 27.0.0
Operating system and version (eg, Ubuntu 20.04): Synology DSM 7.2 - Docker
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.56
PHP version (eg, 7.4): 8.2.7
The issue you are facing:
Can’t see web interface. Instead I see
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):
Steps to replicate it:
- Start nextcloud docker container
- Visit web interrface
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'filesystem_check_change' => 1,
'instanceid' => '***',
'passwordsalt' => '***',
'secret' => '***+',
'trusted_domains' =>
array (
0 => 'cloud.defariahome.com',
1 => 'defaria.synology.me',
2 => 'jupiter',
3 => '192.168.86.31',
),
'default_phone_region' => 'US',
'memcache.local' => '\\OC\\Memcache\\APCu',
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '25.0.0.18',
'overwrite.cli.url' => 'https://cloud.defariahome.com',
'overwritehost' => 'cloud.defariahome.com',
'overwriteprotocol' => 'https',
'dbname' => 'nextcloud',
'dbhost' => '192.168.86.31',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => '***',
'installed' => true,
'mail_from_address' => '***',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'DeFaria.com',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'defaria.com',
'mail_smtpport' => '465',
'mail_smtpname' => 'andrew',
'mail_smtppassword' => '***',
'maintenance' => false,
'enable_previews' => true,
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\Movie',
1 => 'OC\\Preview\\PNG',
2 => 'OC\\Preview\\JPEG',
3 => 'OC\\Preview\\GIF',
4 => 'OC\\Preview\\BMP',
5 => 'OC\\Preview\\XBitmap',
6 => 'OC\\Preview\\MP3',
7 => 'OC\\Preview\\MP4',
8 => 'OC\\Preview\\TXT',
9 => 'OC\\Preview\\MarkDown',
10 => 'OC\\Preview\\PDF',
11 => 'OC\\Preview\\SVG',
),
'theme' => '',
'log_type' => 'file',
'logfile' => '/var/www/html/data/nextcloud.log',
'loglevel' => 1,
'logdataformat' => 'F d, Y H:i:s',
'debug' => true,
'mail_smtpsecure' => 'ssl',
'app_install_overwrite' =>
array (
0 => 'files_markdown',
1 => 'impersonate',
),
'updater.secret' => '***',
);
The problem is that nothing gets written to nextcloud.log so i cannot debug further. Since I’m running a Docker container I cannot dump the logs, except to use docker logs nextcloud
:
Jupiter:docker logs nextcloud
Initializing nextcloud 27.0.0.8 ...
New nextcloud instance
Initializing finished
=> Searching for scripts (*.sh) to run, located in the folder: /docker-entrypoint-hooks.d/before-starting
==> but the hook folder "before-starting" is empty, so nothing to do
[Sun Jul 02 19:40:00.530294 2023] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.56 (Debian) PHP/8.2.7 configured -- resuming normal operations
[Sun Jul 02 19:40:00.530367 2023] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
172.18.0.1 - - [02/Jul/2023:19:40:18 +0000] "GET /remote.php/webdav/ HTTP/1.1" 500 701 "-" "-"
172.18.0.1 - - [02/Jul/2023:19:40:19 +0000] "GET /remote.php/webdav/ HTTP/1.1" 500 701 "-" "-"
172.18.0.1 - - [02/Jul/2023:19:40:36 +0000] "GET / HTTP/1.1" 500 701 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
172.18.0.1 - - [02/Jul/2023:19:41:50 +0000] "GET /index.php/apps/theming/icon?v=5 HTTP/1.1" 500 701 "https://help.nextcloud.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
172.18.0.1 - - [02/Jul/2023:19:41:50 +0000] "GET /index.php/apps/theming/favicon?v=5 HTTP/1.1" 500 701 "https://help.nextcloud.com/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
Jupiter:
I checked to ensure that nothing is being written to the logfile thusly:
Jupiter:grep logfile /docker/nextcloud/config.php
'logfile' => '/var/www/html/data/nextcloud.log',
Jupiter:docker exec -it nextcloud ls -l /var/www/html/data/nextcloud.log
-rw-rw-rw- 1 www-data www-data 0 Jul 2 19:02 /var/www/html/data/nextcloud.log
Jupiter: