Sebclem / hassio-nextcloud-backup

Hass.io Add-on: Backup your snapshots to Nextcloud
GNU General Public License v3.0
126 stars 19 forks source link

Upload to owncloud fails (or: Please support owncloud) #89

Open ThomDietrich opened 2 years ago

ThomDietrich commented 2 years ago

Describe the bug Hey, I understand that your addon is specifically named nextcloud but as nextcloud is a fork of owncloud I was wondering whether it also supports ownloud... or if you could support it.

What I get atm:

-----------------------------------------------------------
 Add-on: Nextcloud Backup
 Easily backup your Home Assistant snapshots to Nextcloud
-----------------------------------------------------------
 Add-on version: 0.16.4
 You are running the latest version of this add-on.
 System: Home Assistant OS 6.6  (aarch64 / odroid-n2)
 Home Assistant Core: 2021.10.4
 Home Assistant Supervisor: 2021.10.8
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
Log level is set to INFO
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[22:48:59] INFO: Starting Node...
> nexcloud-backup@0.8.0 start
> node ./bin/www
[2021-11-01 22:49:03] [info]:   Satus : Go !
[2021-11-01 22:49:03] [info]:   Initializing and checking webdav client...
[2021-11-01 22:49:03] [info]:   Starting auto clean cron...
[2021-11-01 22:49:03] [warn]:   No Cron settings available.
[2021-11-01 22:49:03] [info]:   Hassio API : Go !
[2021-11-01 22:49:05] [info]:   Nextcloud connection : Go !
[2021-11-01 23:25:02] [info]:   Stopping addons...
[2021-11-01 23:25:02] [info]:   ... Ok
[2021-11-01 23:25:02] [info]:   Creating new snapshot...
[2021-11-01 23:25:59] [info]:   Initializing and checking webdav client...
[2021-11-01 23:26:11] [info]:   Downloading snapshot fd5cf1ab...
[2021-11-01 23:26:20] [info]:   Download success !
[2021-11-01 23:26:20] [info]:   Uploading snap...
[2021-11-01 23:26:20] [error]:  Fail to upload snapshot to nextcloud (Error: write ECONNRESET) !
[2021-11-01 23:26:20] [error]:  Error: write ECONNRESET
    at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:94:16)
(node:346) UnhandledPromiseRejectionWarning: Fail to upload snapshot to nextcloud (Error: write ECONNRESET) !
(Use `node --trace-warnings ...` to show where the warning was created)
(node:346) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:346) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Thanks!

Sebclem commented 2 years ago

I think Owncloud don't use the save URL for WebDAV than Nextcloud, I need to check this.

ThomDietrich commented 2 years ago

Let me know how I can help/investigate/verify

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

ThomDietrich commented 2 years ago

The other day I found https://github.com/jcwillox/hassio-rclone-backup and will give this a try in the next couple of days