Server not available, RedisException

I am running Nextcloud on Snap on a Raspberry Pi. For a couple of days, my server does not respond.

This is my latests entry in php_error.log:

[03-Nov-2019 11:00:02 UTC] PHP Warning:  Redis::connect(): connect() failed: No such file or directory in /snap/nextcloud/16740/htdocs/lib/private/RedisFactory.php on line 88
[03-Nov-2019 11:00:02 UTC] PHP Fatal error:  Uncaught RedisException: Redis server went away in /snap/nextcloud/16740/htdocs/lib/private/Memcache/Redis.php:54
Stack trace:
#0 /snap/nextcloud/16740/htdocs/lib/private/Memcache/Redis.php(54):   Redis->get('160682201e9d845...')
#1 /snap/nextcloud/16740/htdocs/lib/autoloader.php(150): OC\Memcache\Redis->get('OC_User')
#2 [internal function]: OC\Autoloader->load('OC_User')
#3 /snap/nextcloud/16740/htdocs/lib/private/Log/File.php(105): spl_autoload_call('OC_User')
#4 /snap/nextcloud/16740/htdocs/lib/private/Log.php(329): OC\Log\File->write('PHP',   'Redis::connect(...', 3)
#5 /snap/nextcloud/16740/htdocs/lib/private/Log.php(218): OC\Log->writeLog('PHP', 'Redis::connect(...', 3)
#6 /snap/nextcloud/16740/htdocs/lib/private/Log.php(130): OC\Log->log(3, 'Redis::connect(...', Array)
#7 /snap/nextcloud/16740/htdocs/lib/private/Log/ErrorHandler.php(68): OC\Log->critical('Redis::connect(...', Array)
#8 [internal function]: OC\Log\ErrorHandler::onShutdown()
#9 {main}
   thrown in /snap/nextcloud/16740/htdocs/lib/private/Memcache/Redis.php on line 54

What does this mean?
Other logs (nextcloud.log, redis.log, certbot.log) do not show errors.

sudo systemctl restart redis

and to check:
sudo systemctl status redis

if that doesn’t work you have to check the redis logs.

Thanks. If using snap, I have to do

sudo systemctl restart snap.nextcloud.redis-server.service

If I now check the status, I get the following:

snap.nextcloud.redis-server.service - Service for snap application nextcloud.redis-server
Loaded: loaded (/etc/systemd/system/snap.nextcloud.redis-server.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-11-05 20:03:27 CET; 1min 1s ago
Main PID: 4541 (start-redis-ser)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/snap.nextcloud.redis-server.service
       ├─4541 /bin/sh /snap/nextcloud/16740/bin/start-redis-server
       └─4580 redis-server 127.0.0.1:0

Nov 05 20:03:27 raspberrypi nextcloud.redis-server[4541]: ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.

It seems that you haven’t ask aunt G. for advice on this:



I actually did. Nothing helped though. I’m going to reinstall :confused:

BTW, it seems NOT to be a problem of Nextcloud but of your Raspberry or better a requirement of the libarmmem.so module doesn’t exist. Disable the module or install the missing component and it should work . I don’t beleive that a reinstallation of Nextcloud will fix that problem.