-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backup fails against Nextcloud WebDAV backend with Caddy proxy: HTTP 411 #852
Comments
This comment has been minimized.
This comment has been minimized.
Yeah please don't use that.
HTTP 411 is |
This comment has been minimized.
This comment has been minimized.
Oh I didn't know it was explicitly not recommended, might wanna put a warning about that somewhere...
I'm running stock Nextcloud. Based on the info here it seems like it uses a separate endpoint from the usual DAV one, specifically for chunked uploads: ( |
I think the issue is not Nextloud itself, because I ran tests against various Nextcloud instances. The issue is most likely with the HTTP server you run Nextcloud on. |
You're probably right, I hadn't considered the reverse proxy. I'm using Caddy (latest) and it seems to have a bunch of problems handling chunked encoding and content lengths. This issue seems like the most relevant in this case. I tried one of the suggested fixes (setting request_buffers), the backup still fails but now I can't find any useful exception in the logs. |
Update: actually turns out after applying the Caddy request_buffers fix I was running into this issue. Excluding my VPN app finally got my backups to finish correctly. I did some manual testing trying out different buffer sizes for the request proxying and it seems the minimum needed for the backups not to hang is in the order of 10MB. Do you have any suggestions for that? Is there a maximum size for the chunks sent by Seedvault, or the files themselves? |
Great, you made some progress. The maximum file size tries to write should be 15MB maybe a few bytes more with overhead. |
Perfect, thanks! I'll set the buffer size to just above that. I think this issue can be closed now, or turned to a discussion in case others run into the same issue. |
Context
I've been trying with no success to integrate Seedvault with my Nextcloud instance, but both integration options (Nextcloud client and WebDAV) have been basically unusable since I started trying on the previous Seedvault version.
The Nextcloud client integration is ridiculously slow (seemingly backing up and uploading each chunk of each APK individually and synchronously) and suffers from the native Nextcloud client's upload function's fragility: uploads fail without retry at the first sign of network instability and that in turn fails the entire backup.
The WebDAV integration was entirely broken for me in the previous version: it would just get stuck on "Setting up the backend" eventually showing an error. I was excited for the new version 15 to hopefully fix this. Indeed, setting up the backend now works smoothly, but backups still fail when it gets to the uploading step.
For context: I'm using an app password for Nextcloud WebDAV as detailed here. My Seedvault WebDAV configs are:
Relevant Logs
Environment
The text was updated successfully, but these errors were encountered: