[SOLVED] error adding storage "create storage failed: error during cfs-locked - tcp connect error: Connection refused

RobFantini

Famous Member
May 24, 2012
2,022
107
133
Boston,Mass
the following was caused by a typo on the IP address. there is no bug, just an operator error.

Code:
pvesm add pbs a-maint-pbs --datastore maint-store1 --server 10.1.25.20  --fingerprint .....  --username pbs-user@pbs  --password <password>
create storage failed: error during cfs-locked 'file-storage_cfg' operation: proxmox-backup-client failed: Error: error trying to connect: tcp connect error: Connection refused (os error 111)

here is some more info:
Code:
proxmox-backup-manager datastore list :
┌──────────────┬──────────────────────────┬─────────┐
│ name         │ path                     │ comment │
╞══════════════╪══════════════════════════╪═════════╡
│ LtBackups    │ /fbc-backups/LtBackups   │         │
├──────────────┼──────────────────────────┼─────────┤
│ fbc-store1   │ /fbc-backups/fbc-store1  │         │
├──────────────┼──────────────────────────┼─────────┤
│ maint-store1 │ /maint-backups/pve-maint │         │
└──────────────┴──────────────────────────┴─────────┘

cat user.cfg
user: root@pam
        comment Superuser

user: pbs-user@pbs
        enable true
        expire 0


cat acl.cfg
acl:1:/datastore/LtBackups:pbs-user@pbs:Admin
acl:1:/datastore/fbc-store1:pbs-user@pbs:Admin
acl:1:/datastore/maint-store1:pbs-user@pbs:Admin
 
Last edited:
proxmox-backup-client version --repository pbs-user@pbs@10.1.25.20:maint-store1


Code:
proxmox-backup-client version --repository pbs-user@pbs@10.1.25.20:maint-store1
Password for "pbs-user@pbs": ********
could not connect to server - error trying to connect: tcp connect error: Connection refused (os error 111)
client version: 0.8.7
 
Code:
 proxmox-backup-client version --repository pbs-user@pbs@10.1.80.20:maint-store1
Password for "pbs-user@pbs": ********
fingerprint: 59:59:50:05:4c:e7:47:7c:09:96:96:51:16:ef:97:dc:1a:b5:f0:f7:43:4a:69:92:69:cf:ce:99:60:92:51:89
Are you sure you want to continue connecting? (y/n): yes
Are you sure you want to continue connecting? (y/n): y
fingerprint: 59:59:50:05:4c:e7:47:7c:09:96:96:51:16:ef:97:dc:1a:b5:f0:f7:43:4a:69:92:69:cf:ce:99:60:92:51:89
Are you sure you want to continue connecting? (y/n): y
client version: 0.8.7
server version: 0.8.6
 
  • Like
Reactions: t.lamprecht
I think it's a normal and human error, and people will make it. So, it may actually help someone to triple check their IP/domain etc. when getting the "error trying to connect: tcp connect error: Connection refused (os error 111)" error and finding this thread.
So, IMO it's fine to stay :)
 

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!