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

uloz backend, copyto doesn't work (Error 60001 (422): Validation failed) #7796

Closed
Token00 opened this issue Apr 24, 2024 · 8 comments
Closed

Comments

@Token00
Copy link

Token00 commented Apr 24, 2024

What is the problem you are having with rclone?

sync and copy works, but trying to use the copyto command with the new uloz backend errors out before the upload starts

What is your rclone version (output from rclone version)

rclone v1.67.0-beta.7908.29ed17d19

  • os/version: darwin 14.4.1 (64 bit)
  • os/kernel: 23.4.0 (x86_64)
  • os/type: darwin
  • os/arch: amd64
  • go/version: go1.22.2
  • go/linking: dynamic
  • go/tags: cmount

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

macOS 14.4.1 (23E224)

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

ulozto

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

rclone copyto ./linuxmint-21.3-cinnamon-64bit.iso uloz:/iso/linuxmint-21.3-64bit.iso --progress -vv

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

2024/04/24 11:27:02 DEBUG : rclone: Version "v1.67.0-beta.7908.29ed17d19" starting with parameters ["rclone" "copyto" "./linuxmint-21.3-cinnamon-64bit.iso" "uloz:/iso/linuxmint-21.3-64bit.iso" "-vv"]
2024/04/24 11:27:02 DEBUG : Creating backend with remote "./linuxmint-21.3-cinnamon-64bit.iso"
2024/04/24 11:27:02 DEBUG : Using config file from "/Users/tin/.config/rclone/rclone.conf"
2024/04/24 11:27:02 DEBUG : fs cache: adding new entry for parent of "./linuxmint-21.3-cinnamon-64bit.iso", "/Users/tin/Downloads"
2024/04/24 11:27:02 DEBUG : Creating backend with remote "uloz:/iso/"
2024/04/24 11:27:05 DEBUG : linuxmint-21.3-cinnamon-64bit.iso: Need to transfer - File not found at Destination
2024/04/24 11:27:06 ERROR : linuxmint-21.3-cinnamon-64bit.iso: Failed to copy: failed to make directory: Error 60001 (422): Validation failed.
2024/04/24 11:27:06 ERROR : Attempt 1/3 failed with 1 errors and: failed to make directory: Error 60001 (422): Validation failed.
2024/04/24 11:27:07 DEBUG : linuxmint-21.3-cinnamon-64bit.iso: Need to transfer - File not found at Destination
2024/04/24 11:27:08 ERROR : linuxmint-21.3-cinnamon-64bit.iso: Failed to copy: failed to make directory: Error 60001 (422): Validation failed.
2024/04/24 11:27:08 ERROR : Attempt 2/3 failed with 1 errors and: failed to make directory: Error 60001 (422): Validation failed.
2024/04/24 11:27:09 DEBUG : linuxmint-21.3-cinnamon-64bit.iso: Need to transfer - File not found at Destination
2024/04/24 11:27:10 ERROR : linuxmint-21.3-cinnamon-64bit.iso: Failed to copy: failed to make directory: Error 60001 (422): Validation failed.
2024/04/24 11:27:10 ERROR : Attempt 3/3 failed with 1 errors and: failed to make directory: Error 60001 (422): Validation failed.
2024/04/24 11:27:10 INFO  : 
Transferred:   	          0 B / 0 B, -, 0 B/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         7.6s

2024/04/24 11:27:10 DEBUG : 7 go routines active
2024/04/24 11:27:10 Failed to copyto: failed to make directory: Error 60001 (422): Validation failed.

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.
@Token00
Copy link
Author

Token00 commented Apr 24, 2024

The folders of the destination path do get created in the remote, but no file is uploaded.

@n0v3xx
Copy link

n0v3xx commented Apr 29, 2024

I got the same error if i mount uloz and try to copy something into this mount.

2024/04/29 22:21:08 ERROR : /: Dir.Mkdir failed to create directory: failed to make directory: Error 60001 (422): Validation failed.
2024/04/29 22:21:08 ERROR : IO error: failed to make directory: Error 60001 (422): Validation failed.

@n0v3xx
Copy link

n0v3xx commented Apr 29, 2024

@iotmaestro , can you confirm that bug?

@iotmaestro
Copy link
Contributor

Thanks for the report and apologies for the late reply, a lot of IRL stuff happening right now. Let me take a look.

@iotmaestro
Copy link
Contributor

This is a leading / trailing slash handling issue. If in any capacity we attempt to ask dircache for a path with a trailing slash such as iso/ (which copyto automatically does), dircache will attempt to retrieve an ID of a folder with an empty name under iso folder and not the ISO folder itself. In uloz.to's case it obviously fails to find it and tries to create it, which fails because empty folder names are disallowed.

By eyeballing other backends, this is something they tend to deal with on their own, such as with the canonical Box example, so I'll add handling it in the uloz.to backend as well. It may be worth considering this issue on the dircache level at some point to centralize the logic and simplify the backends.

@n0v3xx
Copy link

n0v3xx commented May 5, 2024

I tried the latest master.

./rclone version
rclone v1.67.0-DEV

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 5.15.0-37-lowlatency (x86_64)

./rclone ls ulo:
2024/05/05 21:06:50 Failed to create file system for "ulo:": Error 60001 (422): Validation failed.

It is still not working. Or what is wrong? @iotmaestro do you have an idea?
I copy the API Key fromt the page ulozto.net/upload-resumable-api-beta and use my password for the backend.

@Token00
Copy link
Author

Token00 commented May 6, 2024

Thanks for the update @iotmaestro
I tried it with rclone v1.67.0-beta.7925.c5ff5afc2
copyto works fine now.

Not sure about copying data into the mount, didn't try that.
Where do you get the -DEV version?
Maybe you can try with the beta @n0v3xx https://beta.rclone.org/v1.67.0-beta.7925.c5ff5afc2/

@n0v3xx
Copy link

n0v3xx commented May 7, 2024

I build the current master by my self that the dev version. Where I can get a API key for my account? On the docs is just a general key.

EDIT: with a dedicated API Key from support, its working. Copy and Mount works. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants