com.atlassian.utils.process.ProcessException: While executing: "git branch -D someBranch" in [/opt/j2ee/domains/atlassian.com/atlaseye/data/var/cache/jira-projects/clone]

Atlassian JIRA | Piotr Swiecicki [Atlassian] | 2 years ago
  1. 0

    Just observed this error one of our internal repositories: {noformat} [2015-01-04 07:29:41,252] ERROR fisheye Error removing local branch: [error: Cannot delete the branch 'someBranch' which you are currently on.] com.atlassian.utils.process.ProcessException: While executing: "git branch -D someBranch" in [/opt/j2ee/domains/atlassian.com/atlaseye/data/var/cache/jira-projects/clone] at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:260) at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:235) at com.atlassian.fisheye.git.GitScanner.removeLocalBranch(GitScanner.java:326) at com.atlassian.fisheye.git.GitScanner.fetchLatest(GitScanner.java:232) at com.atlassian.fisheye.dvcs.DvcsScanner.updateLocalRepoClone(DvcsScanner.java:143) at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:69) at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86) at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:414) at com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:27) at com.cenqua.fisheye.rep.ping.IncrementalPingRequest.doRequest(IncrementalPingRequest.java:30) at com.cenqua.fisheye.rep.ping.PingRequest$1.run(PingRequest.java:55) at com.cenqua.fisheye.util.NamedExecution.run(NamedExecution.java:27) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:52) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:213) at com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:57) at com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:169) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {noformat}

    Atlassian JIRA | 2 years ago | Piotr Swiecicki [Atlassian]
    com.atlassian.utils.process.ProcessException: While executing: "git branch -D someBranch" in [/opt/j2ee/domains/atlassian.com/atlaseye/data/var/cache/jira-projects/clone]
  2. 0

    Just observed this error one of our internal repositories: {noformat} [2015-01-04 07:29:41,252] ERROR fisheye Error removing local branch: [error: Cannot delete the branch 'someBranch' which you are currently on.] com.atlassian.utils.process.ProcessException: While executing: "git branch -D someBranch" in [/opt/j2ee/domains/atlassian.com/atlaseye/data/var/cache/jira-projects/clone] at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:260) at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:235) at com.atlassian.fisheye.git.GitScanner.removeLocalBranch(GitScanner.java:326) at com.atlassian.fisheye.git.GitScanner.fetchLatest(GitScanner.java:232) at com.atlassian.fisheye.dvcs.DvcsScanner.updateLocalRepoClone(DvcsScanner.java:143) at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:69) at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86) at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:414) at com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:27) at com.cenqua.fisheye.rep.ping.IncrementalPingRequest.doRequest(IncrementalPingRequest.java:30) at com.cenqua.fisheye.rep.ping.PingRequest$1.run(PingRequest.java:55) at com.cenqua.fisheye.util.NamedExecution.run(NamedExecution.java:27) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:52) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:213) at com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:57) at com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:169) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {noformat}

    Atlassian JIRA | 2 years ago | Piotr Swiecicki [Atlassian]
    com.atlassian.utils.process.ProcessException: While executing: "git branch -D someBranch" in [/opt/j2ee/domains/atlassian.com/atlaseye/data/var/cache/jira-projects/clone]
  3. 0

    Is not possible to connect to a remote GIT reposity using ssh neither when using "Generate Key Pair for SSH" method or via "Uploading the Private Key for SSH" method. The only authentication method which actually works is "HTTPS with Password". The issue could be reproduced using Windows and Linux. In most of cases the Error message is: {noformat}Fisheye is using '/usr/bin/ssh' to authenticate with SSH authenticated repositories. Error testing connection. Error talking to repository: at com.atlassian.fisheye.git.GitScmConfig.testConnection(GitScmConfig.java:158) at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:444) at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:538) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) Connection failed.{noformat} another variation: {noformat}2012-09-28 16:48:25,630 INFO [btpool0-32 ection-1348865305599] fisheye.app LoggingProcessMonitor-onAfterFinished - Exception executing command "C:\msysgit\bin\git.exe ls-remote -h gituser@git.bla.com:testing " Non-zero exit code: -1073741515 com.atlassian.utils.process.ProcessException: Non-zero exit code: -1073741515 2012-09-28 16:48:25,630 ERROR [btpool0-32 ection-1348865305599] fisheye.app RepositoryAdminRpcServiceImpl-testRepositoryConnection - Error testing connection. com.atlassian.fisheye.spi.admin.services.RepositoryConfigException: com.cenqua.fisheye.config.ConfigException: Error talking to repository: Caused by: com.cenqua.fisheye.config.ConfigException: Error talking to repository: at com.atlassian.fisheye.git.GitScmConfig.testConnection(GitScmConfig.java:162) at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:450) at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:540) ... 123 more 2012-09-28 16:48:25,630 ERROR [btpool0-32 ection-1348865305599] fisheye.app RepositoryAdminRpcServiceImpl-testRepositoryConnection - Connection failed.{noformat} Regarding Bitbucket connection tests: {noformat}2012-10-10 18:28:42,651 ERROR [IncrementalPinger1 ] fisheye.app OneOffPingRequest-doRequest - Exception during slurp com.cenqua.fisheye.config.ConfigException: Unable to clone remote repository: git@bitbucket.org:lmacedo/tes.git - [ssh: connect to host bitbucket.org port 22: Bad file number, fatal: The remote end hung up unexpectedly] - Cloning into bare repository 'clone'... at com.atlassian.fisheye.git.GitScanner.performClone(GitScanner.java:243) at com.atlassian.fisheye.dvcs.DvcsScanner.cloneRepo(DvcsScanner.java:173) at com.atlassian.fisheye.dvcs.DvcsScanner.updateClone(DvcsScanner.java:153) at com.atlassian.fisheye.dvcs.DvcsScanner.updateLocalRepoCache(DvcsScanner.java:143) at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:179) at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:92) at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:381) at com.cenqua.fisheye.rep.ping.OneOffPingRequest.doRequest(OneOffPingRequest.java:28) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:67) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:138) at com.cenqua.fisheye.rep.RepositoryHandle.queuePingRequest(RepositoryHandle.java:128) at com.cenqua.fisheye.rep.ping.PingRequest.run(PingRequest.java:33) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: com.atlassian.utils.process.ProcessException: While executing: "git clone --bare -v git@bitbucket.org:lmacedo/tes.git clone " at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:262) at com.atlassian.fisheye.git.GitScanner.performClone(GitScanner.java:233) ... 14 more Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 128 {noformat}

    Atlassian JIRA | 4 years ago | Leonardo De Macedo [Atlassian]
    com.cenqua.fisheye.config.ConfigException: Unable to clone remote repository: git@bitbucket.org:lmacedo/tes.git - [ssh: connect to host bitbucket.org port 22: Bad file number, fatal: The remote end hung up unexpectedly] - Cloning into bare repository 'clone'...
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Is not possible to connect to a remote GIT reposity using ssh neither when using "Generate Key Pair for SSH" method or via "Uploading the Private Key for SSH" method. The only authentication method which actually works is "HTTPS with Password". The issue could be reproduced using Windows and Linux. In most of cases the Error message is: {noformat}Fisheye is using '/usr/bin/ssh' to authenticate with SSH authenticated repositories. Error testing connection. Error talking to repository: at com.atlassian.fisheye.git.GitScmConfig.testConnection(GitScmConfig.java:158) at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:444) at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:538) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) Connection failed.{noformat} another variation: {noformat}2012-09-28 16:48:25,630 INFO [btpool0-32 ection-1348865305599] fisheye.app LoggingProcessMonitor-onAfterFinished - Exception executing command "C:\msysgit\bin\git.exe ls-remote -h gituser@git.bla.com:testing " Non-zero exit code: -1073741515 com.atlassian.utils.process.ProcessException: Non-zero exit code: -1073741515 2012-09-28 16:48:25,630 ERROR [btpool0-32 ection-1348865305599] fisheye.app RepositoryAdminRpcServiceImpl-testRepositoryConnection - Error testing connection. com.atlassian.fisheye.spi.admin.services.RepositoryConfigException: com.cenqua.fisheye.config.ConfigException: Error talking to repository: Caused by: com.cenqua.fisheye.config.ConfigException: Error talking to repository: at com.atlassian.fisheye.git.GitScmConfig.testConnection(GitScmConfig.java:162) at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:450) at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:540) ... 123 more 2012-09-28 16:48:25,630 ERROR [btpool0-32 ection-1348865305599] fisheye.app RepositoryAdminRpcServiceImpl-testRepositoryConnection - Connection failed.{noformat} Regarding Bitbucket connection tests: {noformat}2012-10-10 18:28:42,651 ERROR [IncrementalPinger1 ] fisheye.app OneOffPingRequest-doRequest - Exception during slurp com.cenqua.fisheye.config.ConfigException: Unable to clone remote repository: git@bitbucket.org:lmacedo/tes.git - [ssh: connect to host bitbucket.org port 22: Bad file number, fatal: The remote end hung up unexpectedly] - Cloning into bare repository 'clone'... at com.atlassian.fisheye.git.GitScanner.performClone(GitScanner.java:243) at com.atlassian.fisheye.dvcs.DvcsScanner.cloneRepo(DvcsScanner.java:173) at com.atlassian.fisheye.dvcs.DvcsScanner.updateClone(DvcsScanner.java:153) at com.atlassian.fisheye.dvcs.DvcsScanner.updateLocalRepoCache(DvcsScanner.java:143) at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:179) at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:92) at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:381) at com.cenqua.fisheye.rep.ping.OneOffPingRequest.doRequest(OneOffPingRequest.java:28) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:67) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:138) at com.cenqua.fisheye.rep.RepositoryHandle.queuePingRequest(RepositoryHandle.java:128) at com.cenqua.fisheye.rep.ping.PingRequest.run(PingRequest.java:33) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: com.atlassian.utils.process.ProcessException: While executing: "git clone --bare -v git@bitbucket.org:lmacedo/tes.git clone " at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:262) at com.atlassian.fisheye.git.GitScanner.performClone(GitScanner.java:233) ... 14 more Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 128 {noformat}

    Atlassian JIRA | 4 years ago | Leonardo De Macedo [Atlassian]
    com.cenqua.fisheye.config.ConfigException: Unable to clone remote repository: git@bitbucket.org:lmacedo/tes.git - [ssh: connect to host bitbucket.org port 22: Bad file number, fatal: The remote end hung up unexpectedly] - Cloning into bare repository 'clone'...
  6. 0

    h3. Summary Unable to "Build Docker image" from Docker task h3. Resolution Problem is fixed in Bamboo 5.13.0.1. In case you can't upgrade please download bamboo-docker-plugin 5.10.3 from https://bitbucket.org/atlassian/bamboo-docker-plugin/downloads and install it in Bamboo via Administration / Manage addons h3. Steps to Reproduce # Install Docker # Set the docker capability on Bamboo # Create a plan and add the docker task to it # Set the docker task configuration as the following: !bamboo.docker.task-dockerForMac.png|thumbnail! # Run the build h3. Expected Results The new image is built and added to the image repository. h3. Actual Results When running Bamboo's Docker task, the following error gets thrown. {noformat:title=build log} error 04-Jul-2016 19:35:54 invalid argument "\"ubuntu:latest\"" for --tag="ubuntu:latest": Error parsing reference: "\"ubuntu:latest\"" is not a valid repository/tag error 04-Jul-2016 19:35:54 See 'docker build --help'. simple 04-Jul-2016 19:35:54 Failing task since return code of [/usr/local/bin/docker build --force-rm=true --tag="ubuntu:latest" /opt/atlassian/home/atlassian-bamboo-5.12.2.1/xml-data/build-dir/PROJ-DOC-JOB1] was 1 while expected 0 error 04-Jul-2016 19:35:54 Error occurred while running Task '(1)' of type com.atlassian.bamboo.plugins.bamboo-docker-plugin:task.docker.cli. error 04-Jul-2016 19:35:54 com.atlassian.bamboo.task.TaskException: Failed to execute task error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.plugins.docker.service.BuildService.execute(BuildService.java:53) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.plugins.docker.tasks.cli.DockerCliTask.execute(DockerCliTask.java:60) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$272(TaskExecutorImpl.java:317) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:246) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:317) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:118) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:74) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:215) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:139) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:221) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:137) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:51) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) error 04-Jul-2016 19:35:54 at java.lang.Thread.run(Thread.java:745) error 04-Jul-2016 19:35:54 Caused by: com.atlassian.bamboo.plugins.docker.client.DockerException: Error running Docker build command error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.plugins.docker.client.DockerCmd.build(DockerCmd.java:189) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.plugins.docker.service.BuildService.execute(BuildService.java:40) error 04-Jul-2016 19:35:54 ... 17 more error 04-Jul-2016 19:35:54 Caused by: com.atlassian.utils.process.ProcessException: Error executing /usr/local/bin/docker build --force-rm=true --tag="ubuntu:latest" /opt/atlassian/home/atlassian-bamboo-5.12.2.1/xml-data/build-dir/PROJ-DOC-JOB1 error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.plugins.docker.process.DockerTaskProcessService.execute(DockerTaskProcessService.java:60) error 04-Jul-2016 19:35:54 at com.atlassian.bamboo.plugins.docker.client.DockerCmd.build(DockerCmd.java:185) error 04-Jul-2016 19:35:54 ... 18 more {noformat} (i) Running the same command from Terminal works successfully: {code} /usr/local/bin/docker build --force-rm=true --tag="ubuntu:latest" /opt/atlassian/home/atlassian-bamboo-5.12.2.1/xml-data/build-dir/PROJ-DOC-JOB1 {code} *Notes* {code} $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE ubuntu latest 0f192147631d 5 days ago 132.8 MB {code} h3.Workaround 1. Some customers have reported that downgrading Docker to 1.11 corrected the issue for them. 2. Avoid using the Docker task and use the script task instead.

    Atlassian JIRA | 7 months ago | Daniel Santos
    com.atlassian.bamboo.task.TaskException: Failed to execute task

    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.utils.process.ProcessException

      While executing: "git branch -D someBranch" in [/opt/j2ee/domains/atlassian.com/atlaseye/data/var/cache/jira-projects/clone]

      at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand()
    2. com.atlassian.fisheye
      DvcsScanner.updateLocalRepoClone
      1. com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:260)
      2. com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:235)
      3. com.atlassian.fisheye.git.GitScanner.removeLocalBranch(GitScanner.java:326)
      4. com.atlassian.fisheye.git.GitScanner.fetchLatest(GitScanner.java:232)
      5. com.atlassian.fisheye.dvcs.DvcsScanner.updateLocalRepoClone(DvcsScanner.java:143)
      5 frames
    3. com.cenqua.fisheye
      RepositoryHandle$2.run
      1. com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:69)
      2. com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:86)
      3. com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:414)
      4. com.cenqua.fisheye.rep.ping.IndexingPingRequest.doRequest(IndexingPingRequest.java:27)
      5. com.cenqua.fisheye.rep.ping.IncrementalPingRequest.doRequest(IncrementalPingRequest.java:30)
      6. com.cenqua.fisheye.rep.ping.PingRequest$1.run(PingRequest.java:55)
      7. com.cenqua.fisheye.util.NamedExecution.run(NamedExecution.java:27)
      8. com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:52)
      9. com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:213)
      10. com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:57)
      11. com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:169)
      11 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:662)
      3 frames