tsunghanliu / adsb-box.snap

a snap to build a ADS-B receiver station
29 stars 4 forks source link

Update broke dump1090 on Centos 7 #44

Closed dreamworks closed 2 years ago

dreamworks commented 2 years ago

Hi,

first of all thx for your work! It seems that the recent update stops working with CentOs 7. It seems that dump1090 is no longer working. I have a hard time finding the correct log, maybe you can help me, what to check/where to find a potential error?!

It looks to be, that the dump1090-fa binary is no longer working?!

[root@localhost bin]# ./dump1090-fa ./dump1090-fa: error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory [root@localhost bin]# ldd ./dump1090-fa ./dump1090-fa: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by ./dump1090-fa) linux-vdso.so.1 => (0x00007fffb8fd2000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff9f88b3000) libm.so.6 => /lib64/libm.so.6 (0x00007ff9f85b1000) librtlsdr.so.0 => /lib64/librtlsdr.so.0 (0x00007ff9f83a2000) libncurses.so.6 => not found libtinfo.so.6 => not found libc.so.6 => /lib64/libc.so.6 (0x00007ff9f7fd4000) /lib64/ld-linux-x86-64.so.2 (0x00007ff9f8acf000) libusb-1.0.so.0 => /lib64/libusb-1.0.so.0 (0x00007ff9f7dbb000) libudev.so.1 => /lib64/libudev.so.1 (0x00007ff9f7ba5000) librt.so.1 => /lib64/librt.so.1 (0x00007ff9f799d000) libcap.so.2 => /lib64/libcap.so.2 (0x00007ff9f7798000) libdw.so.1 => /lib64/libdw.so.1 (0x00007ff9f7547000) libdl.so.2 => /lib64/libdl.so.2 (0x00007ff9f7343000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007ff9f712d000) libattr.so.1 => /lib64/libattr.so.1 (0x00007ff9f6f28000) libelf.so.1 => /lib64/libelf.so.1 (0x00007ff9f6d10000) libz.so.1 => /lib64/libz.so.1 (0x00007ff9f6afa000) liblzma.so.5 => /lib64/liblzma.so.5 (0x00007ff9f68d4000) libbz2.so.1 => /lib64/libbz2.so.1 (0x00007ff9f66c4000)

[root@localhost lib64]# ps ax | grep dump1090 1052 ? Ss 0:00 /bin/bash /snap/adsb-box/517/bin/dump1090 1909 ? Sl 0:00 /snap/adsb-box/517/usr/bin/openskyd-dump1090 2880 pts/0 R+ 0:00 grep --color=auto dump1090 [root@localhost lib64]#

but dump does not seem to be running

[root@localhost /]# telnet localhost 30005 Trying ::1... telnet: connect to address ::1: Connection refused Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused

tsunghanliu commented 2 years ago

Hi @dreamworks,

Sorry for the inconvenience.

Could you provide the output of sudo snap logs -n all adsb-box.dump1090 ?

dump1090-fa is running in a confined environment, so you cannot run it directly in a normal mode environment. You could try these commands to run dump1090 manually:

$ sudo snap stop adsb-box.dump1090
$ sudo snap run --shell adsb-box.dump1090
$ cd $SNAP
$ usr/bin/dump1090-fa --help
# or run the command as what dump1090 service does.
$ bin/dump1090
dreamworks commented 2 years ago

Hi Robert,

thx for the quick support. Output doesn't look helpful to me (just showing a few restarts); I tried to poke in # /var/snap/adsb-box/517/dump1090-fa.conf, especially adding LOGFILE=xxx.log

to find some output anywhere... Unfortunatly nothing..

@. ~]# snap logs -n all adsb-box.dump1090 2021-11-16T11:03:01+01:00 systemd[1]: Started Service for snap application adsb-box.dump1090. 2021-11-16T11:12:14+01:00 systemd[1]: Stopping Service for snap application adsb-box.dump1090... 2021-11-16T11:12:14+01:00 systemd[1]: Stopped Service for snap application adsb-box.dump1090. 2021-11-16T11:12:14+01:00 systemd[1]: Started Service for snap application adsb-box.dump1090. 2021-11-16T11:13:25+01:00 systemd[1]: Stopping Service for snap application adsb-box.dump1090... 2021-11-16T11:13:25+01:00 systemd[1]: Stopped Service for snap application adsb-box.dump1090. 2021-11-16T11:13:26+01:00 systemd[1]: Started Service for snap application adsb-box.dump1090. @. ~]#

I could give you direct access to the system, if that would help.. It's a simple vm only for the purpose of feeding

Von: Tsunghan Liu (Robert Liu) @.> Gesendet: Dienstag, 16. November 2021 11:30 An: tsunghanliu/adsb-box.snap @.> Cc: Michael Schoen @.>; Mention @.> Betreff: Re: [tsunghanliu/adsb-box.snap] Update broke dump1090 on Centos 7 (Issue #44)

Hi @dreamworkshttps://github.com/dreamworks,

Sorry for the inconvenience.

Could you provide the output of sudo snap logs -n all adsb-box.dump1090 ?

dump1090-fa is running in a confined environment, so you cannot run it directly in a normal mode environment. You could try these commands to run dump1090 manually:

$ sudo snap stop adsb-box.dump1090

$ sudo snap run --shell adsb-box.dump1090

$ cd $SNAP

$ usr/bin/dump1090-fa --help

or run the command as what dump1090 service does.

$ bin/dump1090

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/tsunghanliu/adsb-box.snap/issues/44#issuecomment-970133317, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AADJRZH7B7GD2AKBBSLKLKLUMIXA7ANCNFSM5ID3YP5A. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

dreamworks commented 2 years ago

Hi Robert,

sorry for the quick answer; both kids at home, so I am not fully focused :) usr/bin/dump1090-fa --interactive

