I’ve built an aggregator pi and have finally managed to serve up a merged feed to adsbexchange.com and FR24. However, for some reason piaware does not start.
I’ve tried trouble shooting but have made little progress thus far. Here is the output of piaware-status
~$ sudo piaware-status
dump1090 is not running.
faup1090 is not running.
piaware is not running.
dump1090-mutabi is listening for connections on port 30005.
faup1090 is NOT connected to port 30005.
piaware is NOT connected to FlightAware.
dump1090-mutabi is producing data on port 30005.
As you see mutability is up and running so the error “dump1090 is not running” can be ignored. Can anyone assist with where I should be looking please?
Before trying to restart piaware manually through the init.d script I deleted the piaware.out log, rebooted and then checked the piaware status:
piaware.service - LSB: Communicate ADS-B data to FlightAware
Loaded: loaded (/etc/init.d/piaware)
Active: active (exited) since Sun 2015-10-18 21:14:24 IST; 8min ago
Process: 226 ExecStart=/etc/init.d/piaware start (code=exited, status=0/SUCCESS)
Oct 18 21:14:24 aggregator piaware[226]: Starting piaware server: piaware.
I also checked the piaware.out log and it shows:
10/18/2015 15:44:40 ****************************************************
10/18/2015 15:44:40 piaware version 2.1-3 is running, process ID 252
10/18/2015 15:44:40 your system info is: Linux aggregator 4.2.3-2-osmc #1 SMP PREEMPT Mon Oct 12 01:58:40 UTC 2015 armv7l GNU/Linux
10/18/2015 15:44:40 connecting to FlightAware piaware.flightaware.com/1200
10/18/2015 15:44:42 FlightAware server SSL certificate validated
10/18/2015 15:44:42 encrypted session established with FlightAware
couldn't execute "ip": no such file or directory
while executing
"open $cmd $mode"
(procedure "open_nolocale" line 5)
invoked from within
"open_nolocale "|ip address show dev $dev""
(procedure "get_local_device_ip_address" line 2)
invoked from within
"get_local_device_ip_address $iface"
(procedure "get_default_gateway_interface_and_ip" line 14)
invoked from within
"get_default_gateway_interface_and_ip gateway iface ip"
(object "::adept" method "::fa_adept::AdeptClient::login" body line 25)
invoked from within
"login"
(object "::adept" method "::fa_adept::AdeptClient::connect" body line 63)
invoked from within
"adept connect"
(procedure "main" line 82)
invoked from within
"main $argv"
invoked from within
"if {!$tcl_interactive} {
main $argv
}"
(file "/usr/lib/piaware/main.tcl" line 125)
invoked from within
"source /usr/lib/piaware/main.tcl"
("uplevel" body line 1)
invoked from within
"uplevel #0 source $path"
from tcllauncher running "piaware -p /var/run/piaware.pid"
The part that looks suspect is where it begins by saying: “couldn’t execute ip…”
I then executed the piaware service and it returned nothing - just the prompt
On looking up the piaware.out file again it does not show up any additional information.
I executed piaware in debug mode and the output is similar to the one above, its the same part that looks suspect.
You mentioned that there could be a problem with the rc.d configuration, how do I debug that? Or is the “couldn’t find ip” the culprit?
sorry - my knowledge isn’t good enough to identify the problem out of the logfiles - but i’m sure obj as the developer of piaware can
what i’ve learned some weeks ago when starting with ads-b was - that the fr24 software is very egoistic and seems to violate some other apps.
so - maybe a fresh install with piaware first could be a chance to find the problem. if the fresh install works you could then install the other feeds and look every time if it still works.