After updating the automation server bamboo can no longer access git repo and checkout the binaries. New ssh keys were generated and added to the repo. Does updating the automation server impact bamboo agents that are already installed?
error 13-Mar-2023 16:02:06 Error occurred while running Task 'Checkout xxxx code(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout. error 13-Mar-2023 16:02:06 java.lang.RuntimeException: com.atlassian.bamboo.plugins.stash.repository.StashRepositoryException error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:141) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:99) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:207) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:188) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:123) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:323) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:258) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:323) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:97) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:81) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:190) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:162) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:137) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:130) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:110) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41) error 13-Mar-2023 16:02:06 at java.lang.Thread.run(Thread.java:748) error 13-Mar-2023 16:02:06 Caused by: com.atlassian.bamboo.plugins.stash.repository.StashRepositoryException error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.plugins.stash.v2.BitbucketServerWorkingCopyManager.retrieveSourceCode(BitbucketServerWorkingCopyManager.java:101) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:206) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$000(VcsCheckoutTask.java:54) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:126) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:123) error 13-Mar-2023 16:02:06 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:112)
Hello @Archie Sangole
Unfortunately, the provided snippet cannot guide us on what may be wrong with your instance.
Can you post the complete error message and stack trace, along with any preceding and succeeding lines from <bamboo-home>/log/atlassian-bamboo.log?
Kind regards,
Eduardo Alvarenga
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
Hi Eduardo,
Below are the logs.
INFO | jvm 1 | 2023/03/13 16:10:58 | 2023-03-13 16:10:58,657 WARN [0-BAM::MTL-LAB-TRCAUTO::Agent:pool-3-thread-1] [AbstractGitExecutor] Deleting git workspace /home/trcauto/bamboo-agent-home/xml-data/build-dir/TRC-SMOK26-UTB due to exception
INFO | jvm 1 | 2023/03/13 16:10:58 | com.atlassian.bamboo.repository.RepositoryException: Cannot fetch branch 'refs/heads/*' from 'ssh://git@rabbit.can2go.com:2083/trc/trc.git' to source directory '/home/trcauto/bamboo-agent-home/xml-data/build-dir/TRC-SMOK26-UTB'. command [/usr/bin/git fetch --tags ssh://9a99a530-865c-4b3e-9a08-4ad710498409@127.0.0.1:39355/trc/trc.git +refs/heads/*:refs/heads/* --update-head-ok] failed with code 128. Working directory was [/home/trcauto/bamboo-agent-home/xml-data/build-dir/TRC-SMOK26-UTB]., stderr:
INFO | jvm 1 | 2023/03/13 16:10:58 | Unable to negotiate with 127.0.0.1 port 39355: no matching host key type found. Their offer: ssh-rsa
INFO | jvm 1 | 2023/03/13 16:10:58 | fatal: Could not read from remote repository.
INFO | jvm 1 | 2023/03/13 16:10:58 |
INFO | jvm 1 | 2023/03/13 16:10:58 | Please make sure you have the correct access rights
INFO | jvm 1 | 2023/03/13 16:10:58 | and the repository exists.
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.fetch(NativeGitOperationHelper.java:545)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.v2.GitWorkingCopyManager.checkout(GitWorkingCopyManager.java:257)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.v2.GitWorkingCopyManager.retrieveSourceCode(GitWorkingCopyManager.java:122)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.stash.v2.BitbucketServerWorkingCopyManager.retrieveSourceCode(BitbucketServerWorkingCopyManager.java:91)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:206)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$000(VcsCheckoutTask.java:54)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:126)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:123)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:112)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:99)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:207)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:188)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:123)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:323)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:258)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:323)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:97)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:81)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:190)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:162)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:137)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:130)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:110)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
INFO | jvm 1 | 2023/03/13 16:10:58 | at java.lang.Thread.run(Thread.java:748)
INFO | jvm 1 | 2023/03/13 16:10:58 | Caused by: com.atlassian.bamboo.plugins.git.GitCommandException: command [/usr/bin/git fetch --tags ssh://9a99a530-865c-4b3e-9a08-4ad710498409@127.0.0.1:39355/trc/trc.git +refs/heads/*:refs/heads/* --update-head-ok] failed with code 128. Working directory was [/home/trcauto/bamboo-agent-home/xml-data/build-dir/TRC-SMOK26-UTB]., stderr:
INFO | jvm 1 | 2023/03/13 16:10:58 | Unable to negotiate with 127.0.0.1 port 39355: no matching host key type found. Their offer: ssh-rsa
INFO | jvm 1 | 2023/03/13 16:10:58 | fatal: Could not read from remote repository.
INFO | jvm 1 | 2023/03/13 16:10:58 |
INFO | jvm 1 | 2023/03/13 16:10:58 | Please make sure you have the correct access rights
INFO | jvm 1 | 2023/03/13 16:10:58 | and the repository exists.
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:740)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runFetchCommand(GitCommandProcessor.java:311)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.fetch(NativeGitOperationHelper.java:528)
INFO | jvm 1 | 2023/03/13 16:10:58 | ... 28 more
INFO | jvm 1 | 2023/03/13 16:10:58 | 2023-03-13 16:10:58,692 WARN [sshd-SshServer[60855447]-nio2-thread-1] [ServerSessionImpl] exceptionCaught(ServerSessionImpl[null@/127.0.0.1:34620])[state=Opened] IllegalStateException: Unable to negotiate key exchange for server host key algorithms (client: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256 / server: ssh-rsa)
INFO | jvm 1 | 2023/03/13 16:10:58 | 2023-03-13 16:10:58,696 INFO [0-BAM::MTL-LAB-TRCAUTO::Agent:pool-3-thread-1] [RetryingTaskExecutor] Task 'Retrieving source for TRC - Smoke - debug-trc-2819-upload-binaries-fix - Upload TRC binaries #5 (TRC-SMOK26-UTB-5)' was unsuccessful. Run 2 / 2. Exception thrown when running task 'Retrieving source for TRC - Smoke - debug-trc-2819-upload-binaries-fix - Upload TRC binaries #5 (TRC-SMOK26-UTB-5)', with message: null
INFO | jvm 1 | 2023/03/13 16:10:58 | 2023-03-13 16:10:58,696 ERROR [0-BAM::MTL-LAB-TRCAUTO::Agent:pool-3-thread-1] [RetryingTaskExecutor] Failed to run task 'Retrieving source for TTRC - Smoke - debug-trc-2819-upload-binaries-fix - Upload TRC binaries #5 (TRC-SMOK26-UTB-5)' after 2 attempts. Task was not executed. Rethrowing exception.
INFO | jvm 1 | 2023/03/13 16:10:58 | 2023-03-13 16:10:58,699 ERROR [0-BAM::MTL-LAB-TRCAUTO::Agent:pool-3-thread-1] [TaskExecutorImpl] Error occurred while running Task 'Checkout TRC code(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout.
INFO | jvm 1 | 2023/03/13 16:10:58 | java.lang.RuntimeException: com.atlassian.bamboo.plugins.stash.repository.StashRepositoryException
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:141)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:99)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:207)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:188)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:123)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:323)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:258)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:323)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:97)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:81)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:190)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:162)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:137)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:130)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:110)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
INFO | jvm 1 | 2023/03/13 16:10:58 | at java.lang.Thread.run(Thread.java:748)
INFO | jvm 1 | 2023/03/13 16:10:58 | Caused by: com.atlassian.bamboo.plugins.stash.repository.StashRepositoryException
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.stash.v2.BitbucketServerWorkingCopyManager.retrieveSourceCode(BitbucketServerWorkingCopyManager.java:101)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:206)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$000(VcsCheckoutTask.java:54)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:126)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:123)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:112)
INFO | jvm 1 | 2023/03/13 16:10:58 | ... 20 more
INFO | jvm 1 | 2023/03/13 16:10:58 | Caused by: com.atlassian.bamboo.repository.RepositoryException: Cannot fetch branch 'refs/heads/*' from 'ssh://git@rabbit.can2go.com:2083/trc/trc.git' to source directory '/home/trcauto/bamboo-agent-home/xml-data/build-dir/TRC-SMOK26-UTB'. command [/usr/bin/git fetch --tags ssh://73db2a68-45ef-442d-94f6-6f1112bd7504@127.0.0.1:39355/trc/trc.git +refs/heads/*:refs/heads/* --update-head-ok] failed with code 128. Working directory was [/home/trcauto/bamboo-agent-home/xml-data/build-dir/TRC-SMOK26-UTB]., stderr:
INFO | jvm 1 | 2023/03/13 16:10:58 | Unable to negotiate with 127.0.0.1 port 39355: no matching host key type found. Their offer: ssh-rsa
INFO | jvm 1 | 2023/03/13 16:10:58 | fatal: Could not read from remote repository.
INFO | jvm 1 | 2023/03/13 16:10:58 |
INFO | jvm 1 | 2023/03/13 16:10:58 | Please make sure you have the correct access rights
INFO | jvm 1 | 2023/03/13 16:10:58 | and the repository exists.
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.fetch(NativeGitOperationHelper.java:545)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.v2.GitWorkingCopyManager.checkout(GitWorkingCopyManager.java:266)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.v2.GitWorkingCopyManager.retrieveSourceCode(GitWorkingCopyManager.java:122)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.stash.v2.BitbucketServerWorkingCopyManager.retrieveSourceCode(BitbucketServerWorkingCopyManager.java:91)
INFO | jvm 1 | 2023/03/13 16:10:58 | ... 25 more
INFO | jvm 1 | 2023/03/13 16:10:58 | Caused by: com.atlassian.bamboo.plugins.git.GitCommandException: command [/usr/bin/git fetch --tags ssh://73db2a68-45ef-442d-94f6-6f1112bd7504@127.0.0.1:39355/trc/trc.git +refs/heads/*:refs/heads/* --update-head-ok] failed with code 128. Working directory was [/home/trcauto/bamboo-agent-home/xml-data/build-dir/TRC-SMOK26-UTB]., stderr:
INFO | jvm 1 | 2023/03/13 16:10:58 | Unable to negotiate with 127.0.0.1 port 39355: no matching host key type found. Their offer: ssh-rsa
INFO | jvm 1 | 2023/03/13 16:10:58 | fatal: Could not read from remote repository.
INFO | jvm 1 | 2023/03/13 16:10:58 |
INFO | jvm 1 | 2023/03/13 16:10:58 | Please make sure you have the correct access rights
INFO | jvm 1 | 2023/03/13 16:10:58 | and the repository exists.
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:740)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runFetchCommand(GitCommandProcessor.java:311)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.fetch(NativeGitOperationHelper.java:528)
INFO | jvm 1 | 2023/03/13 16:10:58 | ... 28 more
INFO | jvm 1 | 2023/03/13 16:10:58 | 2023-03-13 16:10:58,787 FATAL [0-BAM::MTL-LAB-TRCAUTO::Agent:pool-3-thread-1] [PrepareBuildTask] Failed to prepare the build 'TRC - Smoke - debug-trc-2819-upload-binaries-fix - Upload TRC binaries #5 (TRC-SMOK26-UTB-5)'
INFO | jvm 1 | 2023/03/13 16:10:58 | 2023-03-13 16:10:58,868 INFO [0-BAM::MTL-LAB-TRCAUTO::Agent:pool-3-thread-1] [DefaultBuildAgent] Detected '1' errors in build. Aborting build process.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
INFO | jvm 1 | 2023/03/13 16:10:58 | 2023-03-13 16:10:58,657 WARN [0-BAM::MTL-LAB-TRCAUTO::Agent:pool-3-thread-1] [AbstractGitExecutor] Deleting git workspace /home/trcauto/bamboo-agent-home/xml-data/build-dir/TRC-SMOK26-UTB due to exception
INFO | jvm 1 | 2023/03/13 16:10:58 | com.atlassian.bamboo.repository.RepositoryException: Cannot fetch branch 'refs/heads/*' from 'ssh://git@rabbit.can2go.com:2083/trc/trc.git' to source directory '/home/trcauto/bamboo-agent-home/xml-data/build-dir/TRC-SMOK26-UTB'. command [/usr/bin/git fetch --tags ssh://9a99a530-865c-4b3e-9a08-4ad710498409@127.0.0.1:39355/trc/trc.git +refs/heads/*:refs/heads/* --update-head-ok] failed with code 128. Working directory was [/home/trcauto/bamboo-agent-home/xml-data/build-dir/TRC-SMOK26-UTB]., stderr:
INFO | jvm 1 | 2023/03/13 16:10:58 | Unable to negotiate with 127.0.0.1 port 39355: no matching host key type found. Their offer: ssh-rsa
INFO | jvm 1 | 2023/03/13 16:10:58 | fatal: Could not read from remote repository.
INFO | jvm 1 | 2023/03/13 16:10:58 |
INFO | jvm 1 | 2023/03/13 16:10:58 | Please make sure you have the correct access rights
INFO | jvm 1 | 2023/03/13 16:10:58 | and the repository exists.
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.fetch(NativeGitOperationHelper.java:545)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.v2.GitWorkingCopyManager.checkout(GitWorkingCopyManager.java:257)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.v2.GitWorkingCopyManager.retrieveSourceCode(GitWorkingCopyManager.java:122)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.stash.v2.BitbucketServerWorkingCopyManager.retrieveSourceCode(BitbucketServerWorkingCopyManager.java:91)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:206)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$000(VcsCheckoutTask.java:54)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:126)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:123)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:112)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:99)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:207)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:188)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:123)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:323)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:258)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:323)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:97)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:81)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:190)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:162)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:137)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:130)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:110)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
INFO | jvm 1 | 2023/03/13 16:10:58 | at java.lang.Thread.run(Thread.java:748)
INFO | jvm 1 | 2023/03/13 16:10:58 | Caused by: com.atlassian.bamboo.plugins.git.GitCommandException: command [/usr/bin/git fetch --tags ssh://9a99a530-865c-4b3e-9a08-4ad710498409@127.0.0.1:39355/trc/trc.git +refs/heads/*:refs/heads/* --update-head-ok] failed with code 128. Working directory was [/home/trcauto/bamboo-agent-home/xml-data/build-dir/TRC-SMOK26-UTB]., stderr:
INFO | jvm 1 | 2023/03/13 16:10:58 | Unable to negotiate with 127.0.0.1 port 39355: no matching host key type found. Their offer: ssh-rsa
INFO | jvm 1 | 2023/03/13 16:10:58 | fatal: Could not read from remote repository.
INFO | jvm 1 | 2023/03/13 16:10:58 |
INFO | jvm 1 | 2023/03/13 16:10:58 | Please make sure you have the correct access rights
INFO | jvm 1 | 2023/03/13 16:10:58 | and the repository exists.
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:740)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runFetchCommand(GitCommandProcessor.java:311)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.fetch(NativeGitOperationHelper.java:528)
INFO | jvm 1 | 2023/03/13 16:10:58 | ... 28 more
INFO | jvm 1 | 2023/03/13 16:10:58 | 2023-03-13 16:10:58,692 WARN [sshd-SshServer[60855447]-nio2-thread-1] [ServerSessionImpl] exceptionCaught(ServerSessionImpl[null@/127.0.0.1:34620])[state=Opened] IllegalStateException: Unable to negotiate key exchange for server host key algorithms (client: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256 / server: ssh-rsa)
INFO | jvm 1 | 2023/03/13 16:10:58 | 2023-03-13 16:10:58,696 INFO [0-BAM::MTL-LAB-TRCAUTO::Agent:pool-3-thread-1] [RetryingTaskExecutor] Task 'Retrieving source for Touch Room Controller - Smoke - debug-trc-2819-upload-binaries-fix - Upload TRC binaries #5 (TRC-SMOK26-UTB-5)' was unsuccessful. Run 2 / 2. Exception thrown when running task 'Retrieving source for Touch Room Controller - Smoke - debug-trc-2819-upload-binaries-fix - Upload TRC binaries #5 (TRC-SMOK26-UTB-5)', with message: null
INFO | jvm 1 | 2023/03/13 16:10:58 | 2023-03-13 16:10:58,696 ERROR [0-BAM::MTL-LAB-TRCAUTO::Agent:pool-3-thread-1] [RetryingTaskExecutor] Failed to run task 'Retrieving source for Touch Room Controller - Smoke - debug-trc-2819-upload-binaries-fix - Upload TRC binaries #5 (TRC-SMOK26-UTB-5)' after 2 attempts. Task was not executed. Rethrowing exception.
INFO | jvm 1 | 2023/03/13 16:10:58 | 2023-03-13 16:10:58,699 ERROR [0-BAM::MTL-LAB-TRCAUTO::Agent:pool-3-thread-1] [TaskExecutorImpl] Error occurred while running Task 'Checkout TRC code(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout.
INFO | jvm 1 | 2023/03/13 16:10:58 | java.lang.RuntimeException: com.atlassian.bamboo.plugins.stash.repository.StashRepositoryException
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:141)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:99)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:207)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:188)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:123)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:323)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:258)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:323)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:97)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:81)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:190)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:162)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:137)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:130)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:110)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
INFO | jvm 1 | 2023/03/13 16:10:58 | at java.lang.Thread.run(Thread.java:748)
INFO | jvm 1 | 2023/03/13 16:10:58 | Caused by: com.atlassian.bamboo.plugins.stash.repository.StashRepositoryException
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.stash.v2.BitbucketServerWorkingCopyManager.retrieveSourceCode(BitbucketServerWorkingCopyManager.java:101)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.fillWorkingDirFromVcs(VcsCheckoutTask.java:206)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$000(VcsCheckoutTask.java:54)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:126)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$1.call(VcsCheckoutTask.java:123)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:112)
INFO | jvm 1 | 2023/03/13 16:10:58 | ... 20 more
INFO | jvm 1 | 2023/03/13 16:10:58 | Caused by: com.atlassian.bamboo.repository.RepositoryException: Cannot fetch branch 'refs/heads/*' from 'ssh://git@rabbit.can2go.com:2083/trc/trc.git' to source directory '/home/trcauto/bamboo-agent-home/xml-data/build-dir/TRC-SMOK26-UTB'. command [/usr/bin/git fetch --tags ssh://73db2a68-45ef-442d-94f6-6f1112bd7504@127.0.0.1:39355/trc/trc.git +refs/heads/*:refs/heads/* --update-head-ok] failed with code 128. Working directory was [/home/trcauto/bamboo-agent-home/xml-data/build-dir/TRC-SMOK26-UTB]., stderr:
INFO | jvm 1 | 2023/03/13 16:10:58 | Unable to negotiate with 127.0.0.1 port 39355: no matching host key type found. Their offer: ssh-rsa
INFO | jvm 1 | 2023/03/13 16:10:58 | fatal: Could not read from remote repository.
INFO | jvm 1 | 2023/03/13 16:10:58 |
INFO | jvm 1 | 2023/03/13 16:10:58 | Please make sure you have the correct access rights
INFO | jvm 1 | 2023/03/13 16:10:58 | and the repository exists.
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.fetch(NativeGitOperationHelper.java:545)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.v2.GitWorkingCopyManager.checkout(GitWorkingCopyManager.java:266)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.v2.GitWorkingCopyManager.retrieveSourceCode(GitWorkingCopyManager.java:122)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.stash.v2.BitbucketServerWorkingCopyManager.retrieveSourceCode(BitbucketServerWorkingCopyManager.java:91)
INFO | jvm 1 | 2023/03/13 16:10:58 | ... 25 more
INFO | jvm 1 | 2023/03/13 16:10:58 | Caused by: com.atlassian.bamboo.plugins.git.GitCommandException: command [/usr/bin/git fetch --tags ssh://73db2a68-45ef-442d-94f6-6f1112bd7504@127.0.0.1:39355/trc/trc.git +refs/heads/*:refs/heads/* --update-head-ok] failed with code 128. Working directory was [/home/trcauto/bamboo-agent-home/xml-data/build-dir/TRC-SMOK26-UTB]., stderr:
INFO | jvm 1 | 2023/03/13 16:10:58 | Unable to negotiate with 127.0.0.1 port 39355: no matching host key type found. Their offer: ssh-rsa
INFO | jvm 1 | 2023/03/13 16:10:58 | fatal: Could not read from remote repository.
INFO | jvm 1 | 2023/03/13 16:10:58 |
INFO | jvm 1 | 2023/03/13 16:10:58 | Please make sure you have the correct access rights
INFO | jvm 1 | 2023/03/13 16:10:58 | and the repository exists.
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:740)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runFetchCommand(GitCommandProcessor.java:311)
INFO | jvm 1 | 2023/03/13 16:10:58 | at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.fetch(NativeGitOperationHelper.java:528)
INFO | jvm 1 | 2023/03/13 16:10:58 | ... 28 more
INFO | jvm 1 | 2023/03/13 16:10:58 | 2023-03-13 16:10:58,787 FATAL [0-BAM::MTL-LAB-TRCAUTO::Agent:pool-3-thread-1] [PrepareBuildTask] Failed to prepare the build 'Touch Room Controller - Smoke - debug-trc-2819-upload-binaries-fix - Upload TRC binaries #5 (TRC-SMOK26-UTB-5)'
INFO | jvm 1 | 2023/03/13 16:10:58 | 2023-03-13 16:10:58,868 INFO [0-BAM::MTL-LAB-TRCAUTO::Agent:pool-3-thread-1] [DefaultBuildAgent] Detected '1' errors in build. Aborting build process.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From the logs the agents seem to be working fine. The logs seem to suggest a problem related to bamboo not being able to access the git repo. However the ssh keys were regenerated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Archie Sangole
By any chance have you also updated the operating system? OpenSSH client?
Check the workaround on this bug and try to apply it on the Bamboo Agent's ~/.ssh/config file:
Kind regards,
Eduardo Alvarenga
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After much debugging, the issue was being caused by the artifactory plugin that was enabled, not enabled by the updates, but it was a coincidence that the plugin was activated around the same time that the updates were installed, the latter being handled by a different team. :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.