error fetching datastores - 500 Can't Connect to

omanobr

New Member
Apr 13, 2021
3
0
1
33
Hi, i'm setting up for my first time the PBS, and seems to me that its a really straight forward process. But im experiencing an aparentely complex problem.

I have a node from PVE, and using a second machine for the PBS.

I can ping then, i can telnet then, but cant present the datastore as storage to PVE.

Have and admin@pbs as admin of the datastore.

PVE Ver. 6.3-6
PBS Ve. 1.0-1 (installed using ISO)

Also, i can add a node to the datacenter without problems, already tested.

Sending some pictures.



PS: Tried a clean instalation, updated (apt-get), but nothing seems to work.
Tried putting the wrong credentials/datastore, and had the same error.
tried access using root@pam, same.

PS2: Sorry for my english, not as good as i wish.

Edit: putting the error text

create storage failed: error during cfs-locked 'file-storage_cfg' operation: BackupServer: error fetching datastores - 500 Can't connect to *.*.9.7:8007 (500)
 

Attachments

  • Sem título.png
    Sem título.png
    17.4 KB · Views: 213
  • Sem título2.png
    Sem título2.png
    15.2 KB · Views: 199
Last edited:
Hi,

PBS Ve. 1.0-1 (installed using ISO)
As first step I'd update it to latest, we released quite some updates since initial 1.0 release.

Ensure you got a valid package repository:
https://pbs.proxmox.com/docs/installation.html#debian-package-repositories

And update, either via the web-interface, or via the command-line:
Bash:
apt update
apt full-upgrade

If the problem is still there, can you please try to open a shell on the Proxmox VE host and execute the following command (after adapting IP)
Bash:
proxmox-backup-client version --repository 192.168.9.7:POOL1
and post the output here.
 
Hi Thomas, i have done what you asked.

After the upgrade the problem still persists

Code:
root@proxmox:~# proxmox-backup-client version --repository 10.55.9.7:POOL1
Password for "root@pam": *************
client version: 1.0.13
server version: 1.1.1

For the first try, the command above asked me twice to keep connection, and showed my PBS fingerprint
i dont know if that helps with anything.

Code:
root@proxmox:~# proxmox-backup-client version --repository 10.55.9.7:POOL1
Password for "root@pam": **********
fingerprint: 1e:8a:98:12:5a:f7:5a:6c:eb:b2:f2:b9:dc:*:b8:b2:9a:5a:90
Are you sure you want to continue connecting? (y/n): y
fingerprint: 1e:8a:98:12:5a:f7:5a:6c:eb:b2:f2:b9:dc:*:b8:b2:9a:5a:90
Are you sure you want to continue connecting? (y/n): y
could not connect to server - channel closed
client version: 1.0.13

so, still cant connect to the PBS on PVE. =/

Thanks in advice!

PS: Tried now a point to point connection.
Configured eno4 10.0.0.1/32 on PVE
and eno1 10.0.0.2/32 on PBS

They ping/telnet ok, but still, the same mesage
 
Last edited:
Same problem here on a pve 6.3-6 test cluster connected to a 1.1.2 pbs. two nodes can connect and backup without a problem, the third node just tells me it can't connect.

from the third node, a
Code:
telnet pbs.xxx.com 8007
is successful, so it isn't likely a firewall or connection problem.

pvestatd started with --debug=1 also just tells me
Code:
pbs: error fetching datastores - 500 Can't connect to pbs.xxx.com
 
Same problem here on a pve 6.3-6 test cluster connected to a 1.1.2 pbs. two nodes can connect and backup without a problem, the third node just tells me it can't connect.

from the third node, a
Code:
telnet pbs.xxx.com 8007
is successful, so it isn't likely a firewall or connection problem.

pvestatd started with --debug=1 also just tells me
Code:
pbs: error fetching datastores - 500 Can't connect to pbs.xxx.com
Have you solved the problem?
 
Any news on this,
I have also running HA 3 node cluster @home and got the problem with PBS Backupserver.
1625245826832.png
1625245850261.png
1625245891913.png

All Versions latest updated: Virtual Environment 6.4-9

Thx Manfred
 
Any news on this,
I have also running HA 3 node cluster @home and got the problem with PBS Backupserver.
View attachment 27256
View attachment 27257
View attachment 27258

All Versions latest updated: Virtual Environment 6.4-9

Thx Manfred
Your issue does not seem like it is the same as the original poster has. It can connect, but the fingerprint is not verified.
So, for self-signed certificates you'd need to enter the Fingerprint when configuring the Proxmox Backup Server as storage in Proxmox VE. Else we cannot guarantee that we're actually directly connecting to PBS, so this is enforced to avoid MITM attacks.

You can find the fingerprint in the "Dashboard" of the Proxmox Backup, there's a blue "Show Fingerprint" button, copy the value from there and paste it in the fingerprint field of the "Add PBS Storage" dialogue.
 
not yet, im waiting for a new server to come up, and a fresh proxmox install to test the conection again.
Hey, did you end up solving your problem?
i have the same going on here right now with a fresh PBS install and two cluster nodes simply not connecting with the same error message as you already described
 
for me was the same. Backup data store added flawless, but pvesm status fails with the verify error.

I am using a custom certificate from private pki and alredy added the ca cert to the proxy.pem. Even PVE and PBS are using the same CA the PBS cert was not accepted.

My solution was adding the private CA cert into system CA store ( copy it to /usr/local/share/ca-certificates and run update-ca-certificates afterwards) The status error was gone
 

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!