NextCloud Backup - Response Code 500

I’m trying to use the mentioned add-on. But it fails with this error during upload:

HTTPError: Response code 500 (Internal Server Error)
    at Request._onResponseBase (file:///opt/nextcloud_backup/node_modules/got/dist/source/core/index.js:684:31)
    at Request._onResponse (file:///opt/nextcloud_backup/node_modules/got/dist/source/core/index.js:743:24)
    at ClientRequest.<anonymous> (file:///opt/nextcloud_backup/node_modules/got/dist/source/core/index.js:761:23)
    at Object.onceWrapper (node:events:628:26)
    at ClientRequest.emit (node:events:525:35)
    at HTTPParser.parserOnIncomingClient (node:_http_client:693:27)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17)
    at TLSSocket.socketOnData (node:_http_client:534:22)
    at TLSSocket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:324:12)

I use a NextCloud service from hetzner.com. The WebDAV command ist not exactly the same it is with other NextCloud installations:

https://myserver.de/remote.php/dav/files/myname

Maybe this is the origin of the error. I’m also using a NextCloud App password that I successfully tested with another third party software. Does someone have an idea what could be wrong?

Thank you all!

Which one is the mentioned add-on you are referring to?

It’s the NextCloud Backup that I mentioned in the title. You find it here.

A peek into the issue tracker of the add-on reveales THIS (exactly the error you encounter).

To get around it:

Thank you! But I already read this and it’s not the problem. By the way, my backups are around 30 MB. Not a size that is limited. The storage size is 1TB and I already uploaded files of several GB with WebDAV.

I would look within the Nextcloud log what is going wrong here. There must be some log entries regarding the issue whenever HA is trying to store a backup on the Nextcloud space.

I’ll try, but that’s not so easy because this a closed system that the provider is running. I’ve asked them to give me access to the log files.

Maybe you want to try THIS backup solution for Nextcloud instead?

Good idea! Thank you!

But I first wait for an answer from the provider. They seem to be very fast and told me to look at the logs to tell me what the error caused.

I finally found a solution that fits my needs: I installed a Cron job that is executed daily. This job starts the backup, copies it to a temporary folder, renames it to something readable like "20241126_1800.tar" and uploads the file to a NextCloud space. It has the big advantage over all the other solutions that it uploads to a shared write-only NextCloud folder, which makes it a lot more safe than another kind of shared folder. Additionally it deletes local backups that are older than n days.

If someone is interested, I’d be happy to share this solution here. Just ask me.

1 Like