Add datastore connection timeout

Roy Compass

New Member
Dec 7, 2020
3
1
1
41
Hi,

I was getting Connection error - Timeout when adding datastore on the web interface. The datastore was actually created after about 15 minutes, despite the error.
1612829175778.png

The datastore is created on this NFS share.
Code:
192.168.226.89:/mnt/RAIDA/backup/backup on /mnt/datastore/backup-pbs-nas type nfs (rw,relatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.226.89,mountvers=3,mountport=995,mountproto=udp,local_lock=none,addr=192.168.226.89,_netdev)

It looked like after the connection timeout message, the process was still creating sub-folders in .chunks. Once .chunks had 65536 or 65537 folders, the datastore was created successfully.


Running proxmox-back-manager in cli returned no error.
Code:
proxmox-backup-manager datastore create backup-pbs-nas /mnt/datastore/backup-pbs-nas


Package versions
Code:
()
proxmox-backup: 1.0-4 (running kernel: 5.4.78-2-pve)
proxmox-backup-server: 1.0.6-1 (running version: 1.0.6)
pve-kernel-5.4: 6.3-3
pve-kernel-helper: 6.3-3
pve-kernel-5.4.78-2-pve: 5.4.78-2
pve-kernel-5.4.78-1-pve: 5.4.78-1
pve-kernel-5.4.65-1-pve: 5.4.65-1
ifupdown2: 3.0.0-1+pve3
libjs-extjs: 6.0.1-10
proxmox-backup-docs: 1.0.6-1
proxmox-backup-client: 1.0.6-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.4-3
pve-xtermjs: 4.7.0-3
smartmontools: 7.1-pve2
zfsutils-linux: 0.8.5-pve1
 

Attachments

  • 1612829208409.png
    1612829208409.png
    18.8 KB · Views: 1
Hi,

This is a known issue with NFS backed (or generally slow) storage. As you noticed yourself, the job actually does continue in the background, it just doesn't return before the HTTP request timeout. You should still see status updates by monitoring the system log. Otherwise, as you noticed, using the cli avoivds the issue entirely. Upon completion, the datastore should work as expected.
 

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!