OpenTAKServer
OpenTAKServer copied to clipboard
WinTAK and ATAK clients are constantly reconnecting
I have an OpenTAK server installation and use both WinTAK and ATAK clients. The clients are connected via SSL and the connection works. I can create points and also see the locations of the devices in relation to each other.
However, the clients keep reconnecting to the server and the logs show the following entries: OpenTAKServer[24972] - client_controller - on_close - 92 - INFO - Connection closed for 10.41.194.14: (404, ‘NOT_FOUND - no exchange “cot_controller” in vhost “/”’)
After a few seconds, the client is reconnected.
The installation was carried out with the OpenTAK server installer and should therefore be the latest version. https://docs.opentakserver.io/#installation/installation/
I've seen that error but I still haven't figured out what causes it. However the solution that seems to work is to just restart the OpenTAKServer service with this command sudo systemctl restart opentakserver
I've seen this on FTS server too - the one thing that I found that reliably keeps it connected is disabling either TCP or SSL - once I disabled TCP I stopped getting disconnected. It helped me, maybe it'll help you guys?
There is probably a bug with how CotController class instantiated. The exchange is declared during this class instantiation, sometimes is doesn't work, I haven't figured why. Restart should help, as well as manually declaring the exchange in rabbit mq via management console (may need to enable this plugin as it's not enabled by default)