I have 2 rpi 3b+ setups for adsb, already running dump1090-fa for other feeding websites. I wanted to add flightaware to the list, unfortunately after installation it does not seem to start due to a permission issue. Both pi’s are running bullseye 64 bit.
pi@SDRsetup:~ $ piaware
2023-02-15 11:30:15Z failed to reopen /var/log/piaware.log: couldn't open "/var/log/piaware.log": permission denied
2023-02-15 11:30:15Z ****************************************************
2023-02-15 11:30:15Z piaware version 8.2 is running, process ID 33389
2023-02-15 11:30:15Z your system info is: Linux SDRsetup 5.15.84-v8+ #1613 SMP PREEMPT Thu Jan 5 12:03:08 GMT 2023 aarch64 GNU/Linux
2023-02-15 11:30:16Z Connecting to FlightAware adept server at piaware.flightaware.com/1200
2023-02-15 11:30:16Z Connection with adept server at piaware.flightaware.com/1200 established
2023-02-15 11:30:17Z TLS handshake with adept server at piaware.flightaware.com/1200 completed
2023-02-15 11:30:17Z FlightAware server certificate validated
2023-02-15 11:30:17Z encrypted session established with FlightAware
2023-02-15 11:30:18Z logged in to FlightAware as user guest
2023-02-15 11:30:18Z my feeder ID is [HIDDEN]
2023-02-15 11:30:18Z Failed to update feeder ID file at /var/cache/piaware/feeder_id: couldn't open "/var/cache/piaware/feeder_id.new": permission denied
2023-02-15 11:30:18Z site statistics URL: https://flightaware.com/adsb/stats/site/192551
2023-02-15 11:30:18Z ADS-B data program 'dump1090-fa' is listening on port 30005, so far so good
2023-02-15 11:30:18Z Starting faup1090: /usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost --net-bo-port 30005 --stdout
2023-02-15 11:30:18Z Started faup1090 (pid 33430) to connect to dump1090-fa
2023-02-15 11:30:18Z UAT support disabled by local configuration setting: uat-receiver-type
2023-02-15 11:30:18Z piaware received a message from dump1090-fa!
2023-02-15 11:30:18Z piaware has successfully sent several msgs to FlightAware!
Any idea how to get it to work?
I have followed the following link for 64 bit installs:
@keukenrol Permission denied error message will go away when you CLAIM the new piaware feeder.
Claim your PiAware client on FlightAware
You should wait about four or five minutes for your PiAware to start and then you can associate your FlightAware account with your PiAware device to receive all the benefits.
Once your device is running, please:
Look up the IP address in your router admin and go to the assigned IP address in a browser on the same network. If the device hasn’t been claimed a link to claim the PiAware device will display.
NOTE:
You will need to install piaware-web to see the page shown below at IP-OF-PI in your browser.
If after 5 minutes your device hasn’t displayed as claimed try restarting the device, if that still doesn’t work re-confirm the Wi-Fi settings (if using Wi-Fi) are correct. Lastly contact us at ADSBsupport@FlightAware.com. Check your stats page (link below) to confirm it was claimed.
I already have a lighttpd webserver running on the ip of my pi, I suppose the piaware-web will conflict with it if no configuration is asked after installation?
I did try the claiming method but no piaware communication was found on my ip. That’s why I manually tried to run piaware in order to be able to see it.
No, the piaware-web is completely compatible to lighttpd webserver. In fact both the dump1090-fa and piaware-web depend on lighttpd webserver and both automatically configure lighttpd at their installation. The user does NOT have to do any manual configuration.
This may be a temporary situation. Try again after a while.
Ok, installed the web agian but nothing to see on port 8080 or 8081 for example. Where do I get to see the webpage then? The main ip has a webpage made by myself so…
Used the top command to check if piaware is running and it sure is, however using the claim page still tells me that no device is found on my ip…
" Unfortunately, FlightAware hasn’t found a new, unclaimed PiAware feeder to claim."
As mentioned before, I already have my own “website” running on the IP-of-PI of my pi using lighttpd. It is a php file with different status indications and a node red dashboard.
Thanks for the link, I will merge the code of piaware web with my implementation to get it running on a new link.
This is what I get:
pi@SDRsetup:~ $ sudo journalctl -u piaware -e
Feb 16 19:53:29 SDRsetup sudo[1137]: piaware : PWD=/ ; USER=root ; COMMAND=/bin/netstat --program --tcp --wide --all →
Feb 16 19:53:29 SDRsetup sudo[1137]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=998)
Feb 16 19:53:29 SDRsetup sudo[1137]: pam_unix(sudo:session): session closed for user root
Feb 16 19:53:30 SDRsetup sudo[1165]: piaware : PWD=/ ; USER=root ; COMMAND=/bin/netstat --program --tcp --wide --all →
Feb 16 19:53:30 SDRsetup sudo[1165]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=998)
Feb 16 19:53:30 SDRsetup sudo[1165]: pam_unix(sudo:session): session closed for user root
Feb 16 19:53:30 SDRsetup piaware[850]: ADS-B data program ‘dump1090-fa’ is listening on port 30005, so far so good
Feb 16 19:53:30 SDRsetup piaware[850]: Starting faup1090: /usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost →
Feb 16 19:53:30 SDRsetup piaware[850]: Started faup1090 (pid 1168) to connect to dump1090-fa
Feb 16 19:53:30 SDRsetup piaware[850]: UAT support disabled by local configuration setting: uat-receiver-type
Feb 16 19:53:30 SDRsetup piaware[850]: piaware received a message from dump1090-fa!
Feb 16 19:53:30 SDRsetup piaware[850]: logged in to FlightAware as user guest
Feb 16 19:53:30 SDRsetup piaware[850]: my feeder ID is [HIDDEN]
Feb 16 19:53:30 SDRsetup piaware[850]: site statistics URL: Site 192551 ADSB-B Feeder Statistics - FlightAware
Feb 16 19:53:31 SDRsetup piaware[850]: piaware has successfully sent several msgs to FlightAware!
Feb 16 19:54:01 SDRsetup piaware[850]: 304 msgs recv’d from dump1090-fa; 302 msgs sent to FlightAware
Feb 16 19:54:42 SDRsetup piaware[850]: timed out waiting for alive message from FlightAware, reconnecting…
Feb 16 19:54:42 SDRsetup piaware[850]: reconnecting in 6 seconds…
Feb 16 19:54:48 SDRsetup piaware[850]: Connecting to FlightAware adept server at piaware.flightaware.com/1200
Feb 16 19:54:49 SDRsetup piaware[850]: Connection with adept server at piaware.flightaware.com/1200 established
Feb 16 19:54:49 SDRsetup piaware[850]: TLS handshake with adept server at piaware.flightaware.com/1200 completed
Feb 16 19:54:49 SDRsetup piaware[850]: FlightAware server certificate validated
Feb 16 19:54:49 SDRsetup piaware[850]: encrypted session established with FlightAware
Feb 16 19:54:49 SDRsetup sudo[2708]: piaware : PWD=/ ; USER=root ; COMMAND=/bin/netstat --program --tcp --wide --all →
Feb 16 19:54:49 SDRsetup sudo[2708]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=998)
Feb 16 19:54:49 SDRsetup sudo[2708]: pam_unix(sudo:session): session closed for user root
Feb 16 19:54:50 SDRsetup piaware[850]: logged in to FlightAware as user guest
Feb 16 19:54:50 SDRsetup piaware[850]: my feeder ID is [HIDDEN]
Feb 16 19:54:50 SDRsetup piaware[850]: site statistics URL: Site 192551 ADSB-B Feeder Statistics - FlightAware
Feb 16 19:59:01 SDRsetup piaware[850]: 2118 msgs recv’d from dump1090-fa (1814 in last 5m); 2077 msgs sent to FlightAware
pi@SDRsetup:~ $ sudo journalctl -u piaware -b | grep “logged in”
grep: in”: No such file or directory
pi@SDRsetup:~ $ sudo journalctl -u piaware -b | grep msgs
Feb 16 19:53:31 SDRsetup piaware[850]: piaware has successfully sent several msgs to FlightAware!
Feb 16 19:54:01 SDRsetup piaware[850]: 304 msgs recv’d from dump1090-fa; 302 msgs sent to FlightAware
Feb 16 19:59:01 SDRsetup piaware[850]: 2118 msgs recv’d from dump1090-fa (1814 in last 5m); 2077 msgs sent to FlightAware
////////////////////////////////////////////////////////////////////
If I click the ADS-B Feeder statistics I can see data is being sent, but for some reason it still does not show up on the claim page.
I also notice the nearest airport is incorrect, despite the correct coordinates are set in dump1090-fa.
That is what i mentioned multiple times without success… got support via mail and it works now.
Looking at the interface, it seems the pi only uses an ipv6 wan address while flightaware is looking for ipv4. I think the clue lies here. Worth investigating? Both pi’s use the same ISP.