Disable 978?

(Bearing in mind my knowledge of all things Linux is approx zero)
Was messing about with a headless Pi running (happily!) piaware when a saw a screen with lots of error messages scrolling by about not able to connect to a 978MHz. Presumably this is wasting resources and it doesn’t work (?) in the UK anyway. Is there something I can tweak to put it out of its misery?? Thanks in advance!

How did you install it? Piaware ISO image or Piaware package on top of Raspberry OS?

978 is disabled by default AFAIK

Err… I’ve done so much recently that I honestly forget! Pretty sure it’s just the iso. That said, I found an old QuickStart guide linked by @abcd567 that listed the process - which I’ve tried. Problem is I can’t recall where I saw the error messages, so I don’t know if what I’ve done has done anything!

Commands used were:
sudo piaware-config receiver-type rtlsdr
sudo piaware-config uat-receiver-type none
sudo systemctl restart piaware

Please don’t tell me I’ve screwed it royally!

As you are in UK, and dump978 is not required in UK, these are correct commands and the error message for piaware not being able to connect to dump978 should stop. Seems the 2nd command did not execute. Please re-issue following commands

sudo piaware-config uat-receiver-type none
sudo systemctl restart piaware  

image

 

 

Click on Screenshot to See Larger Size

 

If in case you have installed dump978-fa unknowingly, you can remove it by following commands:

sudo apt purge dump978-fa   

sudo apt autoremove

sudo reboot  

 

2 Likes

Hmmm… those last three didn’t go well! Gone from three greens to three reds.
Getting this:
● piaware.service
Loaded: masked (Reason: Unit piaware.service is masked.)
Active: inactive (dead)

Now what?

Do this:

sudo systemctl unmask piaware  

sudo systemctl restart piaware  

sudo systemctl status piaware

 

 

1 Like

Thanks, looks better but still three reds

pi@piaware:~ $ sudo systemctl status piaware
● piaware.service - LSB: Communicate ADS-B data to FlightAware
Loaded: loaded (/etc/init.d/piaware; generated)
Active: active (exited) since Mon 2024-04-22 06:13:59 UTC; 7min ago
Docs: man:systemd-sysv-generator(8)
Process: 3937 ExecStart=/etc/init.d/piaware start (code=exited, status=5)
CPU: 26ms

Apr 22 06:13:59 piaware systemd[1]: Starting LSB: Communicate ADS-B data to FlightAware…
Apr 22 06:13:59 piaware systemd[1]: Started LSB: Communicate ADS-B data to FlightAware.

I’m guessing the “exited” entries are a problem in the above.

Tim

The service shows “active” so, this is first ok.

Please print the last lines of this command:

journalctl -xe|grep piaware

Last lines are:

Apr 22 07:11:10 piaware systemd[1]: dump978-rb.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Apr 22 07:11:10 piaware systemd[1]: dump978-rb.service: Failed with result ‘exit-code’.
Apr 22 07:11:12 piaware rbfeeder[489]: [2024-04-22 07:11:12] Can’t connect to 978 source (127.0.0.1:28380). Waiting 5 second…
Apr 22 07:11:17 piaware rbfeeder[489]: [2024-04-22 07:11:17] Can’t connect to 978 source (127.0.0.1:28380). Waiting 5 second…
Apr 22 07:11:19 piaware collectd[531]: <urlopen error [Errno 2] No such file or directory: ‘/usr/share/graphs1090/data-symlink/data/stats.json’>
Apr 22 07:11:22 piaware rbfeeder[489]: [2024-04-22 07:11:22] Can’t connect to 978 source (127.0.0.1:28380). Waiting 5 second…
Apr 22 07:11:27 piaware rbfeeder[489]: [2024-04-22 07:11:27] Can’t connect to 978 source (127.0.0.1:28380). Waiting 5 second…

Which, strangely is where this all started, me seeing the 978 reference!! I’m guessing the 978 error isn’t behind the current issue.

Exit code 5 = Program is not installed.
Seems somehow the piaware package got uninstalled.

What is the output of following command?

apt-cache policy piaware

 

LSB service exit codes

