From 04053748238ffd85f241a9a71648861d65f6933c Mon Sep 17 00:00:00 2001 From: SebClem Date: Sun, 15 Nov 2020 12:04:49 +0100 Subject: [PATCH 1/3] :ambulance: Add "homeassistant_api" to config to fix permission issue #30 --- nextcloud_backup/config.json | 1 + 1 file changed, 1 insertion(+) diff --git a/nextcloud_backup/config.json b/nextcloud_backup/config.json index 9e18402..852ae9f 100644 --- a/nextcloud_backup/config.json +++ b/nextcloud_backup/config.json @@ -22,6 +22,7 @@ "boot": "auto", "hassio_api": true, "hassio_role": "backup", + "homeassistant_api": true, "options": { "ssl": false, "certfile": "fullchain.pem", From eed5fe0eb8c9605b4532f8ba9f168682b8a25a30 Mon Sep 17 00:00:00 2001 From: SebClem Date: Sun, 15 Nov 2020 12:25:07 +0100 Subject: [PATCH 2/3] :ambulane: Swith to role "manger" to fix permission issue #30 --- nextcloud_backup/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextcloud_backup/config.json b/nextcloud_backup/config.json index 852ae9f..ca2183d 100644 --- a/nextcloud_backup/config.json +++ b/nextcloud_backup/config.json @@ -21,7 +21,7 @@ ], "boot": "auto", "hassio_api": true, - "hassio_role": "backup", + "hassio_role": "manager", "homeassistant_api": true, "options": { "ssl": false, From 3941262e8c55ae5899769456353100725f3928b2 Mon Sep 17 00:00:00 2001 From: SebClem Date: Tue, 17 Nov 2020 15:28:59 +0100 Subject: [PATCH 3/3] =?UTF-8?q?=E2=9C=8F=EF=B8=8FAdd=20more=20debug=20when?= =?UTF-8?q?=20uploading/downloading=20to/from=20Nextcloud?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rootfs/opt/nextcloud_backup/tools/webdavTools.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js b/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js index 7475666..050888a 100644 --- a/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js +++ b/nextcloud_backup/rootfs/opt/nextcloud_backup/tools/webdavTools.js @@ -216,6 +216,7 @@ class WebdavTools { if (conf.ssl === "true") { options["https"] = { rejectUnauthorized: conf.self_signed === "false" }; } + logger.debug(`...URI: ${this.baseUrl + encodeURI(path)} rejectUnauthorized: ${options["https"]["rejectUnauthorized"]}`); got.stream .put(this.baseUrl + encodeURI(path), options) @@ -309,7 +310,7 @@ class WebdavTools { if (conf.ssl === "true") { options["https"] = { rejectUnauthorized: conf.self_signed === "false" }; } - + logger.debug(`...URI: ${this.baseUrl + encodeURI(path)} rejectUnauthorized: ${options["https"]["rejectUnauthorized"]}`) pipeline( got.stream.get(this.baseUrl + encodeURI(path), options).on("downloadProgress", (e) => { let percent = Math.round(e.percent * 100) / 100;