49_SSCam: Fragen, Hinweise, Neuigkeiten und mehr rund um dieses Modul

Begonnen von DS_Starter, 14 Dezember 2015, 16:19:08

Vorheriges Thema - Nächstes Thema

DS_Starter

Die neue Version ist soeben eingecheckt und morgen früh im Update enthalten.
ESXi 6.5 @NUC6i5SYH mit FHEM auf Debian 10, DbLog/DbRep mit MariaDB auf VM
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

pcjogi

Hallo zusammen,

ich habe das Modul erfolgreich auf einem Raspberry 4 (Buster) eingebunden. Leider bekomme ich es auf einem Raspberry 3 (ebenfalls Buster) nicht zum Laufen. Beide Systeme sind seitens des OS und auch des FHEM auf dem neuesten Stand. Die Fehlersituation auf dem RPi 3 ist folgende:

Wenn ich auf dem System die Definition define SDS2 SSCam SVS 192.168.X.X vornehme (Testweise habe ich auf der Synology den Port 5000 und HTTP wieder aktiviert) wird das Device ordnungsgemäß angelegt. Wenn ich jedoch die dann notwendigen Credentials eingebe (diese sind definitiv richtig und die Synology funktioniert auch s wie erwartet, da das vom RPi 4 funktioniert) stürzt FHEM ab und kommt auch erst wieder wenn ich manuell aus der fhem.cfg die SSCAM Definition wider entferne.

Das fhem.log zeigt mir leider auch keinen wirklichen Ansatz zur Lösung:
2023.04.06 12:54:14 4: SVS - ####################################################
2023.04.06 12:54:14 4: SVS - ###    start cam operation getsvslog
2023.04.06 12:54:14 4: SVS - ####################################################
2023.04.06 12:54:14 4: SVS - --- Start getApiSites ---
2023.04.06 12:54:14 5: SVS - HTTP-Call will be done with httptimeout-Value: 20 s
2023.04.06 12:54:14 4: SVS - API imported:
$VAR1 = {
          'PTZ' => {
                     'mk' => 1,
                     'NAME' => 'SYNO.SurveillanceStation.PTZ'
                   },
          'EVENT' => {
                       'NAME' => 'SYNO.SurveillanceStation.Event',
                       'mk' => 1
                     },
          'HMODE' => {
                       'NAME' => 'SYNO.SurveillanceStation.HomeMode',
                       'mk' => 0
                     },
          'LOG' => {
                     'NAME' => 'SYNO.SurveillanceStation.Log',
                     'mk' => 1
                   },
          'STM' => {
                     'NAME' => 'SYNO.SurveillanceStation.Stream',
                     'mk' => 1
                   },
          'EXTREC' => {
                        'NAME' => 'SYNO.SurveillanceStation.ExternalRecording',
                        'mk' => 1
                      },
          'SVSINFO' => {
                         'NAME' => 'SYNO.SurveillanceStation.Info',
                         'mk' => 1
                       },
          'VIDEOSTM' => {
                          'NAME' => 'SYNO.SurveillanceStation.VideoStreaming',
                          'mk' => 1
                        },
          'INFO' => {
                      'PATH' => 'query.cgi',
                      'NAME' => 'SYNO.API.Info',
                      'mk' => 1,
                      'VER' => 1
                    },
          'VIDEOSTMS' => {
                           'NAME' => 'SYNO.SurveillanceStation.VideoStream',
                           'mk' => 0
                         },
          'AUTH' => {
                      'NAME' => 'SYNO.API.Auth',
                      'mk' => 1
                    },
          'CAM' => {
                     'mk' => 1,
                     'NAME' => 'SYNO.SurveillanceStation.Camera'
                   },
          'PRESET' => {
                        'NAME' => 'SYNO.SurveillanceStation.PTZ.Preset',
                        'mk' => 1
                      },
          'SNAPSHOT' => {
                          'mk' => 1,
                          'NAME' => 'SYNO.SurveillanceStation.SnapShot'
                        },
          'REC' => {
                     'mk' => 1,
                     'NAME' => 'SYNO.SurveillanceStation.Recording'
                   },
          'EXTEVT' => {
                        'mk' => 1,
                        'NAME' => 'SYNO.SurveillanceStation.ExternalEvent'
                      },
          'AUDIOSTM' => {
                          'NAME' => 'SYNO.SurveillanceStation.AudioStream',
                          'mk' => 0
                        },
          'CAMEVENT' => {
                          'mk' => 1,
                          'NAME' => 'SYNO.SurveillanceStation.Camera.Event'
                        }
        };

2023.04.06 12:54:14 4: SVS - Call-Out now: http://192.168.X.X:5000/webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1&query=SYNO.SurveillanceStation.PTZ,SYNO.SurveillanceStation.Event,SYNO.SurveillanceStation.HomeMode,SYNO.Surve>
2023.04.06 12:54:14 3: SVS - Polling of SVS is deactivated

Hat jemand eine Idee wie ich weiter suchen kann?

Danke Jürgen
Haupt-Fhem (Docker auf Synology), Sub-Fhem (433Mhz und 833Mhz) auf RasPi, Sub-Fhem (Heizungssteuerung) auf RasPi, Sub_Fhem (System) auf RasPi, IoBroker zur Darstellung (Docker auf Synology), alles verbunden über einen MQTT Broker, insgesamt ca. 100 Sensoren/Aktoren

DS_Starter

Poste doch mal bitte den Teil des Logs kurz vor dem Absturz bis kurz nach dem Eintrag:

 Including fhem.cfg
 ...

LG
ESXi 6.5 @NUC6i5SYH mit FHEM auf Debian 10, DbLog/DbRep mit MariaDB auf VM
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

pcjogi

Das ist vorher:

2023.04.06 12:54:06 1: Including ./log/fhem.save
2023.04.06 12:54:07 1: Messages collected while initializing FHEM:SecurityCheck:
  WEBDEV is not password protected
  WEB is not password protected

Protect this FHEM installation by defining an allowed device with define allowed allowed
You can disable this message with attr global motd none

2023.04.06 12:54:07 0: HMCCU [d_ccu] Scheduling post FHEM initialization tasks in 12 seconds
2023.04.06 12:54:10 1: usb create starting
sh: 1: echo: echo: I/O error
2023.04.06 12:54:11 3: Probing ZWDongle device /dev/serial0
2023.04.06 12:54:11 1: ZWDongle: Can't open /dev/serial0: Permission denied
2023.04.06 12:54:11 3: Probing CUL device /dev/ttyAMA0
2023.04.06 12:54:11 1: CUL: Can't open /dev/ttyAMA0: Permission denied
2023.04.06 12:54:11 1: usb create end
2023.04.06 12:54:11 3: CORESECURE.SIGNAL: Before parse:@+4915146181689 coresecure gestartet!:
2023.04.06 12:54:11 2: [Freezemon] FREEZEMON: ready to watch out for delays greater than 2 second(s)
2023.04.06 12:54:11 3: NTFY return:  SYSMON.coresecure:Initialized
2023.04.06 12:54:11 0: Featurelevel: 6.2
2023.04.06 12:54:11 0: Server started with 40 defined entities (fhem.pl:27302/2023-03-05 perl:5.032001 os:linux user:fhem pid:21931)
2023.04.06 12:54:11 3: Opening MQTT device 192.168.1.32:1883
2023.04.06 12:54:14 4: SVS - ####################################################
2023.04.06 12:54:14 4: SVS - ###    start cam operation getsvslog
2023.04.06 12:54:14 4: SVS - ####################################################

und das danach:

          'CAMEVENT' => {
                          'mk' => 1,
                          'NAME' => 'SYNO.SurveillanceStation.Camera.Event'
                        }
        };

2023.04.06 12:54:14 4: SVS - Call-Out now: http://192.168.1.11:5000/webapi/query.cgi?api=SYNO.API.Info&method=Query&version=1&query=SYNO.SurveillanceStation.PTZ,SYNO.SurveillanceStation.Event,SYNO.SurveillanceStation.HomeMode,SYNO.Surve>
2023.04.06 12:54:14 3: SVS - Polling of SVS is deactivated
2023.04.06 12:54:16 3: MQTT device opened
2023.04.06 12:54:18 1: [Freezemon] FREEZEMON: possible freeze starting at 12:54:12, delay is 6.721 possibly caused by: no bad guy found :-(
2023.04.06 12:54:19 3: CORESECURE.SIGNAL: Before parse:@+4915146181689 RFID3 Eingang wieder Online:
2023.04.06 12:54:20 1: PERL WARNING: ^* matches null string many times in regex; marked by <-- HERE in m/^* <-- HERE .$/ at ./FHEM/93_DbLog.pm line 1359.
2023.04.06 12:54:20 3: CORESECURE.SIGNAL: Before parse:@+4915146181689 <b>ACHTUNG!!!!<b> RFID Eingang Offline:
2023.04.06 12:54:20 3: CORESECURE.SIGNAL: Before parse:@+4915146181689 <b>ACHTUNG!!!!<b> RFID2 Eingang Offline:
2023.04.06 12:54:20 1: HMCCU [d_ccu] Reading device config from CCU. This may take a couple of seconds ...
2023.04.06 12:54:20 2: HMCCU [d_ccu] Reading Device Descriptions for interface HmIP-RF
2023.04.06 12:54:21 2: HMCCU [d_ccu] Read 80 Device Descriptions for interface HmIP-RF
2023.04.06 12:54:21 2: HMCCU [d_ccu] Reading Paramset Descriptions for interface HmIP-RF
2023.04.06 12:54:30 2: HMCCU [d_ccu] Read 245 Paramset Descriptions for interface HmIP-RF
2023.04.06 12:54:30 2: HMCCU [d_ccu] Reading Peer Descriptions for interface HmIP-RF
2023.04.06 12:54:30 2: HMCCU [d_ccu] Read 0 Peer Descriptions for interface HmIP-RF
2023.04.06 12:54:30 2: HMCCU [d_ccu] Reading Device Descriptions for interface VirtualDevices
2023.04.06 12:54:30 2: HMCCU [d_ccu] Read 0 Device Descriptions for interface VirtualDevices
2023.04.06 12:54:30 2: HMCCU [d_ccu] Reading Paramset Descriptions for interface VirtualDevices
2023.04.06 12:54:30 2: HMCCU [d_ccu] Read 0 Paramset Descriptions for interface VirtualDevices
2023.04.06 12:54:30 2: HMCCU [d_ccu] Reading Peer Descriptions for interface VirtualDevices
2023.04.06 12:54:30 2: HMCCU [d_ccu] Read 0 Peer Descriptions for interface VirtualDevices
2023.04.06 12:54:30 2: HMCCU [d_ccu] Reading Device Descriptions for interface BidCos-RF
2023.04.06 12:54:31 2: HMCCU [d_ccu] Read 210 Device Descriptions for interface BidCos-RF
2023.04.06 12:54:32 2: HMCCU [d_ccu] Reading Paramset Descriptions for interface BidCos-RF
2023.04.06 12:54:42 2: HMCCU [d_ccu] Read 364 Paramset Descriptions for interface BidCos-RF
2023.04.06 12:54:42 2: HMCCU [d_ccu] Reading Peer Descriptions for interface BidCos-RF
2023.04.06 12:54:42 2: HMCCU [d_ccu] Read 22 Peer Descriptions for interface BidCos-RF
2023.04.06 12:54:43 2: HMCCU [d_ccu] Read device configuration in 22.1084001064301 seconds: devices/channels=290 parametersets=609 links=22
Unknown encoding '"UTF-8"' at FHEM/HttpUtils.pm line 1061.
2


Ohne Verbose 5 habe ich auch so etwas als letzten Eintrag im Log gesehen.
2023.04.06 12:30:40 3: CAMTEST - Polling of SVS is deactivated
Unknown encoding '"UTF-8"' at FHEM/HttpUtils.pm line 1061.
2023.04.06 12:32:13 1: Including fhem.cfg
2023.04.06 12:32:19 2: DbLog logdb - Subprocess >17212< initialized ... ready for non-blocking operation
2

Habe ich aber mit verbose 5 nicht mehr zu Gesicht bekommen.

Brauchst du die vollständige fhem.cfg? Die muss ich dann erstmal anonymisieren. Der teil des Moduls ist hier:

define SVS SSCam SVS 192.168.1.11
setuuid SVS 642ea123-f33f-6802-23e3-5bfa4656060cf097
attr SVS room SSCam
attr SVS webCmd homeMode
attr SVS webCmdLabel HomeMode

Danke


Haupt-Fhem (Docker auf Synology), Sub-Fhem (433Mhz und 833Mhz) auf RasPi, Sub-Fhem (Heizungssteuerung) auf RasPi, Sub_Fhem (System) auf RasPi, IoBroker zur Darstellung (Docker auf Synology), alles verbunden über einen MQTT Broker, insgesamt ca. 100 Sensoren/Aktoren

DS_Starter

Das ist die Ursache:

2023.04.06 12:54:43 2: HMCCU [d_ccu] Read device configuration in 22.1084001064301 seconds: devices/channels=290 parametersets=609 links=22
Unknown encoding '"UTF-8"' at FHEM/HttpUtils.pm line 1061.


Hat auch nichts direkt mit SSCam zu tun, tritt auch wie oben zu sehen mit HMCCU auf.
HttpUtils.pm ist ein zentrales Modul was von vielen anderen Modulen eingebunden wird.

An der besagten Stelle wird ein Perl Modul "Encode" angesprochen. Dieses kennt das verwendete encoding "UTF-8" nicht.

Es ist also eine zentrale Stelle (Modul Encode) in deiner Perl Version.
So sieht es zumindest für mich aus.
Du könntest mal eine Meldung zu HttpUtils aufmachen mit dem Verweis auf

 Unknown encoding '"UTF-8"' at FHEM/HttpUtils.pm

Vielleicht kennt Rudolph (König) das Problem.

LG

ESXi 6.5 @NUC6i5SYH mit FHEM auf Debian 10, DbLog/DbRep mit MariaDB auf VM
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

pcjogi

Ok, aber dieser Logeintrag erfolgt nur wenn ich SSCAM einbinde. Sonst nicht. Daher glaube ich nicht, dass es etwas mit HMCCU zu tun hat. Ich bin aber nicht so tief in FHEM drin und versuche den vorgeschlagenen Weg über die HttpUtils Meldung
Haupt-Fhem (Docker auf Synology), Sub-Fhem (433Mhz und 833Mhz) auf RasPi, Sub-Fhem (Heizungssteuerung) auf RasPi, Sub_Fhem (System) auf RasPi, IoBroker zur Darstellung (Docker auf Synology), alles verbunden über einen MQTT Broker, insgesamt ca. 100 Sensoren/Aktoren

DS_Starter

ZitatDaher glaube ich nicht, dass es etwas mit HMCCU zu tun hat.
Hat es auch nicht, sondern mit HttpUtils bzw. dem Perl Modul "Encode" welches HttpUtils an dieser Stelle aufruft.  ;)
ESXi 6.5 @NUC6i5SYH mit FHEM auf Debian 10, DbLog/DbRep mit MariaDB auf VM
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter