Nextcloud version (eg, 20.0.5): latest docker release
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.54
PHP version (eg, 7.4): PHP/8.1.13
The issue you are facing:
Nextclud isn’t working, after NFS mount dropped out.
Is this the first time you’ve seen this error? (Y):
Steps to replicate it:
I had /var/www/html/
on an NFS mount in docker. The server hosting the NFS share was rebooted (by me, stupid I know) without me stopping the Nextcloud container. Once the NFS share was back online, restarting the container hasn’t brought Nextcloud back.
The error I’m getting is this:
Fatal error: Uncaught Error: Call to a member function getLogger() on null in /var/www/html/index.php:71 Stack trace: #0 {main} thrown in /var/www/html/index.php on line 71
The output of your Nextcloud log in Admin > Logging:
The docker logs show the following, as I can’t access logs as described:
nextcloud | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.34. Set the 'ServerName' directive globally to suppress this message
nextcloud | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.34. Set the 'ServerName' directive globally to suppress this message
nextcloud | [Mon Dec 19 03:28:59.973408 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/8.1.13 configured -- resuming normal operations
nextcloud | [Mon Dec 19 03:29:00.013298 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?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' => 'snip',
'passwordsalt' => 'snip',
'secret' => 'snip',
'trusted_domains' =>
array (
0 => '192.168.0.80:3009',
1 => 'snip',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'sqlite3',
'version' => '25.0.2.3',
'overwrite.cli.url' => 'http://192.168.0.80:3009',
'installed' => true,
'mail_from_address' => 'snip',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'gmail.com',
'mail_smtpsecure' => 'ssl',
'theme' => '',
'loglevel' => 2,
'maintenance' => false,
'mail_smtphost' => 'snip',
'mail_smtpport' => '465',
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
),
'app_install_overwrite' =>
array (
0 => 'gluusso',
),
);
The output of your Apache/nginx/system log in /var/log/____
:
either empty, or I can't open the files
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
as above