Keine /var/log/hmserver.log

Debian/Ubuntu basierte CCU

Moderator: Co-Administratoren

Antworten
alexirion
Beiträge: 50
Registriert: 18.03.2009, 00:49
Hat sich bedankt: 4 Mal
Danksagung erhalten: 1 Mal

Keine /var/log/hmserver.log

Beitrag von alexirion » 26.11.2022, 22:11

Hallo!
Ich bekomme keine /var/log/hmserver.log Datei. Ist das normal?
Im Attachment das /var/log/syslog

Ist das kritisch?

Nov 26 20:31:01 homeserver2 start_hmserver.sh[1232]: ERROR StatusLogger Reconfiguration failed: No configuration found for '16d3586' at 'null' in 'null'

Viele Grüsse,
--Alex
Dateianhänge
syslog.txt
(2.56 MiB) 16-mal heruntergeladen

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: Keine /var/log/hmserver.log

Beitrag von deimos » 27.11.2022, 03:45

Hi,

das ist nicht normal und dürfte kritisch sein.

Was liefert debmatic-info? Was für Hardware und Software verwendest du?

Viele Grüße
Alex

alexirion
Beiträge: 50
Registriert: 18.03.2009, 00:49
Hat sich bedankt: 4 Mal
Danksagung erhalten: 1 Mal

Re: Keine /var/log/hmserver.log

Beitrag von alexirion » 27.11.2022, 06:36

debmatic-info
debmatic version: 3.65.11-97
Kernel modules: Available
Raw UART dev: Available
HMRF Hardware: HM-MOD-RPI-PCB
Connected via: GPIO@fe201000.serial (/dev/raw-uart)
Board serial: SEQ1774417
Radio MAC: 0x75259B
HMIP Hardware: HM-MOD-RPI-PCB
Connected via: GPIO@fe201000.serial (/dev/raw-uart)
SGTIN: 3014F711A061A7DD89A47B51
Radio MAC: 0xB2A2FC

ls -l /var/log
insgesamt 9684
drwxr-xr-x 2 root root 4096 Nov 27 00:00 apt
-rw-r----- 1 root adm 31123 Nov 27 06:25 auth.log
-rw-rw---- 1 root utmp 0 Nov 26 19:40 btmp
-rw-r----- 1 root adm 833605 Nov 27 06:27 daemon.l
og
-rw-r----- 1 root adm 1437189 Nov 27 06:27 debug
-rw-r--r-- 1 root root 0 Nov 27 00:00 dpkg.log
-rw-r--r-- 1 root root 5568 Nov 26 21:44 dpkg.log
.1
-rw-r----- 1 root adm 257590 Nov 26 21:46 kern.log
-rw-rw-r-- 1 root utmp 292584 Nov 27 06:25 lastlog
drwxr-x--- 2 www-data www-data 4096 Nov 27 00:00 lighttpd
-rw-r----- 1 root adm 2798 Nov 27 06:25 mail.err
-rw-r----- 1 root adm 2798 Nov 27 06:25 mail.inf
o
-rw-r----- 1 root adm 2798 Nov 27 06:25 mail.log
-rw-r----- 1 root adm 2798 Nov 27 06:25 mail.war
n
-rw-r----- 1 root adm 1755736 Nov 26 22:38 messages
drwxrwxr-t 2 root postgres 4096 Nov 27 00:00 postgres
ql
drwx------ 2 root root 4096 Nov 26 19:40 private
-rw-r----- 1 root adm 4049523 Nov 27 06:27 syslog
-rw-r----- 1 root adm 1435212 Nov 27 06:27 user.log
-rw-rw-r-- 1 root utmp 27648 Nov 27 06:25 wtmp

Hardware:
RPI4 8GB
Geekworm X872 M2 NVMe SSD
HM-MOD-RPI-PCB

Debian Buster

Benutzeravatar
deimos
Beiträge: 5396
Registriert: 20.06.2017, 10:38
System: Alternative CCU (auf Basis OCCU)
Wohnort: Leimersheim
Hat sich bedankt: 121 Mal
Danksagung erhalten: 957 Mal
Kontaktdaten:

Re: Keine /var/log/hmserver.log

Beitrag von deimos » 27.11.2022, 07:47

Hi,

Debian Buster oder Raspberry Pi OS Buster? 32 oder 64 Bit?

Viele Grüße
Alex

alexirion
Beiträge: 50
Registriert: 18.03.2009, 00:49
Hat sich bedankt: 4 Mal
Danksagung erhalten: 1 Mal

Re: Keine /var/log/hmserver.log

Beitrag von alexirion » 27.11.2022, 08:24

Raspian GNU/Linux 10 (buster)
32 Bit
apt upgrade hatte ich vor debmatic Installation ausgeführt, sollte also alles aktuell sein.
Wird das hmserver.log immer fest in /var/log/hmserver.log geschrieben, oder gehen die Ausgaben durch ein Logging Framework, das ev. wo anders hin speichert?
--Alex

alexirion
Beiträge: 50
Registriert: 18.03.2009, 00:49
Hat sich bedankt: 4 Mal
Danksagung erhalten: 1 Mal

Re: Keine /var/log/hmserver.log

Beitrag von alexirion » 27.11.2022, 13:58

Also, das debmatic-hmserver.service verweist auf /etc/config/log4j2.xml und hier wird ein Appender für das /var/log/hmserver.log erstellt. Sieht doch eigentlich ok aus, oder? Das hmserver.log sollte man nach ein paar Minuten bekommen, oder?

systemctl status debmatic-hmserver
● debmatic-hmserver.service - debmatic hmserver
Loaded: loaded (/lib/systemd/system/debmatic-hmserver.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2022-11-27 08:42:14 CET; 5h 11min ago
Process: 1257 ExecStartPre=/usr/share/debmatic/bin/add_fw_block.sh debmatic_hmserver 32010 39292 (code=exited, status=0/SUCCESS)
Process: 1264 ExecStart=/usr/share/debmatic/bin/start_hmserver.sh (code=exited, status=0/SUCCESS)
Main PID: 1284 (java)
Tasks: 52 (limit: 4915)
CGroup: /system.slice/debmatic-hmserver.service
└─1284 /usr/lib/jvm/java-1.8.0-openjdk-armhf/bin/java -Xmx128m -Dlog4j.configuration=file:///etc/config/log4j2.xml -Dfile.encoding=ISO-8859-1 -Dgnu.io.rxtx.SerialPorts=/dev/mmd_hmip -cp /opt/HMServer/coupling/ESHBridge.jar:/opt/HMServer/HMIPServer.jar de.eq3.ccu.server.ip.HMIPServer /var/run/crRFD.conf /etc/HMServer.conf

homenet@homeserver2(rw):~$ cat /etc/config/log4j2.xml
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="info">
<Appenders>
<RollingFile name="File" fileName="/var/log/hmserver.log" filePattern="/var/log/hmserver.log.%i">
<PatternLayout>
<Pattern>%d %c %-5p [%t] %m %n</Pattern>
</PatternLayout>
<Policies>
<SizeBasedTriggeringPolicy size="2MB" />
</Policies>
<DefaultRolloverStrategy max="1" />
</RollingFile>
<Syslog name="SYSLOG" host="127.0.0.1" port="514" protocol="UDP"
facility="LOCAL0" appName="HmIPServer" format="RFC5424">
<PatternLayout>
<Pattern>%d{ISO8601_BASIC} %c %pid %-5p [%t] %m</Pattern>
</PatternLayout>
</Syslog>
</Appenders>
<Loggers>
<Logger name="de.eq3" level="info"/>
<Logger name="org" level="error"/>
<Logger name="com" level="error"/>
<Root level="info">
<AppenderRef ref="File" />
</Root>
</Loggers>
</Configuration>

alexirion
Beiträge: 50
Registriert: 18.03.2009, 00:49
Hat sich bedankt: 4 Mal
Danksagung erhalten: 1 Mal

Re: Keine /var/log/hmserver.log

Beitrag von alexirion » 27.11.2022, 14:39

Ich habe in "/usr/share/debmatic/bin/start_hmserver.sh"

-Dlog4j.configuration=file:///etc/config/log4j2.xml

geändert zu:

-Dlog4j.configurationFile=file:///etc/config/log4j2.xml

und habe damit ein hmserver.log File bekommen.

"This is because the log4j.configuration expects the file to be in the classpath, while log4j.configurationFile expects it as a file path."
https://stackoverflow.com/questions/665 ... r-73d16e93

Frage ist nur, warum das jetzt nur bei mir ein Problem war?

--Alex

Ralf E.
Beiträge: 18
Registriert: 19.11.2022, 15:22
System: CCU
Wohnort: Nordöstliches Hamburg
Hat sich bedankt: 1 Mal

Re: Keine /var/log/hmserver.log

Beitrag von Ralf E. » 01.12.2022, 08:31

Moin,
alexirion hat geschrieben:
27.11.2022, 14:39
Frage ist nur, warum das jetzt nur bei mir ein Problem war?
war bei mir auch nicht vorhanden bis ich Deine genannte Änderung durchgeführt habe. Hatte Debmatic 3.65.8-95 am 18.11 auf eine andere Maschine (Raspbian, Buster, 32-bit) umgezogen und Debmatic dort auch neu installiert.

Gerade gesehen, dass Alex das wohl vor ein paar Tagen auf github gefixed hat...

Gruß Ralf
Fhem (EnOcean, Hue) + Debmatic(HmIP) auf Raspberry Pi 4

alexirion
Beiträge: 50
Registriert: 18.03.2009, 00:49
Hat sich bedankt: 4 Mal
Danksagung erhalten: 1 Mal

Re: Keine /var/log/hmserver.log

Beitrag von alexirion » 01.12.2022, 08:45

Ja, der Fix ist auf Master.
--Alex

Antworten

Zurück zu „debmatic“