Hello,
I keep having issues with my cloud site. It was up and running and last week I restarted it and it failed shutting down due to REDIS issue, then it had trouble booting up because of REDIS. I noticed both MariaDB and REDIS trouble. I don’t have much experience with this and if you could assist me on how to troubleshoot or resolve, that would be appreciated.
Nextcloud Server version 30.0.6.2:
Apache/2.4.58 (Ubuntu)
Ubuntu 24.04.2 LTS
PHP version 8.3.6
Is this the first time you’ve seen this error?
No but I haven’t resolved it, and the site did work during the error at some points. I don’t know what changed.
- When did this problem seem to first start?
Recently, but it’s a new server - Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Hub
Summary of the issue you are facing:
The cloud server stopped being accessible. I get REDIS errors on shutdown.
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.
Steps to replicate it (hint: details matter!):
-
Log on to site, it’s inaccessible.
GNU nano 7.2 /path/config.php *
<?php
$CONFIG = array (
'instanceid' => '',
'passwordsalt' => '/',
'secret' => '',
'trusted_domains' =>
[
'localhost',
'.com',
'10.0.0.43',
'www.redacted.com'
],
'datadirectory' => '/mnt',
'tempdirectory' => '/mnt/A',
'dbtype' => 'mysql',
'memcache.local' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => 'localhost',
'port' => 6379,
),
'version' => '30.0.6.2',
'overwrite.cli.url' => 'https://.com',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '',
'dbpassword' => '',
'installed' => true,
'maintenance_window_start' => '01:00',
'default_phone_region' => 'US',
'app_install_overwrite' => array (
0 => 'backup'
),
'maintenance' => false,
'backgroundjobs.mode' => 'cron',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'cloud',
'mail_domain' => '.com',
'mail_smtphost' => '.com',
'mail_smtpport' => '587',
'mail_smtptimeout' => 30,
'mail_smtpauth' => 1,
'mail_smtpname' => '.com',
'mail_smtppassword' => '',
);
Job for mariadb.service failed because the control process exited with error code.
See “systemctl status mariadb.service” and “journalctl -xeu mariadb.service” for details.
ps aux | grep mariadb
0.0 0.0 pts/0 S+ 09:19 0:00 grep --color=auto mariadb
sudo systemctl restart redis
Job for redis-server.service failed because the control process exited with error code.
See "systemctl status redis-server.service" and "journalctl -xeu redis-server.service" for details.
ps aux | grep redis
green 0.0 0.0 pts/0 S+ 09:19 0:00 grep --color=auto redis
redis-cli -h localhost -p 6379 ping
Could not connect to Redis at localhost:6379: Connection refused
sudo systemctl status redis
× redis-server.service - Advanced key-value store
Loaded: loaded (/usr/lib/systemd/system/redis-server.service; enabled; pre>
Active: failed (Result: exit-code) since Tue 2025-04-01 09:18:51 EDT; 8min>
Docs: http://redis.io/documentation,
man:redis-server(1)
Process: ExecStart=/usr/bin/redis-server /etc/redis/redis.conf --sup>
Main PID: (code=exited, status=1/FAILURE)
CPU: 42ms
Apr 01 09:18:51 systemd[1]: redis-server.service: Scheduled r>
Apr 01 09:18:51 systemd[1]: redis-server.service: Start reque>
Apr 01 09:18:51 systemd[1]: redis-server.service: Failed with>
Apr 01 09:18:51 systemd[1]: Failed to start redis-server.serv>
lines 1-13/13 (END)
sudo journalctl -xeu redis-server
░░ The job identifier is and the job result is failed.
Apr 01 09:18:51 systemd[1]: redis-server.service: Scheduled r>
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ Automatic restarting of the unit redis-server.service has been scheduled, as>
░░ the configured Restart= setting for the unit.
Apr 01 09:18:51 systemd[1]: redis-server.service: Start reque>
Apr 01 09:18:51 systemd[1]: redis-server.service: Failed with>
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit redis-server.service has entered the 'failed' state with result 'ex>
Apr 01 09:18:51 systemd[1]: Failed to start redis-server.serv>
░░ Subject: A start job for unit redis-server.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit redis-server.service has finished with a failure.
░░
░░ The job identifier is and the job result is failed.