[GH-ISSUE #1482] ntfy android problems in logs #1047

Closed
opened 2026-05-07 00:29:50 +02:00 by BreizhHardware · 2 comments

Originally created by @shaohme on GitHub (Nov 6, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1482

🐞 Describe the bug
I am investigating notification issues with my Element X Android client which involves my Matrix homeserver and a ntfy service I host myself. My Android phone does not always receive notifications from Matrix homeserver to ntfy, it seems. When opening ntfy logs on Android I find lines like these:

1762427791949 2025-11-06 12:16:31.949 W NtfySubscriberService This should never happen. No action in the received intent
1762428179856 2025-11-06 12:22:59.856 E NtfyWsConnection banana.example.com/lemon,coconut,avocado,orange,apple,peach (gid=1, lid=13): Connection failed (response is null): Software caused connection abort
Exception:
java.net.SocketException: Software caused connection abort

I also see connection error lines like these.

1762428831763 2025-11-06 12:33:51.763 E NtfyWsConnection banana.example.com/lemon,coconut,avocado,orange,apple,peach (gid=1, lid=14): Connection failed (response is null): Software caused connection abort
Exception:
java.net.SocketException: Software caused connection abort

This puzzles me because these errors occurs when the smartphone ought to have a stable WIFI or LTE connection to the ntfy server. The reverse proxy error logs on the ntfy server does not show errors, and the access logs only reports the smartphone getting 200, 101 responses as expected.

This is not to imply ntfy has problems related to my Matrix notification issues. I realize Element X has its own problems. I'm merely reporting this issue to ask the community whether these errors are harmless, or a symptom of something else.

💻 Components impacted
GrapheneOS (latest)
ntfy 2.14, behind reverse proxy
ntfy for android 1.17.8

💡 Screenshots and/or logs
ntfy android log (censored)

ntfy3.log

ntfy server log shows no errors, only boring lines like these:

2025/11/04 13:16:25 INFO Listening on X.X.X.X:2586[http] /run/ntfy/ntfy.sock[unix], ntfy v2.14.0, log level is INFO (tag=startup)
...
...
2025/11/06 12:42:31 INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=70, messages_published=12854, subscribers=6, tag=manager, topics_active=8, users=3, visitors=7)
2025/11/06 12:43:31 INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=70, messages_published=12854, subscribers=6, tag=manager, topics_active=8, users=3, visitors=7)
2025/11/06 12:44:31 INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=70, messages_published=12854, subscribers=6, tag=manager, topics_active=8, users=3, visitors=7)
2025/11/06 12:45:31 INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=70, messages_published=12854, subscribers=6, tag=manager, topics_active=8, users=3, visitors=7)
2025/11/06 12:46:31 INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=70, messages_published=12854, subscribers=6, tag=manager, topics_active=8, users=3, visitors=7)
2025/11/06 12:47:31 INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=70, messages_published=12854, subscribers=6, tag=manager, topics_active=8, users=3, visitors=7)

🔮 Additional context
ntfy on android should run battery Unoptimized and with GrapheneOS exploit protections disabled, just to make sure, they are not interfering.

Originally created by @shaohme on GitHub (Nov 6, 2025). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1482 :lady_beetle: **Describe the bug** I am investigating notification issues with my Element X Android client which involves my Matrix homeserver and a ntfy service I host myself. My Android phone does not always receive notifications from Matrix homeserver to ntfy, it seems. When opening ntfy logs on Android I find lines like these: ``` 1762427791949 2025-11-06 12:16:31.949 W NtfySubscriberService This should never happen. No action in the received intent 1762428179856 2025-11-06 12:22:59.856 E NtfyWsConnection banana.example.com/lemon,coconut,avocado,orange,apple,peach (gid=1, lid=13): Connection failed (response is null): Software caused connection abort Exception: java.net.SocketException: Software caused connection abort ``` I also see connection error lines like these. ``` 1762428831763 2025-11-06 12:33:51.763 E NtfyWsConnection banana.example.com/lemon,coconut,avocado,orange,apple,peach (gid=1, lid=14): Connection failed (response is null): Software caused connection abort Exception: java.net.SocketException: Software caused connection abort ``` This puzzles me because these errors occurs when the smartphone ought to have a stable WIFI or LTE connection to the ntfy server. The reverse proxy error logs on the ntfy server does not show errors, and the access logs only reports the smartphone getting 200, 101 responses as expected. This is not to imply ntfy has problems related to my Matrix notification issues. I realize Element X has its own problems. I'm merely reporting this issue to ask the community whether these errors are harmless, or a symptom of something else. :computer: **Components impacted** GrapheneOS (latest) ntfy 2.14, behind reverse proxy ntfy for android 1.17.8 :bulb: **Screenshots and/or logs** ntfy android log (censored) [ntfy3.log](https://github.com/user-attachments/files/23392598/ntfy3.log) ntfy server log shows no errors, only boring lines like these: ``` 2025/11/04 13:16:25 INFO Listening on X.X.X.X:2586[http] /run/ntfy/ntfy.sock[unix], ntfy v2.14.0, log level is INFO (tag=startup) ... ... 2025/11/06 12:42:31 INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=70, messages_published=12854, subscribers=6, tag=manager, topics_active=8, users=3, visitors=7) 2025/11/06 12:43:31 INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=70, messages_published=12854, subscribers=6, tag=manager, topics_active=8, users=3, visitors=7) 2025/11/06 12:44:31 INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=70, messages_published=12854, subscribers=6, tag=manager, topics_active=8, users=3, visitors=7) 2025/11/06 12:45:31 INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=70, messages_published=12854, subscribers=6, tag=manager, topics_active=8, users=3, visitors=7) 2025/11/06 12:46:31 INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=70, messages_published=12854, subscribers=6, tag=manager, topics_active=8, users=3, visitors=7) 2025/11/06 12:47:31 INFO Server stats (emails_received=0, emails_received_failure=0, emails_received_success=0, emails_sent=0, emails_sent_failure=0, emails_sent_success=0, messages_cached=70, messages_published=12854, subscribers=6, tag=manager, topics_active=8, users=3, visitors=7) ``` :crystal_ball: **Additional context** ntfy on android should run battery Unoptimized and with GrapheneOS exploit protections disabled, just to make sure, they are not interfering.
BreizhHardware 2026-05-07 00:29:50 +02:00
  • closed this issue
  • added the
    🪲 bug
    label
Author
Owner

@binwiederhier commented on GitHub (Feb 1, 2026):

java.net.SocketException: Software caused connection abort is typically your phone killing the connection. There is nothing the Android app can do if you have battery optimization turned off. It may also be your proxy not liking long-running connections and killing them every now and then. It should re-connect quickly though.

Problems like this are best for trouble-shooting in Discord/Matrix. Feel free to drop in, see https://docs.ntfy.sh/contact/.

<!-- gh-comment-id:3831292179 --> @binwiederhier commented on GitHub (Feb 1, 2026): `java.net.SocketException: Software caused connection abort` is typically your phone killing the connection. There is nothing the Android app can do if you have battery optimization turned off. It may also be your proxy not liking long-running connections and killing them every now and then. It should re-connect quickly though. Problems like this are best for trouble-shooting in Discord/Matrix. Feel free to drop in, see https://docs.ntfy.sh/contact/.
Author
Owner

@shaohme commented on GitHub (Feb 1, 2026):

It's been a while since I've checked up on this. I'll browse through the logs again and check the reverse proxy timeouts. Thanks for the hints.

<!-- gh-comment-id:3831976088 --> @shaohme commented on GitHub (Feb 1, 2026): It's been a while since I've checked up on this. I'll browse through the logs again and check the reverse proxy timeouts. Thanks for the hints.
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#1047
No description provided.