I’ve a suspicious error, maybe you have an answer?
{“reqId”:“xxxx”,“level”:3,“time”:“2017-08-18T19:47:23+02:00”,“remoteAddr”:“xx.xx”,“user”:“xxx”,“app”:“PHP”,“method”:“GET”,“url”:“/ocs/v2.php/apps/notifications/api/v2/notifications”,“message”:"
Redis::connect(): connect() failed:
Permission denied at /usr/share/webapps/nextcloud/lib/private/RedisFactory.php#82",
“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0”,“version”:“12.0.2.0”}
I configured Redis as socket:
/run/redis/redis.sock
ls -lah /run/redis/
drwxr-xr-x 2 redis redis 60 18. Aug 19:42 .
drwxr-xr-x 29 root root 920 18. Aug 19:42 …
srwx------ 1 redis redis 0 18. Aug 19:42 redis.sock
The socket must be accessible for www-data. You first have to change the chmod of the socket to 770 that the redis group can access it, make changes in /etc/redis/redis.conf:
unixsocketperm 770
and then add www-data to the redis group in /etc/group: redis:x:110:www-data
What was missing is that I had to restart the (whole) server for Redis to start working. No idea why just restarting Redis wasn’t enough, but restarting the server solved the issue for me.