com.atlassian.utils.process.ProcessNotStartedException: D:\Git\cmd\git.exe could not be started

atlassian.com | 4 months ago
  1. 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
  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

    *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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.utils.process.ProcessNotStartedException

      D:\Git\cmd\git.exe could not be started

      at com.atlassian.utils.process.ExternalProcessImpl.start()
    2. com.atlassian.utils
      ExternalProcessImpl.start
      1. com.atlassian.utils.process.ExternalProcessImpl.start(ExternalProcessImpl.java:332)[ExternalProcessImpl.class:na]
      1 frame
    3. com.atlassian.bitbucket
      ScmServlet.handleRequest
      1. com.atlassian.bitbucket.scm.BaseCommand.doStart(BaseCommand.java:189)[BaseCommand.class:na]
      2. com.atlassian.bitbucket.scm.BaseCommand.call(BaseCommand.java:72)[BaseCommand.class:na]
      3. com.atlassian.bitbucket.internal.scm.git.protocol.http.GitSmartRequest.handleRequest(GitSmartRequest.java:94)[bitbucket-scm-git-3.3.2.jar:na]
      4. com.atlassian.bitbucket.internal.scm.git.protocol.http.OtherRead.handleRequest(OtherRead.java:18)[bitbucket-scm-git-3.3.2.jar:na]
      5. com.atlassian.bitbucket.scm.throttle.ThrottledScmRequestFactory$ThrottlingInvocationHandler.invoke(ThrottledScmRequestFactory.java:91)[ThrottledScmRequestFactory$ThrottlingInvocationHandler.class:na]
      6. com.atlassian.bitbucket.internal.scm.ScmServlet.handleRequest(ScmServlet.java:55)[ScmServlet.class:na]
      6 frames
    4. Spring
      HttpRequestHandlerServlet.service
      1. org.springframework.web.context.support.HttpRequestHandlerServlet.service(HttpRequestHandlerServlet.java:68)[HttpRequestHandlerServlet.class:4.0.6.RELEASE]
      1 frame
    5. com.atlassian.applinks
      ContextFilter.doFilter
      1. com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25)[applinks-plugin-4.2.4_1408604932000.jar:na]
      1 frame