- Nextcloud Server version (e.g., 29.x.x):
32
- Operating system and version (e.g., Ubuntu 24.04):
Debian 13
- Reverse proxy and version _(e.g. nginx 1.27.2)
Nginx Proxy Manager
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Docker compose
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
My new setup of notify_push seems to be randomly working/not working.
Can anybody poke me in to the right direction?
How should I debug this? What can be the cause?
I’m getting these responses (randomly not working - 🗴 push server can’t connect to the Nextcloud server):
root@data:/root# /usr/bin/docker exec -u www-data data-app-1 php -d memory_limit=-1 occ notify_push:self-test
✓ redis is configured
✓ push server is receiving redis messages
✓ push server can load mount info from database
🗴 push server can't connect to the Nextcloud server
root@data:/root# /usr/bin/docker exec -u www-data data-app-1 php -d memory_limit=-1 occ notify_push:self-test
✓ 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
root@data:/root# /usr/bin/docker exec -u www-data data-app-1 php -d memory_limit=-1 occ notify_push:self-test
✓ redis is configured
✓ push server is receiving redis messages
✓ push server can load mount info from database
🗴 push server can't connect to the Nextcloud server
I’m using this docker-compose.yml:
services:
notify_push:
image: nextcloud
restart: unless-stopped
depends_on:
- app
environment:
- NEXTCLOUD_URL=http://app
ports:
- 7867:7867
entrypoint: /var/www/html/custom_apps/notify_push/bin/x86_64/notify_push /var/www/html/config/config.php
volumes:
- /mnt/data:/var/www/html/data
- html:/var/www/html
app:
image: nextcloud
volumes:
- /mnt/data:/var/www/html/data
- html:/var/www/html
ports:
- 80:80
environment:
- APACHE_DISABLE_REWRITE_IP=1
- NEXTCLOUD_TRUSTED_DOMAINS=data.localdomain data.ucl.cas.cz app
- TRUSTED_PROXIES=172.16.0.0/12
...
depends_on:
- db
- onlyoffice
- redis
restart: unless-stopped
...
Metrics of notify_push:
root@data:/root# /usr/bin/docker exec -u www-data data-app-1 php -d memory_limit=-1 occ notify_push:metrics
Active connection count: 2
Active user count: 2
Total connection count: 2
Total database query count: 1
Events received: 7
Messages sent: 0
Messages sent (file): 0
Messages sent (notification): 0
Messages sent (activity): 0
Messages sent (custom): 0
Setup (randomly not working - 🗴 push server can’t connect to the Nextcloud server):
root@data:/root# /usr/bin/docker exec -u www-data data-app-1 php -d memory_limit=-1 occ notify_push:setup https://data.ucl.cas.cz/push
✓ redis is configured
✓ push server is receiving redis messages
✓ push server can load mount info from database
🗴 push server can't connect to the Nextcloud server
root@data:/root# /usr/bin/docker exec -u www-data data-app-1 php -d memory_limit=-1 occ notify_push:setup https://data.ucl.cas.cz/push
✓ 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
root@data:/root# /usr/bin/docker exec -u www-data data-app-1 php -d memory_limit=-1 occ notify_push:setup https://data.ucl.cas.cz/push
✓ redis is configured
✓ push server is receiving redis messages
✓ push server can load mount info from database
🗴 push server can't connect to the Nextcloud server
config.php (without mail, db and redis…):
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'trusted_proxies' =>
array (
0 => '172.16.0.0/12',
),
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'data.localdomain',
2 => 'data.ucl.cas.cz',
3 => 'app',
),
'datadirectory' => '/var/www/html/data',
'version' => '32.0.0.13',
'overwrite.cli.url' => 'https://data.ucl.cas.cz',
'installed' => true,
'instanceid' => 'xxx',
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
'theme' => '',
'default_phone_region' => 'CZ',
'loglevel' => 0,
'maintenance' => false,
'overwritehost' => 'data.ucl.cas.cz',
'overwriteprotocol' => 'https',
'data-fingerprint' => 'xxx',
'updater.release.channel' => 'stable',
'auth.webauthn.enabled' => false,
'defaultapp' => '',
'maintenance_window_start' => 1,
);
Some logs of notify_push:
[2025-10-15 19:13:34.495757 +00:00] DEBUG [hyper::proto::h1::conn] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-0.14.32-41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7/src/proto/h1/conn.rs:283: read eof
[2025-10-15 19:13:34.498120 +00:00] DEBUG [hyper::proto::h1::io] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-0.14.32-41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7/src/proto/h1/io.rs:211: parsed 10 headers
[2025-10-15 19:13:34.498127 +00:00] DEBUG [hyper::proto::h1::conn] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-0.14.32-41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7/src/proto/h1/conn.rs:224: incoming body is empty
[2025-10-15 19:13:34.498168 +00:00] DEBUG [hyper_util::client::legacy::pool] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-util-0.1.16-8d9b05277c7e8da2c93a568989bb6207bef0112e8d17df7a6eda4a3cf143bc5e/src/client/legacy/pool.rs:269: reuse idle connection for ("http", app)
[2025-10-15 19:13:34.524619 +00:00] DEBUG [hyper_util::client::legacy::pool] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-util-0.1.16-8d9b05277c7e8da2c93a568989bb6207bef0112e8d17df7a6eda4a3cf143bc5e/src/client/legacy/pool.rs:395: pooling idle connection for ("http", app)
[2025-10-15 19:13:34.524689 +00:00] DEBUG [notify_push] /build/source/src/lib.rs:282: got remote test cookie 685031571
[2025-10-15 19:13:34.524802 +00:00] DEBUG [hyper::proto::h1::io] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-0.14.32-41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7/src/proto/h1/io.rs:330: flushed 125 bytes
[2025-10-15 19:13:34.524946 +00:00] DEBUG [hyper::proto::h1::conn] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-0.14.32-41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7/src/proto/h1/conn.rs:283: read eof
[2025-10-15 19:13:34.527585 +00:00] DEBUG [hyper::proto::h1::io] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-0.14.32-41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7/src/proto/h1/io.rs:211: parsed 10 headers
[2025-10-15 19:13:34.527594 +00:00] DEBUG [hyper::proto::h1::conn] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-0.14.32-41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7/src/proto/h1/conn.rs:224: incoming body is empty
[2025-10-15 19:13:34.527649 +00:00] DEBUG [hyper_util::client::legacy::pool] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-util-0.1.16-8d9b05277c7e8da2c93a568989bb6207bef0112e8d17df7a6eda4a3cf143bc5e/src/client/legacy/pool.rs:269: reuse idle connection for ("http", app)
[2025-10-15 19:13:34.553780 +00:00] DEBUG [hyper_util::client::legacy::pool] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-util-0.1.16-8d9b05277c7e8da2c93a568989bb6207bef0112e8d17df7a6eda4a3cf143bc5e/src/client/legacy/pool.rs:395: pooling idle connection for ("http", app)
[2025-10-15 19:13:34.553859 +00:00] DEBUG [notify_push] /build/source/src/lib.rs:322: got remote 1.2.3.4 when trying to set remote 1.2.3.4
[2025-10-15 19:13:34.553924 +00:00] DEBUG [hyper::proto::h1::io] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-0.14.32-41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7/src/proto/h1/io.rs:330: flushed 123 bytes
[2025-10-15 19:13:34.554086 +00:00] DEBUG [hyper::proto::h1::conn] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-0.14.32-41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7/src/proto/h1/conn.rs:283: read eof
[2025-10-15 19:13:34.557040 +00:00] DEBUG [hyper::proto::h1::io] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-0.14.32-41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7/src/proto/h1/io.rs:211: parsed 11 headers
[2025-10-15 19:13:34.557047 +00:00] DEBUG [hyper::proto::h1::conn] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-0.14.32-41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7/src/proto/h1/conn.rs:224: incoming body is empty
[2025-10-15 19:13:34.557595 +00:00] DEBUG [hyper::proto::h1::io] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-0.14.32-41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7/src/proto/h1/io.rs:330: flushed 119 bytes
[2025-10-15 19:13:34.557718 +00:00] DEBUG [hyper::proto::h1::conn] /nix/store/0znp1v8mdyfkxabl7l7b8vqdxyfpsyc0-crates-io-dependencies/hyper-0.14.32-41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7/src/proto/h1/conn.rs:283: read eof
Any other information’s needed?