Quantcast
Channel: R&D Forums
Viewing all articles
Browse latest Browse all 9920

PowerShell • Connection Problems with Connect-VBRServer

$
0
0
In a reporting script I work with PS jobs so I can gather infos multithreaded. I basically loop through all backups and fire up a job that gathers the restorepoints and some meta information.
Inside the job i ensure that there is a connection like this.

Code:

if ((Get-VBRServerSession) -eq $null){Connect-VBRServer -Server <servername>}
At the end of the job I close the connection with "Disconnect-VBRServer".

While this works 90% of the time easily with up to 20 Jobs in parallel, I often reach a point were the master server seems to refuse new connections:
"PowerShell environment initialization failed: Failed to connect to Veeam Backup & Replication server:
A connection attempt failed because the connected party did not properly respond after a period of time, or established
connection failed because connected host has failed to respond"
Sometimes it also comes with this message:
"WARNING: Files are locked by another console, waiting for another console to finish update for 30 seconds"

Once I hit this status the master server is not responding at all and also connections with the Console (gui) are hanging. There is no abnormal CPU or memory usage visible. After 10-20 min. everything goes back to normal.

What can I do to prevent the master server from reaching this blocked status? Is there maybe a connection limit? Is there an option to work with connection pooling?

Statistics: Posted by stephan.troxler — Jul 29, 2024 2:35 pm



Viewing all articles
Browse latest Browse all 9920

Latest Images

Trending Articles



Latest Images