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'...

Atlassian JIRA | Leonardo De Macedo [Atlassian] | 4 years ago
  1. 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'...
  2. 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'...
  3. 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]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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]
  6. 0

    h3. Summary Non-detached Docker containers started from Bamboo are not stopped if build was cancelled manually. These containers will continue running and consume CPU on the host. h3. Steps to Reproduce # Configure build plan to start a Docker container # Start the build # When build is running, manually cancel the build using {{Actions >> Stop build}} h3. Expected Results The task should end gracefully by cleaning up the non detached docker containers it has spun up h3. Actual Results Docker containers started by the build will continue running in the background consuming CPU. The below exception is thrown in the atlassian-bamboo.log file: {noformat} 2016-05-11 13:27:34,864 INFO [13-BAM::Default Agent::Agent:pool-29-thread-1] [TaskResultBuilder] DOCK-TEST-JOB1-15: Failing task since return code of [/usr/local/bin/docker run --volume /Users/brosa/Documents/Atlassian/bamboo/bamboo-5.9.7/home/xml-data/build-dir/DOCK-TEST-JOB1:/data --workdir /data --rm brosadocker/customized-bamboo-java-agent:1.0.0] was 141 while expected 0 2016-05-11 13:27:34,865 INFO [13-BAM::Default Agent::Agent:pool-29-thread-1] [DefaultErrorHandler] Recording an error: Error occurred while running Task '(2)' of type com.atlassian.bamboo.plugins.bamboo-docker-plugin:task.docker.cli. : DOCK-TEST-JOB1 : Failed to execute task 2016-05-11 13:27:34,865 ERROR [13-BAM::Default Agent::Agent:pool-29-thread-1] [TaskExecutorImpl] Error occurred while running Task '(2)' of type com.atlassian.bamboo.plugins.bamboo-docker-plugin:task.docker.cli. com.atlassian.bamboo.task.TaskException: Failed to execute task at com.atlassian.bamboo.plugins.docker.service.RunService.execute(RunService.java:70) at com.atlassian.bamboo.plugins.docker.tasks.cli.DockerCliTask.execute(DockerCliTask.java:60) at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:288) at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:284) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:200) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:284) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:106) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:124) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:115) at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:114) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:745) Caused by: com.atlassian.bamboo.plugins.docker.client.DockerException: Error running Docker run command at com.atlassian.bamboo.plugins.docker.client.DockerCmd.run(DockerCmd.java:103) at com.atlassian.bamboo.plugins.docker.service.RunService.execute(RunService.java:59) ... 18 more Caused by: com.atlassian.utils.process.ProcessException: Error executing /usr/local/bin/docker run --volume /Users/brosa/Documents/Atlassian/bamboo/bamboo-5.9.7/home/xml-data/build-dir/DOCK-TEST-JOB1:/data --workdir /data --rm brosadocker/customized-bamboo-java-agent:1.0.0 at com.atlassian.bamboo.plugins.docker.process.DockerTaskProcessService.execute(DockerTaskProcessService.java:60) at com.atlassian.bamboo.plugins.docker.client.DockerCmd.run(DockerCmd.java:99) ... 19 more {noformat} h3.Workaround If a build was stopped manually, the docker containers will need to be stopped manually.

    Atlassian JIRA | 7 months ago | Deric Lee
    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 clone --bare -v git@bitbucket.org:lmacedo/tes.git clone "

      at com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand()
    2. com.atlassian.fisheye
      DvcsScanner.updateLocalRepoCache
      1. com.atlassian.fisheye.dvcs.client.DvcsContext.executeCommand(DvcsContext.java:262)
      2. com.atlassian.fisheye.git.GitScanner.performClone(GitScanner.java:233)
      3. com.atlassian.fisheye.dvcs.DvcsScanner.cloneRepo(DvcsScanner.java:173)
      4. com.atlassian.fisheye.dvcs.DvcsScanner.updateClone(DvcsScanner.java:153)
      5. com.atlassian.fisheye.dvcs.DvcsScanner.updateLocalRepoCache(DvcsScanner.java:143)
      5 frames
    3. com.cenqua.fisheye
      PingRequest.run
      1. com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:179)
      2. com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:92)
      3. com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:381)
      4. com.cenqua.fisheye.rep.ping.OneOffPingRequest.doRequest(OneOffPingRequest.java:28)
      5. com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:67)
      6. com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:138)
      7. com.cenqua.fisheye.rep.RepositoryHandle.queuePingRequest(RepositoryHandle.java:128)
      8. com.cenqua.fisheye.rep.ping.PingRequest.run(PingRequest.java:33)
      8 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3. java.lang.Thread.run(Unknown Source)
      3 frames