proxmox-backup-client not using ~/.config/proxmox-backup/encryption-key.json by default

M.D. Klapwijk

Active Member
Sep 27, 2017
14
5
43
47
Ran into the following issue; proxmox-backup-client does not seem to use the default ~/.config/proxmox-backup/encryption-key.json if no --keyfile parameter is given for mount command:
Code:
root@mdk-tst-01:~# proxmox-backup-client mount host/mdk-tst-01/2022-09-20T23:00:01Z etc.pxar /mnt
Error: missing key - manifest was created with key xx:xx:xx:xx:d4:db:6c:34

The file is there and works correctly with the --keyfile parameter defined to it:
Code:
root@mdk-tst-01:~# proxmox-backup-client mount host/mdk-tst-01/2022-09-20T23:00:01Z etc.pxar /mnt --keyfile ~/.config/proxmox-backup/encryption-key.json
Encryption key file: '"/root/.config/proxmox-backup/encryption-key.json"'
Encryption key fingerprint: 'xx:xx:xx:xx:d4:db:6c:34'
FUSE library version: 3.10.3

version:
Code:
root@mdk-tst-01:~# dpkg -l proxmox*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                  Version      Architecture Description
+++-=====================-============-============-=================================
ii  proxmox-backup-client 2.2.6-1      amd64        Proxmox Backup Client tools

from docs; https://pbs.proxmox.com/docs/backup-client.html#encryption:
Note

If you do not specify the name of the backup key, the key will be created in the default location ~/.config/proxmox-backup/encryption-key.json. proxmox-backup-client will also search this location by default, in case the --keyfile parameter is not specified.
 
Last edited:
mhmm... normally it should search the $XDG_CONFIG_HOME locations

can you post the output of
Code:
strace -fyy proxmox-backup-client mount host/mdk-tst-01/2022-09-20T23:00:01Z etc.pxar /mnt
(caution, this can be long, and possibly needs to be anonymized)
 
ah ok thanks, after debugging, it seems that we don't use the same codepath for 'proxmox-backup-client mount' and that doesn't search in the $XDG_CONFIG_HOME path
the other commands (backup/restore/etc) should all do that

would you mind opening a bug, so we can track it easier? https://bugzilla.proxmox.com
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!