com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: Broken pipe

Atlassian JIRA | Charles O'Farrell [Atlassian] | 3 years ago
  1. 0

    Having a pipe {{|}} in the branch name will result in the changeset index failing, which in turn results in JIRA linking not working at all in that repository. This may manifest itself with the following stacktrace in the logs: {noformat} com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: Broken pipe at com.atlassian.stash.scm.git.common.command.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:120) ~[na:na] at com.atlassian.stash.scm.git.common.command.GitCommandExitHandler.onCancel(GitCommandExitHandler.java:46) ~[na:na] at com.atlassian.stash.scm.BaseCommand.callExitHandler(BaseCommand.java:138) ~[stash-spi-2.9.2.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:257) ~[stash-spi-2.9.2.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:238) ~[stash-spi-2.9.2.jar:na] at com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl$IndexOperation.wrapUpCommand(ChangesetIndexingServiceImpl.java:486) ~[stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl$IndexOperation.indexChangesets(ChangesetIndexingServiceImpl.java:447) ~[stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl$IndexOperation.index(ChangesetIndexingServiceImpl.java:366) ~[stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl$IndexOperation.perform(ChangesetIndexingServiceImpl.java:273) ~[stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl.indexRepository(ChangesetIndexingServiceImpl.java:146) ~[stash-service-impl-2.9.2.jar:na] at com.sun.proxy.$Proxy209.indexRepository(Unknown Source) ~[na:na] at com.atlassian.stash.internal.idx.ChangesetIndexingScheduler$HierarchyIndexer.index(ChangesetIndexingScheduler.java:211) [stash-service-impl-2.9.2.jar:na] {noformat} Some broken artifacts may be visible in the branch selector UI.

    Atlassian JIRA | 3 years ago | Charles O'Farrell [Atlassian]
    com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: Broken pipe
  2. 0

    Having a pipe {{|}} in the branch name will result in the changeset index failing, which in turn results in JIRA linking not working at all in that repository. This may manifest itself with the following stacktrace in the logs: {noformat} com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: Broken pipe at com.atlassian.stash.scm.git.common.command.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:120) ~[na:na] at com.atlassian.stash.scm.git.common.command.GitCommandExitHandler.onCancel(GitCommandExitHandler.java:46) ~[na:na] at com.atlassian.stash.scm.BaseCommand.callExitHandler(BaseCommand.java:138) ~[stash-spi-2.9.2.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:257) ~[stash-spi-2.9.2.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:238) ~[stash-spi-2.9.2.jar:na] at com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl$IndexOperation.wrapUpCommand(ChangesetIndexingServiceImpl.java:486) ~[stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl$IndexOperation.indexChangesets(ChangesetIndexingServiceImpl.java:447) ~[stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl$IndexOperation.index(ChangesetIndexingServiceImpl.java:366) ~[stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl$IndexOperation.perform(ChangesetIndexingServiceImpl.java:273) ~[stash-service-impl-2.9.2.jar:na] at com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl.indexRepository(ChangesetIndexingServiceImpl.java:146) ~[stash-service-impl-2.9.2.jar:na] at com.sun.proxy.$Proxy209.indexRepository(Unknown Source) ~[na:na] at com.atlassian.stash.internal.idx.ChangesetIndexingScheduler$HierarchyIndexer.index(ChangesetIndexingScheduler.java:211) [stash-service-impl-2.9.2.jar:na] {noformat} Some broken artifacts may be visible in the branch selector UI.

    Atlassian JIRA | 3 years ago | Charles O'Farrell [Atlassian]
    com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: Broken pipe
  3. 0

    Jenkins webhook trigger failing due to permissions?

    GitHub | 3 years ago | doughanks
    java.lang.RuntimeException: An error occurred while executing an external process: [e02b6a2]: Unexpected output; expected a 'commit' object
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    {code} 2013-11-22 09:11:40,241 DEBUG [http-bio-7990-exec-31] voodoo 551x361x4 m751bs 127.0.0.1 "GET /rest/branch-utils/latest/projects/PROJECT/repos/repo/branches/info/23d2b5c777d94a603c489ac049628ea177463fcb HTTP/1.0" c.a.s.r.e.ServiceExceptionMapper Mapping ServiceException to REST response 500 com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: process timed out at com.atlassian.stash.scm.git.common.command.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:120) ~[na:na] at com.atlassian.stash.scm.git.common.command.GitCommandExitHandler.onError(GitCommandExitHandler.java:163) ~[na:na] at com.atlassian.stash.scm.DefaultCommandExitHandler.onExit(DefaultCommandExitHandler.java:35) ~[stash-spi-2.9.1.jar:na] at com.atlassian.stash.scm.BaseCommand.callExitHandler(BaseCommand.java:141) ~[stash-spi-2.9.1.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:257) ~[stash-spi-2.9.1.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:224) ~[stash-spi-2.9.1.jar:na] at com.atlassian.stash.scm.BaseCommand.call(BaseCommand.java:78) ~[stash-spi-2.9.1.jar:na] at com.atlassian.stash.internal.branch.info.git.GitBranchInformation.getBranches(GitBranchInformation.scala:79) ~[stash-branch-utils-2.9.1_1384828358000.jar:na] at com.atlassian.stash.internal.branch.info.DefaultBranchInformationService.getFilteredBranches$1(DefaultBranchInformationService.scala:26) ~[stash-branch-utils-2.9.1_1384828358000.jar:na] at com.atlassian.stash.internal.branch.info.DefaultBranchInformationService.getBranches(DefaultBranchInformationService.scala:40) ~[stash-branch-utils-2.9.1_1384828358000.jar:na] at com.atlassian.stash.internal.branch.rest.BranchUtilsResource.getBranches(BranchUtilsResource.java:107) ~[stash-branch-utils-2.9.1_1384828358000.jar:na] at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25) [applinks-plugin-4.0.5_1384476184000.jar:na] at com.atlassian.stash.internal.spring.security.StashAuthenticationFilter.doFilter(StashAuthenticationFilter.java:90) [StashAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doInsideSpringSecurityChain(BeforeLoginPluginAuthenticationFilter.java:111) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:77) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:100) [atlassian-trusted-apps-core-3.0.2.jar:na] at com.atlassian.oauth.serviceprovider.internal.servlet.OAuthFilter.doFilter(OAuthFilter.java:61) [atlassian-oauth-service-provider-plugin-1.9.0-m3_1384476184000.jar:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doBeforeBeforeLoginFilters(BeforeLoginPluginAuthenticationFilter.java:89) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.web.auth.BeforeLoginPluginAuthenticationFilter.doFilter(BeforeLoginPluginAuthenticationFilter.java:75) [BeforeLoginPluginAuthenticationFilter.class:na] at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:72) [stash-service-impl-2.9.1.jar:na] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_45] ... 174 frames trimmed Caused by: com.atlassian.utils.process.ProcessTimeoutException: process timed out at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:506) ~[atlassian-processutils-1.5.14.jar:na] at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:423) ~[atlassian-processutils-1.5.14.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:222) ~[stash-spi-2.9.1.jar:na] ... 16 common frames omitted {code}

    Atlassian JIRA | 3 years ago | Alexey Efimov
    com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: process timed out
  6. 0

    [BSERV-3786] StringIndexOutOfBoundsException: String index out of range: -1 - Atlassian JIRA

    atlassian.com | 1 year ago
    com.atlassian.stash.exception.ServerException: An error occurred executing an external process: index out of range: -1

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.stash.exception.ServerException

      An error occurred while executing an external process: Broken pipe

      at com.atlassian.stash.scm.git.common.command.GitCommandExitHandler.evaluateThrowable()
    2. com.atlassian.stash
      ChangesetIndexingServiceImpl.indexRepository
      1. com.atlassian.stash.scm.git.common.command.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:120)[na:na]
      2. com.atlassian.stash.scm.git.common.command.GitCommandExitHandler.onCancel(GitCommandExitHandler.java:46)[na:na]
      3. com.atlassian.stash.scm.BaseCommand.callExitHandler(BaseCommand.java:138)[stash-spi-2.9.2.jar:na]
      4. com.atlassian.stash.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:257)[stash-spi-2.9.2.jar:na]
      5. com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:238)[stash-spi-2.9.2.jar:na]
      6. com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl$IndexOperation.wrapUpCommand(ChangesetIndexingServiceImpl.java:486)[stash-service-impl-2.9.2.jar:na]
      7. com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl$IndexOperation.indexChangesets(ChangesetIndexingServiceImpl.java:447)[stash-service-impl-2.9.2.jar:na]
      8. com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl$IndexOperation.index(ChangesetIndexingServiceImpl.java:366)[stash-service-impl-2.9.2.jar:na]
      9. com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl$IndexOperation.perform(ChangesetIndexingServiceImpl.java:273)[stash-service-impl-2.9.2.jar:na]
      10. com.atlassian.stash.internal.idx.ChangesetIndexingServiceImpl.indexRepository(ChangesetIndexingServiceImpl.java:146)[stash-service-impl-2.9.2.jar:na]
      10 frames
    3. com.sun.proxy
      $Proxy209.indexRepository
      1. com.sun.proxy.$Proxy209.indexRepository(Unknown Source)[na:na]
      1 frame
    4. com.atlassian.stash
      ChangesetIndexingScheduler$HierarchyIndexer.index
      1. com.atlassian.stash.internal.idx.ChangesetIndexingScheduler$HierarchyIndexer.index(ChangesetIndexingScheduler.java:211)[stash-service-impl-2.9.2.jar:na]
      1 frame