SSFile - Integration der Synology File Station in FHEM

Begonnen von DS_Starter, 29 Oktober 2020, 09:30:22

Vorheriges Thema - Nächstes Thema

DS_Starter

Hallo Carlos, @all,

in meinem contrib habe ich eine neue Version bereitgestellt.
Es wird FHEM Crash vermieden falls der Inhalt des Upload Cachefiles korrupt sein sollte.

Zum Download in der FHEMWEB Kommandozeile inklusive der Ausführungszeichen angeben und danach FHEM restarten:


"wget -qO ./FHEM/50_SSFile.pm https://svn.fhem.de/fhem/trunk/fhem/contrib/DS_Starter/50_SSFile.pm"


LG,
Heiko
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Helmi55

Hallo Heiko,
Super Modul Danke für deine Arbeit.
Ich habe eine Frage: entweder verstehe ich es falsch oder ich hab etwas falsch eingerichtet.....
Bin nach dem WIKi vorgegangen und es funkt alles so weit.
Nun zu meiner Frage: wird durch den Kalendereintrag und durch den Aufruf von SSFile autom. ein Backup von FHEM erstellt? - ich glaube nein (oder ich hab was falsch erstellt?)
Wenn ich vorher manuell ein Backup anstosse dann wird dieses mitkopiert (daraus schliesse ich - es werden nur die Files auf die Synology geschrieben)
Das Backup.tar hat allerdings im fhem backup Ordner eine Größe von 38,3 MB und am Synology die Sicherung nur 36,6 MB. Die Uhrzeit des Files ist ident?

Danke für deine Hilfe
LG
Helmut
System1 fhem 6.1 auf RPi 4B mit 4GB, HMUSBConfig, DS9490R-1Wire, Busware USB 868, Pool-Solarsteuerung mit FHEM. System2 fhem 6.1 auf RPi 4B mit 4GB (Bullseye) mit Busware USB 868 und 433 und HMUARTLGW für Haussteuerung

https://www.flickr.com/photos/canonhelmi/

DS_Starter

#32
Hallo Helmut,

erstmal freut es mich dass es bei dir problemlos läuft.  :)

Zitat
Nun zu meiner Frage: wird durch den Kalendereintrag und durch den Aufruf von SSFile autom. ein Backup von FHEM erstellt? - ich glaube nein (oder ich hab was falsch erstellt?)
Ich glaube die Frage ist etwa falsch formuliert. Es sollte vermutlich heißen ob ein File Backup.tar erstellt wird.
Dem ist nicht so. Die Files aus ../FHEM/ werden so wie sie sind, d.h. nicht komprimiert und zusammengepackt auf die Synology in das Zielverzeichnis geschrieben.
Was wann wohin geschrieben wurde siehst du mit

set <> listUploadsDone

Auf dem Zielverzeichnis der Syno siehst du alle gesicherten Verzeichnisse und Files im Klarformat.
Cooltux arbeitet noch daran sein backupToStorage mit SSFile zu verheiraten um damit das Backup.tar zu erstellen und dann nur dieses mit SSFile-Schnittstelle zur Syno zu übertragen.

Warum Backup.tar größer ist als die 1:1 Sicherung kann ich nicht sagen. Vllt. wird in Backup.tar mehr reingepackt als der FHEM Ordner.
Im SSFile hast du nichts mit dem Attr excludeFromUpload ausgeschlossen ?

Hinweis: Solltest du Files mit "@" im Namen haben, werden diese per default nicht kopiert. (Habe gerade gesehen, dass ich ein paar Attribute in der commandref vergessen habe zu beschreiben)

LG,
Heiko
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Helmi55

Hallo Heiko,

danke. Dann funktioniert ja alles bestens. Dann lasse ich mein AT fürs lokale BU und kopiere dann mit deinem Modul aufs NAS.
Habe Full und inkr. Backup getestet -> funktioniert sehr gut.
Jetzt wollte ich alte Backups am RPi damit löschen:
defmod di_DelBU DOIF ([11:30:00]) ("find /opt/fhem/backup -type f -mtime +1 -delete") DOELSE
attr di_DelBU do always

Aber das hat leider nicht funktioniert - muss ich weitersuchen.....

Gruß
Helmut
System1 fhem 6.1 auf RPi 4B mit 4GB, HMUSBConfig, DS9490R-1Wire, Busware USB 868, Pool-Solarsteuerung mit FHEM. System2 fhem 6.1 auf RPi 4B mit 4GB (Bullseye) mit Busware USB 868 und 433 und HMUARTLGW für Haussteuerung

https://www.flickr.com/photos/canonhelmi/

Helmi55

Hallo Heiko
ich habe jetzt alles vom Testsystem auf eines meiner beiden Prod Systeme übertragen.
Da das eine Produktionssystem in der 80m entfernten Garage steht und das NAS im Arbeitszimmer kommt es anscheinend zu Timeouts
Kann ich das einstellen?
Hier ein Log vom SSFile mit Verbose 5
<FILE>
--wNWT9spu8GvTg4TJo1iN-- 
2021.03.21 12:19:33 2: SynFile - ERROR message: write to http://10.0.0.101:5000 timed out
2021.03.21 12:19:33 2: SynFile - ERROR - "upload" SendQueue index "244" not executed. Restart SendQueue in 5 s (retryCount 1).
2021.03.21 12:19:38 4: SynFile - ####################################################
2021.03.21 12:19:38 4: SynFile - ### start Synology File operation upload   
2021.03.21 12:19:38 4: SynFile - ####################################################
2021.03.21 12:19:38 4: SynFile - API hash values already set - ignore get apisites
2021.03.21 12:19:38 4: SynFile - start SendQueue entry index "244" (upload) for operation.
2021.03.21 12:19:38 5: SynFile - HTTP-Call will be done with timeout: 20 s
2021.03.21 12:19:38 4: SynFile - Call-Out: http://10.0.0.101:5000/webapi/entry.cgi?api=SYNO.FileStation.Upload&version=2&method=upload&_sid=qTTJ-qbUMNCC9PWlv5RMvTSJpiTnrrOEbE6t1ntPHBQOBzMEs5aTkLYHrfJfuZERghhNuIIaap4EANzU2gX6aI
2021.03.21 12:19:38 5: SynFile - POST data (string <FILE> will be replaced with content of ./backup/FHEM-20210321_104046.tar.gz):
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="path"

/FHEM-PoolProd/2021_03_21_Full/backup
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="create_parents"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="overwrite"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="mtime"

1616319702000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="crtime"

1616319702000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="file"; filename="FHEM-20210321_104046.tar.gz"
Content-Type: application/octet-stream

<FILE>
--wNWT9spu8GvTg4TJo1iN-- 
2021.03.21 12:19:59 2: SynFile - ERROR message: write to http://10.0.0.101:5000 timed out
2021.03.21 12:19:59 2: SynFile - ERROR - "upload" SendQueue index "244" not executed. Restart SendQueue in 20 s (retryCount 2).
2021.03.21 12:20:20 4: SynFile - ####################################################
2021.03.21 12:20:20 4: SynFile - ### start Synology File operation upload   
2021.03.21 12:20:20 4: SynFile - ####################################################
2021.03.21 12:20:20 4: SynFile - API hash values already set - ignore get apisites
2021.03.21 12:20:20 4: SynFile - start SendQueue entry index "244" (upload) for operation.
2021.03.21 12:20:20 5: SynFile - HTTP-Call will be done with timeout: 20 s
2021.03.21 12:20:20 4: SynFile - Call-Out: http://10.0.0.101:5000/webapi/entry.cgi?api=SYNO.FileStation.Upload&version=2&method=upload&_sid=qTTJ-qbUMNCC9PWlv5RMvTSJpiTnrrOEbE6t1ntPHBQOBzMEs5aTkLYHrfJfuZERghhNuIIaap4EANzU2gX6aI
2021.03.21 12:20:20 5: SynFile - POST data (string <FILE> will be replaced with content of ./backup/FHEM-20210321_104046.tar.gz):
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="path"

/FHEM-PoolProd/2021_03_21_Full/backup
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="create_parents"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="overwrite"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="mtime"

1616319702000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="crtime"

1616319702000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="file"; filename="FHEM-20210321_104046.tar.gz"
Content-Type: application/octet-stream

<FILE>
--wNWT9spu8GvTg4TJo1iN-- 
2021.03.21 12:20:43 2: SynFile - ERROR message: write to http://10.0.0.101:5000 timed out
2021.03.21 12:20:43 2: SynFile - ERROR - "upload" SendQueue index "244" not executed. Restart SendQueue in 60 s (retryCount 3).
2021.03.21 12:21:43 4: SynFile - ####################################################
2021.03.21 12:21:43 4: SynFile - ### start Synology File operation upload   
2021.03.21 12:21:43 4: SynFile - ####################################################
2021.03.21 12:21:43 4: SynFile - API hash values already set - ignore get apisites
2021.03.21 12:21:43 4: SynFile - start SendQueue entry index "244" (upload) for operation.
2021.03.21 12:21:43 5: SynFile - HTTP-Call will be done with timeout: 20 s
2021.03.21 12:21:43 4: SynFile - Call-Out: http://10.0.0.101:5000/webapi/entry.cgi?api=SYNO.FileStation.Upload&version=2&method=upload&_sid=qTTJ-qbUMNCC9PWlv5RMvTSJpiTnrrOEbE6t1ntPHBQOBzMEs5aTkLYHrfJfuZERghhNuIIaap4EANzU2gX6aI
2021.03.21 12:21:43 5: SynFile - POST data (string <FILE> will be replaced with content of ./backup/FHEM-20210321_104046.tar.gz):
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="path"

/FHEM-PoolProd/2021_03_21_Full/backup
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="create_parents"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="overwrite"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="mtime"

1616319702000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="crtime"

1616319702000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="file"; filename="FHEM-20210321_104046.tar.gz"
Content-Type: application/octet-stream

<FILE>
--wNWT9spu8GvTg4TJo1iN-- 
2021.03.21 12:22:04 2: SynFile - ERROR message: write to http://10.0.0.101:5000 timed out
2021.03.21 12:22:05 2: SynFile - ERROR - "upload" SendQueue index "244" not executed. Restart SendQueue in 60 s (retryCount 4).
2021.03.21 12:22:39 3: CUL_HM set Abstellraum_Schloss lock noArg
2021.03.21 12:22:48 3: CUL_HM set AbstellraumLicht off noArg
2021.03.21 12:23:05 4: SynFile - ####################################################
2021.03.21 12:23:05 4: SynFile - ### start Synology File operation upload   
2021.03.21 12:23:05 4: SynFile - ####################################################
2021.03.21 12:23:05 4: SynFile - API hash values already set - ignore get apisites
2021.03.21 12:23:05 4: SynFile - start SendQueue entry index "244" (upload) for operation.
2021.03.21 12:23:05 5: SynFile - HTTP-Call will be done with timeout: 20 s
2021.03.21 12:23:05 4: SynFile - Call-Out: http://10.0.0.101:5000/webapi/entry.cgi?api=SYNO.FileStation.Upload&version=2&method=upload&_sid=qTTJ-qbUMNCC9PWlv5RMvTSJpiTnrrOEbE6t1ntPHBQOBzMEs5aTkLYHrfJfuZERghhNuIIaap4EANzU2gX6aI
2021.03.21 12:23:05 5: SynFile - POST data (string <FILE> will be replaced with content of ./backup/FHEM-20210321_104046.tar.gz):
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="path"

/FHEM-PoolProd/2021_03_21_Full/backup
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="create_parents"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="overwrite"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="mtime"

1616319702000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="crtime"

1616319702000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="file"; filename="FHEM-20210321_104046.tar.gz"
Content-Type: application/octet-stream

<FILE>
--wNWT9spu8GvTg4TJo1iN-- 
2021.03.21 12:23:27 2: SynFile - ERROR message: write to http://10.0.0.101:5000 timed out
2021.03.21 12:23:27 2: SynFile - ERROR - "upload" SendQueue index "244" not executed. Restart SendQueue in 1800 s (retryCount 5).
2021.03.21 12:53:27 4: SynFile - ####################################################
2021.03.21 12:53:27 4: SynFile - ### start Synology File operation upload   
2021.03.21 12:53:27 4: SynFile - ####################################################
2021.03.21 12:53:27 4: SynFile - API hash values already set - ignore get apisites
2021.03.21 12:53:27 4: SynFile - start SendQueue entry index "244" (upload) for operation.
2021.03.21 12:53:27 5: SynFile - HTTP-Call will be done with timeout: 20 s
2021.03.21 12:53:27 4: SynFile - Call-Out: http://10.0.0.101:5000/webapi/entry.cgi?api=SYNO.FileStation.Upload&version=2&method=upload&_sid=qTTJ-qbUMNCC9PWlv5RMvTSJpiTnrrOEbE6t1ntPHBQOBzMEs5aTkLYHrfJfuZERghhNuIIaap4EANzU2gX6aI
2021.03.21 12:53:27 5: SynFile - POST data (string <FILE> will be replaced with content of ./backup/FHEM-20210321_104046.tar.gz):
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="path"

/FHEM-PoolProd/2021_03_21_Full/backup
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="create_parents"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="overwrite"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="mtime"

1616319702000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="crtime"

1616319702000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="file"; filename="FHEM-20210321_104046.tar.gz"
Content-Type: application/octet-stream

<FILE>
--wNWT9spu8GvTg4TJo1iN-- 
2021.03.21 12:53:48 2: SynFile - ERROR message: write to http://10.0.0.101:5000 timed out
2021.03.21 12:53:48 2: SynFile - ERROR - "upload" SendQueue index "244" not executed. Restart SendQueue in 1800 s (retryCount 6).

jump to the top


Danke für deine Hilfe
helmut
System1 fhem 6.1 auf RPi 4B mit 4GB, HMUSBConfig, DS9490R-1Wire, Busware USB 868, Pool-Solarsteuerung mit FHEM. System2 fhem 6.1 auf RPi 4B mit 4GB (Bullseye) mit Busware USB 868 und 433 und HMUARTLGW für Haussteuerung

https://www.flickr.com/photos/canonhelmi/

DS_Starter

ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Helmi55

Hallo Heiko,

Danke - habe jetzt das auf meinem Haus und Pool Rai eingerichtet und funktioniert perfekt.
Danke.  Jetzt heißt es auf die Erweiterung von CoolTux warten ......

Wenn ich was testen kann bitte melden

LG
Helmut
System1 fhem 6.1 auf RPi 4B mit 4GB, HMUSBConfig, DS9490R-1Wire, Busware USB 868, Pool-Solarsteuerung mit FHEM. System2 fhem 6.1 auf RPi 4B mit 4GB (Bullseye) mit Busware USB 868 und 433 und HMUARTLGW für Haussteuerung

https://www.flickr.com/photos/canonhelmi/

Helmi55

Guten Abend
Habe eine Frage: ich habe einen alten Kalender am NAS gelöscht - NAS neugestartet und auch FHEM neugestartet
ABER in der Kalenderauswahl bei usedCalendars erscheint noch immer der alte und beim Neustart von FHEM wird auch dieser verwendet
Wo hat sic h der eingefressen - Wo kann ich den in FHEM löschen

Danke
Helmut
System1 fhem 6.1 auf RPi 4B mit 4GB, HMUSBConfig, DS9490R-1Wire, Busware USB 868, Pool-Solarsteuerung mit FHEM. System2 fhem 6.1 auf RPi 4B mit 4GB (Bullseye) mit Busware USB 868 und 433 und HMUARTLGW für Haussteuerung

https://www.flickr.com/photos/canonhelmi/

DS_Starter

Hallo Helmut.

ein

   get <> getCalendars

ruft die Kalender auf der Syno ab (und zeigt sie auch an).

Danach mit dem Attr usedCalendars den neuen/richtigen Kalender auswählen sollte das tun was du möchtest.

Edit: Falsches Forum für SSCal  ;)

LG,
Heiko
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Helmi55

System1 fhem 6.1 auf RPi 4B mit 4GB, HMUSBConfig, DS9490R-1Wire, Busware USB 868, Pool-Solarsteuerung mit FHEM. System2 fhem 6.1 auf RPi 4B mit 4GB (Bullseye) mit Busware USB 868 und 433 und HMUARTLGW für Haussteuerung

https://www.flickr.com/photos/canonhelmi/

Cobra

Hey Heiko,

habe dein Modul übers Wochenende installiert und auch das von dir beschriebene automatische Backup mit dem Kalender eingerichtet.

Heute Nacht ist mir FHEM dann mehrfach neu gestartet.
Als ich dann heute morgen versucht habe den Fehler zu reproduzieren wurde das erste Mal leider der Upload immer wieder wegen TimeOut unterbrochen (wobei ich hier eigentlich keine Netzwerkprobleme habe, die Diskstation ist am selben Switch wie mein FHEM-System).

Nachdem ich das Device neu erstellt habe und vorsichtshalber noch einen Timeout von 60s eingerichtet habe ist der Fehler wieder erschienen dass FHEM sich bei mir neu startet wenn ich den Befehl "set SynFile Upload "./" dest=/FHEM-Prod/%Y_%m_%d_Full" gebe


Hier mal das Log auf Verbose 5:
2021.05.24 11:28:36 4: SynFile - Object "./contrib/DS_Starter/Icons/weather_night_snow_rain_heavy.svg" uploaded
2021.05.24 11:28:36 4: SynFile - Opmode "upload" finished successfully, Sendqueue index "51" deleted.
2021.05.24 11:28:36 4: SynFile - Start next SendQueue entry...
2021.05.24 11:28:36 4: SynFile - ####################################################
2021.05.24 11:28:36 4: SynFile - ### start Synology File operation upload   
2021.05.24 11:28:36 4: SynFile - ####################################################
2021.05.24 11:28:36 4: SynFile - API hash values already set - ignore get apisites
2021.05.24 11:28:36 4: SynFile - start SendQueue entry index "52" (upload) for operation.
2021.05.24 11:28:36 5: SynFile - HTTP-Call will be done with timeout: 60 s
2021.05.24 11:28:36 4: SynFile - Call-Out: http://192.168.178.10:5000/webapi/entry.cgi?api=SYNO.FileStation.Upload&version=2&method=upload&_sid=<secret>
2021.05.24 11:28:36 5: SynFile - POST data (string <FILE> will be replaced with content of ./sounds/Video�berwachung.mp3):
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="path"

/FHEM-Prod/2021_05_24_Full/sounds
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="create_parents"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="overwrite"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="mtime"

1483960624000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="crtime"

1599050179000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="file"; filename="Video�berwachung.mp3"
Content-Type: application/octet-stream

<FILE>
--wNWT9spu8GvTg4TJo1iN-- 
malformed UTF-8 character in JSON string, at character offset 37 (before "\x{fffd}chung.mp3","...") at ./FHEM/50_SSFile.pm line 1660.


Liegt das evtl. am Umlaut in der Datei?

Gruß Cobra
RaspberryPI 3 mit Raspbian Jessie, HMLAN/HM-LAN-Gateway
Diverse HM-Komponenten, Netatmo, Hue, Sonos, Nuki, Alexa

DS_Starter

Hi Cobra,

ja der Absturz hängt mit Sicherheit mit dem Fehler

Zitat
malformed UTF-8 character in JSON string, at character offset 37 (before "\x{fffd}chung.mp3","...") at ./FHEM/50_SSFile.pm line 1660.

zusammen. Allerdings übertrage ich auch Files mit Umlauten. Ganz so einfach scheint es nicht zu sein.
Werde ich mir heute Abend mal anschauen, jetzt zieht erstmal das herrliche Wetter.

Und danke !!!!  :D  Hat mich sehr gefreut und trinke auch ein Pfingstbier auf dein Wohl !

LG,
Heiko
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Cobra

RaspberryPI 3 mit Raspbian Jessie, HMLAN/HM-LAN-Gateway
Diverse HM-Komponenten, Netatmo, Hue, Sonos, Nuki, Alexa

DS_Starter

Hallo Cobra,

habe eine neue Version ins contrib geladen.
Ich konnte den Fehler bei mir nicht nachstellen, hoffe aber, dass ich den Absturz jetzt verhindern konnte.
Hier mal ein Logauszug wenn ich Dateien mit Umlauten übertrage:


2021.05.24 19:11:01.331 4: SynFile - ####################################################
2021.05.24 19:11:01.332 4: SynFile - ### start Synology File operation upload   
2021.05.24 19:11:01.333 4: SynFile - ####################################################
2021.05.24 19:11:01.345 4: SynFile - API hash values already set - ignore get apisites
2021.05.24 19:11:01.346 4: SynFile - start SendQueue entry index "30" (upload) for operation.
2021.05.24 19:11:01.347 5: SynFile - HTTP-Call will be done with timeout: 20 s
2021.05.24 19:11:01.347 4: SynFile - Call-Out: http://192.168.2.10:5000/webapi/entry.cgi?api=SYNO.FileStation.Upload&version=2&method=upload&_sid=GB7Sf-Z7pF5NQRVNpOpb2wiHlGLDz3PojPQB8acRIGsTEjYNFMorxBbYt1vAWMccFNaeJ_gsAyJ0FtVTGhd3vQ
2021.05.24 19:11:01.348 5: SynFile - POST data (string <FILE> will be replaced with content of ./log/2teAlarmübersicht.txt):
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="path"

/FHEM-Test/log
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="create_parents"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="overwrite"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="mtime"

1621871084000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="crtime"

1621871099000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="file"; filename="2teAlarmübersicht.txt"
Content-Type: application/octet-stream

<FILE>
--wNWT9spu8GvTg4TJo1iN-- 
2021.05.24 19:11:01.845 5: SynFile - JSON returned: {
  'data' => {
              'pid' => 11695,
              'blSkip' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
              'progress' => 1,
              'file' => "2teAlarm\x{fc}bersicht.txt"
            },
  'success' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )
}

2021.05.24 19:11:01.847 5: SynFile - Header returned:
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 24 May 2021 17:11:01 GMT
Content-Type: text/plain; charset="UTF-8"
Connection: close
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
2021.05.24 19:11:01.848 4: SynFile - Object "./log/2teAlarmübersicht.txt" uploaded
2021.05.24 19:11:01.938 4: SynFile - Opmode "upload" finished successfully, Sendqueue index "30" deleted.
2021.05.24 19:11:01.951 4: SynFile - Start next SendQueue entry...
2021.05.24 19:11:01.952 4: SynFile - ####################################################
2021.05.24 19:11:01.953 4: SynFile - ### start Synology File operation upload   
2021.05.24 19:11:01.953 4: SynFile - ####################################################
2021.05.24 19:11:01.967 4: SynFile - API hash values already set - ignore get apisites
2021.05.24 19:11:01.967 4: SynFile - start SendQueue entry index "31" (upload) for operation.
2021.05.24 19:11:01.968 5: SynFile - HTTP-Call will be done with timeout: 20 s
2021.05.24 19:11:01.968 4: SynFile - Call-Out: http://192.168.2.10:5000/webapi/entry.cgi?api=SYNO.FileStation.Upload&version=2&method=upload&_sid=GB7Sf-Z7pF5NQRVNpOpb2wiHlGLDz3PojPQB8acRIGsTEjYNFMorxBbYt1vAWMccFNaeJ_gsAyJ0FtVTGhd3vQ
2021.05.24 19:11:01.969 5: SynFile - POST data (string <FILE> will be replaced with content of ./log/AlarmÜbersicht.txt):
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="path"

/FHEM-Test/log
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="create_parents"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="overwrite"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="mtime"

1621871063000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="crtime"

1621871074000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="file"; filename="AlarmÜbersicht.txt"
Content-Type: application/octet-stream

<FILE>
--wNWT9spu8GvTg4TJo1iN-- 
2021.05.24 19:11:03.340 5: SynFile - JSON returned: {
  'data' => {
              'file' => "Alarm\x{dc}bersicht.txt",
              'progress' => 1,
              'blSkip' => bless( do{\(my $o = 0)}, 'JSON::PP::Boolean' ),
              'pid' => 11722
            },
  'success' => bless( do{\(my $o = 1)}, 'JSON::PP::Boolean' )
}

2021.05.24 19:11:03.341 5: SynFile - Header returned:
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 24 May 2021 17:11:03 GMT
Content-Type: text/plain; charset="UTF-8"
Connection: close
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
2021.05.24 19:11:03.341 4: SynFile - Object "./log/AlarmÜbersicht.txt" uploaded
2021.05.24 19:11:03.418 4: SynFile - Opmode "upload" finished successfully, Sendqueue index "31" deleted.


Teste mal bitte bei dir.

LG,
Heiko
ESXi@NUC+Debian+MariaDB, PV: SMA, Victron MPII+Pylontech+CerboGX
Maintainer: SSCam, SSChatBot, SSCal, SSFile, DbLog/DbRep, Log2Syslog, SolarForecast,Watches, Dashboard, PylonLowVoltage
Kaffeekasse: https://www.paypal.me/HMaaz
Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/DS_Starter

Cobra

Hey Heiko,

FHEM startet jetzt zwar nicht mehr neu aber der Upload bleibt trotzdem hängen.

Hier mal das LOG:

2021.05.24 20:31:36 4: SynFile - Start next SendQueue entry...
2021.05.24 20:31:36 4: SynFile - ####################################################
2021.05.24 20:31:36 4: SynFile - ### start Synology File operation upload   
2021.05.24 20:31:36 4: SynFile - ####################################################
2021.05.24 20:31:36 4: SynFile - API hash values already set - ignore get apisites
2021.05.24 20:31:36 4: SynFile - start SendQueue entry index "57" (upload) for operation.
2021.05.24 20:31:36 5: SynFile - HTTP-Call will be done with timeout: 60 s
2021.05.24 20:31:36 4: SynFile - Call-Out: http://192.168.178.10:5000/webapi/entry.cgi?api=SYNO.FileStation.Upload&version=2&method=upload&_sid=<secret>
2021.05.24 20:31:36 5: SynFile - POST data (string <FILE> will be replaced with content of ./sounds/Bio M�ll.mp3):
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="path"

/FHEM-Prod/2021_05_24_Full/sounds
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="create_parents"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="overwrite"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="mtime"

1483960622000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="crtime"

1599050179000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="file"; filename="Bio M�ll.mp3"
Content-Type: application/octet-stream

<FILE>
--wNWT9spu8GvTg4TJo1iN-- 
2021.05.24 20:31:36 5: SynFile - JSON returned: undef

2021.05.24 20:31:36 5: SynFile - Header returned:
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 24 May 2021 18:31:36 GMT
Content-Type: text/plain; charset="UTF-8"
Connection: close
Vary: Accept-Encoding
Set-Cookie: id=-y2GinJKgQ72ISMxbqwDz4f4fSyTcq2_R0ZcJOO0xgMSe_A6pufqnWWjhKRhjUFO5K4f612wbK2mXWih7xP090;expires=Mon, 31-May-2021 18:31:36 GMT;path=/;HttpOnly
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
2021.05.24 20:31:36 1: PERL WARNING: Use of uninitialized value $error in pattern match (m//) at ./FHEM/50_SSFile.pm line 1705.
2021.05.24 20:31:36 1: PERL WARNING: Use of uninitialized value $errorcode in concatenation (.) or string at ./FHEM/50_SSFile.pm line 1711.
2021.05.24 20:31:36 1: PERL WARNING: Use of uninitialized value $error in concatenation (.) or string at ./FHEM/50_SSFile.pm line 1711.
2021.05.24 20:31:36 2: SynFile - ERROR - Operation upload was not successful. Errorcode:  -
2021.05.24 20:31:36 2: SynFile - ERROR - "upload" SendQueue index "57" not executed. Restart SendQueue in 5 s (retryCount 1).
2021.05.24 20:31:41 4: SynFile - ####################################################
2021.05.24 20:31:41 4: SynFile - ### start Synology File operation upload   
2021.05.24 20:31:41 4: SynFile - ####################################################
2021.05.24 20:31:42 4: SynFile - API hash values already set - ignore get apisites
2021.05.24 20:31:42 4: SynFile - start SendQueue entry index "57" (upload) for operation.
2021.05.24 20:31:42 5: SynFile - HTTP-Call will be done with timeout: 60 s
2021.05.24 20:31:42 4: SynFile - Call-Out: http://192.168.178.10:5000/webapi/entry.cgi?api=SYNO.FileStation.Upload&version=2&method=upload&_sid=<secret>
2021.05.24 20:31:42 5: SynFile - POST data (string <FILE> will be replaced with content of ./sounds/Bio M�ll.mp3):
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="path"

/FHEM-Prod/2021_05_24_Full/sounds
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="create_parents"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="overwrite"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="mtime"

1483960622000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="crtime"

1599050179000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="file"; filename="Bio M�ll.mp3"
Content-Type: application/octet-stream

<FILE>
--wNWT9spu8GvTg4TJo1iN-- 
2021.05.24 20:31:42 5: SynFile - JSON returned: undef

2021.05.24 20:31:42 5: SynFile - Header returned:
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 24 May 2021 18:31:42 GMT
Content-Type: text/plain; charset="UTF-8"
Connection: close
Vary: Accept-Encoding
Set-Cookie: id=-y2GinJKgQ72ISMxbqwDz4f4fSyTcq2_R0ZcJOO0xgMSe_A6pufqnWWjhKRhjUFO5K4f612wbK2mXWih7xP090;expires=Mon, 31-May-2021 18:31:42 GMT;path=/;HttpOnly
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
2021.05.24 20:31:42 2: SynFile - ERROR - Operation upload was not successful. Errorcode:  -
2021.05.24 20:31:42 2: SynFile - ERROR - "upload" SendQueue index "57" not executed. Restart SendQueue in 20 s (retryCount 2).
2021.05.24 20:32:02 4: SynFile - ####################################################
2021.05.24 20:32:02 4: SynFile - ### start Synology File operation upload   
2021.05.24 20:32:02 4: SynFile - ####################################################
2021.05.24 20:32:02 4: SynFile - API hash values already set - ignore get apisites
2021.05.24 20:32:02 4: SynFile - start SendQueue entry index "57" (upload) for operation.
2021.05.24 20:32:02 5: SynFile - HTTP-Call will be done with timeout: 60 s
2021.05.24 20:32:02 4: SynFile - Call-Out: http://192.168.178.10:5000/webapi/entry.cgi?api=SYNO.FileStation.Upload&version=2&method=upload&_sid=<secret>
2021.05.24 20:32:02 5: SynFile - POST data (string <FILE> will be replaced with content of ./sounds/Bio M�ll.mp3):
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="path"

/FHEM-Prod/2021_05_24_Full/sounds
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="create_parents"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="overwrite"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="mtime"

1483960622000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="crtime"

1599050179000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="file"; filename="Bio M�ll.mp3"
Content-Type: application/octet-stream

<FILE>
--wNWT9spu8GvTg4TJo1iN-- 
2021.05.24 20:32:03 5: SynFile - JSON returned: undef

2021.05.24 20:32:03 5: SynFile - Header returned:
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 24 May 2021 18:32:02 GMT
Content-Type: text/plain; charset="UTF-8"
Connection: close
Vary: Accept-Encoding
Set-Cookie: id=-y2GinJKgQ72ISMxbqwDz4f4fSyTcq2_R0ZcJOO0xgMSe_A6pufqnWWjhKRhjUFO5K4f612wbK2mXWih7xP090;expires=Mon, 31-May-2021 18:32:02 GMT;path=/;HttpOnly
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
2021.05.24 20:32:03 2: SynFile - ERROR - Operation upload was not successful. Errorcode:  -
2021.05.24 20:32:03 2: SynFile - ERROR - "upload" SendQueue index "57" not executed. Restart SendQueue in 60 s (retryCount 3).
2021.05.24 20:33:04 4: SynFile - ####################################################
2021.05.24 20:33:04 4: SynFile - ### start Synology File operation upload   
2021.05.24 20:33:04 4: SynFile - ####################################################
2021.05.24 20:33:04 4: SynFile - API hash values already set - ignore get apisites
2021.05.24 20:33:04 4: SynFile - start SendQueue entry index "57" (upload) for operation.
2021.05.24 20:33:04 5: SynFile - HTTP-Call will be done with timeout: 60 s
2021.05.24 20:33:04 4: SynFile - Call-Out: http://192.168.178.10:5000/webapi/entry.cgi?api=SYNO.FileStation.Upload&version=2&method=upload&_sid=<secret>
2021.05.24 20:33:04 5: SynFile - POST data (string <FILE> will be replaced with content of ./sounds/Bio M�ll.mp3):
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="path"

/FHEM-Prod/2021_05_24_Full/sounds
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="create_parents"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="overwrite"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="mtime"

1483960622000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="crtime"

1599050179000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="file"; filename="Bio M�ll.mp3"
Content-Type: application/octet-stream

<FILE>
--wNWT9spu8GvTg4TJo1iN-- 
2021.05.24 20:33:05 5: SynFile - JSON returned: undef

2021.05.24 20:33:05 5: SynFile - Header returned:
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 24 May 2021 18:33:05 GMT
Content-Type: text/plain; charset="UTF-8"
Connection: close
Vary: Accept-Encoding
Set-Cookie: id=-y2GinJKgQ72ISMxbqwDz4f4fSyTcq2_R0ZcJOO0xgMSe_A6pufqnWWjhKRhjUFO5K4f612wbK2mXWih7xP090;expires=Mon, 31-May-2021 18:33:04 GMT;path=/;HttpOnly
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
2021.05.24 20:33:05 2: SynFile - ERROR - Operation upload was not successful. Errorcode:  -
2021.05.24 20:33:05 2: SynFile - ERROR - "upload" SendQueue index "57" not executed. Restart SendQueue in 60 s (retryCount 4).
2021.05.24 20:34:05 4: SynFile - ####################################################
2021.05.24 20:34:05 4: SynFile - ### start Synology File operation upload   
2021.05.24 20:34:05 4: SynFile - ####################################################
2021.05.24 20:34:05 4: SynFile - API hash values already set - ignore get apisites
2021.05.24 20:34:05 4: SynFile - start SendQueue entry index "57" (upload) for operation.
2021.05.24 20:34:05 5: SynFile - HTTP-Call will be done with timeout: 60 s
2021.05.24 20:34:05 4: SynFile - Call-Out: http://192.168.178.10:5000/webapi/entry.cgi?api=SYNO.FileStation.Upload&version=2&method=upload&_sid=<secret>
2021.05.24 20:34:05 5: SynFile - POST data (string <FILE> will be replaced with content of ./sounds/Bio M�ll.mp3):
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="path"

/FHEM-Prod/2021_05_24_Full/sounds
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="create_parents"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="overwrite"

true
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="mtime"

1483960622000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="crtime"

1599050179000
--wNWT9spu8GvTg4TJo1iN
content-disposition: form-data; name="file"; filename="Bio M�ll.mp3"
Content-Type: application/octet-stream

<FILE>
--wNWT9spu8GvTg4TJo1iN-- 
2021.05.24 20:34:05 5: SynFile - JSON returned: undef

2021.05.24 20:34:05 5: SynFile - Header returned:
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 24 May 2021 18:34:05 GMT
Content-Type: text/plain; charset="UTF-8"
Connection: close
Vary: Accept-Encoding
Set-Cookie: id=-y2GinJKgQ72ISMxbqwDz4f4fSyTcq2_R0ZcJOO0xgMSe_A6pufqnWWjhKRhjUFO5K4f612wbK2mXWih7xP090;expires=Mon, 31-May-2021 18:34:05 GMT;path=/;HttpOnly
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
2021.05.24 20:34:05 2: SynFile - ERROR - Operation upload was not successful. Errorcode:  -
2021.05.24 20:34:05 2: SynFile - ERROR - "upload" SendQueue index "57" not executed. Restart SendQueue in 1800 s (retryCount 5).


Gruß Cobra
RaspberryPI 3 mit Raspbian Jessie, HMLAN/HM-LAN-Gateway
Diverse HM-Komponenten, Netatmo, Hue, Sonos, Nuki, Alexa