Details
-
Bug
-
Resolution: Fixed
-
Low
-
6.9.0, 6.9.1, 6.9.2, 6.10.3, 6.10.2
-
None
-
1
-
Severity 2 - Major
-
Description
Issue Summary
The UpgradeProtocol in the 8443 Connector in server.xml causes Bamboo to fail on startup with a Severe exeption
Steps to Reproduce
- Install Bamboo 6.9 or above
- Uncomment the 8443 connector
- Start Bamboo
Expected Results
Bamboo starts as expected
Actual Results
The below exception is thrown in the atlassian-bamboo.log file:
23-Oct-2019 21:10:11.763 SEVERE [main] org.apache.coyote.http11.AbstractHttp11Protocol.configureUpgradeProtocol The upgrade handler [org.apache.coyote.http2.Http2Protocol] for [h2] only supports upgrade via ALPN but has been configured for the ["https-jsse-nio-8443"] connector that does not support ALPN. 23-Oct-2019 21:10:11.763 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["https-jsse-nio-8443"] 23-Oct-2019 21:10:12.228 SEVERE [main] org.apache.catalina.core.StandardService.initInternal Failed to initialize connector [Connector[HTTP/1.1-8443]] org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-8443]] ... Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed ... Caused by: java.lang.IllegalArgumentException ... Caused by: java.io.IOException ...
Workaround
Option 1
- Stop Bamboo
- Remove the following lines from the server.xml:
From
... <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" /> </Connector>
- Close the Connector XML
To
/>
- Start Bamboo
Option 2
- Stop Bamboo
- Comment out or delete the existing HTTPS Connector from server.xml
- Copy the HTTPS Connector from Securing Bamboo with Tomcat using SSL - 2. Configure HTTPS in Tomcat into server.xml
- Start Bamboo