FreeTAKTeam / FreeTakServer

Situational Awareness Server compatible with TAK clients
Eclipse Public License 2.0
639 stars 165 forks source link

Cannot start - [Errno -3] Temporary failure in name resolution #47

Closed nconder closed 4 years ago

nconder commented 4 years ago

Application fails to start do to [Errno -3] Temporary failure in name resolution. My DNS resolution (1.1.1.1) is functioning fine.

Running: python3 /TAKlib/TAKfreeServer/server.py -p 8087

Output

python3 /TAKlib/TAKfreeServer/server.py -p 8087

Traceback (most recent call last): File "/TAKlib/TAKfreeServer/server.py", line 350, in ThreadedServer(host=const.IP, port=port).listen() File "/TAKlib/TAKfreeServer/server.py", line 64, in init self.sock.bind((self.host, self.port)) socket.gaierror: [Errno -3] Temporary failure in name resolution

a-f-G-U-C commented 4 years ago

The "name resolution" error is caused by a default placeholder line in constants.py: https://github.com/Tapawingo/FreeTakServer/blob/242dab254e83bae1a2aa707a00a4a643803e433e/TAKfreeServer/constants.py#L15 You need to edit the file and replace the "Your IP" text with the IP address of your machine, alternatively set it to "0.0.0.0" which means "listen on all configured IP addresses of the local machine"

Note to @Tapawingo and devs, for OOTB functionality it might make sense to use 0.0.0.0 as default.

nconder commented 4 years ago

@a-f-G-U-C thanks adding the self.IP of 0.0.0.0 worked as expected.

naman108 commented 4 years ago

actually it needs to be set to you're ip as opposed to 0.0.0.0 for DataPackages to work