Skip to content
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

Intermittent connection issues - error -9829 in IOS client after network change #408

Closed
bdillahu opened this issue Jul 23, 2016 · 6 comments
Assignees
Labels

Comments

@bdillahu
Copy link

Re: Intermittent connection issues - error -9829 in IOS client

I've seen some discussion and bug fixes (as referenced above), but I'm on the newer 9.1.6 client and seem to have a reproducible issue (still?) :-)

I have client certificates set up, custom connection mode on, etc. All seems happy and works fine, until my "method of connection" changes. If I go from WiFi to cell it looses connection and starts getting the 9829 error. I can kill the app (swipe up) and restart it and it immediately connects and will seem to stay connected until I come into WiFi range of a access point I connect to automatically.

When it connects, same thing happens. Again, kill the app and restart and it connects and all happy.

I've turned off client certs for now and after several days, haven't seen it occur with the client cert deactivated (i.e. it will stay connected reasonably).

@kylejohnson
Copy link

Any movement on this?
@bdillahu Did the issue continue to not resurface once client certs are turned off? I seem to be hitting the same issue.

@bdillahu
Copy link
Author

bdillahu commented Jan 11, 2017 via email

@denislooby
Copy link

I'm seeing this with the 9.72 client.
Seems to happen if I'm in an area where I end up hopping between wifi and mobile net a lot.
I can fix it by just going into connection settings and then back out without changing anything, it tries to connect then and succeeds.

@GitifyMe
Copy link

I too see this behavior with the 9.7.2 client.
I observed this when trying to connect to the AWS IoT broker. The broker itself issued the certificate, and I succeeded when connecting using HTTP and client certificate via curl.

I would really like to use OwnTracks with AWS ! I would even buy the MQTTInspector if I could be sure AWS IoT works (preferrably with a bit of guidance).

@ckrey
Copy link
Member

ckrey commented Nov 14, 2017

@GitifyMe -9892 is the error code you get when you try to connect to a broker which requests a client certificate, but you don't provide one.

But this is not related to the issue here.

If you want to connect OwnTracks to AWS IoT, you can do that based on the docs in the booklet. We do not recommend doing that because the OwnTracks app uses MQTT features which AWS IoT does not support. This limits the functionality of the OwnTracks app.

MQTTInspector is a USD 1.99$ investment. I don't see this related to your attempt to connect OwnTracks to AWS IoT. BTW MQTTInspector does support TLS, but no client certificates. You will not be able to connect MQTTInspector to AWS IoT.

@GitifyMe
Copy link

@ckrey Yes, I had meanwhile success with OwnTracks (exactly 6 mins ago!). The issue was for me in essence two-fold: Caused by a company firewall, the WLAN did not let me through --> solved by using mobile data now. Secondly, in AWS you need to attach a policy to the client certificate that permits connections, publishing and subscriptions.
It works now! Thanks Christoph for the fast response and the honest answer regarding MQTTInspector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants