I cannot see/find any particular interesting things in the logs.
In the settings.ini of emoncms, I set the log level to INFO.
The lowest log level that I can configure in settings.ini is INFO.
[log]
; Log Level: 1=INFO, 2=WARN, 3=ERROR
level = 1
I am not sure how to configure a lower loglevel here. I tried level = 0, but that does not work.
In my case, there are 20 topics updating every seconds and there are 3 topics updating every minute. The 20 topics every second are fed with data from a Python script running on the same Raspberry Pi.
From tail /var/log/emoncms/emoncms.log
2023-08-08 19:07:37.-125|INFO|emoncms_mqtt.php|emon/SolarEdge/Vermogen P1 -0.0
2023-08-08 19:07:37.-111|INFO|emoncms_mqtt.php|emon/SolarEdge/Vermogen P2 -0.0
2023-08-08 19:07:37.-98|INFO|emoncms_mqtt.php|emon/SolarEdge/Vermogen P3 -0.0
2023-08-08 19:07:37.-84|INFO|emoncms_mqtt.php|emon/SolarEdge/current 0.0
2023-08-08 19:07:37.-71|INFO|emoncms_mqtt.php|emon/SolarEdge/l1_current 0.0
2023-08-08 19:07:37.-57|INFO|emoncms_mqtt.php|emon/SolarEdge/l2_current 0.0
2023-08-08 19:07:37.-44|INFO|emoncms_mqtt.php|emon/SolarEdge/l3_current 0.0
2023-08-08 19:07:37.-21|INFO|emoncms_mqtt.php|emon/SolarEdge/l1n_voltage 232.3
2023-08-08 19:07:37.-08|INFO|emoncms_mqtt.php|emon/SolarEdge/l2n_voltage 232.20000000000002
2023-08-08 19:07:38.005|INFO|emoncms_mqtt.php|emon/SolarEdge/l3n_voltage 232.3
2023-08-08 19:07:38.019|INFO|emoncms_mqtt.php|emon/SolarEdge/frequency 49.97
2023-08-08 19:07:38.032|INFO|emoncms_mqtt.php|emon/SolarEdge/power_apparent 0.0
2023-08-08 19:07:38.045|INFO|emoncms_mqtt.php|emon/SolarEdge/power_reactive 0.0
2023-08-08 19:07:38.059|INFO|emoncms_mqtt.php|emon/SolarEdge/power_factor 0.0
2023-08-08 19:07:38.072|INFO|emoncms_mqtt.php|emon/SolarEdge/current_dc 0.0
2023-08-08 19:07:38.085|INFO|emoncms_mqtt.php|emon/SolarEdge/voltage_dc 23.200000000000003
2023-08-08 19:07:38.098|INFO|emoncms_mqtt.php|emon/SolarEdge/power_dc 0.0
2023-08-08 19:07:38.112|INFO|emoncms_mqtt.php|emon/SolarEdge/temperature 36.32
2023-08-08 19:07:38.-222|INFO|emoncms_mqtt.php|emon/SolarEdge/Vermogen 0.0
2023-08-08 19:07:38.-208|INFO|emoncms_mqtt.php|emon/SolarEdge/Energie 50363.852
2023-08-08 19:07:38.-194|INFO|emoncms_mqtt.php|emon/SolarEdge/Vermogen P1 -0.0
2023-08-08 19:07:38.-180|INFO|emoncms_mqtt.php|emon/SolarEdge/Vermogen P2 -0.0
2023-08-08 19:07:38.-166|INFO|emoncms_mqtt.php|emon/SolarEdge/Vermogen P3 -0.0
2023-08-08 19:07:38.-153|INFO|emoncms_mqtt.php|emon/SolarEdge/current 0.0
2023-08-08 19:07:38.-139|INFO|emoncms_mqtt.php|emon/SolarEdge/l1_current 0.0
2023-08-08 19:07:38.-126|INFO|emoncms_mqtt.php|emon/SolarEdge/l2_current 0.0
2023-08-08 19:07:38.-113|INFO|emoncms_mqtt.php|emon/SolarEdge/l3_current 0.0
2023-08-08 19:07:38.-100|INFO|emoncms_mqtt.php|emon/SolarEdge/l1n_voltage 232.60000000000002
2023-08-08 19:07:38.-86|INFO|emoncms_mqtt.php|emon/SolarEdge/l2n_voltage 231.9
2023-08-08 19:07:38.-73|INFO|emoncms_mqtt.php|emon/SolarEdge/l3n_voltage 232.60000000000002
2023-08-08 19:07:38.-60|INFO|emoncms_mqtt.php|emon/SolarEdge/frequency 49.97
2023-08-08 19:07:38.-47|INFO|emoncms_mqtt.php|emon/SolarEdge/power_apparent 0.0
2023-08-08 19:07:38.-33|INFO|emoncms_mqtt.php|emon/SolarEdge/power_reactive 0.0
2023-08-08 19:07:38.-20|INFO|emoncms_mqtt.php|emon/SolarEdge/power_factor 0.0
2023-08-08 19:07:38.-07|INFO|emoncms_mqtt.php|emon/SolarEdge/current_dc 0.0
2023-08-08 19:07:39.005|INFO|emoncms_mqtt.php|emon/SolarEdge/voltage_dc 22.400000000000002
2023-08-08 19:07:39.019|INFO|emoncms_mqtt.php|emon/SolarEdge/power_dc 0.0
2023-08-08 19:07:39.032|INFO|emoncms_mqtt.php|emon/SolarEdge/temperature 36.29
2023-08-08 19:07:39.-220|INFO|emoncms_mqtt.php|emon/SolarEdge/Vermogen 0.0
2023-08-08 19:07:39.-207|INFO|emoncms_mqtt.php|emon/SolarEdge/Energie 50363.852
2023-08-08 19:07:39.-195|INFO|emoncms_mqtt.php|emon/SolarEdge/Vermogen P1 -0.0
2023-08-08 19:07:39.-183|INFO|emoncms_mqtt.php|emon/SolarEdge/Vermogen P2 -0.0
2023-08-08 19:07:39.-171|INFO|emoncms_mqtt.php|emon/SolarEdge/Vermogen P3 -0.0
2023-08-08 19:07:39.-159|INFO|emoncms_mqtt.php|emon/SolarEdge/current 0.0
2023-08-08 19:07:39.-147|INFO|emoncms_mqtt.php|emon/SolarEdge/l1_current 0.0
2023-08-08 19:07:39.-135|INFO|emoncms_mqtt.php|emon/SolarEdge/l2_current 0.0
2023-08-08 19:07:39.-122|INFO|emoncms_mqtt.php|emon/SolarEdge/l3_current 0.0
2023-08-08 19:07:39.-110|INFO|emoncms_mqtt.php|emon/SolarEdge/l1n_voltage 232.5
2023-08-08 19:07:39.-98|INFO|emoncms_mqtt.php|emon/SolarEdge/l2n_voltage 231.8
2023-08-08 19:07:39.-86|INFO|emoncms_mqtt.php|emon/SolarEdge/l3n_voltage 232.20000000000002
2023-08-08 19:07:39.-74|INFO|emoncms_mqtt.php|emon/SolarEdge/frequency 49.97
2023-08-08 19:07:39.-62|INFO|emoncms_mqtt.php|emon/SolarEdge/power_apparent 0.0
2023-08-08 19:07:39.-50|INFO|emoncms_mqtt.php|emon/SolarEdge/power_reactive 0.0
2023-08-08 19:07:39.-38|INFO|emoncms_mqtt.php|emon/SolarEdge/power_factor 0.0
2023-08-08 19:07:39.-26|INFO|emoncms_mqtt.php|emon/SolarEdge/current_dc 0.0
2023-08-08 19:07:39.-14|INFO|emoncms_mqtt.php|emon/SolarEdge/voltage_dc 21.400000000000002
2023-08-08 19:07:39.-02|INFO|emoncms_mqtt.php|emon/SolarEdge/power_dc 0.0
2023-08-08 19:07:40.009|INFO|emoncms_mqtt.php|emon/SolarEdge/temperature 36.29
More details on the installation, note EmonHUB is disabled
Server Information
-----------------------
Services
emoncms_mqtt : Active Running
feedwriter : Active Running - sleep 300s 0 feed points pending write
service-runner : Active Running
redis-server : Active Running
mosquitto : Active Running
demandshaper : Active Running
emonPiLCD : Failed loaded failed failed
emonhub : Inactive loaded inactive dead
Emoncms
Version : low-write 11.3.22
Git :
URL : https://github.com/emoncms/emoncms.git
Branch : * stable
Describe : 11.3.22
Components : Emoncms Core v11.3.22 | App v2.7.3 | EmonHub Config v2.1.5 | Dashboard v2.3.3 | Device v2.2.2 | Graph v2.2.3 | Network Setup v1.0.2 | WiFi v2.1.1 | Backup v2.3.2 | DemandShaper v2.2.2 | Postprocess v2.2.7 | Sync v2.1.4 | Usefulscripts v2.3.10 | EmonScripts v1.6.20 | RFM2Pi v1.4.1 | Avrdude-rpi v1.0.1 | Emonhub v2.5.8 | EmonPi v2.9.5
Server
CPU : 1 Threads(s) | 4 Core(s) | 1 Sockets(s) | Cortex-A53 | 76.80MIPS |
OS : Linux 5.10.103-v7+
Host : emonpi | emonpi | (192.168.178.35)
Date : 2023-08-08 21:15:44 CEST
Uptime : 21:15:44 up 13 min, 1 user, load average: 0.06, 0.11, 0.09
Memory
RAM : Used: 40.22%
Total : 923.21 MB
Used : 371.28 MB
Free : 551.93 MB
Swap : Used: 0.00%
Total : 100 MB
Used : 0 B
Free : 100 MB
Disk
: - / : Used: 12.94%
Total : 19.41 GB
Used : 2.51 GB
Free : 16.08 GB
Read Load : n/a
Write Load : n/a
Load Time : n/a
/var/opt/emoncms : Used: 0.04%
Total : 9.56 GB
Used : 3.77 MB
Free : 9.07 GB
Read Load : n/a
Write Load : n/a
Load Time : n/a
/boot : Used: 19.14%
Total : 252.05 MB
Used : 48.24 MB
Free : 203.81 MB
Read Load : n/a
Write Load : n/a
Load Time : n/a
/var/log : Used: 9.03%
Total : 50 MB
Used : 4.52 MB
Free : 45.48 MB
Read Load : n/a
Write Load : n/a
Load Time : n/a
HTTP
Server : Apache/2.4.38 (Raspbian) HTTP/1.1 CGI/1.1 80
MySQL
Version : 10.3.39-MariaDB-0+deb10u1
Host : 127.0.0.1 (127.0.0.1)
Date : 2023-08-08 21:15:43 (UTC 02:00)
Stats : Uptime: 799 Threads: 12 Questions: 532 Slow queries: 0 Opens: 47 Flush tables: 1 Open tables: 40 Queries per second avg: 0.665
Redis
Version :
Redis Server : 5.0.14
PHP Redis : 6.0.0-dev
Host : localhost:6379
Size : 62 keys (864.45K)
Uptime : 0 days
MQTT Server
Version : Mosquitto 1.5.7
Host : localhost:1883 (127.0.0.1)
PHP
Version : 8.1.21 (Zend Version 4.1.21)
Run user : User: www-data Group: www-data video Script Owner: pi
Modules : apache2handler calendar Core ctype curl date exif FFI fileinfo filter ftp gd gettext hash iconv json libxml mbstring mosquitto v0.4.0mysqli mysqlnd vmysqlnd 8.1.21openssl pcre PDO pdo_mysql Phar posix readline redis v6.0.0-devReflection session shmop sockets sodium SPL standard sysvmsg sysvsem sysvshm tokenizer Zend OPcache zlib
Pi
Model : Raspberry Pi 3 Model B Rev 1.2 - 1GB (Sony UK)
Serial num. : 3C1E76BB
CPU Temperature : 44.01°C
GPU Temperature : 44.5°C
emonpiRelease : emonSD-10Nov22
File-system : read-write
Furthermore the full apache2 log (/var/log/apache2/error.log):
[Wed Jul 26 18:12:14.821059 2023] [mpm_event:notice] [pid 1908:tid 1996177984] AH00489: Apache/2.4.38 (Raspbian) configured -- resuming normal operations
[Wed Jul 26 18:12:14.821533 2023] [core:notice] [pid 1908:tid 1996177984] AH00094: Command line: '/usr/sbin/apache2'
[Wed Jul 26 18:12:22.921236 2023] [mpm_event:notice] [pid 1908:tid 1996177984] AH00491: caught SIGTERM, shutting down
which only contains old messages.
The apach2-error.log contains:
AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.178.35/input/view
[Tue Aug 08 21:07:25.651145 2023] [deflate:debug] [pid 812] mod_deflate.c(856): [client 192.168.178.201:52522] AH01384: Zlib: Compressed 2723 to 381 : URL /index.php, referer: http://192.168.178.35/input/view
[Tue Aug 08 21:07:30.588389 2023] [authz_core:debug] [pid 812] mod_authz_core.c(820): [client 192.168.178.201:52522] AH01626: authorization result of Require all granted: granted, referer: http://192.168.178.35/input/view
[Tue Aug 08 21:07:30.588474 2023] [authz_core:debug] [pid 812] mod_authz_core.c(820): [client 192.168.178.201:52522] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.178.35/input/view
[Tue Aug 08 21:07:30.588799 2023] [authz_core:debug] [pid 812] mod_authz_core.c(820): [client 192.168.178.201:52522] AH01626: authorization result of Require all granted: granted, referer: http://192.168.178.35/input/view
[Tue Aug 08 21:07:30.588829 2023] [authz_core:debug] [pid 812] mod_authz_core.c(820): [client 192.168.178.201:52522] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.178.35/input/view
[Tue Aug 08 21:07:30.600931 2023] [deflate:debug] [pid 812] mod_deflate.c(856): [client 192.168.178.201:52522] AH01384: Zlib: Compressed 227 to 98 : URL /index.php, referer: http://192.168.178.35/input/view
[Tue Aug 08 21:07:30.622558 2023] [authz_core:debug] [pid 812] mod_authz_core.c(820): [client 192.168.178.201:52522] AH01626: authorization result of Require all granted: granted, referer: http://192.168.178.35/input/view
[Tue Aug 08 21:07:30.622626 2023] [authz_core:debug] [pid 812] mod_authz_core.c(820): [client 192.168.178.201:52522] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.178.35/input/view
[Tue Aug 08 21:07:30.622941 2023] [authz_core:debug] [pid 812] mod_authz_core.c(820): [client 192.168.178.201:52522] AH01626: authorization result of Require all granted: granted, referer: http://192.168.178.35/input/view
[Tue Aug 08 21:07:30.622971 2023] [authz_core:debug] [pid 812] mod_authz_core.c(820): [client 192.168.178.201:52522] AH01626: authorization result of <RequireAny>: granted, referer: http://192.168.178.35/input/view
[Tue Aug 08 21:07:30.651872 2023] [deflate:debug] [pid 812] mod_deflate.c(856): [client 192.168.178.201:52522] AH01384: Zlib: Compressed 2697 to 379 : URL /index.php, referer: http://192.168.178.35/input/view
And lastly the redis log:
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 5.0.14 (00000000/0) 32 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'| Port: 6379
| `-._ `._ / _.-' | PID: 693
`-._ `-._ `-./ _.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' | http://redis.io
`-._ `-._`-.__.-'_.-' _.-'
|`-._`-._ `-.__.-' _.-'_.-'|
| `-._`-._ _.-'_.-' |
`-._ `-._`-.__.-'_.-' _.-'
`-._ `-.__.-' _.-'
`-._ _.-'
`-.__.-'
693:M 08 Aug 2023 21:02:24.570 # Server initialized
693:M 08 Aug 2023 21:02:24.570 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
693:M 08 Aug 2023 21:02:24.583 * DB loaded from disk: 0.012 seconds
693:M 08 Aug 2023 21:02:24.583 * Ready to accept connections