SSH not working after Bitbucket Server upgrade
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
SSH does not work and the following appears in atlassian-bitbucket.log
:
1
2
3
4
5
2014-06-13 00:05:02,082 WARN [NioProcessor-6] o.a.m.c.f.DefaultIoFilterChain Unexpected exception from exceptionCaught handler.
java.lang.IllegalStateException: No session available
at org.apache.sshd.common.AbstractSessionIoHandler.exceptionCaught(AbstractSessionIoHandler.java:49) ~[bitbucket-ssh-2.12.3_1399867136000.jar:na]
…
Caused by: java.lang.NoSuchMethodError: org.bouncycastle.asn1.ASN1InputStream.readObject()Lorg/bouncycastle/asn1/DERObject;
1
Caused by: java.lang.VerifyError: class org.bouncycastle.asn1.ASN1Primitive overrides final method equals.(Ljava/lang/Object;)Z
Cause
There is incompatible version of Bouncy Castle in the JDK.
Resolution
Search for the incompatible version of Bouncy Castle and remove it.
ℹ️ This is likely located at JAVA_HOME/jre/lib/ext/
bcprov-jdk*.jar
Was this helpful?