Not sure exactly what happened, I restarted apache and then nextcloud started throwing this error.
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.
I checked redis is running so redis was not the issue.
php7.4-apcu:
Installed: 5.1.20+4.0.11-1+ubuntu18.04.1+deb.sury.org+1
Candidate: 5.1.20+4.0.11-1+ubuntu18.04.1+deb.sury.org+1
Version table:
*** 5.1.20+4.0.11-1+ubuntu18.04.1+deb.sury.org+1 500
500 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main arm64 Packages
100 /var/lib/dpkg/status
Not sure what has gone wrong.
Nextcloud version (eg, 20.0.5): 21.0.3
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): apache 2.4
PHP version (eg, 7.4): 7.4
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Restarted Apache2
The output of your Nextcloud log in Admin > Logging:
PASTE HERE
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'ocr2fw9pzn5a',
'passwordsalt' => '24QdCbdso/MTqBnT2WZwK/G620EIM/',
'secret' => 'HnyaVGitcBtN9i8ddsd2xRaXTZo//Wjw3CNSLLG0dU8iRIqG',
'filelocking.enabled' => 'true',
'memcache.disributed' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '192.168.1.10',
'port' => 6379,
'timeout' => 0.0,
'password' => 'secret',
'dbindex' => 0,
),
'trusted_domains' =>
array (
0 => '192.168.1.10',
1 => 'mydomain.com'
),
'datadirectory' => '/media/storage/data',
'dbtype' => 'mysql',
'version' => '21.0.3.1',
'overwriteprotocol' => 'https',
'overwritehost' => 'mydomain.com',
'overwrite.cli.url' => 'https://mydomain.com/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => '192.168.1.10',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'secret!',
'installed' => true,
'htaccess.RewriteBase' => '/nextcloud',
'session_lifetime' => 86400,
'session_keepalive' => true,
'has_rebuilt_cache' => true,
'maintenance' => false,
'theme' => '',
'logfile' => '/var/log/nextcloud/nextcloud.log',
'loglevel' => 1,
'updater.release.channel' => 'stable',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'contact',
'mail_domain' => 'mydomain.com',
'mail_smtpauth' => 1,
'mail_smtphost' => 'smtp.mydomain.com',
'mail_smtpport' => '25',
'mail_smtpname' => 'contact@mydomain.com',
'mail_smtppassword' => 'secret!',
);
The output of your Apache/nginx/system log in /var/log/____
:
[Sun Aug 15 21:27:45.188588 2021] [php7:error] [pid 18741] [client 192.168.1.19:55340] PHP Fatal error: Uncaught OC\\HintException: [0]: Memcache \\OC\\Memcache\\Redis not available for local cache (Is the matching PHP module installed and enabled?)\n\n thrown in /var/www /html/nextcloud/lib/private/Memcache/Factory.php on line 89