FlightAware Discussions

Application-specific initialization failed - piaware on raspberry

Hi everybody

I need your assistance for an issue with one of my feeder

Since 2 days, Nothing is working anymore for one of my feeder

I have the PiAware (Debian Package Add-on) 4.0 installed on a raspberry pi 4

The live data on the port 8080 is working, I see all planes on the map

but all is red in my admin page on flightaware

Capture d’écran 2021-01-02 à 13.05.38

If i type “piaware” via ssh , i have this result

pi@raspberrypi:~ $ piaware
application-specific initialization failed: couldn't read file "/usr/share/tcltk/tcl8.6/auto.tcl": no such file or directory
couldn't read file "/usr/share/tcltk/tcl8.6/auto.tcl": no such file or directory
    while executing
"source /usr/share/tcltk/tcl8.6/auto.tcl"
    (in namespace eval "::" script line 1)
    invoked from within
"namespace eval :: $auto_index($name)"
    (procedure "auto_load" line 13)
    invoked from within
"auto_load $name [uplevel 1 {::namespace current}]"
    (autoloading "tcl_findLibrary")
    (procedure "::unknown" line 22)
    invoked from within
"tcl_findLibrary tclx 8.4 8.4.1 tclx.tcl TCLX_LIBRARY tclx_library"
    (procedure "::tclx::Init" line 3)
    invoked from within
"::tclx::Init"
    (in TclX_Init)
    invoked from within
"load /usr/lib/libtclx8.4.so.0 Tclx"
    ("package ifneeded Tclx 8.4" script)
    invoked from within
"package require Tclx"
    (file "/usr/lib/Tcllauncher1.8/tcllauncher.tcl" line 5)

I also have flightradar24, adsb exchange, radarbox and planefinder on this raspberry and all are working, only flightaware doesn’t work anymore

thx for your help

That’s not what you do.

sudo piaware-status
sudo journalctl -u piaware -e | tail -n30

Share the output for the above two commands.
My guess … uuid not configured after changing the setup?

For Beginners - How to Get Back Existing Station Number in A Fresh Install

1 Like

hi

thx for your reply

just no power at home during 3 hours 2 days ago

since then, no working

with the first command, same result than above

with the second

pi@raspberrypi:~ $ sudo journalctl -u piaware -e | tail -n30
Jan 02 12:42:00 raspberrypi systemd[1]: piaware.service: Service RestartSec=30s expired, scheduling restart.
Jan 02 12:42:00 raspberrypi systemd[1]: piaware.service: Scheduled restart job, restart counter is at 354.
Jan 02 12:42:00 raspberrypi systemd[1]: Stopped FlightAware ADS-B uploader.
Jan 02 12:42:00 raspberrypi systemd[1]: Started FlightAware ADS-B uploader.
Jan 02 12:42:01 raspberrypi piaware[16796]: application-specific initialization failed: couldn't read file "/usr/share/tcltk/tcl8.6/auto.tcl": no such file or directory
Jan 02 12:42:01 raspberrypi piaware[16796]: couldn't read file "/usr/share/tcltk/tcl8.6/auto.tcl": no such file or directory
Jan 02 12:42:01 raspberrypi piaware[16796]:     while executing
Jan 02 12:42:01 raspberrypi piaware[16796]: "source /usr/share/tcltk/tcl8.6/auto.tcl"
Jan 02 12:42:01 raspberrypi piaware[16796]:     (in namespace eval "::" script line 1)
Jan 02 12:42:01 raspberrypi piaware[16796]:     invoked from within
Jan 02 12:42:01 raspberrypi piaware[16796]: "namespace eval :: $auto_index($name)"
Jan 02 12:42:01 raspberrypi piaware[16796]:     (procedure "auto_load" line 13)
Jan 02 12:42:01 raspberrypi piaware[16796]:     invoked from within
Jan 02 12:42:01 raspberrypi piaware[16796]: "auto_load $name [uplevel 1 {::namespace current}]"
Jan 02 12:42:01 raspberrypi piaware[16796]:     (autoloading "tcl_findLibrary")
Jan 02 12:42:01 raspberrypi piaware[16796]:     (procedure "::unknown" line 22)
Jan 02 12:42:01 raspberrypi piaware[16796]:     invoked from within
Jan 02 12:42:01 raspberrypi piaware[16796]: "tcl_findLibrary tclx 8.4 8.4.1 tclx.tcl TCLX_LIBRARY tclx_library"
Jan 02 12:42:01 raspberrypi piaware[16796]:     (procedure "::tclx::Init" line 3)
Jan 02 12:42:01 raspberrypi piaware[16796]:     invoked from within
Jan 02 12:42:01 raspberrypi piaware[16796]: "::tclx::Init"
Jan 02 12:42:01 raspberrypi piaware[16796]:     (in TclX_Init)
Jan 02 12:42:01 raspberrypi piaware[16796]:     invoked from within
Jan 02 12:42:01 raspberrypi piaware[16796]: "load /usr/lib/libtclx8.4.so.0 Tclx"
Jan 02 12:42:01 raspberrypi piaware[16796]:     ("package ifneeded Tclx 8.4" script)
Jan 02 12:42:01 raspberrypi piaware[16796]:     invoked from within
Jan 02 12:42:01 raspberrypi piaware[16796]: "package require Tclx"
Jan 02 12:42:01 raspberrypi piaware[16796]:     (file "/usr/lib/Tcllauncher1.8/tcllauncher.tcl" line 5)
Jan 02 12:42:01 raspberrypi systemd[1]: piaware.service: Main process exited, code=exited, status=1/FAILURE
Jan 02 12:42:01 raspberrypi systemd[1]: piaware.service: Failed with result 'exit-code'.

Seems a dependency is missing.
Not sure how that would happen unless you have a dying sd-card.
But let’s just try to reinstall what you need.

sudo apt update
sudo apt remove piaware tcl tcllib
sudo apt autoremove
sudo apt install piaware

See how that goes.

1 Like

I think the sd card has a issue

because this morning i noticed all my feeder was OOS. I tried to restart the rasberry and impossible to connect by ssh. I had to reinsert the sd card in the raspberry

All other feeders (FR24, planefinder, radarbox and ads b exchange) are up but not flightaware

I’ll try your commands, but are there any risk than other feeder doesn’t work anymore ? When I installed all feeder, I always began with flightaware as first feeder installed then FR24 and then others

thx a lot :slight_smile:

Not touching dump1090-fa which supplies which talks to the SDR and provides data to the other feed clients.

But if the sd-card is dying … well then it might die faster if you try to fix stuff, no way to say.

You could check dmesg or graphs1090 if you have it if anything is out of the normal compared to last 2 weeks.

1 Like

Yes - looks like the tcl package is damaged.
I’d start afresh with a new sdcard.

1 Like

To prepare a fresh install on a new microSD card, please brows this post:

Re-imaging Made Easy

 

 

1 Like

All of my feeder ID are already saved

I’m going to do a fresh install but I need a new SD card first.

Thx for your assistance :slight_smile:

When purchasing new microSD card, better purchase at least two. One will be in use in RPi, other as spare for use in case of SD card failure again. These are not very costly, and you dont need to buy large size like 64 Gb. A 16 Gb or 32 Gb will be quiet enough. In my 3 Pi’s I use 8 Gb microSD cards and I have installed & runnig following without any issue:

  • dump1090-fa
  • dump978-fa
  • piaware data feeder
  • planefinder data feeder
  • flightradar24 data feeder
  • radarbox24 data feeder
  • adsbexchange data feeder
  • opensky data feeder
  • radar virtuel data feeder
  • feed to 2 private sites
  • modesmixer2
  • graphs

Wise step!

However a large number of users dont have feeder id’s of all their feeders saved on their Desktop/Laptop, and that is why the very first step in the how-to is to retrieve & save feeder ids / keys from existing microSD card.

I have many SD card but only 64 and 128go. It’s too big for the raspberry with only my feeder. I use it for bigger project

16go is enought I think

For me even 8 Gb is working fine :slight_smile:, but no harm having 16 Gb.

Just bought 4 SD of 16gb on amazon ^^

After that i’ll install all again and make a image copy of the main sd card :slight_smile: Thx for your help

1 Like