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
Reconnect Problem after changing 4G/WLAN or other way #525
Comments
You will need to tell us a bit more if you want to get help
|
Hi, sorry, here are the infos:
Actually i am laying down with flu, so i can't reproduce the error, but its something like unable to connect / not connected in the status box. |
Thanks for the info. Does the app connect to the same box when in 4G or WLAN mode? |
Yes, it works fine in all the WLAN's and vie LTE/4G. The only problem is, if the IOS device moves from e.g. WLAN to 4G while leaving the house for example, Owntracks connection sometimes not always, can't reconnect and waits forever. As soon as I go into settings, without changing anything, and go back it tries to reconnect, connects and works again. |
Was able to reproducde the error today. Error in Box: Fehler == Error idle Der Vorgang konnte nicht abgeschlossen werden. (OSStatus-Fehler -9829.) {
} |
As I said, like yesterday:
Suggestions: In case of this error let Owntracks do the same as it does when entering settings and go back, IMHO disconnet and do a full reset of the connection, and all should be fine. Thank you for looking into this |
I would like to understand the problem before trying to avoid the problem. I have a setup here with one mosquitto, self signed server certificate and client certificate. Transition from Wifi to 4G and vice versa works fine. Can you share your mosquitto logs? |
It often works, I agree, but as mentioned too often it doesn't. Mosquitto Logs not public, but I dont have a proble to share it via Riot Messenger (e2e encrypted). Mail me at vs@mydynip.net in English or German. |
Thanks for the logs Interesting: the error occurs when the (probably NATed) origin address changes in the 4G network, not when transitioning from 4G to WIFI. Maybe the client needs to reset the TLS context... anonymized mosquitto.log
|
Saw that while checking the Logs too. In my opinion there should be some hard reset if it can't reconnect within e.g. 3-5 Minutes. This would alt least solve my problems and I would be able to add our devices to the system. :-) Thank you very much for your help. |
@mabnz @vsatmydynipnet I have a tentative fix I would like you to test. |
Hi, Email is not a problem, but actually can install only from Apple App Store to these devices. Email is vs@mydynip.net. |
@vsatmydynipnet then there will be a problem to test before releasing it to the public |
Good Morning, I can report that actually with FreeBSD 11.1 p11 / IOS 11.4.1 (Iphone 5s) I can*t reprodruce the problem anymore. So I am not really helpful for testing. |
@squeepip I just sent you an invitation to test 9.9.4 in Testflight. Thanks in advance for your feedback |
I am experiencing this problem, too. Same configuration, I think: Going from WiFi to LTE, the iOS application (version 9.9.3) can no longer connect to the broker, and Status shows,
MQTT, Plain, TLS, self-signed client certificate. The iOS app can communicate with the MQTT broker successfully when on either network type, but if I go from WiFi to LTE, I need to kill the app (swipe up) and restart it for it to connect successfully. I'm seeing this on two different iPhones (a 6 and an 8) both running iOS 12.1. EDIT
This is a different error code, so not precisely the same problem, but perhaps reflective of some corner case in the server connection logic. In any case, it does seem like retrying the server connection some number of times or at some time interval could be worthwhile. |
I was able to build the current git master version of the app, and unfortunately experienced the same error message that doesn't clear up until I manually tap on Settings and then immediately go back. Since I've had trouble reproducing the error while sitting at a desk, it seems likely that it is associated with background processing. I can try working on the bug now that I can load fresh builds onto a device, and I'd be receptive to any specific suggestions for changes to try. |
I didn't get a response from you @squeepip |
The next iOS version >= 12.0.2 will include the tentative fix |
version >= 12.0.2 |
Hi,
love Owntracks but have a hard problem. I track some IOS devices but they loose connection mostly when changing from 4G to WLAN or WLAN to 4G. Status then is not connected and it doesn't recover even its on for hours. If I go to settings and back, it reconnects without problem. Looks like if entering settings it disconnects ad reconnect. Would love to see this working! Thank you so much! Greetings.
The text was updated successfully, but these errors were encountered: