# How to verify notify\_push works correctly?

**URL:** <https://help.nextcloud.com/t/how-to-verify-notify-push-works-correctly/116685>\
**Category:** 💻 Desktop\
**Tags:** notify\_push, nc21\
**Created:** [May 20, 2021, 9:29am UTC](https://help.nextcloud.com/t/how-to-verify-notify-push-works-correctly/116685 "2021-05-20T09:29:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![h3rb3rt](https://help.nextcloud.com/user_avatar/help.nextcloud.com/h3rb3rt/32/9824_2.png) [@h3rb3rt](https://help.nextcloud.com/u/h3rb3rt)\
**Post date:** [May 20, 2021, 9:29am UTC](https://help.nextcloud.com/t/how-to-verify-notify-push-works-correctly/116685/1 "2021-05-20T09:29:00Z")

</div>

Hi,

I worked my way through the notify\_push installation, went quite smooth on my server. Used the wizzard on the CLI. Now everything seems setup correct, I also opened up the ports on my firewall, but how do I verify if it is used and really works for my clients?

```auto
✓ redis is configured
✓ push server is receiving redis messages
✓ push server can load mount info from database
✓ push server can connect to the Nextcloud server
✓ push server is a trusted proxy
✓ push server is running the same version as the app configuration saved

```

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [May 20, 2021, 12:09pm UTC](https://help.nextcloud.com/t/how-to-verify-notify-push-works-correctly/116685/2 "2021-05-20T12:09:09Z")

</div>

You can add the “ **–log-level debug** ” switch to the command line of the notify\_push daemon and redirect its output to a log file by adding “ **\> /path/to/log-file.log** ”.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [May 20, 2021, 1:23pm UTC](https://help.nextcloud.com/t/how-to-verify-notify-push-works-correctly/116685/3 "2021-05-20T13:23:19Z")

</div>

one can check how often the client performs PROPFIND requests (without notify\_push every 15s) and if Talk calls/notification arrive immediately.

see following post for client log examples..

> [@Setting up Files (High Performance Backend)](https://help.nextcloud.com/t/setting-up-files-high-performance-backend/108651/10):
>
> I had little trouble to setup notify\_push in my docker-compose environment as I didn’t find clear instructions how the components are tied together so I decided to write all the steps together. This guide shows you how to setup [High Performance Back-end for Nextcloud Files](https://help.nextcloud.com/t/nextcloud-faster-than-ever-introducing-files-high-performance-back-end/108633) aka notify\_push in Docker-compose environment with traefik proxy. prerequisits as prereqs you need running Nextcloud 21 with Redis (notify\_push requires Redis) behind Traefik reverse proxy environment overview of the compo…

---

<div class="post-metadata">

**Author:** ![h3rb3rt](https://help.nextcloud.com/user_avatar/help.nextcloud.com/h3rb3rt/32/9824_2.png) [@h3rb3rt](https://help.nextcloud.com/u/h3rb3rt)\
**Post date:** [May 20, 2021, 2:03pm UTC](https://help.nextcloud.com/t/how-to-verify-notify-push-works-correctly/116685/4 "2021-05-20T14:03:39Z")

</div>

Would be great to have an indicator on the software which uses it.

Like the Desktop app showing to be using notify push, the web frontend could do the same, or the plugin itself indicate the information like Talk is doing it if connected to the turn server successful.

---

<div class="post-metadata">

**Author:** ![h3rb3rt](https://help.nextcloud.com/user_avatar/help.nextcloud.com/h3rb3rt/32/9824_2.png) [@h3rb3rt](https://help.nextcloud.com/u/h3rb3rt)\
**Post date:** [May 21, 2021, 7:22am UTC](https://help.nextcloud.com/t/how-to-verify-notify-push-works-correctly/116685/5 "2021-05-21T07:22:36Z")

</div>

After some digging I found some additional information which I want to add to the thread:

A ticket at notify\_push where someone requests something similar, integrating some statistics into NC to get the information easier

> <https://github.com/nextcloud/notify_push/issues/59>
>
> After installing the push capabilities, it would be good to have instructions ho…w to verify that the nextcloud desktop client is indeed using the new client push mechanism.

Quite a simple way to see some metrics, and see if it works is by using `occ`

```auto
sudo -u www-data php /var/www/nextcloud/occ notify_push:metrics
Active connection count: 4
Total connection count: 47
Total database query count: 129
Events received: 217602
Messages send: 4417

```

Additionally as mentioned above the `debug` option for `notify_push`

```auto
sudo -u www-data php /var/www/nextcloud/occ notify_push:log debug
sudo journalctl -eu notify_push

```

I hope this helps someone 😄

---

<div class="post-metadata">

**Author:** ![jolly-jump](https://help.nextcloud.com/letter_avatar/jolly-jump/32/5_5575768a8748004e209b776fc1b2916d.png) [@jolly-jump](https://help.nextcloud.com/u/jolly-jump)\
**Post date:** [November 3, 2023, 5:24pm UTC](https://help.nextcloud.com/t/how-to-verify-notify-push-works-correctly/116685/6 "2023-11-03T17:24:18Z")

</div>

Hi.  
Since search engines led me here (again),  
I would like to add, that there is also a binary called “test\_client” which is released on github (at the time of writing: version 0.6.3 of the package):

> **[Releases · nextcloud/notify\_push](https://github.com/nextcloud/notify_push/releases/)**
>
> Update notifications for nextcloud clients. Contribute to nextcloud/notify\_push development by creating an account on GitHub.

With this binary you can test from any linux-x64 compatible client:

```auto
./test_client https://cloud.mydomain.de maxmuster 'MySecret'
[2023-11-03 18:17:39.275778 +01:00] INFO [test_client] test_client/src/main.rs:34: Found push server at wss://cloud.mydomain.de/push/ws
[2023-11-03 18:17:39.459148 +01:00] INFO [test_client] test_client/src/main.rs:68: Authenticated

```

if the push-service runs and within the push-server logs there will be an “INFO”-loglevel line:

```auto
[2023-11-03 17:17:39.458976 +00:00] INFO [notify_push::connection] src/connection.rs:87: new websocket authenticated as maxmuster

```

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 8:17pm UTC](https://help.nextcloud.com/t/how-to-verify-notify-push-works-correctly/116685/7 "2024-12-14T20:17:03Z")

</div>


