Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Alias name [tomcat] does not identify a key entry

sdavid
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 17, 2018

Hi, I am solving problem with starting Bitbucket.
I have configured bitbucket.properties like this (default setup didn't work for me also):

#>*******************************************************
#> Migrated to database at jdbc:postgresql://psql-bitbucket.*******.eu-central-1.rds.amazonaws.com:****/psql_bitbucket_live
#> Updated on 2018-09-07T15:21:55.441+02:00
#>*******************************************************
jdbc.driver=org.postgresql.Driver
jdbc.url=jdbc:postgresql://psql-bitbucket.c1111111gguo.eu-central-1.rds.amazonaws.com:5555/psql_bitbucket_live
jdbc.user=bitbucketuser
jdbc.password=my-secret-passwd

server.scheme=https
server.ssl.key-store-type=jks
server.port=8443
server.ssl.enabled=true
server.ssl.key-store=/var/atlassian/application-data/bitbucket/shared/config/ssl-keystore.jks
server.ssl.key-alias=tomcat
server.ssl.key-store-password=my-secret-passwd
server.ssl.key-password=my-secret-passwd
keystorePass=my-secret-passwd

 

I also checked my keystore as is it recommended here.

This is my key:

$ keytool -list -v -keystore ssl-keystore.jks -alias tomcat
Enter keystore password:
Alias name: tomcat
Creation date: Sep 14, 2018
Entry type: trustedCertEntry

 

But Bitbucket still can't start and returns Alias name [tomcat] does not identify a key entry.

Here is beginning of the log when I try to start Bitbucket:

2018-09-17 12:30:28,717 INFO [main] c.a.b.i.b.BitbucketServerApplication Starting BitbucketServerApplication on mbczvl6al0bibl1.ux.mbid.cz with PID 5451 (/aplikace/bitbucket/app/WEB-INF/classes started by atlbitbucket in /)
2018-09-17 12:30:28,717 INFO [main] c.a.b.i.b.BitbucketServerApplication No active profile set, falling back to default profiles: default
2018-09-17 12:30:29,705 INFO [main] c.a.b.i.boot.log.BuildInfoLogger Starting Bitbucket 5.13.1 (2c2ed6e built on Tue Aug 21 07:11:42 CEST 2018)
2018-09-17 12:30:29,705 INFO [main] c.a.b.i.boot.log.BuildInfoLogger JVM: Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 1.8.0_181
2018-09-17 12:30:31,357 ERROR [main] o.a.catalina.core.StandardService Failed to start connector [Connector[HTTP/1.1-8443]]
org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-8443]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.addPreviouslyRemovedConnectors(TomcatEmbeddedServletContainer.java:265)
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:208)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:297)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:145)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
at com.atlassian.bitbucket.internal.boot.BitbucketServerApplication.start(BitbucketServerApplication.java:246)
at com.atlassian.bitbucket.internal.boot.BitbucketServerApplication.main(BitbucketServerApplication.java:82)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at com.atlassian.bitbucket.internal.launcher.BitbucketServerLauncher.start(BitbucketServerLauncher.java:151)
at com.atlassian.bitbucket.internal.launcher.BitbucketServerLauncher.main(BitbucketServerLauncher.java:99)
... 5 frames trimmed
Caused by: org.apache.catalina.LifecycleException: Protocol handler start failed
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1020)
... 16 common frames omitted
Caused by: java.lang.IllegalArgumentException: Alias name [tomcat] does not identify a key entry
at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:116)
... 16 common frames omitted
Caused by: java.io.IOException: Alias name [tomcat] does not identify a key entry
at org.apache.tomcat.util.net.jsse.JSSEUtil.getKeyManagers(JSSEUtil.java:229)
... 16 common frames omitted
2018-09-17 12:30:34,169 WARN [spring-startup] c.a.stash.internal.home.HomeLock Failed to write process information into the lock file
java.nio.channels.ClosedByInterruptException: null
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:216)
at com.atlassian.stash.internal.home.HomeLock.acquireLock(HomeLock.java:127)
at com.atlassian.stash.internal.home.HomeLock.lock(HomeLock.java:98)
at com.atlassian.stash.internal.home.HomeLockAcquirer.lock(HomeLockAcquirer.java:58)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:151)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525)


...

 

Rights for mentioned files are set this way: -rw-r----- 1 atlbitbucket atlbitbucket

Can anyone help me please?

Does anoyone has an idea where could be the problem?

 

Thank you for every recommendation.

2 answers

0 votes
binh ninh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 11, 2019

same here, did you find the solution for this problem ?

tks

0 votes
Geneity
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 10, 2018

same here, did you find the solution for this problem ?

tks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events