Redis / Notify Push Error

NC 25 latest
Ubuntu 20.0.4
nginx

Hi,

we checking the status for the notify push service with service notify_push status I get this:
ERROR [notify_push] src/main.rs:77: Self test failed: Error while communicating with nextcloud instance

After service notify_push restart, the error is gone and everything is fine.

Any ideas, this can be solved?

Thanks

And then it runs until the next restart?

Yes that’s the error after system reboot. After restarting the service everything is fine till next server reboot

Hi @hokaido

I had a similar problem when I first set up Notify_push. For me it was because the Notify_Push service was started before the database service. You can try adding the following line to the [UNIT] section in the file /etc/systemd/system/notify_push.service.

After=mariadb.service

If you are using another database like PostgreSQL, adjust the line accordingly.

The complete config looks like this on my system:

[Unit]
Description = Push daemon for Nextcloud clients
After=mariadb.service

[Service]
Environment=PORT=7867
Environment=NEXTCLOUD_URL=https://cloud.domain.tld
ExecStart=/var/www/html/nextcloud/apps/notify_push/bin/x86_64/notify_push /var/www/html/nextcloud/config/config.php
User=www-data

[Install]
WantedBy = multi-user.target

As bb77 wrote …

In my case i expand the “After=…” line by the following (instead of mariadb i am using postgresql)
and i am using redis for caching

[Unit]
Description = Push daemon for Nextcloud clients
After=nginx.service php8.2-fpm.service postgresql.service redis.service

So database type and php version need to be adjusted to your needs.

Seem this worked after a restart… Will check it from time to time