Is it possible/safe to install Client Push App ?
-
Hello. Short question: I wonder if I can install the Client Push App, as described in https://github.com/nextcloud/notify_push ? Basically, does the setup work when running
sudo -u www-data php -f /app/code/occ notify_push:setup. Thx -
Hello @mononym
You can always create a clone from your latest backup and tinker with the clone.
With that approach you risk nothing and can report findings. -
Hello. Short question: I wonder if I can install the Client Push App, as described in https://github.com/nextcloud/notify_push ? Basically, does the setup work when running
sudo -u www-data php -f /app/code/occ notify_push:setup. Thx@mononym said in Is it possible/safe to install Client Push App ?:
does the setup work when running sudo -u www-data php -f /app/code/occ notify_push:setup
I don’t think this is possible within Cloudron. For
pushto work, you need to create a daemon at/etc/systemd/system/notify_push.serviceand make some changes to Apache or Nginx.
Theocc notify_push:setupcommand assumes that all of this is done on the same server where Nextcloud itself is installed.
However, based on the information from https://github.com/nextcloud/notify_push, it seems that it might be possible to set it up on a separate server — though exactly how to do that is another question. -
Thanks. I started guessing the same while trimming through the repo. If I'm not mistaken, moving towards Nextcloud All-in-one would integrate this in the NC packge. Meanwhile, good to know that changes on the server are not immediately pushed to the clients.
-
I've been following the instructions in threads cited below, and it looks like notify_push is up and running
- configure nginx https://forum.cloudron.io/post/48343
- run notify_push via script https://forum.cloudron.io/post/48298
-
I've been following the instructions in threads cited below, and it looks like notify_push is up and running
- configure nginx https://forum.cloudron.io/post/48343
- run notify_push via script https://forum.cloudron.io/post/48298
it looks like notify_push is up and running
I honestly don’t understand how you managed to get this working. I spent about 5 hours today trying to set it up and still didn’t get the result I expected.
@rebootcron job simply doesn’t work. It’s mentioned in the docs but I’ve never seen it run in the logs.@servicedoes run but only once. Аfter subsequent Nextcloud restarts the job never triggers again.- My version of the script works fine if I run it manually from the terminal like this
/app/data/notify_push.sh. The service starts and all checks pass.
root@71780ea5-011c-4c09-886e-5f7e17e0b670:/app/code# /app/data/notify_push.sh ; sleep 1 ; ps aux | grep notify_push ; ss -tlnp | grep 7867 ✓ 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 => notify_push started on port 7867 root 265 0.3 0.0 25676 8796 ? Ssl 15:57 0:00 /app/code/apps/notify_push/bin/x86_64/notify_push --allow-self-signed --nextcloud-url http://172.18.20.152 --port 7867 /app/code/config/config.php root 286 0.0 0.0 4104 2100 pts/1 S+ 15:57 0:00 grep --color=auto notify_push LISTEN 0 128 0.0.0.0:7867 0.0.0.0:* users:(("notify_push",pid=265,fd=10))- If I set up a cron job to run every 5 minutes.
*/5 * * * * echo "=> Enabling notify_push" && /app/data/notify_push.sh
I can see in the logs that everything looks fine:
Apr 16 18:30:41 ✓ redis is configured Apr 16 18:30:41 ✓ push server is receiving redis messages Apr 16 18:30:41 ✓ push server can load mount info from database Apr 16 18:30:41 ✓ push server can connect to the Nextcloud server Apr 16 18:30:41 ✓ push server is a trusted proxy Apr 16 18:30:41 ✓ push server is running the same version as the app Apr 16 18:30:41 configuration saved Apr 16 18:30:41 => notify_push started on port 7867But in reality the process doesn’t survive after the script finishes. If I check manually with
ps aux | grep notify_push ; ss -tlnp | grep 7867there’s nothing in the terminal.Claude suggested this might be a cgroup-related issue in containers. The process started from cron gets attached to its cgroup and when the cron job exits, the process is killed along with it. I’m not sure how accurate that is.
Maybe most people who claimed to have
notify_pushworking probably didn’t verify it properly, since the warning disappears from the Nextcloud admin panel. It looks like it’s working, even when it actually isn’t.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
