FlightAware Discussions

Adding FR24

Sorry I have terrible luck in getting searches to work to find what I wamt. A brief power outage toasted m SD card and had to start from scratch today. My systems hadnt been touch for a very longer time it was working so well. My last backup was from 2017,

Anyways the last fr24 github thing I used from someone no longer exists I would like to put it back on was working great up till yesterday when the power outage toasted the old card.

Thanks for your help in getting me to the solution quciker

I have a short writeup on how to do an alternative install that doesn’t include their auto-update and some other stuff i didn’t like, see the bottom of this:
https://github.com/wiedehopf/adsb-wiki/wiki/Raspbian-Lite:-ADS-B-receiver

Also has proper logging via the journal.

1 Like

Thanks as always for your help… been a bih help in the past

I get this error after setup
Job for fr24feed.service failed because the control process exited with error code.
See “systemctl status fr24feed.service” and “journalctl -xe” for details.

Well check the logs as described on that page as well.

Oct 19 16:41:02 piaware systemd[1]: fr24feed.service: Control process exited, co
– Subject: Unit process exited
– Defined-By: systemd
– Support: https://www.debian.org/support

– An ExecStartPre= process belonging to unit fr24feed.service has exited.

– The process’ exit code is ‘exited’ and its exit status is 217.
Oct 19 16:41:02 piaware systemd[1]: fr24feed.service: Failed with result 'exit-c
– Subject: Unit failed
– Defined-By: systemd
– Support: https://www.debian.org/support

– The unit fr24feed.service has entered the ‘failed’ state with result 'exit-co
Oct 19 16:41:02 piaware systemd[1]: Failed to start Flightradar24 Decoder & Feed
– Subject: A start job for unit fr24feed.service has failed
– Defined-By: systemd
– Support: https://www.debian.org/support

– A start job for unit fr24feed.service has finished with a failure.

– The job identifier is 41871 and the job result is failed.

thanks for the help just doesnt work…oh well

Let’s check something:

file /bin/rm
/bin/rm -f /dev/shm/decoder.txt || echo wat
grep Pre /etc/systemd/system/fr24feed.service

It really should work, what system are you running?
You started from a fresh Rasbpian Buster or from a new piaware sd-card image?

Or did you use your 2017 image?

fresh piaware image seemed fast way to get flight aware back up

And the output for the commands?
You can put the output in a code section:
```
output
```

Like this, then it will display nicer.

pi@piaware:~ grep Pre /etc/systemd/system/fr24feed.service ExecStartPre=/bin/rm -f /dev/shm/decoder.txt pi@piaware:~ file /bin/rm
/bin/rm: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=9a5398e8e92d94fb65da09c1a553a4e5ef5fdbbd, stripped
pi@piaware:~ /bin/rm -f /dev/shm/decoder.txt || echo wat /bin/rm: cannot remove '/dev/shm/decoder.txt': Operation not permitted wat pi@piaware:~ grep Pre /etc/systemd/system/fr24feed.service
ExecStartPre=/bin/rm -f /dev/shm/decoder.txt

sorry dont know what code section is

those characters will create one
```
code / output
```

Anyhow … let’s check this:

sudo /bin/rm -f /dev/shm/decoder.txt || echo wat

forgot the sudo.

i get nothing after that last line

pi@piaware:~ $ sudo /bin/rm -f /dev/shm/decoder.txt || echo wat

pi@piaware:~ $

your script appears to install it in a tmp location

That’s how it should be.
Not sure why it’s not working then.

sudo systemctl restart fr24feed
sudo journalctl -u fr24feed | tail -n15

Let’s just try again.

And something else to try (maybe this is the issue):

sudo adduser --system --no-create-home fr24
sudo systemctl restart fr24feed
sudo journalctl -u fr24feed | tail -n15

part 1
pi@piaware:~ sudo systemctl restart fr24feed Job for fr24feed.service failed because the control process exited with error code. See "systemctl status fr24feed.service" and "journalctl -xe" for details. pi@piaware:~ sudo journalctl -u fr24feed | tail -n15
Oct 19 17:32:30 piaware systemd[1]: Starting Flightradar24 Decoder & Feeder…
Oct 19 17:32:30 piaware systemd[1738]: fr24feed.service: Failed to determine user credentials: No such process
Oct 19 17:32:30 piaware systemd[1738]: fr24feed.service: Failed at step USER spawning /bin/rm: No such process
Oct 19 17:32:30 piaware systemd[1]: fr24feed.service: Control process exited, code=exited, status=217/USER
Oct 19 17:32:30 piaware systemd[1]: fr24feed.service: Failed with result ‘exit-code’.
Oct 19 17:32:30 piaware systemd[1]: Failed to start Flightradar24 Decoder & Feeder.
Oct 19 17:32:35 piaware systemd[1]: fr24feed.service: Service RestartSec=5s expired, scheduling restart.
Oct 19 17:32:35 piaware systemd[1]: fr24feed.service: Scheduled restart job, restart counter is at 470.
Oct 19 17:32:35 piaware systemd[1]: Stopped Flightradar24 Decoder & Feeder.
Oct 19 17:32:35 piaware systemd[1]: Starting Flightradar24 Decoder & Feeder…
Oct 19 17:32:35 piaware systemd[1739]: fr24feed.service: Failed to determine user credentials: No such process
Oct 19 17:32:35 piaware systemd[1739]: fr24feed.service: Failed at step USER spawning /bin/rm: No such process
Oct 19 17:32:35 piaware systemd[1]: fr24feed.service: Control process exited, code=exited, status=217/USER
Oct 19 17:32:35 piaware systemd[1]: fr24feed.service: Failed with result ‘exit-code’.
Oct 19 17:32:35 piaware systemd[1]: Failed to start Flightradar24 Decoder & Feeder.

Ok i think i’ve figured out the error, thanks for sticking with me (the guide had a small flaw … forgot the user / group stuff).
I’ve fixed the guide and you can fix your install like this:

sudo wget -O /etc/systemd/system/fr24feed.service https://raw.githubusercontent.com/wiedehopf/adsb-scripts/master/fr24feed.service
sudo systemctl enable fr24feed
sudo adduser --system --no-create-home fr24
sudo systemctl restart fr24feed
sudo journalctl -u fr24feed -ef

That should be it.
The last command is to watch what fr24feed is doing, can be interrupted with Ctrl-C once you don’t want to watch it no more.
If there is still an error, let me know.

thanks the user group seems to have fixed…by the way should we run ,lat for FR24 which is not in your notes

Please explain, i don’t get it.

Oh mlat, i mean … answer the question as you want … so it’s not included in the notes.