SolidCharity / LightBuildServer

LightBuildServer for building rpm and deb packages and running CI scripts, using linux containers
BSD 3-Clause "New" or "Revised" License
11 stars 1 forks source link

problems with check for hanging build #135

Closed tpokorra closed 8 years ago

tpokorra commented 8 years ago

this somehow stops running builds. when stopping the hanging machine, is the build in the database not stopped as well?

tpokorra commented 8 years ago

it seems there are still two calls for ReleaseMachine:

[00:30:29] Folder shared/folder20160517205942@lbs.solidcharity.com
[00:30:30]   lrswipkxtecdn anyone
stopping machine build04lxc.lbs.solidcharity.com because of hanging build 6235
current time: 2016-05-17 21:17:19
sql statement: %s UPDATE build SET hanging = 1 WHERE id = ?
ReleaseMachine build04lxc.lbs.solidcharity.com
[00:00:00] now running: ssh -f -o "StrictHostKeyChecking no" -p 2222 -i /etc/lightbuildserver/container/container_rsa root@build04lxc.lbs.solidcharity.com "export LANG=C; lxc-stop --name 005-build04lxc.lbs.solidcharity.com && sleep 10 2>&1; echo \$?"
[00:00:00] bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
[00:48:13] Connection to 10.0.3.5 closed by remote host.
[00:48:13] LBSERROR: Setup script did not succeed
ReleaseMachine build04lxc.lbs.solidcharity.com
[00:00:00] now running: ssh -f -o "StrictHostKeyChecking no" -p 2222 -i /etc/lightbuildserver/container/container_rsa root@build04lxc.lbs.solidcharity.com "export LANG=C; lxc-stop --name 005-build04lxc.lbs.solidcharity.com && sleep 10 2>&1; echo \$?"
[00:00:00] bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
[00:00:00] 005-build04lxc.lbs.solidcharity.com is not running
[00:00:00] 2
[00:48:14] This build took about 48 minutes
GetAvailableBuildMachine found a free machine
[00:00:00]  * Starting at 2016-05-17 21:18:23 GMT+0200
[00:00:00]  * Preparing the machine...

One call is from CheckForHangingBuild, and the other from buildpackage, finally.