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

    Similar to STASH-2878 {code}2012-12-17 17:17:52,910 INFO [Spring executor 12] c.a.stash.ssh.server.SshServer Starting SSH server on port 7999... 2012-12-17 17:17:52,980 INFO [Spring executor 12] c.a.stash.ssh.server.SshServer Started SSH server successfully. 2012-12-17 17:17:55,255 ERROR [localhost-startStop-1] c.a.s.i.s.g.v.PerlBinaryValidation Error validating Perl com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: '/usr/local/bin/git commit -m Initial' exited with code 1 saying: error: cannot run .git/hooks/pre-commit: No such file or directory at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:120) ~[stash-scm-git-2.0.0_1354705614000.jar:na] at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.onError(GitCommandExitHandler.java:163) ~[stash-scm-git-2.0.0_1354705614000.jar:na] at com.atlassian.stash.scm.DefaultCommandExitHandler.onExit(DefaultCommandExitHandler.java:35) ~[stash-spi-2.0.0.jar:na] at com.atlassian.stash.scm.BaseCommand.callExitHandler(BaseCommand.java:142) ~[stash-spi-2.0.0.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:262) ~[stash-spi-2.0.0.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:229) ~[stash-spi-2.0.0.jar:na] ...skipping... at com.google.common.cache.ComputingCache.get(ComputingCache.java:46) [guava-10.0.1.jar:na] at com.google.common.cache.AbstractCache.getUnchecked(AbstractCache.java:49) [guava-10.0.1.jar:na] at com.atlassian.stash.internal.scm.PluginScmService.findById(PluginScmService.java:121) [stash-service-impl-2.0.0.jar:na] at com.atlassian.stash.internal.scm.PluginScmService.onPluginFrameworkStarted(PluginScmService.java:193) [stash-service-impl-2.0.0.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_32] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.6.0_32] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.6.0_32] at java.lang.reflect.Method.invoke(Method.java:616) ~[na:1.6.0_32] at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36) [atlassian-event-2.2.1.jar:na] at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:66) [atlassian-event-2.2.1.jar:na] at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1.execute(AsynchronousAbleEventDispatcher.java:32) [atlassian-event-2.2.1.jar:na] at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:60) [atlassian-event-2.2.1.jar:na] at com.atlassian.event.internal.LockFreeEventPublisher$Publisher.dispatch(LockFreeEventPublisher.java:227) [atlassian-event-2.2.1.jar:na] at com.atlassian.event.internal.LockFreeEventPublisher.publish(LockFreeEventPublisher.java:82) [atlassian-event-2.2.1.jar:na] at com.atlassian.stash.internal.event.EventPublisherImpl.publish(EventPublisherImpl.java:74) [stash-platform-2.0.0.jar:na] at com.atlassian.plugin.event.impl.DefaultPluginEventManager.broadcast(DefaultPluginEventManager.java:84) [atlassian-plugins-core-2.13.0-m10.jar:na] at com.atlassian.plugin.manager.DefaultPluginManager.init(DefaultPluginManager.java:190) [atlassian-plugins-core-2.13.0-m10.jar:na] at com.atlassian.stash.internal.plugin.CorePluginManager.onApplicationEvent(CorePluginManager.java:45) [stash-platform-2.0.0.jar:na] at com.atlassian.stash.internal.plugin.CorePluginManager.onApplicationEvent(CorePluginManager.java:16) [stash-platform-2.0.0.jar:na] at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) [spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:324) [spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:934) [spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472) [spring-context-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) [spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) [spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE] at com.atlassian.johnson.spring.web.context.JohnsonContextLoaderListener.initWebApplicationContext(JohnsonContextLoaderListener.java:102) [atlassian-johnson-spring-2.1.0.jar:na] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [spring-web-3.1.2.RELEASE.jar:3.1.2.RELEASE] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791) [catalina.jar:7.0.32] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285) [catalina.jar:7.0.32] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:7.0.32] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) [catalina.jar:7.0.32] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) [catalina.jar:7.0.32] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [na:1.6.0_32] at java.util.concurrent.FutureTask.run(FutureTask.java:166) [na:1.6.0_32] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.6.0_32] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.6.0_32] at java.lang.Thread.run(Thread.java:679) [na:1.6.0_32] Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 1 at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:69) ~[atlassian-processutils-1.5.8.jar:na] at com.atlassian.utils.process.ExternalProcessImpl.wrapUpProcess(ExternalProcessImpl.java:520) ~[atlassian-processutils-1.5.8.jar:na] at com.atlassian.utils.process.ExternalProcessImpl.finish(ExternalProcessImpl.java:440) ~[atlassian-processutils-1.5.8.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:228) ~[stash-spi-2.0.0.jar:na] ... 48 common frames omitted 2012-12-17 17:40:30,002 ERROR [localhost-startStop-1] c.a.s.internal.scm.PluginScmService *************************************************************************** 2012-12-17 17:40:30,002 ERROR [localhost-startStop-1] c.a.s.internal.scm.PluginScmService Error validating Perl: {0} 2012-12-17 17:40:30,003 ERROR [localhost-startStop-1] c.a.s.internal.scm.PluginScmService ***************************************************************************{code} Please help me.

    Atlassian JIRA | 4 years ago | Aleksandr Popov
    com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: '/usr/local/bin/git commit -m Initial' exited with code 1 saying: error: cannot run .git/hooks/pre-commit: No such file or directory

    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