Nextcloud won't start after upgrade

Hi all,

the latest upgrade broke nextcloud-redis.
It won’t start:
2025-04-05T08:44:31-03:00 [1:nextcloud1:nextcloud-notify_push] [2025-04-05 11:44:31.024765 +00:00] ERROR [notify_push] /volume/src/lib.rs:415: Failed to setup redis subscription: Connection refused (os error 111) 2025-04-05T08:44:32-03:00 [1:nextcloud1:nextcloud-notify_push] [2025-04-05 11:44:32.026029 +00:00] ERROR [notify_push] /volume/src/lib.rs:415: Failed to setup redis subscription: Connection refused (os error 111) 2025-04-05T08:44:33-03:00 [1:nextcloud1:nextcloud-notify_push] [2025-04-05 11:44:33.028479 +00:00] ERROR [notify_push] /volume/src/lib.rs:415: Failed to setup redis subscription: Connection refused (os error 111) 2025-04-05T08:44:34-03:00 [1:nextcloud1:nextcloud-notify_push] [2025-04-05 11:44:34.030704 +00:00] ERROR [notify_push] /volume/src/lib.rs:415: Failed to setup redis subscription: Connection refused (os error 111)

Does it help to save the Nextcloud app settings in the cluster-admin to restart the services?

Are the containers running?

runagent -m nextcloud1 podman ps

Are there more errors in the log?

Hi MrMarkuz,

runagent -m nextcloud1 podman ps
CONTAINER ID  IMAGE                                           COMMAND               CREATED            STATUS                PORTS                    NAMES
a04449864426  localhost/podman-pause:4.3.1-0                                        About an hour ago  Up About an hour ago  127.0.0.1:20002->80/tcp  e6bcf574681d-infra
3efe8df33e96  docker.io/library/mariadb:10.6.21               mariadbd              About an hour ago  Up About an hour ago  127.0.0.1:20002->80/tcp  nextcloud-db
974994e07b1b  ghcr.io/nethserver/nextcloud-app:1.4.0          /usr/bin/supervis...  About an hour ago  Up About an hour ago  127.0.0.1:20002->80/tcp  nextcloud-app
634e731bbcaa  docker.io/library/nginx:1.27.4-alpine           nginx -g daemon o...  About an hour ago  Up About an hour ago  127.0.0.1:20002->80/tcp  nextcloud-nginx
e1f28f27e5b7  ghcr.io/nethserver/nextcloud-notify_push:1.4.0  /notify_push          About an hour ago  Up About an hour ago  127.0.0.1:20002->80/tcp  nextcloud-notify_push

I did try to reconfigure the services by setting them up again, but it didn’t help.

The logs says that the nextcloud-redis is not available/failed to start:

{\"Exception\":\"RedisException\",\"Message\":\"Redis server went away\",\"Code\":0,\"Trace\":[{\"file\":\"/var/www/html/lib/private/Memcache/Redis.php\",\"line\":59,\"function\":\"get\",\"class\":\"Redis\",\"type\":\"->\",\"args\":[\"a859d8d6fba406bedc97108c33fb7d80/OC\\\\Security\\\\Bruteforce\\\\Backend\\\\MemoryCacheBackend1b6d4bcfac2fb278c18a69d05a0680fc4ad4fc0c\"]},{\"file\":\"/var/www/html/lib/private/Security/Bruteforce/Backend/MemoryCacheBackend.php\",\"line\":38,\"function\":\"get\",\"class\":\"OC\\\\Memcache\\\\Redis\",\"type\":\"->\",\"args\":[\"1b6d4bcfac2fb278c18a69d05a0680fc4ad4fc0c\"]},

It’s the only instance I have installed on the server.

Thanks,

Maybe it helps to remove the redis data volume to make redis start again.

Enter Nextcloud environment:

runagent -m nextcloud1

Stop nextcloud:

systemctl --user stop nextcloud

Remove redis data volume:

podman volume rm nextcloud-redis-data

Start all nextcloud services:

systemctl --user restart nextcloud.service nextcloud-redis.service nextcloud-db.service nextcloud-app.service nextcloud-nginx.service nextcloud-notify_push.service

Correct me if I’m wrong:

runagent -m nextcloud1 systemctl --user stop nextcloud

then

podman volume ls
DRIVER      VOLUME NAME
local       promtail-position
local       rclone-webdav
local       redis-data

then

 podman volume rm redis-data
Error: volume redis-data is being used by the following container(s): 93a3bad62b4a6ed66b06ac39bf16dbcc36b8c4dba9f82fd6ed75e048d7ab0dba: volume is being used

Sorry, I forget to add runagent at the beginning, I corrected my post, you need to be in the Nextcloud user environment when removing the volume or use the commands with runagent.

1 Like

Many thanks @mrmarkuz
That made it!

Best regards,

1 Like