Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Reset node problem #2236

Syanov ·
Hi Robin,

I have some problem.
One step is waiting resource of my grid(it is one node).
Another step does reset this PC,
he tries set off QBclient and then run reset PC.
I get follow error:

"Error executing grid job
caused by: Error connecting 'http://172.24.5.23:8811/service/node'
caused by: Connection refused"

This is because the QBclient has not yet started, and the computer on the network is already in sight.
Could you tell me what I can do.
  • replies 8
  • views 2362
  • stars 0
robinshen ADMIN ·
QB step is not able to shutdown the agent it is running on, as otherwise the step will be not be able to finish gracefully. Any particular reason you want to do this?
Syanov ·
Hi Robin,

Test hardware attached to the node.
Sometimes, to bring it into feelings must restart the computer only.

Greetings,
Alexander
Syanov ·
I wrote a script that closes the agent by name of his window.
And I was hoping that it will be properly understood for QuickBuild as agent off.
robinshen ADMIN ·
At least the agent itself is not safe to be closed. You may install agent in another machine, and shutdown the hardware via some other remoting mechanisms.
brutan ·
Hi, this script works fine for me, and gracefully closes QB agent on the node the step executed on:
groovy:
import com.pmease.quickbuild.bootstrap.Bootstrap;
th = Thread.start { Bootstrap.shutdown() }

Can it cause some issues?
Syanov ·
Thank you for the example, I like this way of restarting.
However, this did not solve my problem.
Another configuration waiting overloaded node as a resource
Node Selection:
On node with specified resource

falls with the message:

Error executing grid job
caused by: Error connecting 'http://172.24.5.23:8811/service/node'
caused by: Connection refused

Instead of waiting for the restart of the agent.
robinshen ADMIN ·
[quote="brutan"]Hi, this script works fine for me, and gracefully closes QB agent on the node the step executed on:
groovy:
import com.pmease.quickbuild.bootstrap.Bootstrap;
th = Thread.start { Bootstrap.shutdown() }

Can it cause some issues?[/quote]
Brutan's script should work most of the time as it triggers shutdown in a separate thread, and shutdown normally takes a while to proceed so the step calling this script can complete without issues.
[quote="Syanov"]Thank you for the example, I like this way of restarting.
However, this did not solve my problem.
Another configuration waiting overloaded node as a resource
Node Selection:
On node with specified resource

falls with the message:

Error executing grid job
caused by: Error connecting 'http://172.24.5.23:8811/service/node'
caused by: Connection refused

Instead of waiting for the restart of the agent.[/quote]

Can you please create a sample database to demonstrate this issue and send to [robin AT pmease DOT com]?
Syanov ·
My problem is solved.
It was found with Windows XP
this code works fine.
In my case, that's enough.
For win 7 for some reason this does not work.

groovy:
import com.pmease.quickbuild.bootstrap.Bootstrap;

for (step in current.getChildren ()) {
if (step.getName (). startsWith ("Burn") && step.isFailed ()) {
th = Thread.start {Bootstrap.shutdown ()}
util.execute ("shutdown.exe-r-f-t 2");
}
}

If I have Windowx XP then the expected resource configuration
works correctly.

Thanks all for advices.