Exit Code Symbolic Name Description
2 EXIT_INVALIDARGUMENT Invalid or excess arguments.
3 EXIT_NOTIMPLEMENTED Unimplemented feature.
4 EXIT_NOPERMISSION The user has insufficient privileges.
5 EXIT_NOTINSTALLED The program is not installed.
6 EXIT_NOTCONFIGURED The program is not configured.
7 EXIT_NOTRUNNING The program is not running.

 

You have installed dump978-rb from Radarbox24.
This happens when while installing Radarbox24 feeder you have said “yes” to option presented (yes/no) to install dump978-rb.

Please uninstall it by following command:

sudo apt purge dump978-rb   

sudo reboot   

Also make sure in file /etc/rbfeeder.ini , the line #dump978_enabled=true is commented out, as shown in screenshot below:

sudo nano /etc/rbfeeder.ini

image

 

1 Like

piaware:
Installed: (none)
Candidate: 9.0.1~bpo11+1
Version table:
9.0.1~bpo11+1 500
500 http://flightaware.com/adsb/piaware/files/packages bullseye/piaware armhf Packages
100 /var/lib/dpkg/status

Installed (none) seems to back up your thought!

Commented out (was already)

Appreciate all the help you’re giving!

Install piaware

sudo apt install piaware  

sudo piaware-config feeder-id  xxxxxxxx-xxxx-xxx-xxx-xxxxxxxxxxxx 
## In above command replace xxxxxxxx-xxxx-xxx-xxx-xxxxxxxxxxxx 
## by your actual feeder-id

sudo piaware-config allow-manual-updates yes  

sudo piaware-config allow-auto-updates yes  

sudo systemctl restart piaware

 

All done, those two updates were already set to yes ( said ‘unchanged’)

Now seeing two greens, expect the last one (MLAT) will change shortly

Guess I’m sorted now!

Really grateful @abcd567 @foxhunter

1 Like

Still just the two greens, MLAT is red and the ? gives “MLAT disabled/not synchronised/Latitude Longitude not set”

Not seeing any aircraft and the link to view live data just gives a 404 on local IP
Presumably something still not right?

piaware.service - FlightAware ADS-B uploader
Loaded: loaded (/lib/systemd/system/piaware.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2024-04-22 08:34:59 UTC; 21min ago
Docs: PiAware - ADS-B and MLAT Receiver - FlightAware
Main PID: 13390 (piaware)
Tasks: 2 (limit: 4915)
CPU: 7.543s
CGroup: /system.slice/piaware.service
└─13390 /usr/bin/piaware -p /run/piaware/piaware.pid -plainlog -statusfile /run/piaware/status.json

Apr 22 08:54:35 piaware piaware[13390]: no ADS-B data program seen listening on port 30005 for 70 seconds, next check in 60s
Apr 22 08:55:20 piaware sudo[17355]: piaware : PWD=/ ; USER=root ; COMMAND=/bin/netstat --program --tcp --wide --all --numeric
Apr 22 08:55:20 piaware sudo[17355]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=999)
Apr 22 08:55:20 piaware sudo[17355]: pam_unix(sudo:session): session closed for user root

Not liking the “no ADS-B data program seem listening……”

Seems dump1090-fa is not installed.
What is output of following commands?

apt-cache policy dump1090-fa

grep network_mode /etc/rbfeeder.ini

 

First one:
dump1090-fa:
Installed: (none)
Candidate: 9.0~bpo11+1
Version table:
9.0~bpo11+1 500
500 http://flightaware.com/adsb/piaware/files/packages bullseye/piaware armhf Packages
100 /var/lib/dpkg/status

Second:
Network mode=true

Just installed dump1090-fa
using
sudo apt install dump1090-fa

Now seeing:

pi@piaware:~ $ apt-cache policy dump1090-fa
dump1090-fa:
Installed: 9.0~bpo11+1
Candidate: 9.0~bpo11+1
Version table:
*** 9.0~bpo11+1 500
500 http://flightaware.com/adsb/piaware/files/packages bullseye/piaware armhf Packages
100 /var/lib/dpkg/status
pi@piaware:~ $

Three greens and aircraft logging. Viewing live data shows as expected.
Think we’re there. I’m gonna do a copy of the SD card just in case!

1 Like