I had to reinstall twice, because after some time (or maybe after force-closing the ring app) the account did not connect properly anymore.
The account was created for testing purposes, without registering a user name and with an empty password.
After the error occured there was an "!" next to the account in the menu. When checking the account details, disabling and re-enabling the account shortly displayed Ring-Account connecting, and then unknown.
Hello, and thank you, ring look's as it is becoming marvelous.
It occured yesterday, installation was done from F-Droid some time ago. I think a new version was installed today, because the google push messaging option is not shown in the advanced options any more.
Version is now: 20180501
Reproducing
After retrying to create a new ring test account (without name registration) today, I noticed that the dht proxy option was disabled by default. Which seemed strange to me for the android version, so I enabled it, and immediately the account went into the unknown state.
Fortunately, after disabling the proxy the status changed to online again.
Do I recall it correctly that default for matching local and published... has also changed to yes (checked)?
I had hoped the dht proxy option would allow using ring on mobile properly. What could be the problem with it?
There are two phones with Ring installed behind the same router, both immediately get into the unknown state when enabling the dht proxy.
Further observations (current f-droid version, proxy disabled):
Only one phone I see waking up with connection failure. The other says online
Presence status is not well reflected on other side.
When both phones are on (not suspended and account setting says online), calls are sometimes signalled and can connect even if other is shown as offline. But many times calling attempts just fail silently after a while.
Calling a suspended phone seems never able to wake it up. (This worked the first day before the update (IIRC proxy was enabled by default) until the unknown state came eventually.)
Troubleshooting Problems:
The option to allow using mobile networks is also gone with the current f-droid version? :( I can't test if it works across different networks. (Is in general settings, not account settings.)
That seems quite a blocker for a mobile ring app, any voip actually, and isn't all this making even more sense to enable a solution like IAX2?
https://www.voip-info.org/iax/
I was now able to test with the "play" version on one phone, and to enable using the mobile network.
I saw identical behavior with both versions (play and f-droid): The dht proxy setting worked on the mobile net but caused the unknown state in the wifi network.
Ok we just tried with @pduchemin the FDroid version switching between the proxy and the local node, and switching the connectivity (3 or 4g, wifi). There is no failure, so if you have any reproduce step.
Thanks for the hints, I was able to find out now that at a different wifi network the proxy can be enabled without a problem (just as on mobile).
So, it seems the router here is connecting or filtering a little differently than others.
Now, how may this be debugged? You'd need some logging I guess.
Even if, in the end, Ring is really not able to work through the NAT router here, it would be very much helpful to find out what's causing this. Then Ring could also print a much better error message that can point the user to the required solution.
I could verify that dhtproxy.ring.cx can be reached even from the network where Ring gets into the unknown state as soon as enabling it. In the browser the response looks like usage statistics. In both networks the access is not possible using https/ssl (NB: Wouldn't that be better?).
Is there any further signaling communication required beyond the http connection to the proxy?
Could there be a problem with MTU, packet sizes, or similar?
Does Ring contact the dht proxy also using UDP, unlike the browser using TCP?
On the other hand, it looks as if running the dht node on the phone is working (more or less, but with messages not coming through if one phone was suspended). Could it be that there is only an isolated local dht network, consisting only of the two phones in the LAN?
I was having this problem as well.
In varietate concordia - 20180712
Android 6.0.1
LineageOS 13.0
There is a refresh icon that does nothing.
I have disabled/re-enabled the account and it will still show "Unknown" in red.
My only "workaround" is to hard close the app and then re-open it.
It has happened twice now.
I wonder if that was also the cause of messages stopping being sent gnome-ring. It was fine for awhile one night then out of the blue, they just stopped sending. I could still receive FROM android though. Actually, that sounds like a separate and old issue that I thought was handled before.
It's working again though... for now.
If we assume, the cause is due to the router not being open for UDP, the question remains why the client enters the unknown state in proxy mode (that uses TCP as I learned in #517). Could this come from some check? Maybe ICE, that is not making the full error status available?
Having seen ring/jami connectivity problems in some situations that may be router dependent let to a heads up when I found this as part of another projects roadmap:
Wrapping a TCP tunnel around the UDP-based RPC2/SFTP communication protocol between clients and servers. This avoids many problems with firewalls some of which like to treat all UDP as DNS traffic and lose the port forwarding once 'the reply packet' has been passed back. https://github.com/cmusatyalab/coda/issues/55#issuecomment-410312635
Sounds like this could possibly explain some of the trouble.