How can I access my encrypted files if I deleted the remote and/or deleted the config file

Hi,

I am getting back into using rclone and I am trying to figure out how I can access my encrypted files if I...

  • Deleted the remote in rclone config.
  • Deleted the config file.
  • Moved to a new computer and have no config file to copy.

As a test, I deleted the encrypted remote for my Google Drive in the rclone config. The files remain on Google Drive, but I have no way of decrypting them. I do have the generated password and salt from the deleted remote, so I tried to use these with a new remote, but I just get an empty folder. I was under the impression that if you have the passwords, you can decrypt the files.

I am using rclone v1.54.0

hello and welcome to the forum,

that is correct.

can you answer some of the questions in the help and support template.
that helps us to help you.

and cannot hurt to update rclone to v1.61.1

Where can I get the template?

it is ok,

for now, can you post the config file, redact id/token/secret/password/salt?

Name                 Type
====                 ====
lv426-gdrive         drive

e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q>

can you post the full output of rclone lsd lv426-gdrive: -vv. if needed, redact file/dir names

2023/01/03 12:23:02 DEBUG : Using config file from "C:\\Users\\lv426\\.config\\rclone\\rclone.conf"
2023/01/03 12:23:02 DEBUG : Creating backend with remote "lv426-gdrive:"
          -1 2022-12-17 11:22:49        -1 other
          -1 2023-01-03 10:19:57        -1 rclone
2023/01/03 12:23:02 DEBUG : 4 go routines active

and where inside lv426-gdrive:, are the crypted files?

now create a crypt remote to access that location

"rclone" are the old encrypted files. I created a new encrypted remote with the same path, same password as before, and same salt password as before, but the files do not show up in the mount.

[quote="lv426, post:9, topic:35231"]
I created a new encrypted remote with the same path, same password as before, and same salt password as before, [/quote]
please, post that config. the more info you share, the easier we will get this solved.

get a simple rclone lsd to work, then try rclone mount

Here is the config of the new encrypted remote.

2023/01/03 12:55:13 DEBUG : Using config file from "C:\\Users\\lv426\\.config\\rclone\\rclone.conf"
2023/01/03 12:55:13 DEBUG : Creating backend with remote "lv426-gdrive-encrypted:"
2023/01/03 12:55:13 DEBUG : Creating backend with remote "lv426-gdrive:rclone"
2023/01/03 12:55:14 DEBUG : x0981209389dslaxaasdli1gds: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2023/01/03 12:55:14 DEBUG : u2038902mlaa92kdk2ldvm9xsd: Skipping undecryptable file name: Bad PKCS#7 padding - too long
2023/01/03 12:55:14 DEBUG : gv6k2l16lfppdoeqbr2rrvg24k: Skipping undecryptable file name: Bad PKCS#7 padding - too long
2023/01/03 12:55:14 DEBUG : gkxi984kdfadc0fd9ogpd92dv9k: Skipping undecryptable file name: Bad PKCS#7 padding - too long
2023/01/03 12:55:14 DEBUG : vbs728dmcka9e32iokfv92jfdj1092u3jkx90a0921dsmvpeo892: Skipping undecryptable file name: Bad PKCS#7 padding - not all the same
2023/01/03 12:55:14 DEBUG : 4 go routines active

I ran the commands you suggested. It did mount, but the files are still encrypted.

now, need to create a new remote for the crypt
something like

[crypt]
type = crypt
remote = lv426-gdrive:rclone
password = abc
password2 = def

and then
rclone lsd crypt: -vv

and please, when you post, include the exact command and full output, not just snippets.

Sorry. I am confused.

rclone listremotes

lv426-gdrive:
lv426-gdrive-encrypted

So you are saying I need to create a second encrypted remote underneath the first encrypted remote? Does this use the old passwords I had saved or new ones?

if you already had a crypted remote named lv426-gdrive-encrypted, then need to post that config
when you first posted, there was no mention of that second remote.

That was the remote I just created while replying to your posts.

When I made the thread, the only remote I had was lv426-gdrive, which is a not encrypted remote of my entire Google Drive (all directories and files).

There is a directory on lv426-gdrive, "rclone", which holds the contents of the old, encrypted remote that I deleted before making this thread. That directory holds the contents I want to restore.

