FlightAware Discussions

Cannot reach pi_ip/dump1090-fa in my Pi

I have 1 Lime Single Board Computer, 960MHz Dual core CPU, 512MB RAM.

I installed dump1090-fa as well as piaware and piaware-web, it used to work on the browser. Recently it is unreacheable to the piaware-web as well as the dump1090-fa map.

  1. OS: Armbian Stretch
  2. Dump1090-fa version is 3.7.2, piaware version also 3.7.2.

Any solution to fix this issue? @abcd567 . Thanks in advance.

Best regards.

  1. What does the browser display at pi_ip
  2. Can you ssh to the Lime SBC?
  3. What is output of following commands:
ping -c 3 google.com  

sudo journalctl -eu lighttpd  --no-pager
1 Like

Hi @abcd567,

Below are the results:-

root@lime-XRANGE-82519:~# ping -c 3 google.com
PING google.com(kul08s10-in-x0e.1e100.net (2404:6800:4001:80e::200e)) 56 data bytes
64 bytes from kul08s10-in-x0e.1e100.net (2404:6800:4001:80e::200e): icmp_seq=1 ttl=54 time=30.4 ms
64 bytes from kul08s10-in-x0e.1e100.net (2404:6800:4001:80e::200e): icmp_seq=2 ttl=54 time=30.0 ms
64 bytes from kul08s10-in-x0e.1e100.net (2404:6800:4001:80e::200e): icmp_seq=3 ttl=54 time=30.2 ms

--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 30.059/30.250/30.402/0.201 ms
root@lime-XRANGE-82519:~#


root@lime-XRANGE-82519:~# sudo journalctl -eu lighttpd  --no-pager
-- Logs begin at Tue 2020-02-18 19:02:51 +08, end at Tue 2020-02-18 20:19:55 +08. --
Feb 18 19:03:04 lime-XRANGE-82519 systemd[1]: Starting Lighttpd Daemon...
Feb 18 19:03:06 lime-XRANGE-82519 systemd[1]: Started Lighttpd Daemon.
Feb 18 19:03:08 lime-XRANGE-82519 lighttpd[746]: 2020-02-18 19:03:06: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
Feb 18 19:03:08 lime-XRANGE-82519 systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Feb 18 19:03:08 lime-XRANGE-82519 systemd[1]: lighttpd.service: Unit entered failed state.
Feb 18 19:03:08 lime-XRANGE-82519 systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Feb 18 19:03:08 lime-XRANGE-82519 systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Feb 18 19:03:08 lime-XRANGE-82519 systemd[1]: Stopped Lighttpd Daemon.
Feb 18 19:03:08 lime-XRANGE-82519 systemd[1]: Starting Lighttpd Daemon...
Feb 18 19:03:09 lime-XRANGE-82519 systemd[1]: Started Lighttpd Daemon.
Feb 18 19:03:11 lime-XRANGE-82519 lighttpd[806]: 2020-02-18 19:03:09: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
Feb 18 19:03:11 lime-XRANGE-82519 systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Feb 18 19:03:11 lime-XRANGE-82519 systemd[1]: lighttpd.service: Unit entered failed state.
Feb 18 19:03:11 lime-XRANGE-82519 systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Feb 18 19:03:11 lime-XRANGE-82519 systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Feb 18 19:03:11 lime-XRANGE-82519 systemd[1]: Stopped Lighttpd Daemon.
Feb 18 19:03:11 lime-XRANGE-82519 systemd[1]: Starting Lighttpd Daemon...
Feb 18 19:03:12 lime-XRANGE-82519 systemd[1]: Started Lighttpd Daemon.
Feb 18 19:03:13 lime-XRANGE-82519 lighttpd[960]: 2020-02-18 19:03:12: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
Feb 18 19:03:13 lime-XRANGE-82519 systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Feb 18 19:03:13 lime-XRANGE-82519 systemd[1]: lighttpd.service: Unit entered failed state.
Feb 18 19:03:13 lime-XRANGE-82519 systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Feb 18 19:03:13 lime-XRANGE-82519 systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Feb 18 19:03:13 lime-XRANGE-82519 systemd[1]: Stopped Lighttpd Daemon.
Feb 18 19:03:13 lime-XRANGE-82519 systemd[1]: Starting Lighttpd Daemon...
Feb 18 19:03:14 lime-XRANGE-82519 systemd[1]: Started Lighttpd Daemon.
Feb 18 19:03:15 lime-XRANGE-82519 lighttpd[1108]: 2020-02-18 19:03:15: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
Feb 18 19:03:16 lime-XRANGE-82519 systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Feb 18 19:03:16 lime-XRANGE-82519 systemd[1]: lighttpd.service: Unit entered failed state.
Feb 18 19:03:16 lime-XRANGE-82519 systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Feb 18 19:03:16 lime-XRANGE-82519 systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Feb 18 19:03:16 lime-XRANGE-82519 systemd[1]: Stopped Lighttpd Daemon.
Feb 18 19:03:16 lime-XRANGE-82519 systemd[1]: Starting Lighttpd Daemon...
Feb 18 19:03:17 lime-XRANGE-82519 systemd[1]: Started Lighttpd Daemon.
Feb 18 19:03:18 lime-XRANGE-82519 lighttpd[1156]: 2020-02-18 19:03:17: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
Feb 18 19:03:18 lime-XRANGE-82519 systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Feb 18 19:03:18 lime-XRANGE-82519 systemd[1]: lighttpd.service: Unit entered failed state.
Feb 18 19:03:18 lime-XRANGE-82519 systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Feb 18 19:03:18 lime-XRANGE-82519 systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Feb 18 19:03:18 lime-XRANGE-82519 systemd[1]: Stopped Lighttpd Daemon.
Feb 18 19:03:18 lime-XRANGE-82519 systemd[1]: Starting Lighttpd Daemon...
Feb 18 19:03:19 lime-XRANGE-82519 systemd[1]: Started Lighttpd Daemon.
Feb 18 19:03:19 lime-XRANGE-82519 lighttpd[1247]: 2020-02-18 19:03:19: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
Feb 18 19:03:19 lime-XRANGE-82519 systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Feb 18 19:03:19 lime-XRANGE-82519 systemd[1]: lighttpd.service: Unit entered failed state.
Feb 18 19:03:19 lime-XRANGE-82519 systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Feb 18 19:03:20 lime-XRANGE-82519 systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Feb 18 19:03:20 lime-XRANGE-82519 systemd[1]: Stopped Lighttpd Daemon.
Feb 18 19:03:20 lime-XRANGE-82519 systemd[1]: Starting Lighttpd Daemon...
Feb 18 19:03:20 lime-XRANGE-82519 systemd[1]: Started Lighttpd Daemon.
Feb 18 19:03:21 lime-XRANGE-82519 lighttpd[1269]: 2020-02-18 19:03:21: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
Feb 18 19:03:21 lime-XRANGE-82519 systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Feb 18 19:03:21 lime-XRANGE-82519 systemd[1]: lighttpd.service: Unit entered failed state.
Feb 18 19:03:21 lime-XRANGE-82519 systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Feb 18 19:03:21 lime-XRANGE-82519 systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Feb 18 19:03:21 lime-XRANGE-82519 systemd[1]: Stopped Lighttpd Daemon.
Feb 18 19:03:21 lime-XRANGE-82519 systemd[1]: Starting Lighttpd Daemon...
Feb 18 19:03:22 lime-XRANGE-82519 systemd[1]: Started Lighttpd Daemon.
Feb 18 19:03:23 lime-XRANGE-82519 lighttpd[1319]: 2020-02-18 19:03:22: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
Feb 18 19:03:23 lime-XRANGE-82519 systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Feb 18 19:03:23 lime-XRANGE-82519 systemd[1]: lighttpd.service: Unit entered failed state.
Feb 18 19:03:23 lime-XRANGE-82519 systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Feb 18 19:03:23 lime-XRANGE-82519 systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Feb 18 19:03:23 lime-XRANGE-82519 systemd[1]: Stopped Lighttpd Daemon.
Feb 18 19:03:23 lime-XRANGE-82519 systemd[1]: Starting Lighttpd Daemon...
Feb 18 19:03:23 lime-XRANGE-82519 systemd[1]: Started Lighttpd Daemon.
Feb 18 19:03:24 lime-XRANGE-82519 lighttpd[1363]: 2020-02-18 19:03:24: (log.c.171) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
Feb 18 19:03:24 lime-XRANGE-82519 systemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Feb 18 19:03:24 lime-XRANGE-82519 systemd[1]: lighttpd.service: Unit entered failed state.
Feb 18 19:03:24 lime-XRANGE-82519 systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Feb 18 19:03:24 lime-XRANGE-82519 systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Feb 18 19:03:24 lime-XRANGE-82519 systemd[1]: Stopped Lighttpd Daemon.
Feb 18 19:03:24 lime-XRANGE-82519 systemd[1]: lighttpd.service: Start request repeated too quickly.
Feb 18 19:03:24 lime-XRANGE-82519 systemd[1]: Failed to start Lighttpd Daemon.
Feb 18 19:03:24 lime-XRANGE-82519 systemd[1]: lighttpd.service: Unit entered failed state.
Feb 18 19:03:24 lime-XRANGE-82519 systemd[1]: lighttpd.service: Failed with result 'exit-code'.
root@lime-XRANGE-82519:~#

