com.atlassian.utils.process.ProcessNotStartedException: echo could not be started

Atlassian JIRA | Sultan Maiyaki [Atlassian] | 3 years ago
  1. 0

    *Steps to reproduce* # Create a command task with the path pointing to a shell command say echo for example. See the attached screenshot # When this is run against an older version of Bamboo, it runs fine despite the error message that "Unable to find executable at echo" {code} error 03-Sep-2013 16:58:50 Unable to find executable at echo command 03-Sep-2013 16:58:50 Beginning to execute external process for build 'TESTA - TSTA - Default Job'\n ... running command line: \necho 2 > sultan.txt\n ... in: D:\atlassian\BAMBOO\atlassian-bamboo-4.4.4\HOME\xml-data\build-dir\TESTA-TSTA-JOB1\n {code} # Now if this is done in the latest Bamboo 5.1, it fails with the build logs throwing something like {code} error 03-Sep-2013 17:02:19 Unable to find executable at echo command 03-Sep-2013 17:02:19 Beginning to execute external process for build 'TESTA - TSTA - Default Job #17 (TESTA-TSTA-JOB1-17)'\n ... running command line: \necho 17 > sultan.txt\n ... in: D:\atlassian\BAMBOO\atlassian-bamboo-5.1.0\HOME\xml-data\build-dir\TESTA-TSTA-JOB1\n simple 03-Sep-2013 17:02:19 Failing task since return code of [echo 17 > sultan.txt] was -1 while expected 0 {code} The atlassian-bamboo.log shows something like: {noformat} com.atlassian.utils.process.ProcessNotStartedException: echo could not be started at com.atlassian.utils.process.ExternalProcessImpl.start(ExternalProcessImpl.java:288) at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:409) at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:211) at com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask.execute(AbstractShellBuildTask.java:61) at com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask.execute(AbstractShellBuildTask.java:48) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:220) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:102) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:108) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:55) at java.lang.Thread.run(Thread.java:724) {noformat}

    Atlassian JIRA | 3 years ago | Sultan Maiyaki [Atlassian]
    com.atlassian.utils.process.ProcessNotStartedException: echo could not be started
  2. 0

    *Steps to reproduce* # Create a command task with the path pointing to a shell command say echo for example. See the attached screenshot # When this is run against an older version of Bamboo, it runs fine despite the error message that "Unable to find executable at echo" {code} error 03-Sep-2013 16:58:50 Unable to find executable at echo command 03-Sep-2013 16:58:50 Beginning to execute external process for build 'TESTA - TSTA - Default Job'\n ... running command line: \necho 2 > sultan.txt\n ... in: D:\atlassian\BAMBOO\atlassian-bamboo-4.4.4\HOME\xml-data\build-dir\TESTA-TSTA-JOB1\n {code} # Now if this is done in the latest Bamboo 5.1, it fails with the build logs throwing something like {code} error 03-Sep-2013 17:02:19 Unable to find executable at echo command 03-Sep-2013 17:02:19 Beginning to execute external process for build 'TESTA - TSTA - Default Job #17 (TESTA-TSTA-JOB1-17)'\n ... running command line: \necho 17 > sultan.txt\n ... in: D:\atlassian\BAMBOO\atlassian-bamboo-5.1.0\HOME\xml-data\build-dir\TESTA-TSTA-JOB1\n simple 03-Sep-2013 17:02:19 Failing task since return code of [echo 17 > sultan.txt] was -1 while expected 0 {code} The atlassian-bamboo.log shows something like: {noformat} com.atlassian.utils.process.ProcessNotStartedException: echo could not be started at com.atlassian.utils.process.ExternalProcessImpl.start(ExternalProcessImpl.java:288) at com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:409) at com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:211) at com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask.execute(AbstractShellBuildTask.java:61) at com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask.execute(AbstractShellBuildTask.java:48) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:220) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:102) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:108) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:55) at java.lang.Thread.run(Thread.java:724) {noformat}

    Atlassian JIRA | 3 years ago | Sultan Maiyaki [Atlassian]
    com.atlassian.utils.process.ProcessNotStartedException: echo could not be started
  3. 0

    Push Causes Pre-Receive Hook Declined When Running Windows Server on XenServer - Atlassian Documentation

    atlassian.com | 4 months ago
    com.atlassian.utils.process.ProcessNotStartedException: D:\Git\cmd\git.exe could not be started
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.utils.process.ProcessNotStartedException

      echo could not be started

      at com.atlassian.utils.process.ExternalProcessImpl.start()
    2. com.atlassian.utils
      ExternalProcessImpl.execute
      1. com.atlassian.utils.process.ExternalProcessImpl.start(ExternalProcessImpl.java:288)
      2. com.atlassian.utils.process.ExternalProcessImpl.execute(ExternalProcessImpl.java:409)
      2 frames
    3. com.atlassian.bamboo
      NamedThreadFactory$2.run
      1. com.atlassian.bamboo.process.ProcessServiceImpl.executeExternalProcess(ProcessServiceImpl.java:211)
      2. com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask.execute(AbstractShellBuildTask.java:61)
      3. com.atlassian.bamboo.plugins.shell.task.AbstractShellBuildTask.execute(AbstractShellBuildTask.java:48)
      4. com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:220)
      5. com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98)
      6. com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
      7. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:189)
      8. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:102)
      9. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:108)
      10. com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:55)
      10 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:724)
      1 frame