I want to mount S3 (Minio) endpoint under Windows.
Everything works well when using different software to access / mount the endpoint - I can browse it without any issues, create new dirs, copy files, etc.
When mounting with RClone, I can see what’s in a bucket, but when I want to open directory, create new one or basically do any modifications, I receive below errors.
PS C:\Users\Administrator\Downloads\rclone> .\rclone.exe mount Minio:bucket_name X: --no-check-certificate
The service rclone has been started.
2019/03/21 15:28:55 ERROR : New Text Document.txt: Failed to copy: s3 upload: 401 Unauthorized: Access Denied
2019/03/21 15:28:55 ERROR : New Text Document.txt: WriteFileHandle.New Rcat failed: s3 upload: 401 Unauthorized: Access Denied
2019/03/21 15:28:55 ERROR : New Text Document.txt: WriteFileHandle.Release error: s3 upload: 401 Unauthorized: Access Denied
2019/03/21 15:28:55 ERROR : IO error: s3 upload: 401 Unauthorized: Access Denied
2019/03/21 15:28:55 ERROR : IO error: can’t open file - writer failed
2019/03/21 15:28:56 ERROR : IO error: can’t open file - writer failed
This doesn’t make any sense - it works well with Minio Client and Mountain Duck, so it doesn’t seem to be a matter of permissions. My guess is RClone accesses the endpoint differently.
Here’s my config file (I removed my keys and endpoint, but I’m sure all of it is correct):
I just tried it. After using --s3-upload-cutoff 0 I managed to create file inside a bucket, but couldn’t open it (IO read error). The good thing is that I received below output and after adding --vfs-cache-mode writes, everything started to work!
PS C:\Users\Administrator\Downloads\rclone> .\rclone.exe mount Minio:bucket_name X: --s3-upload-cutoff 0 --no-check-certificate
The service rclone has been started.
2019/03/22 09:47:48 ERROR : IO error: InvalidRange: The requested range is not satisfiable status code: 416, request id: 158E3EE3A8942B1F, host id:
2019/03/22 09:47:55 ERROR : test.txt: WriteFileHandle: Can’t open for write without O_TRUNC on existing file without --vfs-cache-mode >= writes
The service rclone has been stopped.
Ok, actually it’s still not fine… I receive IO read errors randomly now.
Sometimes I can create a file, modify existing ones, etc, and sometimes it’s throwing errors.
I assume it’s a matter of some caching parameters.
Any ideas?