Web server lighttpd
, which serves the map page has failed.
Which OS are you using? Is it Armbian?
Web server lighttpd
, which serves the map page has failed.
Which OS are you using? Is it Armbian?
armbrian jessie I believe
Armbian Jessie
mainline kernel 4.9.y
Seems problem of log2ram. Disabling it will solve the problem. Do this:
sudo nano /etc/default/log2ram
In the file opened, scroll to
#enable the log2ram service?
ENABLED=true
true
to false
, so it becomes #enable the log2ram service?
ENABLED=false
Save (Ctrl+o), Close (Ctrl+x)
sudo reboot
After reboot, check status and map
sudo systemctl status lighttpd
IP/dump1090/gmap.html
IP:80
Thanks, will be a few hours before I can do that, will advise.
Sorry didn’t work.
jeff@odroidxu4:~/adsb-receiver$ sudo systemctl status lighttpd -l
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled)
Active: failed (Result: exit-code) since Wed 2018-06-06 02:48:54 CEST; 2min 57s ago
Process: 713 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)
Process: 608 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 713 (code=exited, status=255)
Jun 06 02:48:54 odroidxu4 lighttpd[608]: Syntax OK
Jun 06 02:48:54 odroidxu4 systemd[1]: Started Lighttpd Daemon.
Jun 06 02:48:54 odroidxu4 lighttpd[713]: 2018-06-06 02:48:54: (log.c.118) opening errorlog ‘/var/log/lighttpd/error.log’ failed: No such file or directory
Jun 06 02:48:54 odroidxu4 systemd[1]: lighttpd.service: main process exited, code=exited, status=255/n/a
Jun 06 02:48:54 odroidxu4 systemd[1]: Unit lighttpd.service entered failed state.
jeff@odroidxu4:~/adsb-receiver$
Clearly it is a problem of log file & folder, and changing ENABLED=true
to ENABLED=false
in file log2ram
should have solved it.
Anyway, as it did not solve the problem, here is another workaround
sudo nano /etc/rc.local
mkdir -p /var/log/lighttpd
touch /var/log/lighttpd/error.log
chmod 666 /var/log/lighttpd/error.log
systemctl restart lighttpd
Save file (Ctrl+o) and Close (Ctrl+x)
Reboot Odroid
sudo reboot
Check map
IP/dump1090/gmap.html
IP:80
stand by…
jeff@odroidxu4:~/adsb-receiver$ sudo systemctl status lighttpd -l
[sudo] password for jeff:
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled)
Active: active (running) since Wed 2018-06-06 06:37:07 CEST; 2min 41s ago
Process: 785 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
Main PID: 800 (lighttpd)
CGroup: /system.slice/lighttpd.service
├─800 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
├─811 /usr/bin/php-cgi
├─813 /usr/bin/php-cgi
├─814 /usr/bin/php-cgi
├─815 /usr/bin/php-cgi
└─816 /usr/bin/php-cgi
Jun 06 06:37:07 odroidxu4 lighttpd[785]: Syntax OK
Jun 06 06:37:07 odroidxu4 systemd[1]: Started Lighttpd Daemon.
jeff@odroidxu4:~/adsb-receiver$
Ok, that has got it working :). All graphs working except the core temperature. Now out of all we have done, what needs to be reversed??? I have not changed any of your suggestions above. What do we need to keep. And does what ever we need to keep, need to be done every time I set up a new micro card with this Odroid?
Proper solution is to edit /etc/default/log2ram
and make Enabled=false
.
Since for some unknown reason, that did not work, you can reverse it and make Enable=true
.
Since adding 4 command lines in file /etc/rc.local
has fixed it, keep this modification.
Depends on Armbian version. If lighttpd status shows failed
, first try disabling log2ram
. If this does not work, try adding 4 commands in /etc/rc.local
.
With distros other than Armbian Jessie, lighttpd may not fail, and you will not need to do anything. On my Orange PI I faced same problem with Armbian Jessie, and fixed it by diasbling log2ram
. Later I changed OS to Ubuntu Xenial (also from Armbian site), and lighttpd did not fail on it, so no remedial action was required.
pi@orangepipc:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.4 LTS (Xenial Xerus)"
.................
.
.
Here is the workaround:
Edit file make-collectd-graphs.sh
sudo nano /home/pi/adsb-receiver/build/portal/graphs/make-collectd-graphs.sh
In the file opened, scroll down to function temp_graph_imperial(),
and in its line “CDEF:tta=traw,1000,/” , change 1000 to 1
In the file opened, scroll down to function temp_graph_metric(),
and in its line “CDEF:tfin=traw,1000,/” , change 1000 to 1
Save (Ctrl+o) & Close (Ctrl+x)
Reboot
sudo reboot
right just to be sure the change to read 1,/" or just traw, 1 ??
.
function temp_graph_imperial()
“CDEF:tta=traw,1000,/”
function temp_graph_metric()
“CDEF:tfin=traw,1000,/”
.
function temp_graph_imperial()
“CDEF:tta=traw,1,/”
function temp_graph_metric()
“CDEF:tfin=traw,1,/”
Ok, as I entered, but didn’t fix the problem, core temp still blank.
Would it have anything to do with the XU4 having 4 cores
???
you have to wait for 15 minutes for graph to builtup and update.
If you are in hurry to see its tip, give following command:
sudo ~/adsb-receiver/build/portal/graphs/make-collectd-graphs.sh 24h
Now reload browser.
Tried that, all graphs are populating except the core temperature.
jeff@odroidxu4:~/adsb-receiver$ sudo ~/adsb-receiver/build/portal/graphs/make-co llectd-graphs.sh 24h
[sudo] password for jeff:
2492 (process ID) old priority 0, new priority 5
577x298
577x298
577x298
577x298
1107x284
577x298
ERROR: opening ‘/var/lib/collectd/rrd/localhost/disk-mmcblk0/disk_ops.rrd’: No s uch file or directory
ERROR: opening ‘/var/lib/collectd/rrd/localhost/disk-mmcblk0/disk_octets.rrd’: N o such file or directory
577x298
577x298
ERROR: opening ‘/var/lib/collectd/rrd/localhost/table-localhost/gauge-cpu_temp.r rd’: No such file or directory
ERROR: opening ‘/var/lib/collectd/rrd/localhost/table-localhost/gauge-cpu_temp.r rd’: No such file or directory
ERROR: opening ‘/var/lib/collectd/rrd/localhost/interface-wlan0/if_octets.rrd’: No such file or directory
577x298
1107x284
577x298
577x298
577x298
577x298
jeff@odroidxu4:~/adsb-receiver$ sudo ~/adsb-receiver/build/portal/graphs/make-co llectd-graphs.sh 24h
2525 (process ID) old priority 0, new priority 5
577x298
577x298
577x298
577x298
1107x284
577x298
ERROR: opening ‘/var/lib/collectd/rrd/localhost/disk-mmcblk0/disk_ops.rrd’: No s uch file or directory
ERROR: opening ‘/var/lib/collectd/rrd/localhost/disk-mmcblk0/disk_octets.rrd’: N o such file or directory
577x298
577x298
ERROR: opening ‘/var/lib/collectd/rrd/localhost/table-localhost/gauge-cpu_temp.r rd’: No such file or directory
ERROR: opening ‘/var/lib/collectd/rrd/localhost/table-localhost/gauge-cpu_temp.r rd’: No such file or directory
ERROR: opening ‘/var/lib/collectd/rrd/localhost/interface-wlan0/if_octets.rrd’: No such file or directory
577x298
1107x284
577x298
577x298
577x298
577x298
jeff@odroidxu4:~/adsb-receiver$
Cannot find the reason why the file gauge-cpu_temp.rrd
is missing
@jlb56
I suggest you better raise temperature graph issue here:
https://www.adsbreceiver.net/forums/forum/ads-b-receiver-project-support/
Thanks, I recall reading somewhere a similar problem re core temps.