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

Atlassian JIRA | Charles O'Farrell [Atlassian] | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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

    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