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.
Eric-Sommer:
Redis server went away
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.
j-ed
November 5, 2019, 7:37pm
4
It seems that you haven’t ask aunt G. for advice on this:
https://github.com/nextcloud/nextcloud-snap/issues/221
opened 02:06AM - 24 Feb 18 UTC
closed 03:24AM - 24 Feb 18 UTC
```
root@rpi3_ipfs:~# ipfs
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.
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.
USAGE
ipfs - Global p2p merkle-dag filesystem.
ipfs [--config=<config> | -c] [--debug=<debug> | -D] [--help=<help>] [-h=<h>] [--local=<local> | -L] [--api=<api>] <command> ...
SUBCOMMANDS
BASIC COMMANDS
init Initialize ipfs local configuration
add <path> Add a file to IPFS
cat <ref> Show IPFS object data
get <ref> Download IPFS objects
ls <ref> List links from an object
refs <ref> List hashes of links from an object
DATA STRUCTURE COMMANDS
block Interact with raw blocks in the datastore
object Interact with raw dag nodes
files Interact with objects as if they were a unix filesystem
dag Interact with IPLD documents (experimental)
ADVANCED COMMANDS
daemon Start a long-running daemon process
mount Mount an IPFS read-only mountpoint
resolve Resolve any type of name
name Publish and resolve IPNS names
key Create and list IPNS name keypairs
dns Resolve DNS links
pin Pin objects to local storage
repo Manipulate the IPFS repository
stats Various operational stats
p2p Libp2p stream mounting
filestore Manage the filestore (experimental)
NETWORK COMMANDS
id Show info about IPFS peers
bootstrap Add or remove bootstrap peers
swarm Manage connections to the p2p network
dht Query the DHT for values or peers
ping Measure the latency of a connection
diag Print diagnostics
TOOL COMMANDS
config Manage configuration
version Show ipfs version information
update Download and apply go-ipfs updates
commands List all available commands
Use 'ipfs <command> --help' to learn more about each command.
ipfs uses a repository in the local file system. By default, the repo is
located at ~/.ipfs. To change the repo location, set the $IPFS_PATH
environment variable:
export IPFS_PATH=/path/to/ipfsrepo
EXIT STATUS
The CLI will exit with one of the following values:
0 Successful execution.
1 Failed executions.
```
-----
Then, cat the file `/etc/ld.so.preload`, I got:
```
root@rpi3_ipfs:~# cat /etc/ld.so.preload
/usr/lib/arm-linux-gnueabihf/libarmmem.so
```
-----
Hardware: `Raspberry Pi 3`
System: `Raspbian`
```
Linux rpi3_ipfs 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
```
raspberry-pi
I actually did. Nothing helped though. I’m going to reinstall
j-ed
November 7, 2019, 7:16am
6
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.