Skipping undecryptable dir name: illegal base32 data

What is the problem you are having with rclone?

I'm unable to mount or copy files from a remote encrypted bucket on Backblaze B2. I get this error and am unsure what to do:

Skipping undecryptable dir name: illegal base32 data at input byte 3

When I view the bucket, it appears the root directory names are not encrypted but everything under the directory is.

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

rclone v1.68.2

  • os/version: Microsoft Windows Server 2019 Standard 1809 (64 bit)
  • os/kernel: 10.0.17763.6659 (x86_64)
  • os/type: windows
  • os/arch: amd64
  • go/version: go1.23.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

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

Backblaze B2

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

rclone mount backblazecrypt: c:\temp -v

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

[backblaze]
type = b2
account = XXX
key = XXX

[backblazecrypt]
type = crypt
remote = backblaze:FILESVR1
password = XXX
password2 = XXX
directory_name_encryption = true
### Double check the config for sensitive info before posting publicly

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

C:\rclone>rclone mount backblazecrypt: c:\temp -vv
2025/01/01 19:40:10 DEBUG : rclone: Version "v1.68.2" starting with parameters ["rclone" "mount" "backblazecrypt:" "c:\\temp" "-vv"]
2025/01/01 19:40:10 DEBUG : Creating backend with remote "backblazecrypt:"
2025/01/01 19:40:10 DEBUG : Using config file from "C:\\Users\\Administrator\\AppData\\Roaming\\rclone\\rclone.conf"
2025/01/01 19:40:10 DEBUG : Creating backend with remote "backblaze:FILESVR1"
2025/01/01 19:40:10 INFO  : Encrypted drive 'backblazecrypt:': poll-interval is not supported by this remote
2025/01/01 19:40:10 DEBUG : Network mode mounting is disabled
2025/01/01 19:40:10 DEBUG : Mounting on "c:\\temp" ("backblazecrypt")
2025/01/01 19:40:10 DEBUG : Encrypted drive 'backblazecrypt:': Mounting with options: ["-o" "attr_timeout=1" "-o" "uid=-1" "-o" "gid=-1" "--FileSystemName=rclone" "-o" "volname=backblazecrypt"]
2025/01/01 19:40:10 DEBUG : Encrypted drive 'backblazecrypt:': Init:
2025/01/01 19:40:10 DEBUG : Encrypted drive 'backblazecrypt:': >Init:
2025/01/01 19:40:10 DEBUG : /: Statfs:
2025/01/01 19:40:10 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/01/01 19:40:10 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025/01/01 19:40:10 DEBUG : /: >Getattr: errc=0
2025/01/01 19:40:10 DEBUG : /: Readlink:
2025/01/01 19:40:10 DEBUG : /: >Readlink: linkPath="", errc=-40
2025/01/01 19:40:10 DEBUG : /: Getxattr: name="non-existant-a11ec902d22f4ec49003af15282d3b00"
2025/01/01 19:40:10 DEBUG : /: >Getxattr: errc=-40, value=""
2025/01/01 19:40:10 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025/01/01 19:40:10 DEBUG : /: >Getattr: errc=0
The service rclone has been started.
2025/01/01 19:40:10 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025/01/01 19:40:10 DEBUG : /: >Getattr: errc=0
2025/01/01 19:40:10 DEBUG : /: Opendir:
2025/01/01 19:40:10 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025/01/01 19:40:10 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025/01/01 19:40:10 DEBUG : /: >Opendir: errc=0, fh=0x0
2025/01/01 19:40:10 DEBUG : /: Statfs:
2025/01/01 19:40:10 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/01/01 19:40:10 DEBUG : /: Releasedir: fh=0x0
2025/01/01 19:40:10 DEBUG : /: >Releasedir: errc=0
2025/01/01 19:40:11 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025/01/01 19:40:11 DEBUG : /: >Getattr: errc=0
2025/01/01 19:40:11 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025/01/01 19:40:11 DEBUG : /: >Getattr: errc=0
2025/01/01 19:40:11 DEBUG : /: Opendir:
2025/01/01 19:40:11 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025/01/01 19:40:11 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025/01/01 19:40:11 DEBUG : /: >Opendir: errc=0, fh=0x0
2025/01/01 19:40:11 DEBUG : /: Releasedir: fh=0x0
2025/01/01 19:40:11 DEBUG : /: >Releasedir: errc=0
2025/01/01 19:40:11 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025/01/01 19:40:11 DEBUG : /: >Getattr: errc=0
2025/01/01 19:40:11 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025/01/01 19:40:11 DEBUG : /: >Getattr: errc=0
2025/01/01 19:40:11 DEBUG : /: Opendir:
2025/01/01 19:40:11 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025/01/01 19:40:11 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025/01/01 19:40:11 DEBUG : /: >Opendir: errc=0, fh=0x0
2025/01/01 19:40:11 DEBUG : /: Releasedir: fh=0x0
2025/01/01 19:40:11 DEBUG : /: >Releasedir: errc=0
2025/01/01 19:40:11 DEBUG : /desktop.ini: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025/01/01 19:40:11 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025/01/01 19:40:11 DEBUG : /: >Getattr: errc=0
2025/01/01 19:40:11 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025/01/01 19:40:11 DEBUG : /: >Getattr: errc=0
2025/01/01 19:40:11 DEBUG : /: Opendir:
2025/01/01 19:40:11 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025/01/01 19:40:12 NOTICE: DB-Temp: Skipping undecryptable dir name: illegal base32 data at input byte 3
2025/01/01 19:40:12 NOTICE: DB-Home: Skipping undecryptable dir name: illegal base32 data at input byte 0
2025/01/01 19:40:12 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025/01/01 19:40:12 DEBUG : /: >Opendir: errc=0, fh=0x0
2025/01/01 19:40:12 DEBUG : /desktop.ini: >Getattr: errc=-2
2025/01/01 19:40:12 DEBUG : /: Releasedir: fh=0x0
2025/01/01 19:40:12 DEBUG : /: >Releasedir: errc=0
2025/01/01 19:40:12 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025/01/01 19:40:12 DEBUG : /: >Getattr: errc=0
2025/01/01 19:40:12 DEBUG : /: Getattr: fh=0xFFFFFFFFFFFFFFFF
2025/01/01 19:40:12 DEBUG : /: >Getattr: errc=0
2025/01/01 19:40:12 DEBUG : /: Opendir:
2025/01/01 19:40:12 DEBUG : /: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2025/01/01 19:40:12 DEBUG : /: >OpenFile: fd=/ (r), err=<nil>
2025/01/01 19:40:12 DEBUG : /: >Opendir: errc=0, fh=0x0
2025/01/01 19:40:12 DEBUG : /: Releasedir: fh=0x0
2025/01/01 19:40:12 DEBUG : /: >Releasedir: errc=0

Clearly you put unencrypted content inside your crypt (backblaze:FILESVR1). Most likely by mistake when accessing backblaze: remote directly.

They do not belong here. Delete them and all will work.

If your goal is to keep both encrypted and not encrypted data in the same bucket then you should separate them, e.g. put all encrypted data in backblaze:FILESVR1/encrypted

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