Nextcloud version: 25.0.2
Operating system and version: Raspbian 10 Buster
Apache or nginx version: Apache 2.4.38
PHP version: 8.1
Hi,
I would like to install client push for nextcloud. My hardware configuration is a Raspberry Pi 4 behind a router and Let’s encrypt. Nextcloud works without problems.
During notify_push setup wizard
sudo -u www-data php /var/www/nextcloud/occ notify_push:setup
I get the following error
...
Push binary seems to be running already
✓ push server seems to be functioning correctly.
Run the following commands to enable the proxy modules
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_wstunnel
Then place the following within the <VirtualHost> block of the apache config for your nextcloud installation
which can usually be found within /etc/apache2/sites-enabled/
Note that there might be both an http and https config file
ProxyPass /push/ws ws://127.0.0.1:7867/ws
ProxyPass /push/ http://127.0.0.1:7867/
ProxyPassReverse /push/ http://127.0.0.1:7867/
And reload apache using sudo systemctl restart apache2
Press enter to continue or ESC to cancel...
'push binary doesn`t seem to be reachable trough the reverse proxy, did you follow the above instructions?.'
...
I have already searched through all possible threads, but there was no solution for me.
I hope to get the help here.
Here are some relevant code snippets.
I used the following code in the config.php of nextcloud
...
'trusted_proxies' =>
array (
0 => '127.0.0.1',
1 => '::1',
2 => internal router ip,
3 => internal raspi ip,
),
...
'memcache.local' => '\OC\Memcache\APCu',
'memcache.locking' => '\OC\Memcache\Redis',
'memcache.distributed' => '\OC\Memcache\Redis',
'redis' =>
array (
'host' => '/var/run/redis/redis-server.sock',
'port' => 0,
'timeout' => 0.0,
),
The notify_push.service is as given from the setup wizard
[Unit]
Description = Push daemon for Nextcloud clients
[Service]
Environment=PORT=7867
Environment=NEXTCLOUD_URL=https://domain.xyz/nextcloud
ExecStart=/var/www/nextcloud/apps/notify_push/bin/armv7/notify_push /var/www/nextcloud/config/config.php
User=www-data
[Install]
WantedBy = multi-user.target
Here the Apache conf
<VirtualHost *:443 *:4545>
...
ProxyPass /push/ws ws://127.0.0.1:7867/ws
ProxyPass /push/ https://127.0.0.1:7867/
ProxyPassReverse /push/ https://127.0.0.1:7867/
...
The problem lies certainly on the Proxy-Settings. The error comes with or without ProxyPass-settings. I tried a lot, also with http and https, but it does not work. I can’t find anything related in the log-files. I hope, someone has a solution approach for me.
Thanks in advance
I will gladly provide more information if needed.
Thomas