So I just made "lv426-gdrive-encrypted:" with a path of "lv426-gdrive:rclone". I then supplied the old password and salt for it. I ran `rclone lsd lv426-gdrive:rclone" and I can see the directory. When mounting however, all contents are still encrypted.

then post that exact command.
and full debug output, or at least the top 30 lines.

rclone mount lv426-gdrive:rclone *
2023/01/03 13:34:04 NOTICE: Assigning drive letter "Z:"
The service rclone has been started.
rclone lsd lv426-gdrive:rclone -vv
2023/01/03 13:35:17 DEBUG : Using config file from "C:\\Users\\lv426\\.config\\rclone\\rclone.conf"
2023/01/03 13:35:17 DEBUG : Creating backend with remote "lv426-gdrive:rclone"
          -1 2023-01-02 16:05:52        -1 fg762gbi9k7a0cqkoiv23l8l9t
2023/01/03 13:35:18 DEBUG : 4 go routines active

rclone mount lv426-gdrive-encrypted: * -vv

Ahh, I misunderstood.

2023/01/03 13:43:50 DEBUG : rclone: Version "v1.54.0" starting with parameters ["rclone" "mount" "lv426-gdrive-encrypted:" "*" "-vv"]
2023/01/03 13:43:50 DEBUG : Creating backend with remote "lv426-gdrive-encrypted:"
Enter configuration password:
password:
2023/01/03 13:43:53 DEBUG : Using config file from "C:\\Users\\lv426\\.config\\rclone\\rclone.conf"
2023/01/03 13:43:53 DEBUG : Creating backend with remote "lv426-gdrive:rclone"
2023/01/03 13:43:53 NOTICE: Assigning drive letter "Z:"
2023/01/03 13:43:53 DEBUG : Network mode mounting is disabled
2023/01/03 13:43:53 DEBUG : Mounting on "Z:" ("lv426-gdrive-encrypted")
2023/01/03 13:43:53 DEBUG : Encrypted drive 'lv426-gdrive-encrypted:': Mounting with options: ["-o" "attr_timeout=1" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=lv426-gdrive-encrypted"]
2023/01/03 13:43:53 DEBUG : Encrypted drive 'lv426-gdrive-encrypted:': Init:
2023/01/03 13:43:53 DEBUG : Encrypted drive 'lv426-gdrive-encrypted:': >Init:
2023/01/03 13:43:53 DEBUG : /: Statfs:
2023/01/03 13:43:53 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:3932160 Bfree:3214778 Bavail:3214778 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2023/01/03 13:43:53 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:53 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:53 DEBUG : /: Readlink:
2023/01/03 13:43:53 DEBUG : /: >Readlink: linkPath="", errc=-40
The service rclone has been started.
2023/01/03 13:43:53 DEBUG : /: Statfs:
2023/01/03 13:43:53 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:3932160 Bfree:3214778 Bavail:3214778 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2023/01/03 13:43:53 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:53 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:53 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:53 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:53 DEBUG : /: Opendir:
2023/01/03 13:43:53 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/01/03 13:43:53 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/01/03 13:43:53 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/01/03 13:43:53 DEBUG : /: Releasedir: fh=0x0
2023/01/03 13:43:53 DEBUG : /: >Releasedir: errc=0
2023/01/03 13:43:53 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:53 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:53 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:53 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:53 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:53 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:53 DEBUG : /: Opendir:
2023/01/03 13:43:53 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/01/03 13:43:53 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/01/03 13:43:53 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/01/03 13:43:53 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:53 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:53 DEBUG : /: Releasedir: fh=0x0
2023/01/03 13:43:53 DEBUG : /: >Releasedir: errc=0
2023/01/03 13:43:53 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:53 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:53 DEBUG : /: Opendir:
2023/01/03 13:43:53 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/01/03 13:43:53 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/01/03 13:43:53 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/01/03 13:43:53 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:53 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:53 DEBUG : /: Releasedir: fh=0x0
2023/01/03 13:43:53 DEBUG : /: >Releasedir: errc=0
2023/01/03 13:43:53 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:53 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:53 DEBUG : /: Opendir:
2023/01/03 13:43:53 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/01/03 13:43:53 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/01/03 13:43:53 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:53 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/01/03 13:43:53 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:53 DEBUG : /: Releasedir: fh=0x0
2023/01/03 13:43:53 DEBUG : /: >Releasedir: errc=0
2023/01/03 13:43:53 DEBUG : /: Opendir:
2023/01/03 13:43:53 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/01/03 13:43:53 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/01/03 13:43:53 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/01/03 13:43:53 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:53 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:53 DEBUG : /: Releasedir: fh=0x0
2023/01/03 13:43:53 DEBUG : /: >Releasedir: errc=0
2023/01/03 13:43:54 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:54 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:54 DEBUG : /: Opendir:
2023/01/03 13:43:54 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/01/03 13:43:54 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/01/03 13:43:54 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/01/03 13:43:54 DEBUG : /: Releasedir: fh=0x0
2023/01/03 13:43:54 DEBUG : /: >Releasedir: errc=0
2023/01/03 13:43:54 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:54 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:54 DEBUG : /: Opendir:
2023/01/03 13:43:54 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/01/03 13:43:54 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/01/03 13:43:54 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/01/03 13:43:54 DEBUG : /: Releasedir: fh=0x0
2023/01/03 13:43:54 DEBUG : /: >Releasedir: errc=0
2023/01/03 13:43:54 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:54 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:54 DEBUG : /: Opendir:
2023/01/03 13:43:54 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/01/03 13:43:54 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/01/03 13:43:54 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/01/03 13:43:54 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:54 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /: Releasedir: fh=0x0
2023/01/03 13:43:54 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:54 DEBUG : /: Opendir:
2023/01/03 13:43:54 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/01/03 13:43:54 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/01/03 13:43:54 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/01/03 13:43:54 DEBUG : /: >Releasedir: errc=0
2023/01/03 13:43:54 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /: Releasedir: fh=0x0
2023/01/03 13:43:54 DEBUG : /: >Releasedir: errc=0
2023/01/03 13:43:54 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:54 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:54 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:54 DEBUG : /: Opendir:
2023/01/03 13:43:54 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/01/03 13:43:54 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/01/03 13:43:54 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/01/03 13:43:54 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:54 DEBUG : /: Opendir:
2023/01/03 13:43:54 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/01/03 13:43:54 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/01/03 13:43:54 DEBUG : /: Releasedir: fh=0x0
2023/01/03 13:43:54 DEBUG : /: >Releasedir: errc=0
2023/01/03 13:43:54 DEBUG : /: >Opendir: errc=0, fh=0x1
2023/01/03 13:43:54 DEBUG : /: Releasedir: fh=0x1
2023/01/03 13:43:54 DEBUG : /: >Releasedir: errc=0
2023/01/03 13:43:54 DEBUG : /Images/Camera: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : x0981209389dslaxaasdli1gd: Skipping undecryptable dir name: Bad PKCS#7 padding - too long
2023/01/03 13:43:54 DEBUG : u2038902mlaa92kdk2ldvm9xsd: Skipping undecryptable file name: Bad PKCS#7 padding - too long
2023/01/03 13:43:54 DEBUG : gv6k2l16lfppdoeqbr2rrvg24k: Skipping undecryptable file name: Bad PKCS#7 padding - too long
2023/01/03 13:43:54 DEBUG : vbs728dmcka9e32iokfv92jfdj1092u3jkx90a0921dsmvpeo892: Skipping undecryptable file name: Bad PKCS#7 padding - not all the same
2023/01/03 13:43:54 DEBUG : /Images/Camera: >Getattr: errc=-2
2023/01/03 13:43:54 DEBUG : /DCIM: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /DCIM: >Getattr: errc=-2
2023/01/03 13:43:54 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:54 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:54 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:54 DEBUG : /: Opendir:
2023/01/03 13:43:54 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/01/03 13:43:54 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/01/03 13:43:54 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/01/03 13:43:54 DEBUG : /: Releasedir: fh=0x0
2023/01/03 13:43:54 DEBUG : /: >Releasedir: errc=0
2023/01/03 13:43:57 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:57 DEBUG : /autorun.inf: >Getattr: errc=-2
2023/01/03 13:43:57 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:57 DEBUG : /autorun.inf: >Getattr: errc=-2
2023/01/03 13:43:57 DEBUG : /autorun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:57 DEBUG : /autorun.inf: >Getattr: errc=-2
2023/01/03 13:43:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:57 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:57 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:57 DEBUG : /: >Getattr: errc=0
2023/01/03 13:43:57 DEBUG : /: Opendir:
2023/01/03 13:43:57 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2023/01/03 13:43:57 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2023/01/03 13:43:57 DEBUG : /: >Opendir: errc=0, fh=0x0
2023/01/03 13:43:57 DEBUG : /: Releasedir: fh=0x0
2023/01/03 13:43:57 DEBUG : /: >Releasedir: errc=0
2023/01/03 13:43:57 DEBUG : /AutoRun.inf: Getattr: fh=0xFFFFFFFFFFFFFFFF
2023/01/03 13:43:57 DEBUG : /AutoRun.inf: >Getattr: errc=-2

are you sure you have the correct password and/or salt?