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
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  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

    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