psjob - Connection attempt failed. / Server execution failed

psjob - Connection attempt failed. / Server execution failed

Post by Robin Moff » Wed, 06 Feb 2008 20:11:25


I'm running a set of ps1 scripts in parallel using psjob.
I get sporadic failures of jobs - when I run get-psjob|receive-psjob I
get the message:
Receive-PSJob : [localhost] Server execution failed
and digging down with
get-psjob -state Failed|%{$_.childjobs[0].jobstateinfo.reason}
returns "Connection attempt failed."

If I run the script on their own they work, if I run them outside of
psjob they work. it's not the same job that fails each time.

any ideas?
 
 
 

psjob - Connection attempt failed. / Server execution failed

Post by Marco Shaw » Wed, 06 Feb 2008 21:58:43


Could be this:
PSH>winrm get winrm/config
...
Winrs
AllowRemoteShellAccess = true
IdleTimeout = 900000
MaxConcurrentUsers = 5
...

My default winrs will only allows 5 concurrent connections.

I'll try to test if that's the issue.

Marco

--
Microsoft MVP - Windows PowerShell
http://www.yqcomputer.com/

PowerGadgets MVP
http://www.yqcomputer.com/

Blog:
http://www.yqcomputer.com/