Can’t view graphs dump1090-fa? - help!


#1

Seems simple - but I am struggling to work out why I can not view graphs.

I upgraded to raspbian, piaware 3.5.3 and dump1090-mutability. Everything worked but can’t view collectd graphs (they are being created on pi).

Having not been around for a while I searched posts and decided to uninstall dump1090-mutability and install dump1090-fa. That went well but result is the same :wink:

I am thinking this is a lighttpd configuration issue but struggling to sort it out.

thanks


#2
  1. What was your original OS version from which you upgraded?
  2. How did you upgrade
    By upgrade command
    OR
    By formatting microSD card and writing fresh Raspbian image.

Generally upgrading by upgrade command works ok, but if the existing version is very old, upgrading this way results in something broken.

In this case best and clean option is fresh install (i.e. format microSD card, and write the new OS image and install all other required software).


#3

This was a fresh install after formatting SD card. Installed with mutability then removed that and installed dump1090-fa.


#4
  1. How did you install graphs? Did you use J Prochazka’s script?

    https://discussions.flightaware.com/t/ads-b-receiver-project-setup-scripts/17807

  2. Is your Raspbian Jessie or Stretch? If you are not sure give following command.

    cat /etc/os-release

    See below the output generated when I issued this command on Debian Jessie OS on Chip.

    chip@chip:~$ cat /etc/os-release
    
    PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
    NAME="Debian GNU/Linux"
    VERSION_ID="8"
    VERSION="8 (jessie)"
    ID=debian
    HOME_URL="http://www.debian.org/"
    SUPPORT_URL="http://www.debian.org/support"
    BUG_REPORT_URL="https://bugs.debian.org/"
    

#5

Since you have recently installed Raspbian, and current version of Raspbian is STRETCH, I will assume you have installed Raspbian Stretch.

You then installed dump1090-mutability, then installed graphs.

  1. On Stretch, the dump1090-mutability cannot open the DVB-T dongle. Hence no data to feed graphs. You needed following workaround to make dump1090-mutability and graphs work:

    sudo wget -O  /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules"
    
    sudo reboot
    
  2. Since you did not know about above workaround, you removed dump1090-mutability and installed dump1090-fa, which does not need the above workaround.

    Things shoul be ok now and graphs should populate, but they did not. Why? Since dump1090-mutability was installed defore graphs were installed, the graphs /collectd configured itself to get data from dump1090-mutability. When you replaced dump1090-mutability by dump1090-fa, the configuration of graphs/collected did not change, so it is still trying to get data from non existant dump1090-mutability.

You need to change the configuration of graphs/collectd to get data from dump1090-fa. This is how to do it:

Modify “collectd.conf” file as follows (Thanks to @GeorgLichtblau for this workaround):

#Open file collectd.conf for editing
sudo nano /etc/collectd/collectd.conf

#Press ctrl+w and type:
module dump1090

#Press Enter key, the cursor will jump to line:

    <Module dump1090>
            <Instance localhost>
                    URL "http://localhost/dump1090"
            </Instance>
    </Module>

#Add  -fa  after dump1090 in line starting with URL, as shown below

    <Module dump1090>
            <Instance localhost>
                    URL "http://localhost/dump1090-fa"
            </Instance>
    </Module>

#Save the file, exit and restart collectd module
sudo systemctl restart collectd

#Check status
sudo systemctl status collectd

#Create graphs immediately, else you have to wait for a while
sudo adsb-receiver/build/portal/graphs/make-collectd-graphs.sh 24h

#6

Thank you so much for your reply.

The version is stretch as below.

The graphs are being created on pi - I just can not seem to reach them.

pi@raspberrypi_phil:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL=“http://www.raspbian.org/RaspbianBugs


#7
  1. In your browser, what address you use to see graphs?
    Graphs are normally shown at:
    ip-of-pi/graphs.php

  2. What ip-of-pi/graphs.php shows?
    (a) "NOT FOUND"
    OR
    (b) A page with heading “Performance Graphs”, but no graphs shown
    OR
    ( c) Something else.

  3. If case (b), scroll down to bottom of page to see it’s hidden portion, and find if system graphs (like core temperature, cpu usage etc) are there or not.


#8

Definitely a “not found” - error 404


#9

What do you get with these addresses?

  1. ip-of-pi/install/
  2. ip-of-pi/admin/

#10

Hi abcd567.

on xxx/admin/ I get a blank screen (windows spinning wheel that just keeps spinning).

xx/install/ gets me the ADSB-Receiver Portal Setup screen.

thanks again


#11

Did you complete the setup and saved settings?


#12

Thank you for your patience and suggestions.

I would have sworn 100% it was set up and saved, but obviously it was not as now get graphs.

Trade off is I no longer see planes on map.


#13

Glad to know graphs are working now.

Try following adresses to see planes on map:

  1. ip-of-pi/dump1090/

  2. ip-of-pi/dump1090-fa/

  3. ip-of-pi:8080

  4. ip-of-pi

Try clearing browser cache (Ctrl+Shift+Delete), then hard reload (Ctrl+F5).