You add a Proxmox Backup Server as a storage in Proxmox VE, click Add, and get an error. The storage does not appear. Three messages cause most of these failures: "fingerprint not verified", "401 Unauthorized" and "Cannot find datastore". Each message points to a different part of the setup. This post explains what Proxmox VE checks when you add the storage, and the cause and fix of each error.
- When you add a PBS storage, Proxmox VE logs in to port 8007 and lists the datastores that the user can see. If this check fails, Proxmox VE removes the new storage entry again.
- 'fingerprint ... not verified' means that the certificate does not match the fingerprint field, or that the field is empty and the certificate is self-signed.
- '401 Unauthorized' means wrong credentials. Check the realm in the username, and use the full token ID with the token secret.
- 'Cannot find datastore' can mean a wrong name or missing permissions. API tokens need their own ACL entry.
- Use pvesm scan pbs to test the connection and the credentials before you add the storage.
What Proxmox VE checks when you add a PBS storage
The storage plugin for PBS is part of the pve-storage package. When you click Add (or run pvesm add pbs), it does these steps:
- It writes the new storage entry and saves the password or token secret in
/etc/pve/priv/storage/<STORAGE-ID>.pw. - It connects to the server on port 8007, unless you set a different port.
- It logs in with the username and password, or with the API token.
- It requests the list of datastores and looks for the datastore name that you entered.
If step 2, 3 or 4 fails, Proxmox VE deletes the new entry and shows "create storage failed", followed by the cause. The check runs only on the node where you add the storage. The other nodes of a cluster use the same entry, so they also need access to port 8007.
You can run the same check before you add the storage. pvesm scan pbs logs in and lists the datastores that the user can see:
pvesm scan pbs <server> <username> --password <password> --fingerprint <fingerprint>If this command shows your datastore, the add step works with the same values.
Check the PBS default port (8007) first
Proxmox Backup Server serves its API on TCP port 8007. This is the PBS default port, and Proxmox VE uses it when you do not set a port. If the port is blocked, no credentials can work. Test the port from the Proxmox VE node. This command also prints the SHA-256 fingerprint of the server certificate, which you need in the next section:
openssl s_client -connect <server>:8007 </dev/null 2>/dev/null | openssl x509 -noout -fingerprint -sha256If the command waits and then stops without output, check the firewall on both sides and any NAT rule between them. PBS Troubleshooting: Fix Common Issues has the firewall and service checks for the server side.
Error: fingerprint not verified
The full message has this form:
create storage failed: <STORAGE-ID>: error fetching datastores - fingerprint 'AB:CD:...' not verified, abort!The fingerprint in the message is the fingerprint of the certificate that the server sent. Proxmox VE did not accept it. There are three causes:
- The fingerprint field is empty, and the server uses its self-signed certificate. The Proxmox VE documentation states that the fingerprint is required for self-signed certificates, and for any certificate whose CA the host does not trust.
- The fingerprint field has a wrong value. A typing error causes this, or a fingerprint that you copied from a different server.
- The certificate changed. A reinstall creates a new self-signed certificate. A new custom certificate also changes the fingerprint.
To fix it, get the current fingerprint on the server, and compare it with the value in the message:
proxmox-backup-manager cert infoYou can also find it in the web interface of the server, on the Dashboard. If the values are the same, put this value into the Fingerprint field. If they are different, something between the two hosts presents a different certificate, for example a proxy or a wrong IP address. Do not accept the fingerprint in that case. Find the cause first.
When you set a fingerprint, Proxmox VE trusts only that fingerprint and does not check the hostname. When the field is empty, Proxmox VE checks the certificate against the trusted CAs and also checks the hostname. With a trusted certificate (for example from ACME), enter the DNS name that is in the certificate as the server, not the IP address.
Error: 401 Unauthorized
The message has this form:
create storage failed: <STORAGE-ID>: error fetching datastores - 401 UnauthorizedIn the web interface, Proxmox VE adds the HTTP status of its own API call at the end, for example "401 Unauthorized (500)". The 500 is the status of the request to Proxmox VE. The 401 comes from the Proxmox Backup Server, and it is the cause.
The server got the request, but it did not accept the credentials. PBS answers a failed login only after about three seconds, so a slow 401 is normal. Check these points:
- The realm is missing. The username needs the realm, for example
archiver@pbsorroot@pam.archiveralone does not work. - The token ID is not complete. For an API token, the username field gets the full token ID:
user@realm!tokenname. The separator is!. Proxmox VE uses token login only when the value has this form. - The secret is wrong. For a token, the password field gets the token secret, not the password of the user.
- The user has two-factor authentication. The PBS documentation states that two-factor authentication is only implemented for the web interface. It names the PBS storage in Proxmox VE as a case for API tokens.
- The user or token is disabled or expired. Check the user and its tokens in Configuration > Access Control.
To change the secret of an existing storage, edit the storage in Datacenter > Storage and enter the secret again. Rotating PBS Encryption Keys and Tokens shows how to replace a token without a gap in your backups.
Error: Cannot find datastore
This message comes after a successful login:
create storage failed: <STORAGE-ID>: Cannot find datastore 'store1', check permissions and existence!Proxmox VE got the list of datastores, but your datastore was not in it. The server puts a datastore into this list only if the user or token has the Datastore.Audit or Datastore.Backup privilege on /datastore/<name>, or a privilege on a namespace in it. So there are two causes:
- The name is wrong. Proxmox VE compares the name exactly. Use the datastore name from the PBS web interface, not the path on the disk.
- The permissions are missing. The user or token cannot see the datastore.
API tokens are a common case. The PBS documentation states that tokens need their own ACL entries, and that a token can never do more than its user. If the user has permissions but the token has no ACL entry, the token sees no datastore. Check the effective permissions of the token on the server:
proxmox-backup-manager user permissions 'archiver@pbs!pve1' --path /datastore/store1
proxmox-backup-manager acl update /datastore/store1 DatastoreBackup --auth-id 'archiver@pbs!pve1'DatastoreBackup allows backups and restores of the backup groups that the token owns. That is enough for a Proxmox VE node. If you add the ACL only on a namespace, the datastore appears in the list, and backups work in that namespace. Set the same namespace in the storage settings. PBS Namespaces for Multi-Tenant Backup explains this setup.
Problems after the storage is added
Some problems do not stop the add step:
- Other cluster nodes cannot connect. The check ran only on one node. Run
pvesm statuson each node. A PBS storage that a node cannot reach is shown as not active. - The namespace does not exist. The add step checks the datastore, not the namespace. Create the namespace on the server before the first backup job runs.
- The encryption key is not valid. If you paste a key, it must be the JSON key file. Otherwise Proxmox VE shows "Value does not seems like a valid, JSON formatted encryption key!". Keep a copy of the key outside the cluster. PBS Client-Side Encryption: AES-256-GCM explains the key handling.
Wrapping up
When the add step fails, read the end of the message. "fingerprint not verified" is a certificate problem. "401 Unauthorized" is a credentials problem: the realm, the token ID or the secret. "Cannot find datastore" is a name or permission problem, and for tokens it is often a missing ACL entry. Test with pvesm scan pbs first, then add the storage with the same values.
The docs show which values from the dashboard go into the Proxmox VE storage form.
Read the Proxmox VE docs





