adsb-box.snap
adsb-box.snap copied to clipboard
dump978 inactive after upgrade
Got a much more powerful box to run adsb on, did a fresh OS install, installed the snap, copied the config over, and everything started perfectly..... (Running on an oDroid N2+ (Linux adsb-box 6.1.11-meson64 #23.02.2 SMP PREEMPT Sat Feb 18 00:07:55 UTC 2023 aarch64 GNU/Linux)
but I didn't notice the 978 parts weren't running. So troubleshooting that tonight, and can't get it happy.
Service Startup Current Notes
adsb-box.adsbexchange-mlat enabled inactive -
adsb-box.adsbexchange-netcat enabled active -
adsb-box.collectd enabled active -
adsb-box.dump1090 enabled active -
adsb-box.dump978 enabled inactive -
adsb-box.fr24feed enabled active -
adsb-box.graphs-gend enabled active -
adsb-box.lighttpd enabled active -
adsb-box.openskyd enabled active -
adsb-box.pfclient enabled active -
adsb-box.piaware enabled active -
adsb-box.rbfeeder enabled active -
adsb-box.rbfeeder-mlat enabled inactive -
adsb-box.skyaware978 enabled active -
Running the latest/edge versions:
root@adsb-box:~# snap list
Name Version Rev Tracking Publisher Notes
adsb-box v1.6.5 758 latest/edge robertliu -
core18 20230307 2712 latest/stable canonical✓ base
core20 20230207 1832 latest/stable canonical✓ base
snapd 2.58.2 18363 latest/stable canonical✓ snapd
Figured I'd poke around, make sure the serials were set right, etc, appears to be. All the 1090 stuff is working fine, dump978-fa isn't running, even after reboot. Sees both tuner cards.
root@adsb-box:/snap/adsb-box/758# rtl_test -t
Found 2 device(s):
0: Realtek, RTL2832U, SN: 00000978
1: Realtek, RTL2832U, SN: 00001090
Starting dump978 from within the snap works
root@adsb-box:/snap/adsb-box/758/bin# ./dump978 --help
raw-port: listening for connections on 127.0.0.1:30978
json-port: listening for connections on 127.0.0.1:30979
Detached kernel driver
Found Rafael Micro R820T tuner
Reattached kernel driver
usb_claim_interface error -6
Detached kernel driver
Found Rafael Micro R820T tuner
Exact sample rate is: 2083333.135571 Hz
[R82XX] PLL not locked!
SoapySDR: using maximum manual gain 49.6 dB
SoapySDR: using stream setting buffsize=262144
Allocating 15 zero-copy buffers
127.0.0.1:30978: accepted a connection from 127.0.0.1:32996
127.0.0.1:30979: accepted a connection from 127.0.0.1:40410
Where do I need to look for logs?
hmmmm..
oot@adsb-box:/snap/adsb-box/758/usr/bin# dump978-fa --sdr driver=rtlsdr,serial=00000978 --format CS8 --raw-port 30978 --json-port 30979
raw-port: listening for connections on 0.0.0.0:30978
raw-port: listening for connections on [::]:30978
json-port: listening for connections on 0.0.0.0:30979
json-port: listening for connections on [::]:30979
Configuration error: No matching SoapySDR device found (cause: SoapySDR::Device::make() no match)
Hi @dlasher ,
To get the log, you can use sudo snap logs -n all adsb-box.dump978
.
Also, could you please check if you have followed the instructions in README[1] to enable the dump978 service?
If you want to run dump978 manually, you need add SOAPY_SDR_PLUGIN_PATH
to the environment variables. See the wrapper[2] for the details.
[1] https://github.com/tsunghanliu/adsb-box.snap#uat978-settings [2] https://github.com/tsunghanliu/adsb-box.snap/blob/master/bin/dump978#L89