# In the mounted drive of a S3 bucket not able to replace/override existing file

**URL:** <https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770>\
**Category:** Help and Support\
**Created:** [April 9, 2025, 3:00pm UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770 "2025-04-09T15:00:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![devraj\_kanti](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@devraj\_kanti](https://forum.rclone.org/u/devraj_kanti)\
**Post date:** [April 9, 2025, 3:00pm UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/1 "2025-04-09T15:00:54Z")

</div>

**STOP and READ**  **USE THIS TEMPLATE**  **NO EXCEPTIONS** - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.

#### What is the problem you are having with rclone?

In the mounted drive of a S3 bucket when I try to replace/override existing file with Admin credentials I get a windows error dialog message "Destination Folder Access Denied"

My EC2 are in a AWS Account say "A" and from the A account I am mounting the buckets which are in different AWS Accounts say "B, C, ..." and encrypted with KMS Keys. The S3 buckets have the following bucket policies attached and the IAM role attached to the EC2 has s3 and KMS Key full access-

```auto
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": [
                    "arn:aws:iam::<AWS-Account-Id1>:root",
                    "arn:aws:iam::<AWS-Account-Id2>:root"
                ]
            },
            "Action": [
                "s3:DeleteObject*",
                "s3:PutObject",
                "s3:PutObjectLegalHold",
                "s3:PutObjectRetention",
                "s3:PutObjectTagging",
                "s3:PutObjectVersionTagging",
                "s3:*Multipart*",
                "s3:Abort*"
            ],
            "Resource": [
                "arn:aws:s3:::my-test-s3-bucket",
                "arn:aws:s3:::my-test-s3-bucket/*"
            ]
        }
    ]
}

```

But I am able to override the file in the S3 bucket directly via the rclone copy command -

```auto
rclone copy --config C:\rclone\rclone.conf "D:\Temp\EC2-S3-Writintifile.txt" aws_s3://my-test-s3-bucket/ --ignore-checksum -vv

```

I had mounted the bucket with the command given mentioned in the last of this post.

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

rclone v1.69.1

- os/version: Microsoft Windows Server 2022 Datacenter 21H2 21H2 (64 bit)
- os/kernel: 10.0.20348.3328 (x86\_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.24.0
- go/linking: static
- go/tags: cmount

#### 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`)

```auto
rclone --config "C:\rclone\rclone.conf" mount aws_s3:my-test-s3-bucket D:\Buckets --vfs-cache-mode full --dir-cache-time 1m --poll-interval 15s --dir-perms 0777 --file-perms 0777 --no-modtime --ignore-checksum --verbose"

```

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

```auto
[aws_s3]
type = s3
provider = AWS
env_auth = true
region = eu-west-1
acl = bucket-owner-full-control
location_constraint = eu-west-1

```

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

Not sure how to get the logs of Windows Override, copied the logs of the rclone mount command

```auto
2025-04-09 16:09:09 [INFO] - 2025/04/09 16:09:06 INFO : S3 bucket my-test-s3-bucket: poll-interval is not supported by this remote
2025-04-09 16:09:09 [INFO] - 2025/04/09 16:09:06 INFO : S3 bucket my-test-s3-bucket: vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2025-04-09 16:09:09 [INFO] - 2025/04/09 16:09:07 ERROR : symlinks not supported without the --links flag: /

```

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [April 9, 2025, 3:39pm UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/2 "2025-04-09T15:39:07Z")

</div>

welcome to the forum,

maybe try `--s3-no-check-bucket`

* * *

> [@devraj\_kanti](#):
>
> Not sure how to get the logs of Windows Override

what is a `Windows Override`

need to see a rclone debug log with the `exact` error, use something like  
`--log-level=DEBUG --log-file=c:\rclone\rclone.log`  
and to keep the log small, each time, delete the log before running rclone.

* * *

for testing, for the s3 policy, enable all principals, enable all actions, enable all permissions, enable all resources, and see if that works.

* * *

> [@devraj\_kanti](#):
>
> `poll-interval is not supported by this remote`

so, `--poll-interval 15s` does nothing, can remove that.

---

<div class="post-metadata">

**Author:** ![devraj\_kanti](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@devraj\_kanti](https://forum.rclone.org/u/devraj_kanti)\
**Post date:** [April 10, 2025, 8:55am UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/3 "2025-04-10T08:55:40Z")

</div>

1. I tried with "--s3-no-check-bucket" but still same issue
2. what is a Windows Override - I meant overriding the file on the mounted S3 bucket
3. need to see a rclone debug log - Mounted the bucket with --log-level=DEBUG. Please see the below logs

```auto
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : Creating backend with remote "aws_s3:my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : Using config file from "C:\\rclone\\rclone.conf"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : aws_s3: detected overridden config - adding "{Dn7qA}" suffix to name
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : rclone: Version "v1.69.1" starting with parameters ["rclone.exe" "--no-console" "--config" "C:\\rclone\\rclone.conf" "mount" "aws_s3:my-test-s3-bucket" "D:\\Buckets\\my-test-s3-bucket" "--vfs-cache-mode" "full" "--dir-cache-time" "1m" "--dir-perms" "0777" "--file-perms" "0777" "--no-modtime" "--ignore-checksum" "--s3-no-check-bucket" "--log-level=DEBUG"]
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : fs cache: renaming cache item "aws_s3:my-test-s3-bucket" to be canonical "aws_s3{Dn7qA}:my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 INFO : S3 bucket my-test-s3-bucket: poll-interval is not supported by this remote
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: vfs cache: root is "C:\\Users\\user-id\\AppData\\Local\\rclone"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: vfs cache: data root is "\\\\?\\C:\\Users\\user-id\\AppData\\Local\\rclone\\vfs\\aws_s3{Dn7qA}\\my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: vfs cache: metadata root is "\\\\?\\C:\\Users\\user-id\\AppData\\Local\\rclone\\vfsMeta\\aws_s3{Dn7qA}\\my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : Creating backend with remote ":local,encoding='Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot',links=false:C:/Users/user-id/AppData/Local/rclone/vfs/aws_s3{Dn7qA}/my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : :local: detected overridden config - adding "{R5KD5}" suffix to name
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot',links=false:C:/Users/user-id/AppData/Local/rclone/vfs/aws_s3{Dn7qA}/my-test-s3-bucket" to be canonical ":local{R5KD5}://?/C:/Users/user-id/AppData/Local/rclone/vfs/aws_s3{Dn7qA}/my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : Creating backend with remote ":local,encoding='Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot',links=false:C:/Users/user-id/AppData/Local/rclone/vfsMeta/aws_s3{Dn7qA}/my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : :local: detected overridden config - adding "{R5KD5}" suffix to name
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot',links=false:C:/Users/user-id/AppData/Local/rclone/vfsMeta/aws_s3{Dn7qA}/my-test-s3-bucket" to be canonical ":local{R5KD5}://?/C:/Users/user-id/AppData/Local/rclone/vfsMeta/aws_s3{Dn7qA}/my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item EC2-S3-4.txt not removed, freed 0 bytes
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item IAM_404.png not removed, freed 0 bytes
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : Network mode mounting is disabled
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : Mounting on "D:\\Buckets\\my-test-s3-bucket" ("aws_s3{Dn7qA} testing-cross-accn")
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: Mounting with options: ["-o" "attr_timeout=1" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=aws_s3{Dn7qA} testing-cross-accn"]
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item S3-EC2-4.txt not removed, freed 0 bytes
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 INFO : EC2-S3-2.txt: vfs cache: removed cache file as Removing old cache file not in use
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : EC2-S3-2.txt: vfs cache: removed metadata from cache as Removing old cache file not in use
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 INFO : S3 bucket my-test-s3-bucket: vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item EC2-S3-2.txt was removed, freed 52 bytes
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item EC2-S3-3.txt not removed, freed 0 bytes
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 INFO : S3 bucket my-test-s3-bucket: vfs cache: cleaned: objects 4 (was 5) in use 0, to upload 0, uploading 0, total size 49.231Ki (was 49.282Ki)
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : S3 bucket my-test-s3-bucket: Init: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : S3 bucket my-test-s3-bucket: >Init: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Statfs: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 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
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Readlink: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 ERROR : symlinks not supported without the --links flag: /
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Readlink: errc=-40, linkPath=""
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getxattr: name="non-existant-a11ec902d22f4ec49003af15282d3b00"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getxattr: errc=-40, value=""
2025-04-10 10:34:52 [INFO] - The service rclone has been started.
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Statfs: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 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
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /desktop.ini: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /desktop.ini: >Getattr: errc=-2
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0

```

1. Enabled all principals, actions, permissions, and resources but still I get the same error "Destination Folder Access Denied"

---

<div class="post-metadata">

**Author:** ![devraj\_kanti](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@devraj\_kanti](https://forum.rclone.org/u/devraj_kanti)\
**Post date:** [April 12, 2025, 8:38am UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/4 "2025-04-12T08:38:24Z")

</div>

@asdffdsa - Can you please help.

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [April 12, 2025, 1:49pm UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/5 "2025-04-12T13:49:02Z")

</div>

> [@devraj\_kanti](#):
>
> Can you please help.

well, i would like to help, but i asked for basic info and so far, you have not provided it?

> [@asdffdsa](#):
>
> need to see a rclone debug log with the `exact` error, use something like  
> `--log-level=DEBUG --log-file=c:\rclone\rclone.log`  
> and to keep the log small, each time, delete the log before running rclone.

?

* * *

in addition, you claim `rclone copy` is working but did not provide a debug log.

---

<div class="post-metadata">

**Author:** ![devraj\_kanti](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@devraj\_kanti](https://forum.rclone.org/u/devraj_kanti)\
**Post date:** [April 14, 2025, 4:07am UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/6 "2025-04-14T04:07:10Z")

</div>

> [@asdffdsa](#):
>
> well, i would like to help, but i asked for basic info and so far, you have not provided it?
> 
> > [@asdffdsa](#):
> >
> > need to see a rclone debug log with the `exact` error, use something like  
> > `--log-level=DEBUG --log-file=c:\rclone\rclone.log`  
> > and to keep the log small, each time, delete the log before running rclone.

Thank you for response. Seems there is some minor confusion. I had copied the logs in my previous comment in point #3 for the mounting of S3 Bucket. However I am posting again the same logs here -

```auto
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : Creating backend with remote "aws_s3:my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : Using config file from "C:\\rclone\\rclone.conf"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : aws_s3: detected overridden config - adding "{Dn7qA}" suffix to name
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : rclone: Version "v1.69.1" starting with parameters ["rclone.exe" "--no-console" "--config" "C:\\rclone\\rclone.conf" "mount" "aws_s3:my-test-s3-bucket" "D:\\Buckets\\my-test-s3-bucket" "--vfs-cache-mode" "full" "--dir-cache-time" "1m" "--dir-perms" "0777" "--file-perms" "0777" "--no-modtime" "--ignore-checksum" "--s3-no-check-bucket" "--log-level=DEBUG"]
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : fs cache: renaming cache item "aws_s3:my-test-s3-bucket" to be canonical "aws_s3{Dn7qA}:my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 INFO : S3 bucket my-test-s3-bucket: poll-interval is not supported by this remote
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: vfs cache: root is "C:\\Users\\user-id\\AppData\\Local\\rclone"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: vfs cache: data root is "\\\\?\\C:\\Users\\user-id\\AppData\\Local\\rclone\\vfs\\aws_s3{Dn7qA}\\my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: vfs cache: metadata root is "\\\\?\\C:\\Users\\user-id\\AppData\\Local\\rclone\\vfsMeta\\aws_s3{Dn7qA}\\my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : Creating backend with remote ":local,encoding='Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot',links=false:C:/Users/user-id/AppData/Local/rclone/vfs/aws_s3{Dn7qA}/my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : :local: detected overridden config - adding "{R5KD5}" suffix to name
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot',links=false:C:/Users/user-id/AppData/Local/rclone/vfs/aws_s3{Dn7qA}/my-test-s3-bucket" to be canonical ":local{R5KD5}://?/C:/Users/user-id/AppData/Local/rclone/vfs/aws_s3{Dn7qA}/my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : Creating backend with remote ":local,encoding='Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot',links=false:C:/Users/user-id/AppData/Local/rclone/vfsMeta/aws_s3{Dn7qA}/my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : :local: detected overridden config - adding "{R5KD5}" suffix to name
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : fs cache: renaming cache item ":local,encoding='Slash,LtGt,DoubleQuote,Colon,Question,Asterisk,Pipe,BackSlash,Ctl,RightSpace,RightPeriod,InvalidUtf8,Dot',links=false:C:/Users/user-id/AppData/Local/rclone/vfsMeta/aws_s3{Dn7qA}/my-test-s3-bucket" to be canonical ":local{R5KD5}://?/C:/Users/user-id/AppData/Local/rclone/vfsMeta/aws_s3{Dn7qA}/my-test-s3-bucket"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item EC2-S3-4.txt not removed, freed 0 bytes
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item IAM_404.png not removed, freed 0 bytes
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : Network mode mounting is disabled
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : Mounting on "D:\\Buckets\\my-test-s3-bucket" ("aws_s3{Dn7qA} testing-cross-accn")
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: Mounting with options: ["-o" "attr_timeout=1" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=aws_s3{Dn7qA} testing-cross-accn"]
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item S3-EC2-4.txt not removed, freed 0 bytes
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 INFO : EC2-S3-2.txt: vfs cache: removed cache file as Removing old cache file not in use
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : EC2-S3-2.txt: vfs cache: removed metadata from cache as Removing old cache file not in use
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 INFO : S3 bucket my-test-s3-bucket: vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item EC2-S3-2.txt was removed, freed 52 bytes
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 DEBUG : S3 bucket my-test-s3-bucket: vfs cache RemoveNotInUse (maxAge=3600000000000, emptyOnly=false): item EC2-S3-3.txt not removed, freed 0 bytes
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:49 INFO : S3 bucket my-test-s3-bucket: vfs cache: cleaned: objects 4 (was 5) in use 0, to upload 0, uploading 0, total size 49.231Ki (was 49.282Ki)
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : S3 bucket my-test-s3-bucket: Init: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : S3 bucket my-test-s3-bucket: >Init: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Statfs: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 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
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Readlink: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 ERROR : symlinks not supported without the --links flag: /
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Readlink: errc=-40, linkPath=""
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getxattr: name="non-existant-a11ec902d22f4ec49003af15282d3b00"
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getxattr: errc=-40, value=""
2025-04-10 10:34:52 [INFO] - The service rclone has been started.
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Statfs: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 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
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /desktop.ini: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /desktop.ini: >Getattr: errc=-2
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0

```

---

<div class="post-metadata">

**Author:** ![devraj\_kanti](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@devraj\_kanti](https://forum.rclone.org/u/devraj_kanti)\
**Post date:** [April 14, 2025, 4:09am UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/7 "2025-04-14T04:09:08Z")

</div>

> [@asdffdsa](#):
>
> in addition, you claim `rclone copy` is working but did not provide a debug log.

Sorry missed out it. Below is the logs of rclone copy -

```auto
2025/04/14 06:00:27 DEBUG : rclone: Version "v1.69.1" starting with parameters ["rclone" "copy" "--config" "C:\\rclone\\rclone.conf" "D:\\Temp\\EC2-S3-Writintifile.txt" "aws_s3://my-test-s3-bucket/" "--ignore-checksum" "--log-level=DEBUG" "--log-file=c:\\rclone\\rclone.log"]
2025/04/14 06:00:27 DEBUG : Creating backend with remote "D:\\Temp\\EC2-S3-Writintifile.txt"
2025/04/14 06:00:27 DEBUG : Using config file from "C:\\rclone\\rclone.conf"
2025/04/14 06:00:27 DEBUG : fs cache: renaming child cache item "D:\\Temp\\EC2-S3-Writintifile.txt" to be canonical for parent "//?/D:/Temp"
2025/04/14 06:00:27 DEBUG : Creating backend with remote "aws_s3://my-test-s3-bucket/"
2025/04/14 06:00:27 DEBUG : fs cache: renaming cache item "aws_s3://my-test-s3-bucket/" to be canonical "aws_s3:my-test-s3-bucket"
2025/04/14 06:00:27 DEBUG : EC2-S3-Writintifile.txt: Sizes differ (src 112 vs dst 103)
2025/04/14 06:00:27 INFO : EC2-S3-Writintifile.txt: Copied (replaced existing)
2025/04/14 06:00:27 INFO : 
Transferred: 112 B / 112 B, 100%, 0 B/s, ETA -
Transferred: 1 / 1, 100%
Elapsed time: 0.1s

2025/04/14 06:00:27 DEBUG : 4 go routines active

```

---

<div class="post-metadata">

**Author:** ![devraj\_kanti](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@devraj\_kanti](https://forum.rclone.org/u/devraj_kanti)\
**Post date:** [April 15, 2025, 5:04am UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/8 "2025-04-15T05:04:34Z")

</div>

@asdffdsa - Can you please help. It is important for us to close this activity.

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [April 15, 2025, 3:32pm UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/9 "2025-04-15T15:32:13Z")

</div>

afiak, so far, have not posted anything that shows an issue with rclone.  
if i missed it, please let me know.

---

<div class="post-metadata">

**Author:** ![devraj\_kanti](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@devraj\_kanti](https://forum.rclone.org/u/devraj_kanti)\
**Post date:** [April 15, 2025, 5:35pm UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/10 "2025-04-15T17:35:43Z")

</div>

@asdffdsa - While mounting the S3 Bucket I suspect the below logs, can you please check it once.

```auto
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /desktop.ini: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0

```

And I am also not sure how do I get this logs of issue(not able to override the existing file on the mounted bucket) - , is it possible for you to replicate the same scenario at your end? Or can we have joint debug session?

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [April 15, 2025, 5:54pm UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/11 "2025-04-15T17:54:52Z")

</div>

> [@devraj\_kanti](#):
>
> I get a windows error dialog message "Destination Folder Access Denied"

that is not helpful, just a vague statement.  
need to post something very specifc, such as `ERROR` from a `rclone` debug log.

* * *

> [@devraj\_kanti](#):
>
> is it possible for you to replicate the same scenario at your end? Or can we have joint debug session?

sorry, no, i am just a simple forum member.

perhaps consider [https://rclone.org/sponsor/](https://rclone.org/sponsor/)

---

<div class="post-metadata">

**Author:** ![devraj\_kanti](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@devraj\_kanti](https://forum.rclone.org/u/devraj_kanti)\
**Post date:** [April 16, 2025, 3:01pm UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/12 "2025-04-16T15:01:09Z")

</div>

@asdffdsa - By any chance, did you get a chance to look into this logs? This is the one from while mounting the S3 Bucket

```auto
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Opendir: 
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Opendir: errc=0, fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Releasedir: fh=0x0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Releasedir: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /desktop.ini: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025-04-10 10:34:52 [INFO] - 2025/04/10 10:34:50 DEBUG : /: >Getattr: errc=0

```

---

<div class="post-metadata">

**Author:** ![devraj\_kanti](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@devraj\_kanti](https://forum.rclone.org/u/devraj_kanti)\
**Post date:** [April 16, 2025, 3:05pm UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/13 "2025-04-16T15:05:17Z")

</div>

> [@asdffdsa](#):
>
> > [@devraj\_kanti](#):
> >
> > I get a windows error dialog message "Destination Folder Access Denied"
> 
> that is not helpful, just a vague statement.  
> need to post something very specifc, such as `ERROR` from a `rclone` debug log.

Even I am not sure how I can capture the rclone logs when I trying to copy any data into the mounted drive of the S3 bucket. Can you please suggest any option to collect the logs while copying data into the mounted drive of the S3 bucket. However I had collected the logs from robocopy

```auto
C:\Users\user-id>robocopy "D:\Temp" "D:\Buckets\my-test-s3-bucket" "EC2-S3-Writintifile.txt" /TEE

-------------------------------------------------------------------------------
   ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------

  Started : Wednesday, April 16, 2025 4:57:47 PM
   Source : D:\Temp\
     Dest : D:\Buckets\my-test-s3-bucket\

    Files : EC2-S3-Writintifile.txt

  Options : /TEE /DCOPY:DA /COPY:DAT /R:1000000 /W:30

------------------------------------------------------------------------------

                           1 D:\Temp\
2025/04/16 16:57:47 ERROR 5 (0x00000005) Accessing Destination Directory D:\Buckets\my-test-s3-bucket\
Access is denied.
Waiting 30 seconds... Retrying...

```

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [April 16, 2025, 3:58pm UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/14 "2025-04-16T15:58:54Z")

</div>

> [@devraj\_kanti](#):
>
> Even I am not sure how I can capture the rclone logs

`--log-level=DEBUG --log-file=c:/path/to/rclone.log`

> [@devraj\_kanti](#):
>
> `2025/04/16 16:57:47 `

need to find that time in the rclone debug log

---

<div class="post-metadata">

**Author:** ![devraj\_kanti](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@devraj\_kanti](https://forum.rclone.org/u/devraj_kanti)\
**Post date:** [April 17, 2025, 1:34pm UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/15 "2025-04-17T13:34:53Z")

</div>

> [@asdffdsa](#):
>
> > [@devraj\_kanti](#):
> >
> > Even I am not sure how I can capture the rclone logs
> 
> `--log-level=DEBUG --log-file=c:/path/to/rclone.log`

@asdffdsa - Collected the logs. I was trying to copy the file "EC2-S3-Writintifile.txt" from local drive to the mounted drive of the S3 Bucket

Log file attached - [rclone.log](https://forum.rclone.org/uploads/short-url/2fMuptF0zjdOedZ4bGnFEUzvMVH.log) (262.1 KB)

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [April 17, 2025, 2:45pm UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/16 "2025-04-17T14:45:32Z")

</div>

now, post the full debug log of `rclone copy` command.  
overwriting that `exact` same source file copied to the `exact` same dest location

---

<div class="post-metadata">

**Author:** ![devraj\_kanti](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@devraj\_kanti](https://forum.rclone.org/u/devraj_kanti)\
**Post date:** [April 17, 2025, 4:31pm UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/17 "2025-04-17T16:31:05Z")

</div>

@asdffdsa -

Please find the attached rclone copy logs - [rclone\_copy.log](https://forum.rclone.org/uploads/short-url/nLGhPiCYlHtGzpd72V1UMFdNqz.log) (1.2 KB)

---

<div class="post-metadata">

**Author:** ![devraj\_kanti](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@devraj\_kanti](https://forum.rclone.org/u/devraj_kanti)\
**Post date:** [April 21, 2025, 4:18am UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/18 "2025-04-21T04:18:35Z")

</div>

Hello @asdffdsa, just wanted to know, did you get a chance to look into it?

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [April 21, 2025, 2:41pm UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/19 "2025-04-21T14:41:42Z")

</div>

> [@devraj\_kanti](#):
>
> did you get a chance to look into it?

hard to know, as you have a complex setup using ec2, kms, multiple buckets and polices.

this might your issue.  
[https://forum.rclone.org/t/cannot-copy-files-to-mounted-azure-storage-windows/30092](https://forum.rclone.org/t/cannot-copy-files-to-mounted-azure-storage-windows/30092)

* * *

if not your issue, then need to debug, same as with any tech issue.  
simplify as much as possible, add features until the error re-occurs.

test on a new bucket, using the bucket policy in the rclone docs, no ec2, no kms, single bucket.  
make sure using latest winfsp.

* * *

fwiw, on one of my WS2022.21H2 datacenter servers, i could not replicate your issue.

---

<div class="post-metadata">

**Author:** ![devraj\_kanti](https://forum.rclone.org/letter_avatar_proxy/v4/letter/d/b2d939/32.png) [@devraj\_kanti](https://forum.rclone.org/u/devraj_kanti)\
**Post date:** [April 25, 2025, 10:12am UTC](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770/20 "2025-04-25T10:12:04Z")

</div>

> [@asdffdsa](#):
>
> fwiw, on one of my WS2022.21H2 datacenter servers, i could not replicate your issue.

For your case S3 Bucket and EC2 were in the same AWS account or in different?

Is it possible to share the Bucket and IAM polcies?

[Next page](https://forum.rclone.org/t/in-the-mounted-drive-of-a-s3-bucket-not-able-to-replace-override-existing-file/50770.md?page=2)
