FlightAware Discussions

Graphs for dump1090 -- my version with install script

#124

Try

sudo apt clean

then try the install of the graphs again.

0 Likes

#125

No change:
Selecting previously unselected package libltdl7:armhf.
dpkg: unrecoverable fatal error, aborting:
unable to open files list file for package ‘raspberrypi-bootloader’: Structure needs cleaning

0 Likes

#126

Pretty sure the piaware sd-card has enough space, but let’s see

df -h

Otherwise maybe the sd-card is just corrupted.
That error has nothing to with the graphs really.

0 Likes

#127

Thanks. I’ll let you know if I get it sorted.

0 Likes

#128

Mind trying these commands?

sudo dpkg --configure -a
sudo apt install --fix-missing
0 Likes

#129
pi@piaware:~ $ sudo dpkg --configure -a
pi@piaware:~ $ sudo apt install --fix-missing
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
0 Likes

#130

So seems installing this library is making problems, try:

sudo apt install libltdl7
0 Likes

#131

Maybe try this:

apt install --reinstall raspberrypi-bootloader
0 Likes

#132

Looks like I’m getting filesystem errors in syslog. I’ll have to get these resolved and try again. At least now I know that the scripts should work with this version. Thanks for your help.

piaware kernel: [ 1036.316611] EXT4-fs error (device mmcblk0p2): ext4_lookup:1587: inode #42777: comm dpkg: deleted inode referenced: 45230
0 Likes

#133

This is killer - Thank you! I’m already doing a lot of stats collecting with basic curl/pipe/echo/jq and sending it to my graphite instance and displaying it in grafana. I modified your script locally to include LoadPlugin “write_graphite” as well as its config block and now I can send the stats to the db for each node I have and roll them all up into a central view. Pretty cool. I appreciate this greatly as the graphs are really the only thing I want but didnt want to deal with the install of the entire package just to gain stats on existing nodes

1 Like

#134

I guess a reimage is in order.

Or you can probably try:

sudo touch /forcefsck
sudo reboot

Maybe this will fix it.

0 Likes

#135

You can probably remove

/etc/cron.d/cron-graphs1090

That way it won’t unnecessarily use CPU every minute for creating the graph pictures :slight_smile:

0 Likes

#136

Ha. I’ll see how it runs. I’ve had pretty good success running a number of curls against the json and piping to graphite every 60 sec (that 1m resolution is nice for futzing with gain, configs etc) in a simple cron. I’ve got the new rrd graphs up now and will start to plot them in grafana later on today once a few nodes start to send to the graphite instance.

0 Likes

#137

If everthing else fails to solve the problem, there is a sure solution: re-imaging :wink:

1 Like