is working and showing output. If I start without any options it seems to be starting, but no response on network ports 30005..

Clueless

Von: Tsunghan Liu (Robert Liu) @.> Gesendet: Dienstag, 16. November 2021 11:30 An: tsunghanliu/adsb-box.snap @.> Cc: Michael Schoen @.>; Mention @.> Betreff: Re: [tsunghanliu/adsb-box.snap] Update broke dump1090 on Centos 7 (Issue #44)

Hi @dreamworkshttps://github.com/dreamworks,

Sorry for the inconvenience.

Could you provide the output of sudo snap logs -n all adsb-box.dump1090 ?

dump1090-fa is running in a confined environment, so you cannot run it directly in a normal mode environment. You could try these commands to run dump1090 manually:

$ sudo snap stop adsb-box.dump1090

$ sudo snap run --shell adsb-box.dump1090

$ cd $SNAP

$ usr/bin/dump1090-fa --help

or run the command as what dump1090 service does.

$ bin/dump1090

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/tsunghanliu/adsb-box.snap/issues/44#issuecomment-970133317, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AADJRZH7B7GD2AKBBSLKLKLUMIXA7ANCNFSM5ID3YP5A. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

tsunghanliu commented 2 years ago

Hi Michael,

Could you please try to run bash -x bin/dump1090 in the snap run --shell environment I mentioned earlier?

dreamworks commented 2 years ago

Hi Robert,

sorry for the delay, hope this helps?

Seems that there is a circle and no real process started… snapctl is-connected raw-usb seems to be “wrong”. I have not much clue of snap/snap-building, so I don’t know what to change.. tried to poke in the script, but the fs is mounted read-only…

Hardware-Wise the system is a virtual machine running centos (running on a esxi) with a USB Reader passthrough to the vm

bash-5.0# bash -x bin/dump1090

Von: Tsunghan Liu (Robert Liu) @.> Gesendet: Dienstag, 16. November 2021 13:57 An: tsunghanliu/adsb-box.snap @.> Cc: Michael Schoen @.>; Mention @.> Betreff: Re: [tsunghanliu/adsb-box.snap] Update broke dump1090 on Centos 7 (Issue #44)

Hi Michael,

Could you please try to run bash -x bin/dump1090 in the snap run --shell environment I mentioned earlier?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/tsunghanliu/adsb-box.snap/issues/44#issuecomment-970246178, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AADJRZFAU4KJ6FXR5LBBF7DUMJILJANCNFSM5ID3YP5A. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

tsunghanliu commented 2 years ago

Hi Michael,

I added the checks to make sure all interfaces are connected properly (even users are using devmode). In your case, the process-control plug is not connected. Please run these commands and I think they will resolve the issue.

$ sudo snap connect adsb-box:raw-usb
$ sudo snap connect adsb-box:process-control
$ sudo snap connect adsb-box:system-observe
$ sudo snap connect adsb-box:network-observe
$ sudo snap connect adsb-box:hardware-observe
$ sudo snap connect adsb-box:mount-observe
dreamworks commented 2 years ago

Hi Robert,

worked like a charm. Everything is up and running again... Thank you very much. One last question - maybe out of scope.

I noticed that I have almost none MLAT-recordings. Any ideas/hints? I was always wondering, why this "column" is so low... Or is this just the normal behaviour?

Best regards from Germany .\ichael

@.***

Von: Tsunghan Liu (Robert Liu) @.**@.> Gesendet: Mittwoch, 17. November 2021 03:06 An: tsunghanliu/adsb-box.snap @.> Cc: Michael Schoen @.>; Mention @.***> Betreff: Re: [tsunghanliu/adsb-box.snap] Update broke dump1090 on Centos 7 (Issue #44)

Hi Michael,

I added the checks to make sure all interfaces are connected properly (even users are using devmode). In your case, the process-control plug is not connected. Please run these commands and I think they will resolve the issue.

$ sudo snap connect adsb-box:raw-usb

$ sudo snap connect adsb-box:process-control

$ sudo snap connect adsb-box:system-observe

$ sudo snap connect adsb-box:network-observe

$ sudo snap connect adsb-box:hardware-observe

$ sudo snap connect adsb-box:mount-observe

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/tsunghanliu/adsb-box.snap/issues/44#issuecomment-971093724, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AADJRZHPO2DGFB454GSP6QTUMMEXHANCNFSM5ID3YP5A. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

tsunghanliu commented 2 years ago

Hi Michael,

Glad to know this works for you!

To be honest, I'm not familiar with these protocols. You can check this MLAT page on FlightAware for the details. As far as I know, aircraft without ADS-B transponder are usually small planes or helicopters. So the traffic of MLAT mode-S are much less than normal ADS-B. Also, to decode MLAT traffic correctly, there should be at least 3+ stations close to your station.

tsunghanliu commented 2 years ago

close this issue, because the interfaces issue was resolved.

Feel free to re-open or file a new one, if there's still anything wrong.