Upgrade bitbucket server OS to Centos 7.9.2009 and issue on startup
Asked by Stefano:

I upgraded OS to Centos 7.9.2009 and, when restart Bitbucket (rel. 7.6.5), I got the error:

2021-05-18 15:27:05,875 INFO \[main\] o.s.boot.SpringApplication  
. ____ _ __ _ _  
/\\\\ / ___'_ __ _ _(_)_ __ __ _ \\ \\ \\ \\  
( ( )\\___ \| '_ \| '_\| \| '_ \\/ _\` \| \\ \\ \\ \\  
\\\\/ ___)\| \|_)\| \| \| \| \| \|\| (_\| \| ) ) ) )  
' \|____\| .__\|_\| \|_\|_\| \|_\\__, \| / / / /  
=========\|_\|==============\|___/=/_/_/_/  
:: Spring Boot :: (v2.2.6.RELEASE)

<br />

2021-05-18 15:27:05,997 INFO \[main\] c.a.b.i.b.BitbucketServerApplication Starting BitbucketServerApplication on myserver with PID 6661 (/opt/atlassian/bitbucket-7.6.5/app/WEB-INF/classes started by atlbitbucket in /)  
2021-05-18 15:27:05,998 INFO \[main\] c.a.b.i.b.BitbucketServerApplication No active profile set, falling back to default profiles: default  
2021-05-18 15:27:06,583 INFO \[main\] c.a.b.i.boot.log.BuildInfoLogger Starting Bitbucket 7.6.5 (f776446 built on Tue Mar 23 05:34:03 CET 2021)  
2021-05-18 15:27:06,584 INFO \[main\] c.a.b.i.boot.log.BuildInfoLogger JVM: Red Hat, Inc. OpenJDK 64-Bit Server VM 1.8.0_292-b10  
2021-05-18 15:27:07,739 INFO \[main\] c.a.b.i.b.BitbucketServerApplication Started BitbucketServerApplication in 3.741 seconds (JVM running for 4.696)  
2021-05-18 15:27:10,821 INFO \[spring-startup\] c.a.s.internal.home.HomeLockAcquirer Successfully acquired lock on home directory /var/atlassian/application-data/bitbucket  
2021-05-18 15:27:12,728 ERROR \[spring-startup\] com.zaxxer.hikari.pool.HikariPool bitbucket - Exception during pool initialization.  
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet successfully received from the server was 0 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago.  
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)  
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:990)  
at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:201)  
at com.mysql.jdbc.MysqlIO.negotiateSSLConnection(MysqlIO.java:4912)  
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1663)  
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1224)  
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2190)  
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2221)  
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2016)  
at com.mysql.jdbc.ConnectionImpl.\<init\>(ConnectionImpl.java:776)  
at com.mysql.jdbc.JDBC4Connection.\<init\>(JDBC4Connection.java:47)  
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)  
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:386)  
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)  
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)  
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358)  
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)  
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477)  
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560)  
at com.zaxxer.hikari.pool.HikariPool.\<init\>(HikariPool.java:115)  
at com.zaxxer.hikari.HikariDataSource.\<init\>(HikariDataSource.java:81)  
at com.atlassian.stash.internal.hikari.ExtendedHikariDataSource.\<init\>(ExtendedHikariDataSource.java:49)  
at com.atlassian.stash.internal.hikari.HikariDataSourceFactory.create(HikariDataSourceFactory.java:70)  
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:229)  
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:722)  
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:535)  
at javax.servlet.GenericServlet.init(GenericServlet.java:158)  
at java.lang.Thread.run(Thread.java:748)  
... 100 frames trimmed  
Caused by: javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)  
at sun.security.ssl.HandshakeContext.\<init\>(HandshakeContext.java:171)  
at sun.security.ssl.ClientHandshakeContext.\<init\>(ClientHandshakeContext.java:98)  
at sun.security.ssl.TransportContext.kickstart(TransportContext.java:220)  
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:428)  
at com.mysql.jdbc.ExportControlled.transformSocketToSSLSocket(ExportControlled.java:186)  
... 26 common frames omitted

This is what I can see when connected to http://myserver:7990

![atlassian bitbucket 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/143845i0C6B596D52CA6AB7/image-size/large?v=v2&px=999 "atlassian bitbucket 2.png")

Mysql version is 5.7.34 upgraded with OS upgrade

MysqlConnector version is 5.1.46

Bitbucket start on server as a service with dedicated user.

Before OS upgrade all work well.

In the same server I have Jira that works well, but I can't see anymore the links between Jira and Bitbucket on solved issues.

Please help me, I red a lot on community but nothing solve the problem.

Thanks.


Answers:
author: Charlie Misonne
body: Hi Stefano, Welcome to the Atlassian Community!

That looks like an SSL error. Does your database use SSL?

If it doesn't try to append "useSSL=false" to your database URL. Example: jdbc:mysql://localhost/bitbucket?useSSL=false

comments: author: Stefano
body: Great!!!!

Your answer resolved my trouble!

Thanks


author: Charlie Misonne
body: Glad to hear that! You're welcome.


Tags: bitbucket-server

server