# Rclone encrypted back cache issue

**URL:** <https://forum.rclone.org/t/rclone-encrypted-back-cache-issue/26616>\
**Category:** Suspected Bug\
**Created:** [September 21, 2021, 10:59am UTC](https://forum.rclone.org/t/rclone-encrypted-back-cache-issue/26616 "2021-09-21T10:59:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexander-potemkin](https://forum.rclone.org/user_avatar/forum.rclone.org/alexander-potemkin/32/9377_2.png) [@alexander-potemkin](https://forum.rclone.org/u/alexander-potemkin)\
**Post date:** [September 21, 2021, 10:59am UTC](https://forum.rclone.org/t/rclone-encrypted-back-cache-issue/26616/1 "2021-09-21T10:59:15Z")

</div>

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

When accessing remote via encrypted back-end, it doesn't see actual files status on the server:

```auto
$ rclone lsd encrypted_backend_s3:
$ rclone lsd my_s3:my-files
           0 2021-09-21 13:42:26 -1 test

```

What I did:

1. created my\_s3 endpoint
2. on top of it, created encrypted\_backend endpoint
3. tested sync command
4. remove all of the files from the remote S3 manually
5. tried to re-sync, but rclone consider that files hasn't changed
6. I tried to lsd on the encryption endpoint, and it shows me nothing
7. Same command on the same endpoint,but not encrypted - shows the test folder, that I created manually.

P.S. While collecting the information, I noticed a folder matching remote side name `~/.config/rclone` - when I deleted it and re-run sync - it's told that it's uploading something this time, but nothing appeared on the S3 - so it's false upload message.  
Feels like something is quite broken if using encrypt backend =(

#### What is your rclone version (output from `rclone version`)

Both 1.55.1 & 1.56.1 (I had 1.55 but updated on the latest one to check on things).

```auto
Successfully updated rclone from version v1.55.1 to version v1.56.1

```

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

Linux 64bit

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

MinIO

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

I tried both `--cache-db-purge --cache-mode off`, but it didn't work out.

#### The rclone config contents with secrets removed.

```auto

[local_s3]
type = s3
provider = Minio
env_auth = false
endpoint = http://127.0.0.1:<...>
region = us-east-1

[my_s3]
type = s3
disable_http2 = true
provider = Minio
access_key_id = <...>
secret_access_key = <...>
endpoint = https://<...>

[encrypted_backend_s3]
type = crypt
remote = my_s3:my-files
filename_encryption = obfuscate
directory_name_encryption = true
password = <...>
password2 = <...>

```

#### A log from the command with the `-vv` flag

```auto
$ rclone sync local_s3:my-uploads encrypted_backend_s3 -vv
2021/09/21 13:51:13 DEBUG : rclone: Version "v1.56.1" starting with parameters ["rclone" "sync" "local_s3:my-uploads" "encrypted_backend_s3" "-vv"]
2021/09/21 13:51:13 DEBUG : Creating backend with remote "local_s3:my-uploads"
2021/09/21 13:51:13 DEBUG : Using config file from "/home/user/.config/rclone/rclone.conf"
2021/09/21 13:51:13 DEBUG : Creating backend with remote "encrypted_backend_s3"
2021/09/21 13:51:13 DEBUG : fs cache: renaming cache item "encrypted_backend_s3" to be canonical "/home/user/.config/rclone/encrypted_backend_s3"
2021/09/21 13:51:13 DEBUG : Screenshot 2021-05-07 at 17.10.49.png: Size and modification time the same (differ by 0s, within tolerance 1ns)
2021/09/21 13:51:13 DEBUG : Screenshot 2021-05-07 at 17.10.49.png: Unchanged skipping
2021/09/21 13:51:13 DEBUG : Local file system at /home/user/.config/rclone/encrypted_backend_s3: Waiting for checks to finish
2021/09/21 13:51:13 DEBUG : uploaded_files/10/CS-Fi_Agreement_signed1.pdf: Size and modification time the same (differ by 0s, within tolerance 1ns)
2021/09/21 13:51:13 DEBUG : uploaded_files/10/CS-Fi_Agreement_signed1.pdf: Unchanged skipping
<...>
Many other entries like that
<...>
2021/09/21 13:51:13 DEBUG : Local file system at /home/user/.config/rclone/encrypted_backend_s3: Waiting for transfers to finish
2021/09/21 13:51:13 DEBUG : Waiting for deletions to finish
2021/09/21 13:51:13 INFO : There was nothing to transfer
2021/09/21 13:51:13 INFO : 
Transferred: 0 / 0 Byte, -, 0 Byte/s, ETA -
Checks: 16 / 16, 100%
Elapsed time: 0.0s

```

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [September 21, 2021, 11:42am UTC](https://forum.rclone.org/t/rclone-encrypted-back-cache-issue/26616/2 "2021-09-21T11:42:43Z")

</div>

I can't figure out what you are asking as it might be too early for me 🙂

> [@alexander-potemkin](#):
>
> ```auto
> 2021/09/21 13:51:13 DEBUG : uploaded_files/10/CS-Fi_Agreement_signed1.pdf: Size and modification time the same (differ by 0s, within tolerance 1ns)
> 2021/09/21 13:51:13 DEBUG : uploaded_files/10/CS-Fi_Agreement_signed1.pdf: Unchanged skipping
> 
> ```

That means the file is already on the remote and the source and destination match so it does nothing.

If you rclone ls that file on the remote, are you not seeing it? Is that what you mean?

> [@alexander-potemkin](#):
>
> --cache-db-purge

That's for the cache remote which you are not using so it wouldn't do anything.

> [@alexander-potemkin](#):
>
> --cache-mode off

I don't see where you are using any cache mode to turn on / off as that's for a mount and you are using a sync command.

---

<div class="post-metadata">

**Author:** ![alexander-potemkin](https://forum.rclone.org/user_avatar/forum.rclone.org/alexander-potemkin/32/9377_2.png) [@alexander-potemkin](https://forum.rclone.org/u/alexander-potemkin)\
**Post date:** [September 21, 2021, 11:57am UTC](https://forum.rclone.org/t/rclone-encrypted-back-cache-issue/26616/3 "2021-09-21T11:57:25Z")

</div>

> [@Animosity022](#):
>
> That means the file is already on the remote and the source and destination match so it does nothing.
> 
> If you rclone ls that file on the remote, are you not seeing it? Is that what you mean?

Yes. The problem is, that the remote is absolutely empty, like zero files, zero folders. So I'm getting false uploads.

Please, let me know if anything else is required... except for the coffee probably, I would guess it would arrive cold, if I try to deliver it to you, anyway =)

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [September 21, 2021, 12:02pm UTC](https://forum.rclone.org/t/rclone-encrypted-back-cache-issue/26616/4 "2021-09-21T12:02:31Z")

</div>

Run:

```auto
rclone ls encrypted_backend_s3:uploaded_files/10/CS-Fi_Agreement_signed1.pdf -vv

```

And share the output.

---

<div class="post-metadata">

**Author:** ![sweh](https://forum.rclone.org/user_avatar/forum.rclone.org/sweh/32/680_2.png) [@sweh](https://forum.rclone.org/u/sweh)\
**Post date:** [September 21, 2021, 12:06pm UTC](https://forum.rclone.org/t/rclone-encrypted-back-cache-issue/26616/5 "2021-09-21T12:06:05Z")

</div>

> [@alexander-potemkin](#):
>
> `rclone sync local_s3:my-uploads encrypted_backend_s3 -vv`

You are missing a `:` after `encrypted_backend_s3` and so it's treating it like a local directory.

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [September 21, 2021, 12:07pm UTC](https://forum.rclone.org/t/rclone-encrypted-back-cache-issue/26616/6 "2021-09-21T12:07:47Z")

</div>

> [@sweh](#):
>
> You are missing a `:` after `encrypted_backend_s3` and so it's treating it like a local directory.

And that's coffee time!

---

<div class="post-metadata">

**Author:** ![alexander-potemkin](https://forum.rclone.org/user_avatar/forum.rclone.org/alexander-potemkin/32/9377_2.png) [@alexander-potemkin](https://forum.rclone.org/u/alexander-potemkin)\
**Post date:** [September 21, 2021, 1:49pm UTC](https://forum.rclone.org/t/rclone-encrypted-back-cache-issue/26616/7 "2021-09-21T13:49:17Z")

</div>

Thanks, that was just a comma indeed!

---

<div class="post-metadata">

**Author:** ![alexander-potemkin](https://forum.rclone.org/user_avatar/forum.rclone.org/alexander-potemkin/32/9377_2.png) [@alexander-potemkin](https://forum.rclone.org/u/alexander-potemkin)\
**Post date:** [September 21, 2021, 1:49pm UTC](https://forum.rclone.org/t/rclone-encrypted-back-cache-issue/26616/8 "2021-09-21T13:49:28Z")

</div>

Have a good one! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [September 24, 2021, 1:49pm UTC](https://forum.rclone.org/t/rclone-encrypted-back-cache-issue/26616/9 "2021-09-24T13:49:44Z")

</div>

Closed on September 24, 2021, 1:49pm UTC

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