Fails to mount S3 bucket to Windows Server

What is the problem you are having with rclone?

Hi I am trying to mount an S3 bucket to a Windows EC2 instance, but I get an error when I try to do so

What is your rclone version (output from rclone version)

rclone-v1.51.0-windows-amd64

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

Windows Server 2019 Datacenter 64-bit

Which cloud storage system are you using? (eg Google Drive)

AWS S3 Storage

The command you were trying to run (eg rclone copy /tmp remote:tmp)

.\rclone mount bucketname:bucketname/ S: --vfs-cache-mode full

The rclone config contents with secrets removed.

[bucketname]
type = s3
provider = AWS
access_key_id = xxxxxxxxxxxxx
secret_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
region = us-east-1
storage_class = STANDARD

A log from the command with the -vv flag

2020/11/03 08:08:27 DEBUG : rclone: Version "v1.51.0" starting with parameters ["C:\\rclone\\rclone.exe" "mount" "bucketname:bucketname/" "S:" "--vfs-cache-mode" "full" "-vv"]
2020/11/03 08:08:27 DEBUG : Using config file from "C:\\Users\\Administrator\\.config\\rclone\\rclone.conf"
2020/11/03 08:08:27 DEBUG : S3 bucket bucketname: Mounting on "S:"
2020/11/03 08:08:27 INFO : S3 bucket bucketname: poll-interval is not supported by this remote
2020/11/03 08:08:27 DEBUG : vfs cache root is "C:\\Users\\Administrator\\AppData\\Local\\rclone\\vfs\\bucketname\\bucketname"
2020/11/03 08:08:27 DEBUG : Adding path "vfs/forget" to remote control registry
2020/11/03 08:08:27 DEBUG : Adding path "vfs/refresh" to remote control registry
2020/11/03 08:08:27 DEBUG : Adding path "vfs/poll-interval" to remote control registry
2020/11/03 08:08:27 DEBUG : S3 bucket bucketname: Mounting with options: ["-o" "fsname=bucketname:bucketname" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "attr_timeout=1" "-o" "atomic_o_trunc" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=bucketname bucketname"]
2020/11/03 08:08:27 ERROR : S3 bucket bucketname: Mount failed
2020/11/03 08:08:27 Fatal error: failed to mount FUSE fs: mount stopped before calling Init: mount failed

hello and welcome to the forum,

  • you might want to update to a latest version of rclone.
  • what version of winfsp?
  • before trying a mount, try rclone ls bucketname:bucketname

Hi, thanks for the reply. The version of winfsp is 2020.2. I tried rclone ls bucketname:bucketname before trying the mount but get the same error. I will try and update to the latest version of rclone and see if that resolves the issue

can you run rclone ls bucketname:bucketname -vv and post the output

2020/11/03 17:18:45 DEBUG : rclone: Version "v1.51.0" starting with parameters ["C:\\rclone\\rclone.exe" "ls" "bucketname:bucketname" "-vv"]
2020/11/03 17:18:45 DEBUG : Using config file from "C:\\Users\\Administrator\\.config\\rclone\\rclone.conf"
2020/11/03 17:18:45 DEBUG : 5 go routines active
2020/11/03 17:18:45 DEBUG : rclone: Version "v1.51.0" finishing with parameters ["C:\\rclone\\rclone.exe" "ls" "bucketname:bucketname" "-vv"]

hi that's the output I get from rclone ls bucketname:bucketname -vv

no error with that command.

do you have any files in that remote?
if not, perhaps try a rclone copy

So I get this error when I try to rclone copy, but I'm not sure if that's an error or I'm getting the format wrong?

PS C:\rclone> .\rclone -vvv copy c:\test\test.txt bucketname:/

2020/11/03 17:53:06 DEBUG : rclone: Version "v1.51.0" starting with parameters ["C:\\rclone\\rclone.exe" "-vvv" "copy" "c:\\test\\test.txt" "bucketname:/"]
2020/11/03 17:53:06 DEBUG : Using config file from "C:\\Users\\Administrator\\.config\\rclone\\rclone.conf"
2020/11/03 17:53:06 ERROR : Attempt 1/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2020/11/03 17:53:06 ERROR : Attempt 2/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2020/11/03 17:53:06 ERROR : Attempt 3/3 failed with 1 errors and: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
2020/11/03 17:53:06 Failed to copy: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.

not sure what the error is.

and can you post the real command as is?

Sure, thing. It looks as though for the copy I was typing the command wrong as I managed to copy a file from my local folder to the S3 (remote) bucket. Is there a guide for upgrading rclone on Windows as I've only been able to find information on Linux systems ? Do I need to uninstall the current version before or after installing the newer version?

on windows, there is no install.
rclone is a portable app.
so download it and run it.

1 Like

Hi, thanks for your help. It looks like upgrading to the latest version of rclone solved my problem.

good to know...

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.