Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adsbcot stops processing aircraft.json, stops receiving Inotify events #43

Open
ampledata opened this issue May 20, 2024 · 5 comments
Open

Comments

@ampledata
Copy link
Collaborator

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
Copy link
Collaborator Author

To reproduce: sudo systemctl restart dump1090-fa

@ampledata
Copy link
Collaborator Author

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.

@ampledata ampledata changed the title Stuck in epoll_pwait adsbcot stops processing aircraft.json, stops receiving Inotify events Sep 25, 2024
@ampledata
Copy link
Collaborator Author

Sep 25 16:54:37 airtak-home adsbcot[105299]: [INFO] Retrieved 59 ADS-B aircraft messages.
Sep 25 16:54:38 airtak-home adsbcot[105299]: [INFO] <Event name=PosixPath('aircraft.json.3BPZ5C') mask=<Mask.CREATE: 256> cookie=0 watch=<Watch path=PosixPath('/run/dump1090-fa') mask=<Mask.MODIFY|MOVED_FROM|MOVED_TO|CREATE: 450>>>
Sep 25 16:54:38 airtak-home adsbcot[105299]: [INFO] <Event name=PosixPath('aircraft.json.3BPZ5C') mask=<Mask.MODIFY: 2> cookie=0 watch=<Watch path=PosixPath('/run/dump1090-fa') mask=<Mask.MODIFY|MOVED_FROM|MOVED_TO|CREATE: 450>>>
Sep 25 16:54:38 airtak-home adsbcot[105299]: [INFO] <Event name=PosixPath('aircraft.json.3BPZ5C') mask=<Mask.MOVED_FROM: 64> cookie=68451 watch=<Watch path=PosixPath('/run/dump1090-fa') mask=<Mask.MODIFY|MOVED_FROM|MOVED_TO|CREATE: 450>>>
Sep 25 16:54:38 airtak-home adsbcot[105299]: [INFO] <Event name=PosixPath('aircraft.json') mask=<Mask.MOVED_TO: 128> cookie=68451 watch=<Watch path=PosixPath('/run/dump1090-fa') mask=<Mask.MODIFY|MOVED_FROM|MOVED_TO|CREATE: 450>>>
Sep 25 16:54:38 airtak-home adsbcot[105299]: [INFO] Retrieved 59 ADS-B aircraft messages.
Sep 25 16:54:39 airtak-home adsbcot[105299]: [INFO] <Event name=PosixPath('stats.json.VT7S8H') mask=<Mask.CREATE: 256> cookie=0 watch=<Watch path=PosixPath('/run/dump1090-fa') mask=<Mask.MODIFY|MOVED_FROM|MOVED_TO|CREATE: 450>>>
Sep 25 16:54:39 airtak-home adsbcot[105299]: [INFO] <Event name=PosixPath('stats.json.VT7S8H') mask=<Mask.MODIFY: 2> cookie=0 watch=<Watch path=PosixPath('/run/dump1090-fa') mask=<Mask.MODIFY|MOVED_FROM|MOVED_TO|CREATE: 450>>>
Sep 25 16:54:39 airtak-home adsbcot[105299]: [INFO] <Event name=PosixPath('stats.json.VT7S8H') mask=<Mask.MOVED_FROM: 64> cookie=68452 watch=<Watch path=PosixPath('/run/dump1090-fa') mask=<Mask.MODIFY|MOVED_FROM|MOVED_TO|CREATE: 450>>>
Sep 25 16:54:39 airtak-home adsbcot[105299]: [INFO] <Event name=PosixPath('stats.json') mask=<Mask.MOVED_TO: 128> cookie=68452 watch=<Watch path=PosixPath('/run/dump1090-fa') mask=<Mask.MODIFY|MOVED_FROM|MOVED_TO|CREATE: 450>>>
Sep 25 16:54:39 airtak-home adsbcot[105299]: [INFO] <Event name=None mask=<Mask.IGNORED: 32768> cookie=0 watch=<Watch path=PosixPath('/run/dump1090-fa') mask=<Mask.MODIFY|MOVED_FROM|MOVED_TO|CREATE: 450>>>

@ampledata
Copy link
Collaborator Author

Looks like this is happening when stats.json is written.

@ampledata
Copy link
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant