[98_backupToStorage] Modul zum upload des FHEM Backups auf ein Storage

Begonnen von CoolTux, 18 Juni 2020, 13:14:42

Vorheriges Thema - Nächstes Thema

tomspatz

SORRY aber es kommt nichts an  :(

2020.10.19 19:50:14 1: Downloading https://fhem.de/fhemupdate/controls_fhem.txt
2020.10.19 19:50:14 1:
2020.10.19 19:50:14 1: fhem
2020.10.19 19:50:15 1: nothing to do...
2020.10.19 19:50:15 1: Downloading https://git.cooltux.net/FHEM/mod-backupToStorage/raw/branch/testing/controls_backupToStorage.txt
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: backupToStorage
2020.10.19 19:50:15 1: UPD lib/FHEM/backupToStorage.pm
2020.10.19 19:50:15 1: saving fhem.cfg
2020.10.19 19:50:15 1: saving ./log/fhem.save
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: New entries in the CHANGED file:
2020.10.19 19:50:15 1: <!DOCTYPE html>
2020.10.19 19:50:15 1: <html lang="en-US">
2020.10.19 19:50:15 1: <head data-suburl="">
2020.10.19 19:50:15 1: <meta charset="utf-8">
2020.10.19 19:50:15 1: <meta name="viewport" content="width=device-width, initial-scale=1">
2020.10.19 19:50:15 1: <meta http-equiv="x-ua-compatible" content="ie=edge">
2020.10.19 19:50:15 1: <title>Page Not Found -  mod-backupToStorage - Gitea: Git with a cup of tea</title>
2020.10.19 19:50:15 1: <link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: <script>
2020.10.19 19:50:15 1: if ('serviceWorker' in navigator) {
2020.10.19 19:50:15 1: navigator.serviceWorker.register('/serviceworker.js').then(function(registration) {
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: console.info('ServiceWorker registration successful with scope: ', registration.scope);
2020.10.19 19:50:15 1: }, function(err) {
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: console.info('ServiceWorker registration failed: ', err);
2020.10.19 19:50:15 1: });
2020.10.19 19:50:15 1: }
2020.10.19 19:50:15 1: </script>
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: <meta name="theme-color" content="#6cc644">
2020.10.19 19:50:15 1: <meta name="author" content="FHEM" />
2020.10.19 19:50:15 1: <meta name="description" content="mod-backupToStorage - Modul zum kopieren der erstellten Backup Datei auf ein Storage. z.B Nextcloud" />
2020.10.19 19:50:15 1: <meta name="keywords" content="go,git,self-hosted,gitea">
2020.10.19 19:50:15 1: <meta name="referrer" content="no-referrer" />
2020.10.19 19:50:15 1: ... rest of lines skipped.
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: update finished, "shutdown restart" is needed to activate the changes.
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: Please consider using the global attribute sendStatistics
2020.10.19 19:50:15 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
          'UPDATE'
        ];

2020.10.19 19:50:29 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
          'SHUTDOWN'
        ];

2020.10.19 19:50:29 0: Server shutdown
2020.10.19 19:50:31 1: Including fhem.cfg
2020.10.19 19:50:31 3: WEB: port 8083 opened
2020.10.19 19:50:32 2: eventTypes: loaded 16 events from ./log/eventTypes.txt
2020.10.19 19:50:34 3: backupToStorage (myNextcloudUpload) - defined
2020.10.19 19:50:34 1: Including ./log/fhem.save
2020.10.19 19:50:34 1: Messages collected while initializing FHEM:SecurityCheck:
  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

2020.10.19 19:50:34 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
          'INITIALIZED'
        ];

2020.10.19 19:50:34 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 19:50:34 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
          'state: ready'
        ];

2020.10.19 19:50:34 0: Featurelevel: 6
2020.10.19 19:50:34 0: Server started with 12 defined entities (fhem.pl:22935/2020-10-07 perl:5.028001 os:linux user:fhem pid:7666)
2020.10.19 19:51:02 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 19:51:05 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 19:51:05 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 19:51:16 1: PERL WARNING: Subroutine import redefined at FHEM/Meta.pm line 654.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine InitMod redefined at FHEM/Meta.pm line 670.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine Load redefined at FHEM/Meta.pm line 706.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine SetInternals redefined at FHEM/Meta.pm line 878.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine Get redefined at FHEM/Meta.pm line 901.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine GetModuleSourceOrigin redefined at FHEM/Meta.pm line 919.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine GetKeywordDesc redefined at FHEM/Meta.pm line 940.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine ModuleIsCore redefined at FHEM/Meta.pm line 956.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine ModuleIsInternal redefined at FHEM/Meta.pm line 961.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine GetModuleFilepath redefined at FHEM/Meta.pm line 993.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine ModuleIsPerlCore redefined at FHEM/Meta.pm line 1049.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __CopyMetaToInternals redefined at FHEM/Meta.pm line 1085.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __PutMetadata redefined at FHEM/Meta.pm line 1096.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __GetMetadata redefined at FHEM/Meta.pm line 1121.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __GenerateKeywordsFromSupportCommunity redefined at FHEM/Meta.pm line 2426.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __GetPackages redefined at FHEM/Meta.pm line 2521.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __GetMaintainerdata redefined at FHEM/Meta.pm line 2556.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __GetSupportForum redefined at FHEM/Meta.pm line 2770.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __GetUpdatedata redefined at FHEM/Meta.pm line 2956.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __SetXVersion redefined at FHEM/Meta.pm line 3206.
2020.10.19 19:51:16 2: backup include:
2020.10.19 19:51:16 2: backup include:
2020.10.19 19:51:16 2: Backup with command: tar czf ./backup/FHEM-20201019_195116.tar.gz "./FHEM" "./log" "./fhem.cfg" "./fhem.cfg.demo" "./contrib" "./demolog" "./lib" "./docs" "./restoreDir" "./MAINTAINER.txt" "./CHANGED" "./README_DEMO.txt" "./fhem.pl" "./www" "./configDB.pm"
2020.10.19 19:51:16 3: telnetForBlockingFn_1603129876: port 34497 opened
Backup done
2020.10.19 19:51:44 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
          'backup done'
        ];

2020.10.19 19:51:44 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.10.19 19:51:44 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.19 19:51:44 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 19:51:44 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
          'state:  file upload in progress'
        ];

2020.10.19 19:51:44 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=7674)
2020.10.19 19:51:44 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.19 19:51:45 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.19 19:51:46 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.19 19:51:47 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.19 19:51:48 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.19 19:51:49 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.19 19:51:50 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing.
2020.10.19 19:51:50 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.19 19:51:50 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.19 19:51:50 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
          'state: ready',
          'uploadState: upload successfully'
        ];


Internals:
   FUUID      5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
   NAME       myNextcloudUpload
   NOTIFYDEV  global,myNextcloudUpload
   NR         19
   NTFY_ORDER 51-myNextcloudUpload
   STATE      ready
   STORAGETYPE Nextcloud
   TYPE       backupToStorage
   VERSION    v1.0.1
   READINGS:
     2020-10-19 19:51:16   fhemBackupFile  ./backup/FHEM-20201019_195116.tar.gz
     2020-10-19 19:51:50   state           ready
     2020-10-19 19:51:50   uploadState     upload successfully
Attributes:
   bTS_Host   https://nextcloud.xxxxxx.de
   bTS_Path   /FHEM-Backup
   bTS_User   fhem
   verbose    5


Das ich hier die URL "maskiere" ist doch OK ??

Wenn du noch mehr Infos etc. brauchst sehr gerne.

CoolTux

Zu mindest ist er nun weiter gekommen.
Laut Log sogar bis zum Ende. Kann da keinen Fehler finden. Sollte also ein File in der Cloud zu finden sein. Kannst du mal schauen was das Log von Nextcloud sagt?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

tomspatz

mist

ich finde wirklich nichts.
Die cloud ist hier im Netzwerk. DNS AUflösung funktioniert. Ich komme von jedem Anderen Client per Browser und dem fhem Benutzer drauf.
Die logs finde ich nich wirklich. Das ding läuft im Docker. Ich schaue morgen nochmal. Aber es ist definitiv keine Datei hochgeladen.

CoolTux

Melde Dich mal als Admin an und gehe zu den Einstellungen und da unter Protokollierung. Lass das update noch mal laufen und aktualisiere die Protokollierung. Schau dann mal ob Du was findest. Ich teste hier bei mir mal ein zwei Sachen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

Ich sehe gerade, sorry hatte ich gestern nicht am Handy gesehen, Dein Host ist falsch. Da muss nur der Hostname rein.

bTS_Host   nextcloud.xxxxxx.de
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

fr00sch

Moin,

ich habe aus Neugierde das Modul mal getestet und kann den Fehlerfall von tomspatz nachstellen. Das Verhalten ist 1zu1 wie bei ihm auch mit der Vorgabe des Hostname.: bTS_Host nc.xxxxxxxx.de

Im Protokoll des Administrators taucht leider bei mir gar nichts auf. Im Debug-Modus ist es etwas unübersichtlich, aber ich finde nirgendwo Infos gefunden, dass ein Upload gestartet wurde.

Feature-Idee:
Um etwas Speicherplatz auf der Nextcloud zu sparen wäre es eventuell sinnvoll nicht jeden Tag ein Backup hochzuladen. (Ich mache jede Nacht ein Backup) Sodass nur 1x pro Woche ein Upload geschieht. Vorläufig werde ich das Device wohl 6 Tage disablen und nur Sonntags enabled lassen für das Backup  ;)
RPi3B+ als FHEM mit VCCU,ZWave,Signalduino,MQTT
RPi4B als CCU3
QNAP TS451p(mit Docker) als Messwerte-Datenbank

tomspatz

ZitatMelde Dich mal als Admin an und gehe zu den Einstellungen und da unter Protokollierung. Lass das update noch mal laufen und aktualisiere die Protokollierung.
Da gibt es nichts  :( wei auch bei fr00sch

ABER, hier ist die Nextcloud im lokalem Netztwerk. Wobei die DNS etc alles funktioniert, wie ich schon schrieb. Allerdings habe ich es auf eine externe NC probiert, da funktioniert es.

@fr00sch ist deine NC extern oder auch intern ??

CoolTux

Zitat von: fr00sch am 20 Oktober 2020, 09:16:25
Moin,

ich habe aus Neugierde das Modul mal getestet und kann den Fehlerfall von tomspatz nachstellen. Das Verhalten ist 1zu1 wie bei ihm auch mit der Vorgabe des Hostname.: bTS_Host nc.xxxxxxxx.de

Im Protokoll des Administrators taucht leider bei mir gar nichts auf. Im Debug-Modus ist es etwas unübersichtlich, aber ich finde nirgendwo Infos gefunden, dass ein Upload gestartet wurde.

Feature-Idee:
Um etwas Speicherplatz auf der Nextcloud zu sparen wäre es eventuell sinnvoll nicht jeden Tag ein Backup hochzuladen. (Ich mache jede Nacht ein Backup) Sodass nur 1x pro Woche ein Upload geschieht. Vorläufig werde ich das Device wohl 6 Tage disablen und nur Sonntags enabled lassen für das Backup  ;)

Von Dir brauche ich bitte das Log und ein list
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

Zitat von: tomspatz am 20 Oktober 2020, 09:44:22
Da gibt es nichts  :( wei auch bei fr00sch

ABER, hier ist die Nextcloud im lokalem Netztwerk. Wobei die DNS etc alles funktioniert, wie ich schon schrieb. Allerdings habe ich es auf eine externe NC probiert, da funktioniert es.

@fr00sch ist deine NC extern oder auch intern ??

Du musst den host auf jeden Fall ändern und dann noch mal testen. Auch hier Log und list dann bitte.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

fr00sch

@tomspatz: ich greife über die externe DNS auf meine Nextcloud die im Docker auf meinem QNAP läuft.


        ];
          'uploadState: upload successfully'
          'state: ready',
2020.10.20 08:56:00 4:  backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.20 08:56:00 4:  backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.20 08:56:00 4:  backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.20 08:56:00 4:  backupToStorage (myNextcloudUpload) - got result from asynchronous parsing.
2020.10.20 08:55:59 4:  backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.20 08:55:59 4:  backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=9971)
2020.10.20 08:55:58 4:  backupToStorage (myNextcloudUpload) - Read password from file

        ];
          'state:  file upload in progress'
2020.10.20 08:55:58 4:  backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.20 08:55:58 4:  backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 08:55:58 4:  backupToStorage (myNextcloudUpload) - after readings age return
2020.10.20 08:55:58 4:  backupToStorage (myNextcloudUpload) - push to storage function

        ];
          'backup done'
2020.10.20 08:55:58 4:  backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
Backup done
tar: Entferne führende ,,/" von Zielen harter Verknüpfungen
tar: Entferne führende ,,/" von Elementnamen
2020.10.20 08:55:11 2:  Backup with command: tar czf ./backup/FHEM-20201020_085511.tar.gz "./Z_Wave_EG.bin" "./db.conf" "./db_remote.conf" "./gassistant-fhem.cfg" "./changelog.txt" "./FHEM" "./CHANGED" "./configDB.pm" "./kalender.ics" "./dead.letter" "./configDB.conf" "./info" "./config" "./docs" "./fhem.db" "./contrib_old" "./log" "./contrib" "./certs" "configDB.conf" "./babbleFILE" "./fhem.pl" "./restoreDir" "./demolog" "./fhem.cfg" "./README_DEMO.txt" "./gassistant-fhem.cfg.previous" "./backup.sh" "./www" "./db_container.conf" "./MAINTAINER.txt" "./fhem-config.db" "./unused" "./lib" "./fhem_homematic.cfg" "/opt/fhem/fhem-config.db"
2020.10.20 08:55:11 2:  backup include SQLite DB File: /opt/fhem/fhem-config.db
2020.10.20 08:55:11 2:  backup include: 'configDB.conf'
2020.10.20 08:55:11 1:  NOTE: make sure you have a database backup!



Internals:
   FUUID      5f8e8113-f33f-daea-d4a4-53a4b70729992cc3
   NAME       myNextcloudUpload
   NOTIFYDEV  global,myNextcloudUpload
   NR         711
   NTFY_ORDER 51-myNextcloudUpload
   STATE      ready
   STORAGETYPE Nextcloud
   TYPE       backupToStorage
   VERSION    v1.0.1
   READINGS:
     2020-10-20 09:13:06   fhemBackupFile  ./backup/FHEM-20201020_091306.tar.gz
     2020-10-20 09:13:56   state           ready
     2020-10-20 09:13:56   uploadState     upload successfully
Attributes:
   DbLogExclude .*
   bTS_Host   nc.xxxxxxxxxx.de
   bTS_Path   /fhem_Backup
   bTS_Type   Nextcloud
   bTS_User   xxxxx
RPi3B+ als FHEM mit VCCU,ZWave,Signalduino,MQTT
RPi4B als CCU3
QNAP TS451p(mit Docker) als Messwerte-Datenbank

tomspatz

Ich gehe von aus das es in meinem Falle an https liegt.
Externe Zugriffe auf unsere NC laufen über letsencrypt https und werden dann per reverse Proxy durchgereicht.

Zugriffe vom Internen Netzwerk machen den Umweg über extern nicht. Also nicht wie so oft intern -> extern -> intern, sondern direkt intern -> intern, dank der DNS Auflösung über den Server wird dann die IP der NC erreicht allerdings OHNE https. Also ergibt das hier im Browser immer einen Fehler. Das sollte es wohl sein ??

Hier nochmals log und list
2020.10.20 10:18:57 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:18:59 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:18:59 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:19:16 2: backup include:
2020.10.20 10:19:16 2: backup include:
2020.10.20 10:19:16 2: Backup with command: tar czf ./backup/FHEM-20201020_101916.tar.gz "./FHEM" "./configDB.pm" "./fhem.cfg.demo" "./README_DEMO.txt" "./docs" "./lib" "./demolog" "./CHANGED" "./MAINTAINER.txt" "./fhem.cfg" "./restoreDir" "./www" "./log" "./contrib" "./fhem.pl"
Backup done
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
          'backup done'
        ];

2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
          'state:  file upload in progress'
        ];

2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=8497)
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.20 10:19:45 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:46 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:47 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:48 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:49 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing.
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
          'state: ready',
          'uploadState: upload successfully'
        ];

Internals:
   FUUID      5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
   NAME       myNextcloudUpload
   NOTIFYDEV  global,myNextcloudUpload
   NR         19
   NTFY_ORDER 51-myNextcloudUpload
   STATE      ready
   STORAGETYPE Nextcloud
   TYPE       backupToStorage
   VERSION    v1.0.1
   READINGS:
     2020-10-20 10:19:16   fhemBackupFile  ./backup/FHEM-20201020_101916.tar.gz
     2020-10-20 10:19:50   state           ready
     2020-10-20 10:19:50   uploadState     upload successfully
Attributes:
   bTS_Host   nextcloud.xxxxxxx.de
   bTS_Path   /FHEM-Backup
   bTS_User   fhem
   verbose    5


CoolTux

Zitat von: tomspatz am 20 Oktober 2020, 10:21:33
Ich gehe von aus das es in meinem Falle an https liegt.
Externe Zugriffe auf unsere NC laufen über letsencrypt https und werden dann per reverse Proxy durchgereicht.

Zugriffe vom Internen Netzwerk machen den Umweg über extern nicht. Also nicht wie so oft intern -> extern -> intern, sondern direkt intern -> intern, dank der DNS Auflösung über den Server wird dann die IP der NC erreicht allerdings OHNE https. Also ergibt das hier im Browser immer einen Fehler. Das sollte es wohl sein ??

Hier nochmals log und list
2020.10.20 10:18:57 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:18:59 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:18:59 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:19:16 2: backup include:
2020.10.20 10:19:16 2: backup include:
2020.10.20 10:19:16 2: Backup with command: tar czf ./backup/FHEM-20201020_101916.tar.gz "./FHEM" "./configDB.pm" "./fhem.cfg.demo" "./README_DEMO.txt" "./docs" "./lib" "./demolog" "./CHANGED" "./MAINTAINER.txt" "./fhem.cfg" "./restoreDir" "./www" "./log" "./contrib" "./fhem.pl"
Backup done
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
          'backup done'
        ];

2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
          'state:  file upload in progress'
        ];

2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=8497)
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.20 10:19:45 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:46 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:47 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:48 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:49 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing.
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
          'state: ready',
          'uploadState: upload successfully'
        ];

Internals:
   FUUID      5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
   NAME       myNextcloudUpload
   NOTIFYDEV  global,myNextcloudUpload
   NR         19
   NTFY_ORDER 51-myNextcloudUpload
   STATE      ready
   STORAGETYPE Nextcloud
   TYPE       backupToStorage
   VERSION    v1.0.1
   READINGS:
     2020-10-20 10:19:16   fhemBackupFile  ./backup/FHEM-20201020_101916.tar.gz
     2020-10-20 10:19:50   state           ready
     2020-10-20 10:19:50   uploadState     upload successfully
Attributes:
   bTS_Host   nextcloud.xxxxxxx.de
   bTS_Path   /FHEM-Backup
   bTS_User   fhem
   verbose    5


Wenn ich Dich also Recht verstehe ist intern der Zugriff lediglich über http möglich? Und wenn Du es auf HTTPS umstellen tust?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

Zitat von: tomspatz am 20 Oktober 2020, 10:21:33
Ich gehe von aus das es in meinem Falle an https liegt.
Externe Zugriffe auf unsere NC laufen über letsencrypt https und werden dann per reverse Proxy durchgereicht.

Zugriffe vom Internen Netzwerk machen den Umweg über extern nicht. Also nicht wie so oft intern -> extern -> intern, sondern direkt intern -> intern, dank der DNS Auflösung über den Server wird dann die IP der NC erreicht allerdings OHNE https. Also ergibt das hier im Browser immer einen Fehler. Das sollte es wohl sein ??

Hier nochmals log und list
2020.10.20 10:18:57 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:18:59 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:18:59 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:19:16 2: backup include:
2020.10.20 10:19:16 2: backup include:
2020.10.20 10:19:16 2: Backup with command: tar czf ./backup/FHEM-20201020_101916.tar.gz "./FHEM" "./configDB.pm" "./fhem.cfg.demo" "./README_DEMO.txt" "./docs" "./lib" "./demolog" "./CHANGED" "./MAINTAINER.txt" "./fhem.cfg" "./restoreDir" "./www" "./log" "./contrib" "./fhem.pl"
Backup done
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
          'backup done'
        ];

2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
          'state:  file upload in progress'
        ];

2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=8497)
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.20 10:19:45 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:46 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:47 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:48 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:49 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing.
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
          'state: ready',
          'uploadState: upload successfully'
        ];

Internals:
   FUUID      5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
   NAME       myNextcloudUpload
   NOTIFYDEV  global,myNextcloudUpload
   NR         19
   NTFY_ORDER 51-myNextcloudUpload
   STATE      ready
   STORAGETYPE Nextcloud
   TYPE       backupToStorage
   VERSION    v1.0.1
   READINGS:
     2020-10-20 10:19:16   fhemBackupFile  ./backup/FHEM-20201020_101916.tar.gz
     2020-10-20 10:19:50   state           ready
     2020-10-20 10:19:50   uploadState     upload successfully
Attributes:
   bTS_Host   nextcloud.xxxxxxx.de
   bTS_Path   /FHEM-Backup
   bTS_User   fhem
   verbose    5


Doofe Frage. Der Ordner  /FHEM-Backup existiert in Deiner Cloud?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

Zitat von: fr00sch am 20 Oktober 2020, 10:05:50
@tomspatz: ich greife über die externe DNS auf meine Nextcloud die im Docker auf meinem QNAP läuft.


        ];
          'uploadState: upload successfully'
          'state: ready',
2020.10.20 08:56:00 4:  backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.20 08:56:00 4:  backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.20 08:56:00 4:  backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.20 08:56:00 4:  backupToStorage (myNextcloudUpload) - got result from asynchronous parsing.
2020.10.20 08:55:59 4:  backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.20 08:55:59 4:  backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=9971)
2020.10.20 08:55:58 4:  backupToStorage (myNextcloudUpload) - Read password from file

        ];
          'state:  file upload in progress'
2020.10.20 08:55:58 4:  backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.20 08:55:58 4:  backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 08:55:58 4:  backupToStorage (myNextcloudUpload) - after readings age return
2020.10.20 08:55:58 4:  backupToStorage (myNextcloudUpload) - push to storage function

        ];
          'backup done'
2020.10.20 08:55:58 4:  backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
Backup done
tar: Entferne führende ,,/" von Zielen harter Verknüpfungen
tar: Entferne führende ,,/" von Elementnamen
2020.10.20 08:55:11 2:  Backup with command: tar czf ./backup/FHEM-20201020_085511.tar.gz "./Z_Wave_EG.bin" "./db.conf" "./db_remote.conf" "./gassistant-fhem.cfg" "./changelog.txt" "./FHEM" "./CHANGED" "./configDB.pm" "./kalender.ics" "./dead.letter" "./configDB.conf" "./info" "./config" "./docs" "./fhem.db" "./contrib_old" "./log" "./contrib" "./certs" "configDB.conf" "./babbleFILE" "./fhem.pl" "./restoreDir" "./demolog" "./fhem.cfg" "./README_DEMO.txt" "./gassistant-fhem.cfg.previous" "./backup.sh" "./www" "./db_container.conf" "./MAINTAINER.txt" "./fhem-config.db" "./unused" "./lib" "./fhem_homematic.cfg" "/opt/fhem/fhem-config.db"
2020.10.20 08:55:11 2:  backup include SQLite DB File: /opt/fhem/fhem-config.db
2020.10.20 08:55:11 2:  backup include: 'configDB.conf'
2020.10.20 08:55:11 1:  NOTE: make sure you have a database backup!



Internals:
   FUUID      5f8e8113-f33f-daea-d4a4-53a4b70729992cc3
   NAME       myNextcloudUpload
   NOTIFYDEV  global,myNextcloudUpload
   NR         711
   NTFY_ORDER 51-myNextcloudUpload
   STATE      ready
   STORAGETYPE Nextcloud
   TYPE       backupToStorage
   VERSION    v1.0.1
   READINGS:
     2020-10-20 09:13:06   fhemBackupFile  ./backup/FHEM-20201020_091306.tar.gz
     2020-10-20 09:13:56   state           ready
     2020-10-20 09:13:56   uploadState     upload successfully
Attributes:
   DbLogExclude .*
   bTS_Host   nc.xxxxxxxxxx.de
   bTS_Path   /fhem_Backup
   bTS_Type   Nextcloud
   bTS_User   xxxxx


Sieht eigentlich gut aus. Im angegebenen Ordner liegt aber kein File?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

tomspatz

ZitatDoofe Frage. Der Ordner  /FHEM-Backup existiert in Deiner Cloud?
alles gut es gibt die schlimmsten Fehler  ;)