Updated from 2 -> 3.1 - Local Map Not Working

I just updated to 3.1 from 2.1, and cleaned up and bunch of stuff, removed mutability, etc. to get as close to a clean install as possible without starting over. Everything is working fine (feeder is feeding, piaware-status is all fine), but when I navigate to the local site to try and view the map. A few things happen:

  1. When I goto 192.168.1.X:8080 in Chrome, a map loads, but I get the following error message:

Problem fetching data from dump1090.
AJAX call failed (error). Maybe dump1090 is no longer running? The displayed map data will be out of date.

  1. When I goto 192.168.1.X:8080 in another browser, the page won’t even load

After doing some research, it sounds like I could have an issue with lighttpd? I ran sudo systemctl status lighttpd and got the following output:


pi@raspberrypi:~ $ sudo systemctl status lighttpd
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled)
   Active: failed (Result: exit-code) since Tue 2017-01-10 20:36:52 PST; 4min 50s ago
  Process: 638 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)

Jan 10 20:36:52 raspberrypi lighttpd[638]: 2017-01-10 20:36:52: (configfile.c.1003) opening configfile  /etc/lighttpd/conf-enabled...rectory
Jan 10 20:36:52 raspberrypi lighttpd[638]: 2017-01-10 20:36:52: (configfile.c.957) source: /usr/share/lighttpd/include-conf-enable...: (EOL)
Jan 10 20:36:52 raspberrypi lighttpd[638]: 2017-01-10 20:36:52: (configfile.c.957) source: /etc/lighttpd/lighttpd.conf line: 29 po...: (EOL)
Jan 10 20:36:52 raspberrypi systemd[1]: lighttpd.service: control process exited, code=exited status=255
Jan 10 20:36:52 raspberrypi systemd[1]: Failed to start Lighttpd Daemon.
Jan 10 20:36:52 raspberrypi systemd[1]: Unit lighttpd.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.


What do I need to do to fix this issue?

Oh and the content of lighttpd.conf is:


server.modules = (
        "mod_access",
        "mod_alias",
        "mod_compress",
        "mod_redirect",
#       "mod_rewrite",
)

server.document-root        = "/var/www/html"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 80


index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny             = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )

# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"


So I tried removing piaware, dump1090-fa, and lighttpd, restarting, and then reinstalling. However when reinstalling dump1090-fa I got the following error message and I’m back to the original issue:


pi@raspberrypi:~ $ sudo apt-get install dump1090-fa
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  lighttpd
Suggested packages:
  apache2-utils
The following NEW packages will be installed:
  dump1090-fa lighttpd
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 222 kB/2,062 kB of archives.
After this operation, 12.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main lighttpd armhf 1.4.35-4+deb8u1 [222 kB]
Fetched 222 kB in 1s (129 kB/s)  
Selecting previously unselected package lighttpd.
(Reading database ... 37282 files and directories currently installed.)
Preparing to unpack .../lighttpd_1.4.35-4+deb8u1_armhf.deb ...
Unpacking lighttpd (1.4.35-4+deb8u1) ...
Selecting previously unselected package dump1090-fa.
Preparing to unpack .../dump1090-fa_3.1.0_armhf.deb ...
Unpacking dump1090-fa (3.1.0) ...
Processing triggers for systemd (215-17+deb8u5) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up lighttpd (1.4.35-4+deb8u1) ...
Job for lighttpd.service failed. See 'systemctl status lighttpd.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript lighttpd, action "start" failed.
Failed to start Lighttpd. Maybe another webserver is already listening on port 80?
Setting up dump1090-fa (3.1.0) ...
Enabling lighttpd integration..
Enabling dump1090-fa: ok
Run /etc/init.d/lighttpd force-reload to enable changes
grep: /etc/lighttpd/conf-enabled/89-dump1090.conf: No such file or directory
Enabling lighttpd integration (stat cache)..
Enabling dump1090-fa-statcache: ok
Run /etc/init.d/lighttpd force-reload to enable changes
Restarting lighttpd..
Job for lighttpd.service failed. See 'systemctl status lighttpd.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript lighttpd, action "restart" failed.


I’m not super tech savvy but it seems like /etc/lighttpd/conf-enabled/89-dump1090.conf is missing? When I try to open it with nano, nothing exists?

OK so it seems like this might be an issue with having mutability previously installed. It’s trying to use 89-dump1090.conf which is what mutability uses, but the Piaware setup uses 89-dump1090-fa.conf

I can’t figure out where I need to update the correct file to point to though. I looked in /etc/lighttpd/lighttpd.conf but don’t seem to find anything.

I futzed around and lighttpd is running now, but when reinstalling dump1090-fa I get the following error:


Enabling lighttpd integration..
Ignoring unknown module: dump1090-fa
Run /etc/init.d/lighttpd force-reload to enable changes
grep: /etc/lighttpd/conf-enabled/*.conf: No such file or directory
Enabling lighttpd integration (stat cache)..
Ignoring unknown module: dump1090-fa-statcache
Run /etc/init.d/lighttpd force-reload to enable changes
Restarting lighttpd..
invoke-rc.d: dangling symlink: /etc/rc5.d/S02lighttpd

I think this is that dump1090-mutability is not disabling its lighttpd configuration when the package is entirely removed (purged), so part of your lighttpd config now points to a nonexistent file.

Try removing /etc/lighttpd/conf.enabled/89-dump1090.conf (if it is there, it’ll be a symlink pointing to a nonexistent file)

Also, if you’ve been messing around with config files be aware that reinstalling a package doesn’t restore deleted conffiles. You probably want to purge-and-reinstall at this point:



apt- get remove --purge lighttpd dump1090-fa
apt- get install dump1090-fa


(remove the obvious space used to work around mod_security)

Huzzah, thanks for the help, that worked. You were exactly right re: messing around with the conf files, and reinstalling doesn’t restore. The purge did the trick.