Update:
i modified the /etc/systemd/system/notify_push.service as follows
[Unit]
Description = Push daemon for Nextcloud clients[Service]
Environment = PORT=7867 DATABASE_URL=postgres://user:password@127.0.0.1/NC-DB?sslmode=disable DATABASE_PREFIX=oc_ REDIS_URL=unix:/var/run/redis/redis.sock NEXTCLOUD_URL=https://MY-NC-FQDN>
ExecStart = /var/www/nextcloud/apps/notify_push/bin/x86_64/notify_push
#/var/www/nextcloud/config/config.php
User=www-data[Install]
WantedBy = multi-user.target
after a systemctl daemon-reload and systemctl restart notify_push i get now
notify_push.service - Push daemon for Nextcloud clients
Loaded: loaded (/etc/systemd/system/notify_push.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-04-10 13:21:00 CEST; 5min ago
Main PID: 53646 (notify_push)
Tasks: 3 (limit: 19110)
Memory: 1.2M
CGroup: /system.slice/notify_push.service
└─53646 /var/www/nextcloud/apps/notify_push/bin/x86_64/notify_pushApr 10 13:26:28 cloud notify_push[53646]: Failed to setup redis subscription: Failed to subscribe to redis pubsub: NOAUTH: Authentication required.
Apr 10 13:26:28 cloud notify_push[53646]: [2021-04-10 13:26:28.510291 +02:00] WARN [notify_push] src/lib.rs:348: Redis server disconnected, reconnecting in 1s
Apr 10 13:26:29 cloud notify_push[53646]: Failed to setup redis subscription: Failed to subscribe to redis pubsub: NOAUTH: Authentication required.
Apr 10 13:26:29 cloud notify_push[53646]: [2021-04-10 13:26:29.511622 +02:00] WARN [notify_push] src/lib.rs:348: Redis server disconnected, reconnecting in 1s
Apr 10 13:26:30 cloud notify_push[53646]: Failed to setup redis subscription: Failed to subscribe to redis pubsub: NOAUTH: Authentication required.
Apr 10 13:26:30 cloud notify_push[53646]: [2021-04-10 13:26:30.512031 +02:00] WARN [notify_push] src/lib.rs:348: Redis server disconnected, reconnecting in 1s
Apr 10 13:26:31 cloud notify_push[53646]: Failed to setup redis subscription: Failed to subscribe to redis pubsub: NOAUTH: Authentication required.
Apr 10 13:26:31 cloud notify_push[53646]: [2021-04-10 13:26:31.513458 +02:00] WARN [notify_push] src/lib.rs:348: Redis server disconnected, reconnecting in 1s
Apr 10 13:26:32 cloud notify_push[53646]: Failed to setup redis subscription: Failed to subscribe to redis pubsub: NOAUTH: Authentication required.
Apr 10 13:26:32 cloud notify_push[53646]: [2021-04-10 13:26:32.514049 +02:00] WARN [notify_push] src/lib.rs:348: Redis server disconnected, reconnecting in 1s
I checked my redis.conf file and still had the requirepass Option enabled.
After commenting out this option and systemctl restart redis-server
i changed my nextcloud/config/config.php for redis as well.
Now i get the following after command systemctl restart notify_push
notify_push.service - Push daemon for Nextcloud clients
Loaded: loaded (/etc/systemd/system/notify_push.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-04-10 13:42:51 CEST; 4s ago
Main PID: 57699 (notify_push)
Tasks: 4 (limit: 19110)
Memory: 1.4M
CGroup: /system.slice/notify_push.service
└─57699 /var/www/nextcloud/apps/notify_push/bin/x86_64/notify_push /var/www/nextcloud/config/config.php
Apr 10 13:42:51 cloud systemd[1]: Started Push daemon for Nextcloud clients.
But still after sudo -u www-data php occ notify_push:self-test
i get
🗴 no push server configured
Is there an option in the config.php that i have to set?