Sam Corbett created BROOKLYN-371:
------------------------------------

             Summary: Entity stuck in starting state when restart failed 
running post-launch-command
                 Key: BROOKLYN-371
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-371
             Project: Brooklyn
          Issue Type: Bug
            Reporter: Sam Corbett


As the title says. I restarted an entity but it failed due to a non-zero exit 
code from the post-launch command:

{code}
Failed after 46ms: commands for post.launch.command failed with return code 1
java.lang.IllegalStateException: commands for post.launch.command failed with 
return code 1
        at 
org.apache.brooklyn.entity.software.base.AbstractSoftwareProcessSshDriver.executeSuccessfully(AbstractSoftwareProcessSshDriver.java:308)
        at 
org.apache.brooklyn.entity.software.base.AbstractSoftwareProcessSshDriver.runPostLaunchCommand(AbstractSoftwareProcessSshDriver.java:340)
        at 
org.apache.brooklyn.entity.software.base.AbstractSoftwareProcessDriver$9.run(AbstractSoftwareProcessDriver.java:321)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at 
org.apache.brooklyn.util.core.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:359)
        at 
org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:522)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
{code}

The entity's service.state sensor stayed STARTING but it should have been 
ON_FIRE.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to