Dump1090 is producing data on localhost / Problem fetching data from dump1090

Hi everyone,

I have an issue where dump1090 seems to lock up every few days. If I kill the process and restart the dump1090 service, it works perfectly again.

Running piaware v4.0
Raspberry Pi 3 Model B+ / Original Raspberry Pi power supply
Spider antenna

Does anyone have any ideas what could be wrong?

Here’s some logs:

pi@adsb:~ $ piaware-status
PiAware master process (piaware) is running with pid 672.
PiAware ADS-B client (faup1090) is running with pid 1916.
PiAware ADS-B UAT client (faup978) is not running (disabled by configuration settings)
PiAware mlat client (fa-mlat-client) is running with pid 14053.
Local ADS-B receiver (dump1090-fa) is running with pid 1903.
dump1090-fa (pid 1903) is listening for ES connections on port 30005.
faup1090 is connected to the ADS-B receiver.
piaware is connected to FlightAware.
dump1090 is NOT producing data on localhost:30005.
Your feeder ID is —redacted— (from /var/cache/piaware/feeder_id)

pi@adsb:~ $ lsusb
Bus 001 Device 013: ID 0bda:2832 Realtek Semiconductor Corp. RTL2832U DVB-T
Bus 001 Device 012: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 011: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

pi@adsb:~ $ sudo systemctl status dump1090-fa -l
● dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization)
Loaded: loaded (/lib/systemd/system/dump1090-fa.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2020-12-22 03:36:18 AEST; 1 day 14h ago
Docs: PiAware - ADS-B and MLAT Receiver - FlightAware
Main PID: 1903 (dump1090-fa)
Tasks: 3 (limit: 2063)
CGroup: /system.slice/dump1090-fa.service
└─1903 /usr/bin/dump1090-fa --device-index 0 --gain -10 --ppm 0 --max-range 360 --fix --net --net-heartbeat 60 --net-ro-size 1300 --net-ro-interval 0.2 --n
Dec 22 03:36:18 adsb systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Dec 22 03:36:18 adsb dump1090-fa[1903]: Tue Dec 22 03:36:18 2020 AEST dump1090-fa 4.0 starting up.
Dec 22 03:36:18 adsb dump1090-fa[1903]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Dec 22 03:36:18 adsb dump1090-fa[1903]: Found Rafael Micro R820T tuner
Dec 22 03:36:18 adsb dump1090-fa[1903]: rtlsdr: enabling tuner AGC
Dec 22 03:36:19 adsb dump1090-fa[1903]: Allocating 4 zero-copy buffers

pi@adsb:~ $ sudo journalctl --no-pager -u dump1090-fa
– Logs begin at Thu 2019-02-14 20:11:59 AEST, end at Wed 2020-12-23 18:07:25 AEST. –
Dec 17 10:17:36 adsb systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Dec 17 10:17:36 adsb dump1090-fa[667]: Thu Dec 17 10:17:36 2020 AEST dump1090-fa 4.0 starting up.
Dec 17 10:17:36 adsb dump1090-fa[667]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Dec 17 10:17:36 adsb dump1090-fa[667]: Found Rafael Micro R820T tuner
Dec 17 10:17:37 adsb dump1090-fa[667]: rtlsdr: enabling tuner AGC
Dec 17 10:17:37 adsb dump1090-fa[667]: Allocating 4 zero-copy buffers
Dec 17 14:29:47 adsb dump1090-fa[667]: Thu Dec 17 14:29:47 2020 AEST Caught SIGTERM, shutting down…
Dec 17 14:29:47 adsb systemd[1]: Stopping dump1090 ADS-B receiver (FlightAware customization)…
Dec 17 14:31:17 adsb systemd[1]: dump1090-fa.service: State ‘stop-sigterm’ timed out. Killing.
Dec 17 14:31:17 adsb systemd[1]: dump1090-fa.service: Killing process 667 (dump1090-fa) with signal SIGKILL.
Dec 17 14:31:17 adsb systemd[1]: dump1090-fa.service: Main process exited, code=killed, status=9/KILL
Dec 17 14:31:17 adsb systemd[1]: dump1090-fa.service: Failed with result ‘timeout’.
Dec 17 14:31:17 adsb systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Dec 17 14:31:18 adsb systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Dec 17 14:31:18 adsb dump1090-fa[31545]: Thu Dec 17 14:31:18 2020 AEST dump1090-fa 4.0 starting up.
Dec 17 14:31:18 adsb dump1090-fa[31545]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Dec 17 14:31:18 adsb dump1090-fa[31545]: Found Rafael Micro R820T tuner
Dec 17 14:31:18 adsb dump1090-fa[31545]: rtlsdr: enabling tuner AGC
Dec 17 14:31:18 adsb dump1090-fa[31545]: Allocating 4 zero-copy buffers
Dec 19 03:04:47 adsb dump1090-fa[31545]: Sat Dec 19 03:04:47 2020 AEST Caught SIGTERM, shutting down…
Dec 19 03:04:47 adsb systemd[1]: Stopping dump1090 ADS-B receiver (FlightAware customization)…
Dec 19 03:04:48 adsb dump1090-fa[31545]: Sat Dec 19 03:04:48 2020 AEST Waiting for receive thread termination
Dec 19 03:04:49 adsb dump1090-fa[31545]: Sat Dec 19 03:04:49 2020 AEST Normal exit.
Dec 19 03:04:49 adsb systemd[1]: dump1090-fa.service: Succeeded.
Dec 19 03:04:49 adsb systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Dec 19 03:04:49 adsb systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Dec 19 03:04:49 adsb dump1090-fa[14848]: Sat Dec 19 03:04:49 2020 AEST dump1090-fa 4.0 starting up.
Dec 19 03:04:49 adsb dump1090-fa[14848]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Dec 19 03:04:49 adsb dump1090-fa[14848]: Found Rafael Micro R820T tuner
Dec 19 03:04:49 adsb dump1090-fa[14848]: rtlsdr: enabling tuner AGC
Dec 19 03:04:49 adsb dump1090-fa[14848]: Allocating 4 zero-copy buffers
Dec 20 22:47:08 adsb dump1090-fa[14848]: cb transfer status: 5, canceling…
Dec 20 22:47:08 adsb dump1090-fa[14848]: rtlsdr: rtlsdr_read_async returned unexpectedly, probably lost the USB device, bailing out
Dec 20 22:47:08 adsb dump1090-fa[14848]: Sun Dec 20 22:47:08 2020 AEST Waiting for receive thread termination
Dec 20 22:47:08 adsb dump1090-fa[14848]: Sun Dec 20 22:47:08 2020 AEST Abnormal exit.
Dec 20 22:47:08 adsb systemd[1]: dump1090-fa.service: Main process exited, code=exited, status=1/FAILURE
Dec 20 22:47:08 adsb systemd[1]: dump1090-fa.service: Failed with result ‘exit-code’.
Dec 20 22:47:38 adsb systemd[1]: dump1090-fa.service: Service RestartSec=30s expired, scheduling restart.
Dec 20 22:47:38 adsb systemd[1]: dump1090-fa.service: Scheduled restart job, restart counter is at 1.
Dec 20 22:47:38 adsb systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Dec 20 22:47:38 adsb systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Dec 20 22:47:38 adsb dump1090-fa[5583]: Sun Dec 20 22:47:38 2020 AEST dump1090-fa 4.0 starting up.
Dec 20 22:47:38 adsb dump1090-fa[5583]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Dec 20 22:47:38 adsb dump1090-fa[5583]: Detached kernel driver
Dec 20 22:47:39 adsb dump1090-fa[5583]: Found Rafael Micro R820T tuner
Dec 20 22:47:39 adsb dump1090-fa[5583]: rtlsdr: enabling tuner AGC
Dec 20 22:47:39 adsb dump1090-fa[5583]: Allocating 4 zero-copy buffers
Dec 20 23:26:20 adsb dump1090-fa[5583]: cb transfer status: 5, canceling…
Dec 20 23:26:20 adsb dump1090-fa[5583]: rtlsdr: rtlsdr_read_async returned unexpectedly, probably lost the USB device, bailing out
Dec 20 23:26:20 adsb dump1090-fa[5583]: Sun Dec 20 23:26:20 2020 AEST Waiting for receive thread termination
Dec 20 23:26:20 adsb dump1090-fa[5583]: Reattaching kernel driver failed!
Dec 20 23:26:20 adsb dump1090-fa[5583]: Sun Dec 20 23:26:20 2020 AEST Abnormal exit.
Dec 20 23:26:20 adsb systemd[1]: dump1090-fa.service: Main process exited, code=exited, status=1/FAILURE
Dec 20 23:26:20 adsb systemd[1]: dump1090-fa.service: Failed with result ‘exit-code’.
Dec 20 23:26:50 adsb systemd[1]: dump1090-fa.service: Service RestartSec=30s expired, scheduling restart.
Dec 20 23:26:50 adsb systemd[1]: dump1090-fa.service: Scheduled restart job, restart counter is at 2.
Dec 20 23:26:50 adsb systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Dec 20 23:26:50 adsb systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Dec 20 23:26:50 adsb dump1090-fa[21109]: Sun Dec 20 23:26:50 2020 AEST dump1090-fa 4.0 starting up.
Dec 20 23:26:50 adsb dump1090-fa[21109]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Dec 20 23:26:50 adsb dump1090-fa[21109]: Detached kernel driver
Dec 20 23:26:50 adsb dump1090-fa[21109]: Found Rafael Micro R820T tuner
Dec 20 23:26:51 adsb dump1090-fa[21109]: rtlsdr: enabling tuner AGC
Dec 20 23:26:51 adsb dump1090-fa[21109]: Allocating 4 zero-copy buffers
Dec 20 23:27:32 adsb dump1090-fa[21109]: cb transfer status: 5, canceling…
Dec 20 23:27:32 adsb dump1090-fa[21109]: cb transfer status: 5, canceling…
Dec 20 23:27:32 adsb dump1090-fa[21109]: rtlsdr: rtlsdr_read_async returned unexpectedly, probably lost the USB device, bailing out
Dec 20 23:27:32 adsb dump1090-fa[21109]: Sun Dec 20 23:27:32 2020 AEST Waiting for receive thread termination
Dec 20 23:27:32 adsb dump1090-fa[21109]: Reattaching kernel driver failed!
Dec 20 23:27:32 adsb dump1090-fa[21109]: Sun Dec 20 23:27:32 2020 AEST Abnormal exit.
Dec 20 23:27:32 adsb systemd[1]: dump1090-fa.service: Main process exited, code=exited, status=1/FAILURE
Dec 20 23:27:32 adsb systemd[1]: dump1090-fa.service: Failed with result ‘exit-code’.
Dec 20 23:28:02 adsb systemd[1]: dump1090-fa.service: Service RestartSec=30s expired, scheduling restart.
Dec 20 23:28:02 adsb systemd[1]: dump1090-fa.service: Scheduled restart job, restart counter is at 3.
Dec 20 23:28:02 adsb systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Dec 20 23:28:02 adsb systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Dec 20 23:28:02 adsb dump1090-fa[21657]: Sun Dec 20 23:28:02 2020 AEST dump1090-fa 4.0 starting up.
Dec 20 23:28:02 adsb dump1090-fa[21657]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Dec 20 23:28:03 adsb dump1090-fa[21657]: Detached kernel driver
Dec 20 23:28:03 adsb dump1090-fa[21657]: Found Rafael Micro R820T tuner
Dec 20 23:28:03 adsb dump1090-fa[21657]: rtlsdr: enabling tuner AGC
Dec 20 23:28:03 adsb dump1090-fa[21657]: Allocating 4 zero-copy buffers
Dec 21 00:39:47 adsb dump1090-fa[21657]: Mon Dec 21 00:39:47 2020 AEST Caught SIGTERM, shutting down…
Dec 21 00:39:47 adsb systemd[1]: Stopping dump1090 ADS-B receiver (FlightAware customization)…
Dec 21 00:41:17 adsb systemd[1]: dump1090-fa.service: State ‘stop-sigterm’ timed out. Killing.
Dec 21 00:41:17 adsb systemd[1]: dump1090-fa.service: Killing process 21657 (dump1090-fa) with signal SIGKILL.
Dec 21 00:41:17 adsb systemd[1]: dump1090-fa.service: Main process exited, code=killed, status=9/KILL
Dec 21 00:41:17 adsb systemd[1]: dump1090-fa.service: Failed with result ‘timeout’.
Dec 21 00:41:17 adsb systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Dec 21 00:41:17 adsb systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Dec 21 00:41:17 adsb dump1090-fa[18503]: Mon Dec 21 00:41:17 2020 AEST dump1090-fa 4.0 starting up.
Dec 21 00:41:17 adsb dump1090-fa[18503]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Dec 21 00:41:17 adsb dump1090-fa[18503]: Found Rafael Micro R820T tuner
Dec 21 00:41:17 adsb dump1090-fa[18503]: rtlsdr: enabling tuner AGC
Dec 21 00:41:17 adsb dump1090-fa[18503]: Allocating 4 zero-copy buffers
Dec 21 01:44:48 adsb dump1090-fa[18503]: Mon Dec 21 01:44:48 2020 AEST Caught SIGTERM, shutting down…
Dec 21 01:44:48 adsb systemd[1]: Stopping dump1090 ADS-B receiver (FlightAware customization)…
Dec 21 01:44:49 adsb dump1090-fa[18503]: Mon Dec 21 01:44:49 2020 AEST Waiting for receive thread termination
Dec 21 01:44:49 adsb dump1090-fa[18503]: Mon Dec 21 01:44:49 2020 AEST Normal exit.
Dec 21 01:44:49 adsb systemd[1]: dump1090-fa.service: Succeeded.
Dec 21 01:44:49 adsb systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Dec 21 01:44:49 adsb systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Dec 21 01:44:49 adsb dump1090-fa[11267]: Mon Dec 21 01:44:49 2020 AEST dump1090-fa 4.0 starting up.
Dec 21 01:44:49 adsb dump1090-fa[11267]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Dec 21 01:44:49 adsb dump1090-fa[11267]: Found Rafael Micro R820T tuner
Dec 21 01:44:49 adsb dump1090-fa[11267]: rtlsdr: enabling tuner AGC
Dec 21 01:44:49 adsb dump1090-fa[11267]: Allocating 4 zero-copy buffers
Dec 21 03:39:48 adsb dump1090-fa[11267]: Mon Dec 21 03:39:48 2020 AEST Caught SIGTERM, shutting down…
Dec 21 03:39:48 adsb systemd[1]: Stopping dump1090 ADS-B receiver (FlightAware customization)…
Dec 21 03:39:49 adsb dump1090-fa[11267]: Mon Dec 21 03:39:49 2020 AEST Waiting for receive thread termination
Dec 21 03:39:49 adsb dump1090-fa[11267]: Mon Dec 21 03:39:49 2020 AEST Normal exit.
Dec 21 03:39:49 adsb systemd[1]: dump1090-fa.service: Succeeded.
Dec 21 03:39:49 adsb systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Dec 21 03:39:49 adsb systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Dec 21 03:39:49 adsb dump1090-fa[24113]: Mon Dec 21 03:39:49 2020 AEST dump1090-fa 4.0 starting up.
Dec 21 03:39:49 adsb dump1090-fa[24113]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Dec 21 03:39:49 adsb dump1090-fa[24113]: Found Rafael Micro R820T tuner
Dec 21 03:39:49 adsb dump1090-fa[24113]: rtlsdr: enabling tuner AGC
Dec 21 03:39:49 adsb dump1090-fa[24113]: Allocating 4 zero-copy buffers
Dec 22 02:29:48 adsb dump1090-fa[24113]: Tue Dec 22 02:29:48 2020 AEST Caught SIGTERM, shutting down…
Dec 22 02:29:48 adsb systemd[1]: Stopping dump1090 ADS-B receiver (FlightAware customization)…
Dec 22 02:31:18 adsb systemd[1]: dump1090-fa.service: State ‘stop-sigterm’ timed out. Killing.
Dec 22 02:31:18 adsb systemd[1]: dump1090-fa.service: Killing process 24113 (dump1090-fa) with signal SIGKILL.
Dec 22 02:31:18 adsb systemd[1]: dump1090-fa.service: Main process exited, code=killed, status=9/KILL
Dec 22 02:31:18 adsb systemd[1]: dump1090-fa.service: Failed with result ‘timeout’.
Dec 22 02:31:18 adsb systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Dec 22 02:31:18 adsb systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Dec 22 02:31:18 adsb dump1090-fa[9895]: Tue Dec 22 02:31:18 2020 AEST dump1090-fa 4.0 starting up.
Dec 22 02:31:18 adsb dump1090-fa[9895]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Dec 22 02:31:18 adsb dump1090-fa[9895]: Found Rafael Micro R820T tuner
Dec 22 02:31:18 adsb dump1090-fa[9895]: rtlsdr: enabling tuner AGC
Dec 22 02:31:19 adsb dump1090-fa[9895]: Allocating 4 zero-copy buffers
Dec 22 03:34:48 adsb dump1090-fa[9895]: Tue Dec 22 03:34:48 2020 AEST Caught SIGTERM, shutting down…
Dec 22 03:34:48 adsb systemd[1]: Stopping dump1090 ADS-B receiver (FlightAware customization)…
Dec 22 03:36:18 adsb systemd[1]: dump1090-fa.service: State ‘stop-sigterm’ timed out. Killing.
Dec 22 03:36:18 adsb systemd[1]: dump1090-fa.service: Killing process 9895 (dump1090-fa) with signal SIGKILL.
Dec 22 03:36:18 adsb systemd[1]: dump1090-fa.service: Main process exited, code=killed, status=9/KILL
Dec 22 03:36:18 adsb systemd[1]: dump1090-fa.service: Failed with result ‘timeout’.
Dec 22 03:36:18 adsb systemd[1]: Stopped dump1090 ADS-B receiver (FlightAware customization).
Dec 22 03:36:18 adsb systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Dec 22 03:36:18 adsb dump1090-fa[1903]: Tue Dec 22 03:36:18 2020 AEST dump1090-fa 4.0 starting up.
Dec 22 03:36:18 adsb dump1090-fa[1903]: rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00001000)
Dec 22 03:36:18 adsb dump1090-fa[1903]: Found Rafael Micro R820T tuner
Dec 22 03:36:18 adsb dump1090-fa[1903]: rtlsdr: enabling tuner AGC
Dec 22 03:36:19 adsb dump1090-fa[1903]: Allocating 4 zero-copy buffers

pi@adsb:~ $ sudo dmesg --ctime | grep voltage
pi@adsb:~ $

pi@adsb:~ $ sudo kill -9 1903
pi@adsb:~ $ ps -A |grep dump
pi@adsb:~ $ sudo service dump1090-fa start
pi@adsb:~ $ piaware-status
PiAware master process (piaware) is running with pid 672.
PiAware ADS-B client (faup1090) is not running.
PiAware ADS-B UAT client (faup978) is not running (disabled by configuration settings)
PiAware mlat client (fa-mlat-client) is running with pid 14053.
Local ADS-B receiver (dump1090-fa) is running with pid 1374.
dump1090-fa (pid 1374) is listening for ES connections on port 30005.
faup1090 is NOT connected to the ADS-B receiver.
piaware is connected to FlightAware.
dump1090 is producing data on localhost:30005.
Your feeder ID is —redacted— (from /var/cache/piaware/feeder_id)

Thats not good, usually bad power or SDR dying.

Unplug and plug the SDR in again.
If used connect the SDR without an USB extension.

Check for power issues: Debug commands · wiedehopf/adsb-wiki Wiki · GitHub

After that test the SDR: Debug commands · wiedehopf/adsb-wiki Wiki · GitHub

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.