Hi,
I'm trying to set up a proxmox backup client systemd-unit using credentials management as described [here](https://pbs.proxmox.com/docs/backup-client.html#system-and-service-credentials).
When running the command from the cli on the client everything is working fine but having translated it into a service unit I'm encountering an error.
My systemd-units looks like this:
Am I missing something obvious? Has anyone gotten this to work?
Edit: I can get it to work passing the credetials in cleartext using `SetCredential=proxmox-backup-client.password:<supersecretpassword>` but neither `SetCredentialEncrypted` nor `LoadCredentialEncrypted` seem to work. Probing with `/usr/bin/systemd-creds cat proxmox-backup-client.password` yields the password just fine.
I'm trying to set up a proxmox backup client systemd-unit using credentials management as described [here](https://pbs.proxmox.com/docs/backup-client.html#system-and-service-credentials).
When running the command from the cli on the client everything is working fine but having translated it into a service unit I'm encountering an error.
Bash:
root@sampo:~# systemctl status backup-ncdata
× backup-ncdata.service - Perform backup of Nextcloud data using Proxmox Backup Client
Loaded: loaded (/etc/systemd/system/backup-ncdata.service; static)
Active: failed (Result: exit-code) since Sat 2025-06-28 22:23:54 CEST; 207ms ago
Duration: 4.703s
Process: 3614319 ExecStart=proxmox-backup-client backup <some-archive.pxar>:<source-dir> --dry-run (code=exited, status=255/EXCEPTION)
Main PID: 3614319 (code=exited, status=255/EXCEPTION)
CPU: 27ms
Jun 28 22:23:49 sampo.smathes.de systemd[1]: Started backup-ncdata.service - Perform backup of data using Proxmox Backup Client.
Jun 28 22:23:49 sampo.smathes.de proxmox-backup-client[3614319]: Starting backup: host/sampo/2025-06-28T20:23:49Z
Jun 28 22:23:49 sampo.smathes.de proxmox-backup-client[3614319]: Client name: sampo
Jun 28 22:23:49 sampo.smathes.de proxmox-backup-client[3614319]: Starting backup protocol: Sat Jun 28 22:23:49 2025
Jun 28 22:23:54 sampo.smathes.de proxmox-backup-client[3614319]: Error: permission check failed.
My systemd-units looks like this:
Bash:
root@sampo:~# systemctl cat backup-ncdata
# /etc/systemd/system/backup-ncdata.service
[Unit]
Description=Perform backup of Nextcloud data using Proxmox Backup Client
[Service]
ExecStart=proxmox-backup-client backup <some-archive.pxar>:<source-dir> --dry-run
SetCredential=proxmox-backup-client.repository:<backup-user>@pam@<host-address>:<datastore>
LoadCredentialEncrypted=proxmox-backup-client.password:/usr/local/lib/ciphertext.cred \
Am I missing something obvious? Has anyone gotten this to work?
Edit: I can get it to work passing the credetials in cleartext using `SetCredential=proxmox-backup-client.password:<supersecretpassword>` but neither `SetCredentialEncrypted` nor `LoadCredentialEncrypted` seem to work. Probing with `/usr/bin/systemd-creds cat proxmox-backup-client.password` yields the password just fine.
Last edited: