-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
websockets closing very fast #56
Comments
Do you have logs from Molly android ? It looks like it is in a loop sending registration again and again |
Is there anything that may not be usual in your setup, or anything we should be aware of to debug that ? |
I updated above with some more info about the setup. Edit: it can also happen if the app is in the foreground apparently . But sending a single message helps for a time. It might be an issue with the client and not the sever too. I'm curious if someone else has experienced that. I don't have Molly logs yet. I'm not doing this every day. I'll try to get some |
Ok, that's important to have those logs, something seems wrong on the client side |
This is a log of molly, the beginning corresponds with the mollysocket constantly destroying and establishing a new websocket. (Molly is in foreground and background, doesn't matter) |
There is a new PR in progress: pcrockett/mollysocket-fly#17 |
I wonder, should I rather report this to molly? |
@valldrac will transfer to mollyim-android it when he can |
@Menelmacar do you have the list of registered applications on Conversations ? It looks like they send a new endpoint everytime we register to it. We will avoid that loop on Molly. You should use the websocket for the moment to avoid draining your battery |
I'm also using fedilab with it. I've other news: Also if I change the distributor to nfty the issue is gone. So there is either a bug or incompatibility with https://modules.prosody.im/mod_unified_push.html I think? Thanks for your help so far. I'll also forward this to the prosody issue tracker. |
Is it possible you have configured your prosody module with ttl=0 ? IIRC up.conversations.im also use the same module |
I use the defaults. The conversations server uses the standalone software I fear it might not send any ttl in the header , or I looked at the wrong things. (I can't code) |
This is not regarding the TTL in the header, but time before changing the endpoint. From the logs, it looks like it changes everytime there is a new request |
Hm. I didnt set anything, if I understsnd correctly it should be one day then: I will try to get debug logs if fedilab also suffers in a similar way. Edit: I see a lot of registration for the push server here within one second, then it stops. This happend on activating push in fedilab. I would think normal would these two unified_push log lines only once. |
What backend are you using? If you're on Prosody trunk then it's probably using the PASETO backend, which is stateless (the registration info is stored in the returned token). The token will indeed differ after each registration, because it includes a nonce. I'm not aware that the spec requires tokens to be stable across multiple registrations (please correct me if I'm wrong!). A workaround on the Prosody side would be to set |
https://unifiedpush.org/developers/spec/android/#orgunifiedpushandroiddistributorregister
This is not a MUST, but it may introduce buggy things We have implemented a fix: mollyim/mollyim-android#410 You should probably open issues for other buggy apps |
Thanks! A SHOULD NOT is good enough for me. I'll think about the best solution... |
@mwild1 |
I've installed mollysocket by downloading the binary and setting it up as per the install.md as systemd service.
I'm using an apache2 reverse proxy.
The service works and I get test notifications / push to Molly.
I'm wondering if it's normal that the process is using i/o and cpu all the time and the log is a constant stream of opening websocket and closing.
prod.toml:
db = '/opt/mollysocket/mollysocket.db'
allowed_endpoints = ['https://mypushserver.de']
allowed_uuids = ['b00cfa88-0e25-46ef-b26e-e88b7b0d1326']
webserver = true
port = 8020
Log:
mollysocket-log.txt
Mollylog: https://github.com/user-attachments/files/18039531/06_12-15-36-30_229.log
Prosody mod_unified_push log:
Prosody.log.txt
I'm on Debian stable, mollysocket 1.5.4
Molly: v7.26.1-1-FOSS on CalyxOS on Nexus7 Android 15
The push server is a prosody module, the distributor is my xmpp app conversations .
The text was updated successfully, but these errors were encountered: