Frontend stopped displaying map

Hi,
For the last couple of days, I have a strange issue with the map (frontend)

Basically:

The dump1090 is working
The FlightAware is sending data to the website
the {myIP} is working - I can see the four green buttons and the ‘Go to SkyAware Map’
however when I click the button and the website navigates me to the /dump1090-fa/ page nothing is displayed !

The graph1090 is working OK as well

What I did to troubleshoot the issue:
Cleared the cache and cookies
Forced reload of the page
Rebooted the Pi (hardware)
checked the logs in /var/log folder (error.log and lighthttpd folders)

As far as I can tel, everything looks normal, but the map is not visible.

I suspect that something was wrong on apt-get update last time I did it :frowning: so lesson learn, don’t touch it if its working :wink:

Can you help me to troubleshoot the issue? I am willing to share logs or graphs1090

Worst case scenario: how to migrate the profile to a new hardware - in case if I want to move this to newer hardware and better memory card?

What do you mean by “nothing is displayed”, can you show a screenshot?

How to Install & Configure Piaware 4.0 SD card image - Quickstart Guide

 

Just in case, the picture “2” is just a blank screen because - you guessed - nothing is displayed.

Huh, haven’t seen that failure mode before. Usually you’d get either a network error (can’t talk to the webserver for some reason) or an empty map (can talk to the webserver, but data from dump1090 isn’t making it to the browser). What’s the source of the blank page look like? Any errors in the console?

What does the source code tell you on this “empty” page? Is this empty as well?

ups, not fast enough, @obj was quicker

Have you checked that Lighttp is working?

I had a similar problem recently and it was a bug in Lighttpd that cause the blank page.

sudo systemctl status lightttpd

View page source - show nothing
Console log - show nothing
All is there is an <head> and <script> that’s all.

root@piaware:/home/pi# systemctl status lighttpd.service
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2020-12-11 11:37:57 GMT; 2min 26s ago
Process: 495 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 587 (lighttpd)
CGroup: /system.slice/lighttpd.service
└─587 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

Dec 11 11:17:46 piaware systemd[1]: Starting Lighttpd Daemon...
Dec 11 11:37:56 piaware lighttpd[495]: 2020-12-11 11:17:46: (plugin.c.190) Cannot load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in futur
Dec 11 11:37:57 piaware systemd[1]: Started Lighttpd Daemon.
Dec 11 11:38:22 piaware lighttpd[587]: 2020-12-11 11:37:58: (plugin.c.190) Cannot load plugin mod_setenv more than once, please fix your config (lighttpd may not accept such configs in futur
lines 1-12/12 (END)

when running the command:

root@piaware:/home/pi# *

cat /etc/lighttpd/lighttpd.conf |grep mod_setenv

it dosent show the plugin at all

I’ve check as well the /var/log folders for errros

root@piaware:/var/log/lighttpd# **tail error.log**

2020-12-10 01:19:11: (server.c.2059) server stopped by UID = 0 PID = 1
2020-12-10 01:20:30: (server.c.1464) server started (lighttpd/1.4.53)
2020-12-10 02:55:05: (server.c.2059) server stopped by UID = 0 PID = 1
2020-12-10 02:56:25: (server.c.1464) server started (lighttpd/1.4.53)
2020-12-10 20:01:54: (server.c.958) [note] graceful shutdown started
2020-12-10 20:01:54: (server.c.2059) server stopped by UID = 0 PID = 11718
2020-12-10 20:01:55: (server.c.1464) server started (lighttpd/1.4.53)
2020-12-11 02:55:06: (server.c.2059) server stopped by UID = 0 PID = 1
2020-12-11 02:56:23: (server.c.1464) server started (lighttpd/1.4.53)
2020-12-11 11:37:58: (server.c.1464) server started (lighttpd/1.4.53)

I’ve noticed as well, that once I ssh to the pi, the initial connection takes few seconds (usually it is instant) in addition the system seems to be ‘slow’ in reposnse to any command as ‘nano’

but
I’ve checked the free -h and it show 50% available memory, the CPU usage is normal as well , oscilating in the 50-60% marks
Can I export all the /graphs1090 as a one screenshoot to upload this as well ?

That page is not from dump1090; it seems to be something Ethereum-related. If you’re not expecting that I’d check for a compromised browser or Pi.

It might be a BRAVE advertisment or something. The Pi is ‘sitting’ on the internal network, separated to specific IoT VLAN and I have ssh-keys to login I work for IT :sweat_smile:

so anyway, I’ve checked the page source on Edge and it show nothing

Well, that page should be being served from /usr/share/dump1090-fa/html/index.html on the Pi so that would be the next thing to check

Judging by the output of systemctl I would gues that your lighttpd.conf is broken.

https://redmine.lighttpd.net/projects/1/wiki/Docs_ModSetEnv

That warning is harmless (currently) - a consequence of lighttpd not doing modular configs very well.

This folder contain all necessary files and I didn’t touch them since March.
As i’ve mentioned earlier this issue started roughly when I ran apt-get update

root@piaware:/usr/share/dump1090-fa/html# **ls**

config.js  dbloader.js  flags.js      images      jquery     markers.js  planeObject.js    script.js   style.css
db         flags-tiny   formatter.js  index.html  layers.js  ol          registrations.js  spinny.gif  test
root@piaware:/usr/share/dump1090-fa/html# **cat index.html**
<!DOCTYPE HTML>
<html>
        <head>
                <meta charset="utf-8"/>

I think I would give it a go and re-install from zero.

You could check the lighttpd configuration.

cat /etc/lighttpd/lighttpd.conf
ls /etc/lighttpd/conf-enabled

put it on pastebin … i’ll take a look.

@tomshawk

Before you reimage your microSD card, try this:

Repalce empty index.html by a fresh copy from GitHub
(The command below is very long. Scroll right to see and copy in full)

sudo wget -O /usr/share/dump1090-fa/html/index.html  "https://raw.githubusercontent.com/flightaware/dump1090/master/public_html/index.html"   

sudo reboot

Clear Cache (Ctrl+Shift+Delete) an Reload Browser (Ctrl+F5)

Thank you!

Here are the links:

  1. https://pastebin.com/iJX11pVR

  2. pi@piaware:~ $ ls /etc/lighttpd/conf-enabled
    50-piaware.conf 88-dump1090-fa-statcache.conf 88-graphs1090.conf 89-dump1090-fa.conf 89-skyaware978.conf

You broke it even more now… :joy: I still think, that the last apt-get destroyed some dev-lib or some dependencies. I am trying to manually do apt-get update/upgrade bu this process stops at:

Hit:1 http://flightaware.com/mirror/raspbian/raspbian buster InRelease
Hit:2 http://flightaware.com/adsb/piaware/files/packages buster InRelease
Get:3 http://flightaware.com/mirror/raspberrypi/debian buster InRelease [32.6 kB]
Get:4 http://flightaware.com/mirror/raspberrypi/debian buster/main armhf Packages [346 kB]
Fetched 378 kB in 15s (25.9 kB/s)
Reading package lists... 44% 

The screenshoot after the ‘wget’ command is below…