What happened:
When trying to reload a private key with command :
JFS_RSA_PASSPHRASE=pass MINIO_REGION=europe juicefs load --encrypt-rsa-key myjfs-priv-key.pem --encrypt-algo aes256gcm-rsa sqlite3:///root/myjfs.db /tmp/dump-2024-07-19-080859.json.gz
an error occured :
juicefs[35356] <FATAL>: load RSA key from encrypt-rsa-key : open myjfs-priv-key.pem : no such file or directory [format.go:355]
Of course the file exists, and is readable and contains a valid private key. I try to provide the path in relative, in absolute or set it to "encrypt-rsa-key" wihtout luck.
I also try with sudo or directely with root account.
How to reproduce it (as minimally and precisely as possible):
Just run the previous command.
Anything else we need to know?
If I use the key and the original database, juicefs works very well.
If I run the command with strace, I have :
openat(AT_FDCWD, "myjfs-priv-key.pem\302\240", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
Why is there these \302\240 at the end of file ?
Environment:
JuiceFS version (use juicefs --version) or Hadoop Java SDK version:
Cloud provider or hardware configuration running JuiceFS: 1.2.0+2024-06-18.873c47b
OS (e.g cat /etc/os-release): Debian GNU/Linux 12 (bookworm)
What happened: When trying to reload a private key with command :
JFS_RSA_PASSPHRASE=pass MINIO_REGION=europe juicefs load --encrypt-rsa-key myjfs-priv-key.pem --encrypt-algo aes256gcm-rsa sqlite3:///root/myjfs.db /tmp/dump-2024-07-19-080859.json.gz
an error occured :juicefs[35356] <FATAL>: load RSA key from encrypt-rsa-key : open myjfs-priv-key.pem : no such file or directory [format.go:355]
Of course the file exists, and is readable and contains a valid private key. I try to provide the path in relative, in absolute or set it to "encrypt-rsa-key" wihtout luck. I also try with sudo or directely with root account.
What you expected to happen: I would like to recreate the database like described in https://juicefs.com/docs/community/metadata_dump_load#encrypted-file-system
How to reproduce it (as minimally and precisely as possible): Just run the previous command.
Anything else we need to know? If I use the key and the original database, juicefs works very well.
If I run the command with strace, I have :
openat(AT_FDCWD, "myjfs-priv-key.pem\302\240", O_RDONLY|O_CLOEXEC) = -1 ENOENT (Aucun fichier ou dossier de ce type)
Why is there these \302\240 at the end of file ?Environment:
juicefs --version
) or Hadoop Java SDK version:1.2.0+2024-06-18.873c47b
cat /etc/os-release
):Debian GNU/Linux 12 (bookworm)
uname -a
):6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux