Hallo,
ich habe das Logfile von Fhem auf monatlich "./log/fhem-%Y-%m.log" umgestellt.
Das Logfile wird auch am ersten des Monats angelegt, beschreibt es aber erst nach einem shutdown restart
Bei allen anderen Logfiles funktioniert es nur das von Fhem nicht.
Was kann ich oder wer machen ???
Wünsche einen angenehmen 1. Advent und Gruß
Werner
Da brauche ich mehr Details, das monatliche Wechsel funktioniert seit knapp 10 jahren bei mir problemlos, will sagen es ist kein generelles Problem.
welche Details sollen es sein ??
für den nächsten Wechsel werde ich nicht zu Hause sein.
Ich muss dann von Unterwegs per VPN neustarten müssen.
Gruß Werner
Jetzt ist vermutlich zu spaet, aber:
- hat der FHEM-Rechner ein korrektes Datum
- Was fuer ein OS/Hardware wird verwendet
- Ausgabe von "list global"
- Ausgabe von { $currlogfile }
- Inhalt vom alten Logfile nach dem Monatswechsel
Datum ist korrekt
Jessie aktuell auf Raspberry Pi 3
Ausgabe von list global
Internals:
DEF no definition
NAME global
NR 1
STATE no definition
TYPE Global
currentlogfile ./log/fhem-2016-11.log
logfile ./log/fhem-%Y-%m.log
Attributes:
autoload_undefined_devices 1
blockingCallMax 3
configfile fhem.cfg
devStateIcon icon room_map structexclude webCmd
exclude_from_update 73_PRESENCE.pm
holiday2we Rheinland
language DE
latitude 50.559125
logfile ./log/fhem-%Y-%m.log
longitude 7.649914
modpath .
motd SecurityCheck:
WEB,WEBphone,WEBtablet has no associated allowed device with basicAuth.
telnetPort has no associated allowed device with password/globalpassword.
Restart FHEM for a new check if the problem is fixed,
or set the global attribute motd to none to supress this message.
sendStatistics onUpdate
showInternalValues 1
sslVersion TLSv12:!SSLv3
stacktrace 0
statefile ./log/fhem.save
updateInBackground 1
userattr cmdIcon devStateIcon devStateStyle icon readingsSupervision sortby webCmd widgetOverride
verbose 3
version fhem.pl:12596/2016-11-17
Ausgabe von { $currlogfile }
./log/fhem-2016-11.log
die letzten Zeilen aus fhem-2016-10.log dem Vormonat
2016.10.31 23:40:18 3: [WernerPC] set WernerPC off
2016.10.31 23:40:18 3: [WernerPC] shutdownCmd: {`net rpc shutdown -I WERNER-PC -U meini%geheim`} executed
mkdir failed on directory /var/cache/samba/lck: Keine Berechtigung
2016.10.31 23:40:19 3: [WernerPC]
Shutdown of remote machine succeeded
2016.10.31 23:40:20 2: CUL_433 IT_set: Schlaf_Bett on
2016.10.31 23:42:20 2: CUL_433 IT_set: AZ_PC off
die neue fhem-2016-11.log
2016.11.01 00:00:01 2: Moving AB_Kammer_LaC-2016-10.log to ./log-archive/
2016.11.01 00:00:01 2: Moving AZ_Heizung-2016-10.log to ./log-archive/
2016.11.01 00:00:01 2: Moving AZ_Temp-2016-10.log to ./log-archive/
2016.11.01 00:00:02 2: Moving Aussen_Sued_Temp-2016-10.log to ./log-archive/
2016.11.01 00:00:02 2: Moving Bad_Fenster-2016-10.log to ./log-archive/
2016.11.01 00:00:02 2: Moving Bad_Temp-2016-10.log to ./log-archive/
2016.11.01 00:00:02 2: Moving Balkon_Rollo_Alarm-2016-10.log to ./log-archive/
2016.11.01 00:00:03 2: Moving Flur_Temp-2016-10.log to ./log-archive/
2016.11.01 00:00:03 2: Moving Flur_Tuer_Eingang-2016-10.log to ./log-archive/
2016.11.01 00:00:03 2: Moving Keller_Temp-2016-10.log to ./log-archive/
2016.11.01 00:00:03 2: Moving Kueche_Temp-2016-10.log to ./log-archive/
2016.11.01 00:00:03 2: Moving Kuehlschrank_Temp-2016-10.log to ./log-archive/
2016.11.01 00:00:03 2: Moving LaCrosse_15-2016-10.log to ./log-archive/
2016.11.01 00:00:04 2: Moving LaCrosse_39-2016-10.log to ./log-archive/
2016.11.01 00:00:05 2: Moving Schlaf_Fenster_links-2016-10.log to ./log-archive/
2016.11.01 00:00:05 2: Moving Schlaf_Fenster_rechts-2016-10.log to ./log-archive/
2016.11.01 00:00:05 2: Moving Schlaf_Temp-2016-10.log to ./log-archive/
2016.11.01 00:00:05 2: Moving SpeedTest-2016-10.log to ./log-archive/
2016.11.01 00:00:05 2: Moving spritpreise-dierdorf-2016-10.log to ./log-archive/
2016.11.01 00:00:05 2: Moving Stromzaehler-2016-10.log to ./log-archive/
2016.11.01 00:00:06 2: Moving Traffic_Empfangen-2016-10.log to ./log-archive/
2016.11.01 00:00:06 2: Moving Traffic_Gesendet-2016-10.log to ./log-archive/
2016.11.01 00:00:07 2: Moving WZ_Balkontuer-2016-10.log to ./log-archive/
2016.11.01 00:00:07 2: Moving WZ_Heizung-2016-10.log to ./log-archive/
2016.11.01 00:00:07 2: Moving WZ_Temp-2016-10.log to ./log-archive/
2016.11.01 00:00:08 2: Moving WernerS4-2016-10.log to ./log-archive/
2016.11.01 00:00:08 2: Moving fhem-2016-10.log to ./log-archive/
2016.11.01 00:00:08 2: Moving fhem-2016-11.log to ./log-archive/
die ersten Zeilen nach shutdown restart aus fhem-2016-11.log
2016.11.01 08:06:35 1: Including fhem.cfg
2016.11.01 08:06:35 3: telnetPort: port 7072 opened
2016.11.01 08:06:35 3: WEB: port 8083 opened
2016.11.01 08:06:35 3: WEBphone: port 8084 opened
2016.11.01 08:06:35 3: WEBtablet: port 8085 opened
2016.11.01 08:06:36 2: eventTypes: loaded 1418 events from ./log/eventTypes.txt
2016.11.01 08:06:36 3: Opening CUL_868 device /dev/serial/by-id/usb-busware.de_CUL868-if00
2016.11.01 08:06:36 3: Setting CUL_868 serial parameters to 9600,8,N,1
2016.11.01 08:06:36 3: CUL_868: Possible commands: BbCFiAZEGMKUYRTVWXefmltux
2016.11.01 08:06:36 3: CUL_868 device opened
jetzt wo ich das hier schreibe, fällt mir auf das es evtl. was mit "nrarchive 0" zu tun haben könnte
kann das sein ???
Gruß Werner
Zitatjetzt wo ich das hier schreibe, fällt mir auf das es evtl. was mit "nrarchive 0" zu tun haben könnte
Ja. Das Attribut verhielt sich leider bei FileLog anders als bei global, bei FileLog wurde nrarchive exklusive, bei global inklusive der aktuellen Datei gezaehlt. Ich habe das jetzt gefixt (jedenfalls fuer alle "normalen" Faelle), nrarchive wird bei global jetzt auch "exklusive" gezaehlt.
ok, vielen Dank
dann kann ich weiter "nrarchive 0" belassen für Fhem logfile
damit dann gelöst
Schönen Advent
Gruß Werner
Bei mir besteht das Problem weiterhin.
Gestern habe ich ein update gemacht.
List Logfile:
Internals:
DEF ./log/fhem-%Y-%m.log fakelog
NAME Logfile
NR 24
NTFY_ORDER 50-Logfile
REGEXP fakelog
STATE active
TYPE FileLog
currentlogfile ./log/fhem-2016-12.log
logfile ./log/fhem-%Y-%m.log
Readings:
2016-12-01 00:00:01 linesInTheFile 0
Attributes:
archivedir ./log-archive/
nrarchive 0
room 3.01_System
List global:
Internals:
DEF no definition
NAME global
NR 1
STATE no definition
TYPE Global
currentlogfile ./log/fhem-2016-12.log
logfile ./log/fhem-%Y-%m.log
Attributes:
autoload_undefined_devices 1
configfile fhem.cfg
dnsServer 192.168.178.1
exclude_from_update www/images/default/fhemicon.png svg_style.css style.css
language DE
latitude xx.xxxx
logfile ./log/fhem-%Y-%m.log
longitude x.xxxx
modpath .
motd SecurityCheck:
PHPZugang,WEBWandTablet,WEBphone has no associated allowed device with basicAuth.
telnetPort has no associated allowed device with password/globalpassword.
Restart FHEM for a new check if the problem is fixed,
or set the global attribute motd to none to supress this message.
mseclog 1
room 3.01_System
showInternalValues 1
statefile ./log/fhem.save
title FHEM Intel NUC
updateInBackground 1
userattr Fenster Fenster_map FensterundTueren cmdIcon devStateIcon devStateStyle device_timeout fm_type fp fp_Alarmanlage fp_Anwesenheit fp_Automatiken fp_Bad fp_Bildschirmschoner fp_Buero fp_Einkaufsliste fp_FensterundTueren fp_Grundriss fp_HTML_Tracking fp_Heizung fp_Keller fp_Kinderzimmer fp_Kueche fp_Melder fp_Menue fp_Playbulb_Candle fp_Playbulb_Candle_Tisch fp_Rollouebersicht fp_Schaltzeiten fp_Schlafzimmer fp_Slideshow fp_Sonstiges fp_Sonstiges2 fp_Start fp_Startbild fp_System fp_TVSender fp_Tablet fp_Telefon fp_Test fp_Tracking fp_Umwelt fp_Warnungen fp_Wohnzimmer genericDeviceType:switch,outlet,light,blind,speaker,thermostat,ignore,lock,window,contact homebridgeMapping:textField-long icon sortby structexclude webCmd widgetOverride
verbose 3
version fhem.pl:12680/2016-11-28
Grüße Marcel
bei mir hat es heute geklappt.
2016.12.01 00:00:01 2: Moving AB_Kammer_LaC-2016-11.log to ./log-archive/
2016.12.01 00:00:01 2: Moving AZ_Heizung-2016-11.log to ./log-archive/
2016.12.01 00:00:01 2: Moving AZ_Temp-2016-11.log to ./log-archive/
2016.12.01 00:00:02 2: Moving Aussen_Nord_Temp-2016-11.log to ./log-archive/
2016.12.01 00:00:02 2: Moving Aussen_Sued_Temp-2016-11.log to ./log-archive/
2016.12.01 00:00:02 2: Moving Bad_Fenster-2016-11.log to ./log-archive/
2016.12.01 00:00:02 2: Moving Bad_Temp-2016-11.log to ./log-archive/
2016.12.01 00:00:02 2: Moving Balkon_Rollo_Alarm-2016-11.log to ./log-archive/
2016.12.01 00:00:02 2: Moving Flur_Temp-2016-11.log to ./log-archive/
2016.12.01 00:00:02 2: Moving Flur_Tuer_Eingang-2016-11.log to ./log-archive/
2016.12.01 00:00:02 2: Moving Keller_Temp-2016-11.log to ./log-archive/
2016.12.01 00:00:03 2: Moving Kueche_Temp-2016-11.log to ./log-archive/
2016.12.01 00:00:03 2: Moving Kuehlschrank_Temp-2016-11.log to ./log-archive/
2016.12.01 00:00:03 2: Moving LaCrosse_15-2016-11.log to ./log-archive/
2016.12.01 00:00:03 2: Moving Schlaf_Fenster_links-2016-11.log to ./log-archive/
2016.12.01 00:00:03 2: Moving Schlaf_Fenster_rechts-2016-11.log to ./log-archive/
2016.12.01 00:00:03 2: Moving Schlaf_Temp-2016-11.log to ./log-archive/
2016.12.01 00:00:03 2: Moving SpeedTest-2016-11.log to ./log-archive/
2016.12.01 00:00:03 2: Moving spritpreise-dierdorf-2016-11.log to ./log-archive/
2016.12.01 00:00:03 2: Moving Stromzaehler-2016-11.log to ./log-archive/
2016.12.01 00:00:03 2: Moving Traffic_Empfangen-2016-11.log to ./log-archive/
2016.12.01 00:00:04 2: Moving Traffic_Gesendet-2016-11.log to ./log-archive/
2016.12.01 00:00:04 2: Moving WZ_Balkontuer-2016-11.log to ./log-archive/
2016.12.01 00:00:04 2: Moving WZ_Heizung-2016-11.log to ./log-archive/
2016.12.01 00:00:05 2: Moving WZ_Temp-2016-11.log to ./log-archive/
2016.12.01 00:00:05 2: Moving WernerS4-2016-11.log to ./log-archive/
2016.12.01 00:00:05 2: Moving fhem-2016-11.log to ./log-archive/
2016.12.01 06:00:00 3: FHEMBackupOn return value: -1
/backup bereits vorhanden
PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.
64 bytes from 192.168.178.1: icmp_seq=1 ttl=64 time=41.4 ms
--- 192.168.178.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 41.490/41.490/41.490/0.000 ms
192.168.178.1 erreichbar
/fritzbox bereits vorhanden
/fritzbox nicht leer, kein Mounten notwendig
/fritzbox/rpi/mnt//192.168.178.35 existiert bereits
161201_060000_fhem_backup.tar.gz (115 MB) wird in den Backupordner verschoben
Mount wieder unmounten
2016.12.01 06:54:33 3: CUL_HM set AZ_PC on
2016.12.01 06:54:43 3: [WernerPC] set WernerPC on
2016.12.01 06:54:43 3: [WernerPC] waking WernerPC with MAC 6C:62:6D:A0:69:46 IP 192.168.178.20
Can't ignore signal CHLD, forcing to default.
2016.12.01 06:54:43 2: CUL_433 IT_set: Schlaf_Bett off
2016.12.01 06:54:43 2: CUL_433 IT_set: Kueche_Kaffee on
sorry, ich habe noch "nrarchive 1" stehen, aber trotzdem nur ein Logfile auf der Webseite