snstac / adsbcot

Display Aircraft in TAK - ADS-B to TAK Gateway
https://adsbcot.rtfd.io
Apache License 2.0
86 stars 22 forks source link

Error on starting adsbcot -c config.ini #14

Closed Tissy closed 2 years ago

Tissy commented 2 years ago

This error is presenting on running DEBUG=1 adsbcot -c config.ini

Screenshot 2022-05-10 143757

Am I missing a dependency perhaps?

ampledata commented 2 years ago

Ensure your COT_URL has a fully formed URL, i.e. "udp://" or "tcp://"

On Tue, May 10, 2022, 6:37 AM Steven Tisseyre @.***> wrote:

This error is presenting on running DEBUG=1 adsbcot -c config.ini

DEBUG:asyncio:Using selector: EpollSelector DEBUG:asyncio:Get address info :8087, type=<SocketKind.SOCK_STREAM: 1> DEBUG:asyncio:Close

<_UnixSelectorEventLoop running=False closed=False debug=1> Traceback (most recent call last): File "/usr/local/bin/adsbcot", line 33, in sys.exit(load_entry_point('adsbcot==4.0.1', 'console_scripts', 'adsbcot')()) File "/usr/local/lib/python3.9/dist-packages/adsbcot-4.0.1-py3.9.egg/adsbcot/commands.py", line 135, in cli asyncio.run(main(combined_config), debug=os.getenv("DEBUG")) File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/usr/local/lib/python3.9/dist-packages/adsbcot-4.0.1-py3.9.egg/adsbcot/commands.py", line 50, in main reader, writer = await pytak.protocol_factory(cot_url) File "/usr/local/lib/python3.9/dist-packages/pytak-4.0.0-py3.9.egg/pytak/client_functions.py", line 53, in protocol_factory reader, writer = await asyncio.open_connection(host, port) File "/usr/lib/python3.9/asyncio/streams.py", line 52, in open_connection transport, _ = await loop.create_connection( File "/usr/lib/python3.9/asyncio/base_events.py", line 1017, in create_connection infos = await self._ensure_resolved( File "/usr/lib/python3.9/asyncio/base_events.py", line 1396, in _ensure_resolved return await loop.getaddrinfo(host, port, family=family, type=type, File "/usr/lib/python3.9/asyncio/base_events.py", line 856, in getaddrinfo return await self.run_in_executor( File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/usr/lib/python3.9/asyncio/base_events.py", line 839, in _getaddrinfo_debug addrinfo = socket.getaddrinfo(host, port, family, type, proto, flags) File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -2] Name or service not known — Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Tissy commented 2 years ago

Corrected the URL, still seem to be getting the following error Greg.

screenshot

ampledata commented 2 years ago

Can you paste your config

On Tue, May 10, 2022, 8:05 AM Steven Tisseyre @.***> wrote:

Corrected the URL, still seem to be getting the following error Greg.

[image: screenshot] https://user-images.githubusercontent.com/1116396/167660694-9a0f8fa5-675d-4ed3-8636-d126ec95894e.jpg

— Reply to this email directly, view it on GitHub https://github.com/ampledata/adsbcot/issues/14#issuecomment-1122518377, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAWIXRANNPXXPLMINRZNBLVJJ3NFANCNFSM5VRUAE4Q . You are receiving this because you commented.Message ID: @.***>

Tissy commented 2 years ago

Sure...

[adsbcot] COT_URL = tcp://xx.xx.xx.xx:8087 DUMP1090_URL = tcp+beast://192.168.1.164:30005

Tissy commented 2 years ago

OK, figured it out. Correct format of config.ini is...

[adsbcot] COT_URL = tcp://xx.xx.xx.xx:8087 DUMP1090_URL = tcp+beast:192.168.1.164:30005

No // on DUMP1090_URL line

ampledata commented 2 years ago

Ok. I'll try to ensure the format of both urls is uniform in the future

On Tue, May 10, 2022, 2:17 PM Steven Tisseyre @.***> wrote:

OK, figured it out. Correct format of config.ini is...

[adsbcot] COT_URL = tcp://xx.xx.xx.xx:8087 DUMP1090_URL = tcp+beast:192.168.1.164:30005

No // on DUMP1090_URL line

— Reply to this email directly, view it on GitHub https://github.com/ampledata/adsbcot/issues/14#issuecomment-1122872679, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAWIXTLO37CI6YATKXO42DVJLG5DANCNFSM5VRUAE4Q . You are receiving this because you commented.Message ID: @.***>

Tissy commented 2 years ago

Don't worry mate, it's all good.