After Configuring Bitbucket Server with SSL, Application Won't Start
問題
After configuring the SSL settings as per of the instructions Secure Bitbucket with Tomcat using SSL, Bitbucket Server won't start.
The following appears in the atlassian-bitbucket.log
(or catalina.out
for Bitbucket Server up to version 4.x):
04-May-2015 14:22:14.232 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8443"
04-May-2015 14:22:14.488 SEVERE [main] org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore Failed to load keystore type JKS with path /var/atlassian/application-data/bitbucket/bitbucket.jks due to /var/atlassian/application-data/bitbucket/bitbucket.jks (No such file or directory)
java.io.FileNotFoundException: /var/atlassian/application-data/bitbucket/bitbucket.jks (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.< init>(Unknown Source)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:417)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:323)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:581)
at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:521)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:363)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:730)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:456)
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:960)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:567)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:842)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:576)
at org.apache.catalina.startup.Catalina.load(Catalina.java:599)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
原因
Tomcat cannot load /var/atlassian/application-data/bitbucket/bitbucket.jks
, likely because that path is incorrect.
ソリューション
- Set the correct path to the keystore file for the connector (see Securing Bitbucket Server with Tomcat using SSL for reference or Securing Bitbucket Server with Tomcat using SSL for Bitbucket Server up to version 4.x)
最終更新日 2018 年 11 月 2 日
Powered by Confluence and Scroll Viewport.