Cannot start build runner (rake runner)

Hi,

We are running 6 agents (agents 2, 3 & 4) running on the same host but when running a job in agent 2 I'm getting the following under Build Problems: "Cannot start build runner: Failed to start build runner 'rake-runner'

"

In the build logs the following is recorded:

[19:44:58][Step 2/2] Failed to start build runner 'rake-runner'
[19:44:58][Step 2/2] java.lang.IllegalStateException: @NotNull method jetbrains/buildServer/agent/rakerunner/scripting/ProcessBasedRubyScriptRunner.run must not return null      at jetbrains.buildServer.agent.rakerunner.scripting.ProcessBasedRubyScriptRunner.run(ProcessBasedRubyScriptRunner.java:79)      at jetbrains.buildServer.agent.rakerunner.utils.InternalRubySdkUtil.getRubyInterpreterVersion(InternalRubySdkUtil.java:100)      at jetbrains.buildServer.agent.ruby.impl.RubySdkImpl.setup(RubySdkImpl.java:199)      at jetbrains.buildServer.agent.rakerunner.utils.RubySDKUtil.setupSdk(RubySDKUtil.java:159)      at jetbrains.buildServer.agent.rakerunner.utils.RubySDKUtil.createAndSetupSdk(RubySDKUtil.java:152)      at jetbrains.buildServer.agent.rakerunner.RakeTasksBuildService.makeProgramCommandLine(RakeTasksBuildService.java:92)      at jetbrains.buildServer.agent.runner2.SingleCommandLineBuildSessionAdapter.makeProgramCommandLine(SingleCommandLineBuildSessionAdapter.java:53)      at jetbrains.buildServer.agent.runner2.GenericCommandLineBuildProcess.executeProcess(GenericCommandLineBuildProcess.java:71)      at jetbrains.buildServer.agent.runner2.GenericCommandLineBuildProcess.waitFor(GenericCommandLineBuildProcess.java:257)      at jetbrains.buildServer.agent.impl.buildStages.runnerStages.start.CallRunnerStage.doBuildStage(CallRunnerStage.java:59)      at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:25)      at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor$1.callStage(RunnerStagesExecutor.java:18)      at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78)      at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37)      at jetbrains.buildServer.agent.impl.buildStages.RunnerStagesExecutor.doStages(RunnerStagesExecutor.java:18)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.RunnerContextExecutor.callRunnerStages(RunnerContextExecutor.java:43)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.StepExecutor.processNextStep(StepExecutor.java:25)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeRunnerStep(ForEachBuildRunnerStage.java:138)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.runStep(ForEachBuildRunnerStage.java:123)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeBuildRunners(ForEachBuildRunnerStage.java:83)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.runStep(ForEachBuildRunnerStage.java:115)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.executeBuildRunners(ForEachBuildRunnerStage.java:83)      at jetbrains.buildServer.agent.impl.buildStages.startStages.steps.ForEachBuildRunnerStage.doBuildStage(ForEachBuildRunnerStage.java:44)      at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:31)      at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor$1.callStage(BuildStagesExecutor.java:24)      at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.callRunStage(StagesExecutor.java:78)      at jetbrains.buildServer.agent.impl.buildStages.StagesExecutor.doStages(StagesExecutor.java:37)      at jetbrains.buildServer.agent.impl.buildStages.BuildStagesExecutor.doStages(BuildStagesExecutor.java:24)      at jetbrains.buildServer.agent.impl.BuildRunActionImpl.doStages(BuildRunActionImpl.java:70)      at jetbrains.buildServer.agent.impl.BuildRunActionImpl.runBuild(BuildRunActionImpl.java:50)      at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:266)      at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:51)      at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:231)      at java.lang.Thread.run(Thread.java:745)

 
Using the agent diff plugin there are no differences between agents, any ideas what might be causing the above failure on this single agent?

2 comments

Hi Daniel,

Do you use any non-bundled plugins (e.g. installed into <TeamCity Data Directory>\plugins)?
Could you please attach teamcity-server.log covering the server start and teamcity-agent.log from the agent covering the agent start and the build?

0

Thanks for your reply alina.

We managed to get the job building again after restarting the agent on this host.

Regards,

Daniel

0

Please sign in to leave a comment.