Using rclone to mount s3 drive on AWS Workspace windows machine but mount is not working

What is the problem you are having with rclone?

Running rclone mount and it says "service rclone has been started" but shows nothing in drive

Run the command 'rclone version' and share the full output of the command.

rclone v1.64.2

  • os/version: Microsoft Windows Server 2019 Datacenter 1809 (64 bit)
  • os/kernel: 10.0.17763.4377 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.21.3
  • go/linking: static
  • go/tags: cmount

Are you on the latest version of rclone? You can validate by checking the version listed here: Rclone downloads --> Yes, on latest version

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

AWS S3.

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

 .\rclone mount test-mathematica-lambda-code:nctest S: --vfs-cache-mode full

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[test-mathematica-lambda-code]
type = s3
provider = AWS
access_key_id = XXX
secret_access_key = XXX
region = us-east-1
storage_class = STANDARD

A log from the command that you were trying to run with the -vv flag

PS C:\rclone> .\rclone mount test-mathematica-lambda-code:nctest S: --vfs-cache-mode full -vv
2023/11/21 14:40:08 DEBUG : rclone: Version "v1.64.2" starting with parameters ["C:\\rclone\\rclone.exe" "mount" "test-mathematica-lambda-code:nctest" "S:" "--vfs-cache-mode" "full" "-vv"]
2023/11/21 14:40:08 DEBUG : Creating backend with remote "test-mathematica-lambda-code:nctest"
2023/11/21 14:40:08 DEBUG : Using config file from "D:\\Users\\sys_admin\\AppData\\Roaming\\rclone\\rclone.conf"
2023/11/21 14:40:08 INFO  : S3 bucket nctest: poll-interval is not supported by this remote
2023/11/21 14:40:08 DEBUG : vfs cache: root is "D:\\Users\\sys_admin\\AppData\\Local\\rclone"
2023/11/21 14:40:08 DEBUG : vfs cache: data root is "\\\\?\\D:\\Users\\sys_admin\\AppData\\Local\\rclone\\vfs\\test-mathematica-lambda-code\\nctest"
2023/11/21 14:40:08 DEBUG : vfs cache: metadata root is "\\\\?\\D:\\Users\\sys_admin\\AppData\\Local\\rclone\\vfsMeta\\test-mathematica-lambda-code\\nctest"
2023/11/21 14:40:08 DEBUG : Creating backend with remote "D:/Users/sys_admin/AppData/Local/rclone/vfs/test-mathematica-lambda-code/nctest"
2023/11/21 14:40:08 DEBUG : fs cache: renaming cache item "D:/Users/sys_admin/AppData/Local/rclone/vfs/test-mathematica-lambda-code/nctest" to be canonical "//?/D:/Users/sys_admin/AppData/Local/rclone/vfs/test-mathematica-lambda-code/nctest"
2023/11/21 14:40:08 DEBUG : Creating backend with remote "D:/Users/sys_admin/AppData/Local/rclone/vfsMeta/test-mathematica-lambda-code/nctest"
2023/11/21 14:40:08 DEBUG : fs cache: renaming cache item "D:/Users/sys_admin/AppData/Local/rclone/vfsMeta/test-mathematica-lambda-code/nctest" to be canonical "//?/D:/Users/sys_admin/AppData/Local/rclone/vfsMeta/test-mathematica-lambda-code/nctest"
2023/11/21 14:40:08 DEBUG : Network mode mounting is disabled
2023/11/21 14:40:08 DEBUG : Mounting on "S:" ("test-mathematica-lambda-code nct")
2023/11/21 14:40:08 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2023/11/21 14:40:08 DEBUG : S3 bucket nctest: Mounting with options: ["-o" "attr_timeout=1" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=test-mathematica-lambda-code nct"]
2023/11/21 14:40:08 DEBUG : S3 bucket nctest: Init:
2023/11/21 14:40:08 DEBUG : S3 bucket nctest: >Init:
2023/11/21 14:40:08 DEBUG : /: Statfs:
2023/11/21 14:40:08 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:274877906944 Bfree:274877906944 Bavail:274877906944 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2023/11/21 14:40:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/11/21 14:40:08 DEBUG : /: >Getattr: errc=0
2023/11/21 14:40:08 DEBUG : /: Readlink:
2023/11/21 14:40:08 DEBUG : /: >Readlink: linkPath="", errc=-40
2023/11/21 14:40:08 DEBUG : /: Getxattr: name="non-existant-a11ec902d22f4ec49003af15282d3b00"
2023/11/21 14:40:08 DEBUG : /: >Getxattr: errc=-40, value=""
2023/11/21 14:40:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/11/21 14:40:08 DEBUG : /: >Getattr: errc=0
2023/11/21 14:40:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/11/21 14:40:08 DEBUG : /: >Getattr: errc=0
2023/11/21 14:40:08 DEBUG : /: Opendir:
The service rclone has been started.
2023/11/21 14:40:08 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/11/21 14:40:08 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/11/21 14:40:08 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/11/21 14:40:08 DEBUG : /: Releasedir: fh=0x0
2023/11/21 14:40:08 DEBUG : /: >Releasedir: errc=0
2023/11/21 14:40:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/11/21 14:40:08 DEBUG : /: >Getattr: errc=0
2023/11/21 14:40:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/11/21 14:40:08 DEBUG : /: >Getattr: errc=0
2023/11/21 14:40:08 DEBUG : /: Opendir:
2023/11/21 14:40:08 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/11/21 14:40:08 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/11/21 14:40:08 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/11/21 14:40:08 DEBUG : /: Releasedir: fh=0x0
2023/11/21 14:40:08 DEBUG : /: >Releasedir: errc=0
2023/11/21 14:40:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/11/21 14:40:08 DEBUG : /: >Getattr: errc=0
2023/11/21 14:40:08 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/11/21 14:40:08 DEBUG : /: >Getattr: errc=0
2023/11/21 14:40:08 DEBUG : /: Opendir:
2023/11/21 14:40:08 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/11/21 14:40:08 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/11/21 14:40:08 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/11/21 14:40:08 DEBUG : /: Releasedir: fh=0x0
2023/11/21 14:40:08 DEBUG : /: >Releasedir: errc=0

By any chance don't you run your rclone mount command from elevated cmd? As then as per docs mount content won't be visible by other users.

Otherwise everything you are doing looks ok.

welcome to the forum,

not sure what you mean?
that the s: is visible but empty or that the s: does not exist?

as a test, can open two command prompts, one prompt with admin privileges, one prompt without admin privileges.
and try dir s:\ and windows explorer.

as a test, mount to a folder, as that should be visible to both command prompts and windows explorer.
rclone mount test-mathematica-lambda-code:nctest c:\path\to\folder -vv
and try dir c:\path\to\folder and windows explorer.

Thanks @kapitainsky

It is working now. Earlier I was mounting it as Administrator cmd.

I have another question - Could you please let me know if there is any option to use role ARN to mount s3 as drive, instead of using AWS access key and id while configuring the remote for rclone.

Thanks
Neelam

Yes. I think you can find plenty of examples on this forum how to use ARN.

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