Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

basic level, ssh task, Error occurred while running Task, ClassCastException, Bamboo Data Center 8.2

Apostal Fales April 3, 2024

 

ssh_scr.jpeg

 

I am noob, Ask for more information please if it is needed. I try to create basic ssh task get
Error occurred while running Task '(2)' of type com.atlassian.bamboo.plugins.bamboo-scp-plugin:sshtask.
java.lang.ClassCastException: class net.i2p.crypto.eddsa.EdDSAPublicKey cannot be cast to class net.i2p.crypto.eddsa.EdDSAPublicKey (net.i2p.crypto.eddsa.EdDSAPublicKey is in unnamed module of loader com.atlassian.bamboo.agent.bootstrap.classloading.ConditionallyDelegatingUrlClassLoader @565ff265; net.i2p.crypto.eddsa.EdDSAPublicKey is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @56b5f44b) at net.schmizz.sshj.common.KeyType$6.writePubKeyContentsIntoBuffer(KeyType.java:202) at net.schmizz.sshj.common.KeyType.putPubKeyIntoBuffer(KeyType.java:388) at net.schmizz.sshj.common.Buffer.putPublicKey(Buffer.java:499) at net.schmizz.sshj.userauth.method.KeyedAuthMethod.putPubKey(KeyedAuthMethod.java:55) at net.schmizz.sshj.userauth.method.AuthPublickey.buildReq(AuthPublickey.java:62) at net.schmizz.sshj.userauth.method.AuthPublickey.buildReq(AuthPublickey.java:81) at net.schmizz.sshj.userauth.method.AbstractAuthMethod.request(AbstractAuthMethod.java:68) at net.schmizz.sshj.userauth.UserAuthImpl.authenticate(UserAuthImpl.java:73) at net.schmizz.sshj.SSHClient.auth(SSHClient.java:221) at net.schmizz.sshj.SSHClient.authPublickey(SSHClient.java:342) at com.atlassian.bamboo.plugins.scp.SshTask.execute(SshTask.java:114) at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:323) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:258) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:323) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:118) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:205) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:177) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:169) at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:162) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:122) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41) at java.base/java.lang.Thread.run(Thread.java:829)

1 answer

1 accepted

4 votes
Answer accepted
Jyothi Charupalli
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2024

Hi @Apostal Fales ,

Welcome to Atlassian Community!

May I know which type of SSH key (RSA, Ed25519, etc.) you used for SSH key generation to connect to the SSH server?

I think you stumbled on this Bamboo Bug BAM-21903: SSH or SCP tasks will fail if the SSH private key is of type ed25519 which was raised for Bamboo version <= 8.2.4.  Please refer to the BUG report for more details.

This was fixed in Bamboo versions 9.1.0, 8.2.7, and 9.0.2

Can you please confirm your Bamboo version to confirm if you are affected by this Bug? If you are using the affected Bamboo version, you can either upgrade your Bamboo version to one of the fixed versions or use any of the workarounds mentioned in the BUG report.

Best Regards,

Jyothi

*please don't forget to Accept the answer if your query was answered**

Apostal Fales April 4, 2024

You absolutly correct thank you so much. My version was  8.2.6, and ssh-keys ed25519. You didn’t just solve a problem; you illuminated a path for me. In the labyrinth of code, you were my guiding star. Best wishes)

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events