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

Stuck in epoll_pwait #43

Open ampledata opened 3 months ago

ampledata commented 3 months ago

ADSBCOT will stop reading /run/*/aircraft.json after some time, and prints nothing else to the logs. An strace shows:

root@airtak-home:/boot# ps -ef|grep -i adsb
root       65480       1  0 May17 ?        00:00:00 /bin/bash /usr/local/sbin/run_adsbcot.sh
root       65481   65480  0 May17 ?        00:33:23 /usr/bin/python3 /usr/local/bin/adsbcot
root      499726   64351  0 23:31 pts/1    00:00:00 grep -i adsb
root@airtak-home:/boot# strace -p 65481
strace: Process 65481 attached
epoll_pwait(3, [], 3, 87, NULL, 8)      = 0
epoll_pwait(3, [], 3, 0, NULL, 8)       = 0
getpid()                                = 65481
epoll_pwait(3, [], 3, 100, NULL, 8)     = 0
epoll_pwait(3, [], 3, 0, NULL, 8)       = 0
getpid()                                = 65481
epoll_pwait(3, [], 3, 100, NULL, 8)     = 0
epoll_pwait(3, [], 3, 0, NULL, 8)       = 0
getpid()                                = 65481
epoll_pwait(3, [], 3, 100, NULL, 8)     = 0
epoll_pwait(3, [], 3, 0, NULL, 8)       = 0
getpid()                                = 65481
epoll_pwait(3, [], 3, 100, NULL, 8)     = 0
epoll_pwait(3, [], 3, 0, NULL, 8)       = 0
...
ampledata commented 3 months ago

To reproduce: sudo systemctl restart dump1090-fa

ampledata commented 3 months ago
May 20 23:36:44 airtak-home adsbcot[499976]: [INFO] Retrieved 64 ADS-B aircraft messages.
May 20 23:36:45 airtak-home adsbcot[499976]: [INFO] Retrieved 64 ADS-B aircraft messages.