Skip to content
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

Nextcloud: broke webdav connect in new version (due to added support for chunked uploads?) #7199

Closed
technout opened this issue Aug 1, 2023 · 11 comments

Comments

@technout
Copy link

technout commented Aug 1, 2023

The associated forum post URL from https://forum.rclone.org

What is the problem you are having with rclone?

About one month ago, i can connect from my Manjaro desktop with my transip / stackstorage cloud with rclone.
From my Ubuntu server 22.04 i still can connect to this cloud with rclone. But with the newer version of rclone on my desktop i got this error:
Failed to create file system for "transip:": the remote url looks incorrect. Note that nextcloud chunked uploads require you to use the /dav/files/USER endpoint instead of /webdav. Please check 'rclone config show remotename' to verify that the url field ends in /dav/files/USERNAME

When i test the url direct in browser (https://mydomain.stack.storage/remote.php/webdav) i get an OK.
And also for: https://mydomain.stack.storage/remote.php/dav/files/technout i get an OK.
Username and password are not changed en no config file was changed by me. But after this i did some testing, delete the transip entrance and added it again, but no luck, same error.

I hope i've given enough information to be helpful, and thanks for maintaining this cool project!

What is your rclone version (output from rclone version)

rclone v1.63.1 (Manajaro)

  • os/version: arch "23.0.0" (64 bit)
  • os/kernel: 6.1.38-1-MANJARO (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.20.6
  • go/linking: static
  • go/tags: none

Ubuntu rclone version (is working good with this same config of transip)
rclone v1.58.1

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 5.15.0-72-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.9
  • go/linking: static
  • go/tags: none

Which OS you are using and how many bits (e.g. Windows 7, 64 bit)

6.1.38-1-MANJARO (x86_64)

Which cloud storage system are you using? (e.g. Google Drive)

Webdav / Nextcloud / TransIP

The command you were trying to run (e.g. rclone copy /tmp remote:tmp)

sudo rclone lsd transip: -vv

A log from the command with the -vv flag (e.g. output from rclone -vv copy /tmp remote:tmp)

2023/08/01 21:38:36 DEBUG : rclone: Version "v1.63.1" starting with parameters ["rclone" "lsd" "transip:" "-vv"]
2023/08/01 21:38:36 DEBUG : Creating backend with remote "transip:"
2023/08/01 21:38:36 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/08/01 21:38:36 DEBUG : found headers:
2023/08/01 21:38:36 Failed to create file system for "transip:": the remote url looks incorrect. Note that nextcloud chunked uploads require you to use the /dav/files/USER endpoint instead of /webdav. Please check 'rclone config show remotename' to verify that the url field ends in /dav/files/USERNAME

sudo rclone config
[...]
Configuration complete.
Options:

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.
@technout
Copy link
Author

technout commented Aug 2, 2023

I removed version 1.63.1 and installed rclone-1.59.2-1
Now it just works.

@ncw
Copy link
Member

ncw commented Aug 3, 2023

Can you try the latest beta please? Its possible we've fixed this already.

@technout
Copy link
Author

technout commented Aug 4, 2023

I tried it today with the latest beta, but the error is the same:
sudo rclone lsd transip:/ -vv

2023/08/04 10:20:26 DEBUG : rclone: Version "v1.64.0-beta.7204.a555513c2" starting with parameters ["rclone" "lsd" "transip:/" "-vv"]
2023/08/04 10:20:26 DEBUG : Creating backend with remote "transip:/"
2023/08/04 10:20:26 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/08/04 10:20:26 DEBUG : found headers: 
2023/08/04 10:20:26 Failed to create file system for "transip:/": the remote url looks incorrect. Note that nextcloud chunked uploads require you to use the /dav/files/USER endpoint instead of /webdav. Please check 'rclone config show remotename' to verify that the url field ends in /dav/files/USERNAME

@ncw
Copy link
Member

ncw commented Aug 4, 2023

@devnoname120 do you have any ideas? Can the url be transformed?

@technout technout changed the title Nextcloud: Added support for chunked uploads and /dav/files/USER endpoint not /webdav error Nextcloud: broke webdav connect in new version (due to added support for chunked uploads?) Aug 4, 2023
@technout
Copy link
Author

technout commented Aug 4, 2023

To be more clear: it is a bug report, not a question.

@ncw
Copy link
Member

ncw commented Aug 5, 2023

The error message

Failed to create file system for "transip:": the remote url looks incorrect. Note that nextcloud chunked uploads require you to use the /dav/files/USER endpoint instead of /webdav. Please check 'rclone config show remotename' to verify that the url field ends in /dav/files/USERNAME

Is telling you to change your URL from https://mydomain.stack.storage/remote.php/webdav to https://mydomain.stack.storage/remote.php/dav/files/USERNAME where USERNAME is your username.

Can you try this?

@technout
Copy link
Author

technout commented Aug 5, 2023

Yes, i've tried this, this gives the same results.

@devnoname120
Copy link
Contributor

@ncw I'm not entirely sure whether it's safe to automatically fix URLs from /webdav to /dav/files/USERNAME. This error message was added before I took over the NextCloud chunked uploads feature and I didn't invest the time to find out if it's legitimate or not. It's unlikely that I will be able to look into it in the coming 3 weeks.

@ncw
Copy link
Member

ncw commented Aug 5, 2023

@technout

Yes, i've tried this, this gives the same results.

Can you show the log with -vv for this please because I think this if it is going to fail, it should at least fail in a different way!

@devnoname120
Copy link
Contributor

devnoname120 commented Aug 5, 2023

@technout Also, why did you configure the remote as a NextCloud remote? Transip STACK is based on ownCloud, not NextCloud. Chunked uploads for ownCloud are not supported by rclone.

@technout
Copy link
Author

technout commented Aug 7, 2023

Yes, you're right! I thought it was NextCloud but configuring it as OwnCloud fixed the problem! All these years it did work with NextCloud so i was convinces it was the right setting. Sorry for my misconfiguration!
Configuring it with /webdav or /dav/files/USERNAME both work when set to OwnCloud.

sudo rclone lsd transip:/ -vv
2023/08/07 14:47:21 DEBUG : rclone: Version "v1.64.0-beta.7204.a555513c2" starting with parameters ["rclone" "lsd" "transip:/" "-vv"]
2023/08/07 14:47:21 DEBUG : Creating backend with remote "transip:/"
2023/08/07 14:47:21 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2023/08/07 14:47:21 DEBUG : found headers: 
2023/08/07 14:47:21 DEBUG : fs cache: renaming cache item "transip:/" to be canonical "transip:"
          -1 2023-08-01 22:54:50        -1 restic_backup
2023/08/07 14:47:23 DEBUG : 6 go routines active

@technout technout closed this as completed Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants