[GH-ISSUE #611] ntfy cli subscribe connected but would not excute any command #462

Closed
opened 2026-05-07 00:24:25 +02:00 by BreizhHardware · 1 comment

Originally created by @tataue on GitHub (Feb 16, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/611

I can receive alert channel message on other client like web app and android app.

ntfy sub --trace -d alert 'echo "$m"'
But if is the cli subscribe before, both arch linux and mac osx cli client tested would not work.

image

My config File
image

Also you still need NTFY_USER to connect correctly 🆘 .

Also: use ntfy.sh works just fine:
image

Both server and client use version as ntfy 1.30.1 (4e7e6e5) ;

Originally created by @tataue on GitHub (Feb 16, 2023). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/611 I can receive `alert` channel message on other client like web app and android app. `ntfy sub --trace -d alert 'echo "$m"'` But if is the cli subscribe before, both `arch linux` and `mac osx` cli client tested would not work. <img width="796" alt="image" src="https://user-images.githubusercontent.com/1721417/219417630-5e969ebc-f379-454a-9000-c90ead31611e.png"> My config File <img width="390" alt="image" src="https://user-images.githubusercontent.com/1721417/219418030-95f87969-ce4e-4fdf-bd44-4f3c00050d42.png"> Also you still need `NTFY_USER` to connect correctly 🆘 . Also: use `ntfy.sh` works just fine: <img width="918" alt="image" src="https://user-images.githubusercontent.com/1721417/219418589-9daa3d36-88b2-43bf-a21f-e3d17b7d0f80.png"> Both server and client use version as `ntfy 1.30.1 (4e7e6e5)` ;
Author
Owner

@Morreski commented on GitHub (Apr 11, 2023):

Hi !

I have a similar problem with the ntfy client on Arch linux. Except that I don't even see incoming message when not using the --poll flag. I am self-hosting the server btw (and for the records, Android app is behaving correctly: it displays the notifications)

╰─$ /usr/bin/ntfy subscribe --config /home/my_user/.config/ntfy/client.yml --from-config -d                                                   
2023/04/11 19:37:56 DEBUG MY_DOMAIN/MY_TOPIC Subscribing to topic
2023/04/11 19:37:56 DEBUG MY_DOMAIN/MY_TOPIC Subscribing to topic
2023/04/11 19:37:56 DEBUG MY_DOMAIN/MY_TOPIC Listening to https://MY_DOMAIN/MY_TOPIC/json
2023/04/11 19:37:56 DEBUG MY_DOMAIN/MY_TOPIC Listening to https://MY_DOMAIN/MY_TOPIC/json

And with --poll

╰─$ /usr/bin/ntfy subscribe --config /home/my_user/.config/ntfy/client.yml --from-config -d --poll       
2023/04/11 19:41:46 DEBUG MY_DOMAIN/MY_TOPIC/FjxqFAvTUdQM Executing script /tmp/ntfy-subscribe-d5I71kmfbh.sh
2023/04/11 19:41:46 DEBUG MY_DOMAIN/MY_TOPIC/oi2ecOSIkfvF Running command 'echo "$message"' via temporary script /tmp/ntfy-subscribe-WD0OdK5qfK.sh
2023/04/11 19:41:46 DEBUG MY_DOMAIN/MY_TOPIC/oi2ecOSIkfvF Executing script /tmp/ntfy-subscribe-WD0OdK5qfK.sh                                           

Let me know if these inputs help finding an eventual bug or if I'm missing something somewhere...

Cheers,

Update

Just figured out that when I stop the ntfy server, the last emitted notification is triggered on my linux client. There may be something up with the connection.

<!-- gh-comment-id:1503832922 --> @Morreski commented on GitHub (Apr 11, 2023): Hi ! I have a similar problem with the ntfy client on Arch linux. Except that I don't even see incoming message when not using the `--poll` flag. I am self-hosting the server btw (and for the records, Android app is behaving correctly: it displays the notifications) ```bash ╰─$ /usr/bin/ntfy subscribe --config /home/my_user/.config/ntfy/client.yml --from-config -d 2023/04/11 19:37:56 DEBUG MY_DOMAIN/MY_TOPIC Subscribing to topic 2023/04/11 19:37:56 DEBUG MY_DOMAIN/MY_TOPIC Subscribing to topic 2023/04/11 19:37:56 DEBUG MY_DOMAIN/MY_TOPIC Listening to https://MY_DOMAIN/MY_TOPIC/json 2023/04/11 19:37:56 DEBUG MY_DOMAIN/MY_TOPIC Listening to https://MY_DOMAIN/MY_TOPIC/json ``` And with `--poll` ```bash ╰─$ /usr/bin/ntfy subscribe --config /home/my_user/.config/ntfy/client.yml --from-config -d --poll 2023/04/11 19:41:46 DEBUG MY_DOMAIN/MY_TOPIC/FjxqFAvTUdQM Executing script /tmp/ntfy-subscribe-d5I71kmfbh.sh 2023/04/11 19:41:46 DEBUG MY_DOMAIN/MY_TOPIC/oi2ecOSIkfvF Running command 'echo "$message"' via temporary script /tmp/ntfy-subscribe-WD0OdK5qfK.sh 2023/04/11 19:41:46 DEBUG MY_DOMAIN/MY_TOPIC/oi2ecOSIkfvF Executing script /tmp/ntfy-subscribe-WD0OdK5qfK.sh ``` Let me know if these inputs help finding an eventual bug or if I'm missing something somewhere... Cheers, **Update** Just figured out that when I stop the ntfy server, the last emitted notification is triggered on my linux client. There may be something up with the connection.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#462
No description provided.