添加SSL后,Bitbucket无法启动

时间:2019-03-20 14:07:44

标签: ssl-certificate bitbucket-server

我正在将证书添加到我们的Bitbucket服务器,但是启动失败。

  

错误:

申请无法开始

说明: 配置为侦听端口8080的Tomcat连接器无法启动。该端口可能已在使用中,或者连接器配置错误。

操作: 验证连接器的配置,确定并停止正在侦听端口8080的任何进程,或者将该应用程序配置为侦听另一个端口。

  

错误

2019-03-20 13:10:34,792 ERROR [main] o.a.catalina.core.StandardService Failed to start connector [Connector[HTTP/1.1-8080]] org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-8080]] 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

  

启用了SSL的位存储桶属性文件

jdbc.driver=oracle.jdbc.driver.OracleDriver
jdbc.url=xxxxxx
jdbc.user=xxxx
jdbc.password=xxx
server.require-ssl=true
server.additional-connector.1.port=7990
server.additional-connector.1.redirect-port=8080
server.additional-connector.1.require-ssl=true
server.port=8080
server.secure=true
server.scheme=https
server.ssl.enabled=true
server.ssl.client-auth=want
server.ssl.protocol=TLS
server.ssl.key-store=/ssl-keystore
server.ssl.key-store-password=xxxx
server.ssl.key-password=xxx
server.ssl.key-alias=tomcat
plugin.bitbucket-git.path.executable=xxx

但是当我删除SSL时,其端口8080起作用的文件

  

删除ssl bitbucket属性文件后,如下所示:       jdbc.driver=oracle.jdbc.driver.OracleDriver jdbc.url=xxxx jdbc.user=xxxx jdbc.password=xxx server.require-ssl=false server.additional-connector.1.port=7990 server.additional-connector.1.redirect-port=8080 server.port=8080 server.scheme=http server.ssl.enabled=false plugin.bitbucket-git.path.executable=/xxx

任何人都可以在这里帮助我找到解决方法。

0 个答案:

没有答案