apache2 log error

Talks about metering
wifi75
Posts: 28
Joined: Tue Aug 27, 2019 2:26 pm

apache2 log error

Post by wifi75 » Wed Aug 28, 2019 7:05 am

hello I have problema on my rpi, after a few hours the system seems to go into shutdown ... I found many errors like this:

[Wed Aug 28 07:03:40.631266 2019] [:error] [pid 859] [client xx.xx.xxx.xxx:43984] PHP Notice: Undefined variable: LASTD_MET6 in /var/www/metern/index.php on line 57

what can I do?

jeanmarc
Posts: 2038
Joined: Thu Aug 29, 2013 7:16 am

Re: apache2 log error

Post by jeanmarc » Wed Aug 28, 2019 12:15 pm

save layout configuration

wifi75
Posts: 28
Joined: Tue Aug 27, 2019 2:26 pm

Re: apache2 log error

Post by wifi75 » Wed Aug 28, 2019 12:19 pm

of course meterN 1.2.1 and 123Solar 1.8.3.3 already installed as soon as they are released.

wifi75
Posts: 28
Joined: Tue Aug 27, 2019 2:26 pm

Re: apache2 log error

Post by wifi75 » Wed Aug 28, 2019 12:21 pm

jeanmarc wrote:
Wed Aug 28, 2019 12:15 pm
save layout configuration
do you mean that the problem is only that?
why do I sometimes find the raspberry offline ...

jeanmarc
Posts: 2038
Joined: Thu Aug 29, 2013 7:16 am

Re: apache2 log error

Post by jeanmarc » Wed Aug 28, 2019 12:42 pm

Yes, that was the issue for Undefined variable: LASTD_MET
For the other question, it could be various problem check your errors log journalctl -p err -b -r to get some hints.

wifi75
Posts: 28
Joined: Tue Aug 27, 2019 2:26 pm

Re: apache2 log error

Post by wifi75 » Wed Aug 28, 2019 12:47 pm

jeanmarc wrote:
Wed Aug 28, 2019 12:42 pm
Yes, that was the issue for Undefined variable: LASTD_MET
For the other question, it could be various problem check your errors log journalctl -p err -b -r to get some hints.
Ok I will send the command log journalctl -p err -b -r as soon as I get home, unfortunately the system has crashed and I can't log in remotely.

the first thing I will do is replace the microsd with a new one.

wifi75
Posts: 28
Joined: Tue Aug 27, 2019 2:26 pm

Re: apache2 log error

Post by wifi75 » Wed Aug 28, 2019 4:31 pm

hello after command I have this error:

Code: Select all

ago 28 17:28:21 123Solar_MeterN systemd[1]: Failed to start Fail2Ban Service.
ago 28 17:28:20 123Solar_MeterN systemd[1]: Failed to start Fail2Ban Service.
ago 28 17:28:19 123Solar_MeterN systemd[1]: Failed to start Fail2Ban Service.
ago 28 17:28:19 123Solar_MeterN systemd[1]: Failed to start Fail2Ban Service.
ago 28 17:28:18 123Solar_MeterN systemd[1]: Failed to start Fail2Ban Service.
ago 28 17:28:17 123Solar_MeterN systemd[1]: Failed to start Fail2Ban Service.
ago 28 17:28:17 123Solar_MeterN systemd[1]: Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
ago 28 17:28:17 123Solar_MeterN systemd[1]: Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
ago 28 17:28:17 123Solar_MeterN systemd[1]: Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
ago 28 17:28:16 123Solar_MeterN systemd[1]: Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
ago 28 17:28:16 123Solar_MeterN systemd[1]: Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
ago 28 17:28:16 123Solar_MeterN systemd[1]: Failed to start Mosquitto MQTT v3.1/v3.1.1 Broker.
ago 28 13:34:28 123Solar_MeterN bluetoothd[540]: Failed to set privacy: Rejected (0x0b)
ago 28 13:34:28 123Solar_MeterN bluetoothd[540]: sap-server: Operation not permitted (1)
ago 28 13:34:28 123Solar_MeterN bluetoothd[540]: Sap driver initialization failed.
ago 28 13:34:28 123Solar_MeterN bluetoothd[540]: Failed to obtain handles for "Service Changed" characteris
ago 28 13:34:21 123Solar_MeterN systemd[1]: Failed to start dhcpcd on all interfaces.
ago 28 13:34:20 123Solar_MeterN kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 20
ago 28 13:34:20 123Solar_MeterN kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for
ago 28 13:34:20 123Solar_MeterN kernel: brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for

jeanmarc
Posts: 2038
Joined: Thu Aug 29, 2013 7:16 am

Re: apache2 log error

Post by jeanmarc » Wed Aug 28, 2019 5:23 pm

I'am not sure what's hangs your system but you have issue with Fail2Ban & Mosquitto.
You can get more details with systemctl status mosquitto and systemctl status fail2ban

jeanmarc
Posts: 2038
Joined: Thu Aug 29, 2013 7:16 am

Re: apache2 log error

Post by jeanmarc » Wed Aug 28, 2019 5:28 pm

You could also check if a process eat your CPU/RAM via top, check the ram free -m and your disk space df -h

wifi75
Posts: 28
Joined: Tue Aug 27, 2019 2:26 pm

Re: apache2 log error

Post by wifi75 » Thu Aug 29, 2019 12:02 pm

top:

Code: Select all

13762 www-data  20   0   72184  18488  15192 R  21,5  1,9  26:30.22 php
  108 root      20   0   35100   7104   6676 R  15,2  0,7  16:57.96 systemd-jo+
  419 root      20   0   23756   2832   2156 S   4,3  0,3   5:18.78 rsyslogd
 3332 www-data  20   0    3416   2476   2232 S   3,0  0,3   5:47.12 pooler485
19096 root      20   0    8108   3248   2792 R   1,3  0,3   0:00.09 top
 3330 www-data  20   0   73344  19436  15404 S   1,0  2,0   2:24.72 php
   21 root      20   0       0      0      0 S   0,3  0,0   0:03.43 ksoftirqd/2
  422 root      20   0   10564   2724   2192 S   0,3  0,3   0:05.53 wpa_suppli+
24884 root      20   0       0      0      0 I   0,3  0,0   0:00.15 kworker/u8+
    1 root      20   0   28236   6188   4896 S   0,0  0,7   0:03.42 systemd
    2 root      20   0       0      0      0 S   0,0  0,0   0:00.03 kthreadd
    3 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 rcu_gp
    4 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 rcu_par_gp
    8 root       0 -20       0      0      0 I   0,0  0,0   0:00.00 mm_percpu_+
    9 root      20   0       0      0      0 S   0,0  0,0   0:04.73 ksoftirqd/0
   10 root      20   0       0      0      0 I   0,0  0,0   0:39.47 rcu_sched
   11 root      20   0       0      0      0 I   0,0  0,0   0:00.00 rcu_bh

Free -m

Code: Select all

 total        used        free      shared  buff/cache   available
Mem:            926         123          87         511         715         227
Swap:        0           0           0  


df -h

Code: Select all

File system     Dim. Usati Dispon. Uso% Montato su
/dev/root        30G  2,1G     27G   8% /
devtmpfs        459M     0    459M   0% /dev
tmpfs           464M   24K    464M   1% /dev/shm
tmpfs           464M   47M    417M  11% /run
tmpfs           5,0M  4,0K    5,0M   1% /run/lock
tmpfs           464M     0    464M   0% /sys/fs/cgroup
tmpfs           464M     0    464M   0% /tmp
tmpfs           464M  460M    3,8M 100% /var/log
tmpfs            20M     0     20M   0% /tmp/domoticz
/dev/mmcblk0p1   41M   23M     19M  55% /boot
tmpfs            93M     0     93M   0% /run/user/0

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests