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

Atlassian JIRA | Aleksandr Popov | 4 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

    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
  2. 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
  3. 0

    Jenkins webhook trigger failing due to permissions?

    GitHub | 4 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

    I've added a .mailmap to my repository containing one line: {quote}User Name <user.name@mail.domain>{quote} As soon as this commit is pushed to stash it will crash Git on the Stash server: {quote} com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: 'C:\Program Files (x86)\Git\cmd\git.exe rev-list --format=%H%x02%h%x02%P%x02%p%x02%aN%x02%aE%x02%at%n%B%n%x03 --ignore-missing --stdin --' exited with code -1073741819 at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:120) ~[na:na] at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.onError(GitCommandExitHandler.java:163) ~[na:na] at com.atlassian.stash.scm.DefaultCommandExitHandler.onExit(DefaultCommandExitHandler.java:35) ~[stash-spi-2.5.0.jar:na] at com.atlassian.stash.scm.BaseCommand.callExitHandler(BaseCommand.java:141) ~[stash-spi-2.5.0.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:257) ~[stash-spi-2.5.0.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:238) ~[stash-spi-2.5.0.jar:na] at ... {quote} We are using Stash on Windows. This will also crash Git when listing the commits or basically every time you navigate in the repository

    Atlassian JIRA | 4 years ago | Christoph Keller
    com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: 'C:\Program Files (x86)\Git\cmd\git.exe rev-list --format=%H%x02%h%x02%P%x02%p%x02%aN%x02%aE%x02%at%n%B%n%x03 --ignore-missing --stdin --' exited with code -1073741819
  6. 0

    I've added a .mailmap to my repository containing one line: {quote}User Name <user.name@mail.domain>{quote} As soon as this commit is pushed to stash it will crash Git on the Stash server: {quote} com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: 'C:\Program Files (x86)\Git\cmd\git.exe rev-list --format=%H%x02%h%x02%P%x02%p%x02%aN%x02%aE%x02%at%n%B%n%x03 --ignore-missing --stdin --' exited with code -1073741819 at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:120) ~[na:na] at com.atlassian.stash.internal.scm.git.GitCommandExitHandler.onError(GitCommandExitHandler.java:163) ~[na:na] at com.atlassian.stash.scm.DefaultCommandExitHandler.onExit(DefaultCommandExitHandler.java:35) ~[stash-spi-2.5.0.jar:na] at com.atlassian.stash.scm.BaseCommand.callExitHandler(BaseCommand.java:141) ~[stash-spi-2.5.0.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:257) ~[stash-spi-2.5.0.jar:na] at com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:238) ~[stash-spi-2.5.0.jar:na] at ... {quote} We are using Stash on Windows. This will also crash Git when listing the commits or basically every time you navigate in the repository

    Atlassian JIRA | 4 years ago | Christoph Keller
    com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: 'C:\Program Files (x86)\Git\cmd\git.exe rev-list --format=%H%x02%h%x02%P%x02%p%x02%aN%x02%aE%x02%at%n%B%n%x03 --ignore-missing --stdin --' exited with code -1073741819

    Root Cause Analysis

    1. 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()
    2. com.atlassian.stash
      BaseCommand$CommandFuture.get
      1. com.atlassian.stash.internal.scm.git.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:120)[stash-scm-git-2.0.0_1354705614000.jar:na]
      2. com.atlassian.stash.internal.scm.git.GitCommandExitHandler.onError(GitCommandExitHandler.java:163)[stash-scm-git-2.0.0_1354705614000.jar:na]
      3. com.atlassian.stash.scm.DefaultCommandExitHandler.onExit(DefaultCommandExitHandler.java:35)[stash-spi-2.0.0.jar:na]
      4. com.atlassian.stash.scm.BaseCommand.callExitHandler(BaseCommand.java:142)[stash-spi-2.0.0.jar:na]
      5. com.atlassian.stash.scm.BaseCommand$CommandFuture.internalGet(BaseCommand.java:262)[stash-spi-2.0.0.jar:na]
      6. com.atlassian.stash.scm.BaseCommand$CommandFuture.get(BaseCommand.java:229)[stash-spi-2.0.0.jar:na]
      6 frames