com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: [59f20a082d85cb2ab7f2dad457238ab68c57e8c9|59f20a0|||ABCDEFG|HIJK|kahloun@test.com|1355718190]: Found 8 tokens where 7 were expected

Atlassian JIRA | Kah Loun Foong [Atlassian] | 4 years ago
  1. 0

    h3.Steps to reproduce # Set commit username: {noformat} $ git config --global user.name "ABCDEFG|HIJK" {noformat} # Clone the project from Stash: {noformat} git clone http://kahloun@localhost/scm/TEST/test.git Clone was successfully done. In atlassian-stash.log, the following lines were written: 2012-12-17 13:23:34,957 DEBUG [http-7990-2] 803x3469x1 172.25.38.63,127.0.0.1 "GET /scm/TEST/test.git/info/refs HTTP/1.1" c.a.s.internal.user.UserServiceImpl Authenticating user kahloun 2012-12-17 13:23:36,471 DEBUG [http-7990-8] 803x3470x1 172.25.38.63,127.0.0.1 "POST /scm/TEST/test.git/git-receive-pack HTTP/1.1" c.a.s.internal.user.UserServiceImpl Authenticating user kahloun {noformat} # Create a commit on the repository. {noformat} $ touch test.txt $ git add . $ git commit -m "test" {noformat} # Push the commit to Stash. {noformat} $ git push origin master {noformat} # Access the file Stash will have error eg. http://localhost/projects/TEST/repos/test/commits The following appear in {{atlassian-stash.log}}: {noformat} 2012-12-17 13:25:27,632 DEBUG [http-7990-8] kahloun 805x3475x1 oglrpy 10.9.185.91,127.0.0.1 "GET /projects/TEST/repos/test/commits HTTP/1.1" com.atlassian.stash.scm.BaseCommand Executed /usr/local/bin/git rev-list --format=%H|%h|%P|%p|%an|%ae|%at%n%B%n@@object_end@@ --stdin -- 2012-12-17 13:25:28,127 ERROR [http-7990-8] kahloun 805x3475x1 oglrpy 10.9.185.91,127.0.0.1 "GET /projects/TEST/repos/test/commits HTTP/1.1" c.a.s.i.w.HandlerExceptionResolverImpl An error occurred while executing an external process: [59f20a082d85cb2ab7f2dad457238ab68c57e8c9|59f20a0|||ABCDEFG|HIJK|kahloun@test.com|1355718190]: Found 8 tokens where 7 were expected com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: [59f20a082d85cb2ab7f2dad457238ab68c57e8c9|59f20a0|||ABCDEFG|HIJK|kahloun@test.com|1355718190]: Found 8 tokens where 7 were expected at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:120) ~[na:na] at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.onCancel(GitCommandExitHandler.java:48) ~[na:na] at com.atlassian.stash.scm.BaseCommand.callExitHandler(BaseCommand.java:143) ~[stash-spi-1.3.0.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:266) ~[stash-spi-1.3.0.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:233) ~[stash-spi-1.3.0.jar:na] at com.atlassian.stash.scm.BaseCommand.call(BaseCommand.java:81) ~[stash-spi-1.3.0.jar:na] at com.atlassian.stash.internal.history.HistoryServiceImpl.getChangesets(HistoryServiceImpl.java:118) ~[stash-service-impl-1.3.0.jar:na] at sun.reflect.GeneratedMethodAccessor1014.invoke(Unknown Source) ~[na:na] ... Caused by: java.lang.IllegalStateException: [59f20a082d85cb2ab7f2dad457238ab68c57e8c9|59f20a0|||ABCDEFG|HIJK|kahloun@test.com|1355718190]: Found 8 tokens where 7 were expected {noformat}

    Atlassian JIRA | 4 years ago | Kah Loun Foong [Atlassian]
    com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: [59f20a082d85cb2ab7f2dad457238ab68c57e8c9|59f20a0|||ABCDEFG|HIJK|kahloun@test.com|1355718190]: Found 8 tokens where 7 were expected
  2. 0

    h3.Steps to reproduce # Set commit username: {noformat} $ git config --global user.name "ABCDEFG|HIJK" {noformat} # Clone the project from Stash: {noformat} git clone http://kahloun@localhost/scm/TEST/test.git Clone was successfully done. In atlassian-stash.log, the following lines were written: 2012-12-17 13:23:34,957 DEBUG [http-7990-2] 803x3469x1 172.25.38.63,127.0.0.1 "GET /scm/TEST/test.git/info/refs HTTP/1.1" c.a.s.internal.user.UserServiceImpl Authenticating user kahloun 2012-12-17 13:23:36,471 DEBUG [http-7990-8] 803x3470x1 172.25.38.63,127.0.0.1 "POST /scm/TEST/test.git/git-receive-pack HTTP/1.1" c.a.s.internal.user.UserServiceImpl Authenticating user kahloun {noformat} # Create a commit on the repository. {noformat} $ touch test.txt $ git add . $ git commit -m "test" {noformat} # Push the commit to Stash. {noformat} $ git push origin master {noformat} # Access the file Stash will have error eg. http://localhost/projects/TEST/repos/test/commits The following appear in {{atlassian-stash.log}}: {noformat} 2012-12-17 13:25:27,632 DEBUG [http-7990-8] kahloun 805x3475x1 oglrpy 10.9.185.91,127.0.0.1 "GET /projects/TEST/repos/test/commits HTTP/1.1" com.atlassian.stash.scm.BaseCommand Executed /usr/local/bin/git rev-list --format=%H|%h|%P|%p|%an|%ae|%at%n%B%n@@object_end@@ --stdin -- 2012-12-17 13:25:28,127 ERROR [http-7990-8] kahloun 805x3475x1 oglrpy 10.9.185.91,127.0.0.1 "GET /projects/TEST/repos/test/commits HTTP/1.1" c.a.s.i.w.HandlerExceptionResolverImpl An error occurred while executing an external process: [59f20a082d85cb2ab7f2dad457238ab68c57e8c9|59f20a0|||ABCDEFG|HIJK|kahloun@test.com|1355718190]: Found 8 tokens where 7 were expected com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: [59f20a082d85cb2ab7f2dad457238ab68c57e8c9|59f20a0|||ABCDEFG|HIJK|kahloun@test.com|1355718190]: Found 8 tokens where 7 were expected at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:120) ~[na:na] at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.onCancel(GitCommandExitHandler.java:48) ~[na:na] at com.atlassian.stash.scm.BaseCommand.callExitHandler(BaseCommand.java:143) ~[stash-spi-1.3.0.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:266) ~[stash-spi-1.3.0.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:233) ~[stash-spi-1.3.0.jar:na] at com.atlassian.stash.scm.BaseCommand.call(BaseCommand.java:81) ~[stash-spi-1.3.0.jar:na] at com.atlassian.stash.internal.history.HistoryServiceImpl.getChangesets(HistoryServiceImpl.java:118) ~[stash-service-impl-1.3.0.jar:na] at sun.reflect.GeneratedMethodAccessor1014.invoke(Unknown Source) ~[na:na] ... Caused by: java.lang.IllegalStateException: [59f20a082d85cb2ab7f2dad457238ab68c57e8c9|59f20a0|||ABCDEFG|HIJK|kahloun@test.com|1355718190]: Found 8 tokens where 7 were expected {noformat}

    Atlassian JIRA | 4 years ago | Kah Loun Foong [Atlassian]
    com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: [59f20a082d85cb2ab7f2dad457238ab68c57e8c9|59f20a0|||ABCDEFG|HIJK|kahloun@test.com|1355718190]: Found 8 tokens where 7 were expected
  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

    [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
  6. 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

    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: [59f20a082d85cb2ab7f2dad457238ab68c57e8c9|59f20a0|||ABCDEFG|HIJK|kahloun@test.com|1355718190]: Found 8 tokens where 7 were expected

      at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.evaluateThrowable()
    2. com.atlassian.stash
      HistoryServiceImpl.getChangesets
      1. com.atlassian.stash.internal.scm.git.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:120)[na:na]
      2. com.atlassian.stash.internal.scm.git.GitCommandExitHandler.onCancel(GitCommandExitHandler.java:48)[na:na]
      3. com.atlassian.stash.scm.BaseCommand.callExitHandler(BaseCommand.java:143)[stash-spi-1.3.0.jar:na]
      4. com.atlassian.stash.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:266)[stash-spi-1.3.0.jar:na]
      5. com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:233)[stash-spi-1.3.0.jar:na]
      6. com.atlassian.stash.scm.BaseCommand.call(BaseCommand.java:81)[stash-spi-1.3.0.jar:na]
      7. com.atlassian.stash.internal.history.HistoryServiceImpl.getChangesets(HistoryServiceImpl.java:118)[stash-service-impl-1.3.0.jar:na]
      7 frames
    3. Java RT
      GeneratedMethodAccessor1014.invoke
      1. sun.reflect.GeneratedMethodAccessor1014.invoke(Unknown Source)[na:na]
      1 frame