Thanks again.

sudo chown -R www-data:www-data /var/log/lighttpd/
sudo systemctl restart lighttpd
2 Likes

Hopefully suggestion by @wiedehopf should solve the problem.

Does this solution survive a reboot?
If not, what is the output of following command?
cat /etc/fstab

Does the output contain a line like below?
tmpfs /var/log tmpfs

I have asked this question because I have experienced this problem on Flightradar24’s Pi24 image couple of years ago, and found that the folder /var/log of Pi24 image was on volatile memory (ram). As a result, the folder /var/log/lighttpd got erased on reboot, and lighttpd was NOT able to recreate it (this folder is created once only at the time of installation of lighttpd). I solved it by adding following lines to /etc/rc.local

mkdir -p /var/log/lighttpd
touch /var/log/lighttpd/error.log                
chmod 666 /var/log/lighttpd/error.log            
systemctl restart lighttpd

A better way to solve it is adding following lines just above the line starting with ExecStart= in file /usr/lib/systemd/system/lighttpd.service

ExecStartPre=/bin/mkdir -p /var/log/lighttpd 
ExecStartPre=/bin/touch /var/log/lighttpd/error.log 
ExecStartPre=/bin/chmod 666 /var/log/lighttpd/error.log 
1 Like

@wiedehopf , you have save my piaware installation. Thanks.

I did reboot and it still work. At least I don’t need to format and re-image the OS and re-install again.

:grinning:

Best Regards.

Hi @abcd567,

I’m using the suggestion from @wiedehopf and it works even after reboot, thanks for your guides for the adding of lighttpd.

Best regards. :slightly_smiling_face: