Cloud-RF / tak-server

TAK Server docker setup
GNU General Public License v3.0
153 stars 52 forks source link

WebTAK not connecting #31

Closed FarrantAlex closed 6 months ago

FarrantAlex commented 1 year ago

People are reporting webtak is failing to a bad value in the coreconfig.xml

This is likely a docker alias eg. takserver instead of a WAN IP. Using the WAN IP was the previous method which caused issues elsewhere. Fun and games!

Tarpsvo commented 1 year ago

Adding the comment from Discord as well, for my own reference. I will try this later today on a fresh VM.

------------------------------
-- [CloudRF] From an email: --
------------------------------

I figured out the fix, for some reason the script was setting an old IP in the CoreConfig files and that’s where the server was hosted. It’s an easy fix to edit those IPs to whatever you set your terminal to. 

Another thing that’s important for setup that I’ve learned is ensuring the user is running docker as a regular user 

>sudo usermod -aG docker $USER 
>newgrp docker 

Will grant docker access without root privileges. The user can test access by running 

>docker run hello-world 

Note: this needs to happen before running the setup.sh script. I’m not sure if these two steps are “the” fix but they worked for me and I have connectivity to the server via webtak on the correct ports. 
cgmckeever commented 1 year ago

Is there any more information on the Webtak Socket issue? Im not finding any IP to update in the CoreConfig.xml (other that HOSTIP in one of the lines). But with that I keep getting this socket error . No clue where those URL encodings are coming from.

wss://%27%27/takproto/1
FarrantAlex commented 6 months ago

try now - repo has been updated to 5.0

Tarpsvo commented 6 months ago

Ah I had forgotten about this issue. The 4.10 version seems to work as well. I just set up another server on saturday and WebTak worked out of the box. :) No modifications to the setup flow, except I changed my $HOSTIP in the configuration script to my actual server hostname (as opposed to using an IP).