Loading base URL after SSL install
Asked by Andrew Robb:

Hi,

I've been following through this SSL guide:

<https://confluence.atlassian.com/conf64/running-confluence-over-ssl-or-https-936511699.html>

I've have successfully imported a signed certificate into the keystore, made the suggested changes to the server.xml file but am having trouble loading the site on port 8090 to make the change to the base URL. Confluence failing to start properly. I've pasted a sample of the confluence log below. I did try setting the xml file back to the way it was but didn't make any difference. This is version 6.8.2 running on Ubuntu Server 17.10 if that helps.

2018-05-10 16:23:52,172 ERROR \[http-nio-8090-exec-8\] \[extra.webdav.servlet.ConfluenceWebdavServlet\] service Unexpected error  
-- url: /plugins/servlet/confluence/editinword/557068/attachments/ocauth/1ca4b3e8-22f2-4248-a82f-68cc41a7715a/ \| traceId: 0a263b639761670b \| userName: anonymous  
org.apache.jackrabbit.webdav.DavException  
at com.atlassian.confluence.extra.webdav.ConfluenceDavSessionProviderImpl.getConfluenceDavSession(ConfluenceDavSessionProviderImpl.java:123)  
at com.atlassian.confluence.extra.webdav.ConfluenceDavSessionProviderImpl.attachSession(ConfluenceDavSessionProviderImpl.java:192)  
at com.atlassian.confluence.extra.webdav.servlet.ConfluenceWebdavServlet.service(ConfluenceWebdavServlet.java:103)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)  
at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:37)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)  
at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:45)  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)  
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:39)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58)  
at com.atlassian.confluence.extra.webdav.servlet.filter.ReverseProxyCopyAndMoveDestinationFix.doFilter(ReverseProxyCopyAndMoveDestinationFix.java:53)  
at com.atlassian.confluence.extra.webdav.servlet.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:29)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:64)  
at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:37)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58)  
at com.atlassian.confluence.extra.webdav.servlet.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:38)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:64)  
at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:37)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58)  
at com.atlassian.confluence.extra.webdav.servlet.filter.ClientWriteDenyFilter.doFilter(ClientWriteDenyFilter.java:36)  
at com.atlassian.confluence.extra.webdav.servlet.filter.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:29)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:64)  
at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:37)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58)  
at com.atlassian.confluence.plugins.baseurl.IncludeResourcesFilter.doFilter(IncludeResourcesFilter.java:52)  
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:64)  
at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:37)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58)  
at com.atlassian.labs.botkiller.BotKillerFilter.doFilter(BotKillerFilter.java:36)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:64)  
at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:37)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58)  
at com.benryan.servlet.PathAuthenticator.doFilter(PathAuthenticator.java:66)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:64)  
at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:37)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:58)  
at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:24)  
at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter.doFilter(DelegatingPluginFilter.java:64)

<br />

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at com.atlassian.confluence.web.filter.ResponseOutputStreamFilter.doFilter(ResponseOutputStreamFilter.java:25)  
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at com.atlassian.johnson.filters.AbstractJohnsonFilter.doFilter(AbstractJohnsonFilter.java:59)  
at com.atlassian.confluence.web.ConfluenceJohnsonFilter.doFilter(ConfluenceJohnsonFilter.java:32)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at com.atlassian.core.filters.encoding.AbstractEncodingFilter.doFilter(AbstractEncodingFilter.java:41)  
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at com.atlassian.confluence.impl.servlet.HoldingUntilStartedFilter.doFilter(HoldingUntilStartedFilter.java:88)  
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter.doFilter(FourOhFourErrorLoggingFilter.java:64)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:46)  
at com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:31)  
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)  
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)  
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)  
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)  
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)  
at org.apache.catalina.valves.StuckThreadDetectionValve.invoke(StuckThreadDetectionValve.java:206)  
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)  
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)  
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)  
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502)  
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132)  
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)  
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1539)  
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1495)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)  
at java.lang.Thread.run(Thread.java:748)  
Caused by: java.io.IOException: Malformed Authorization header: Bearer  
at com.atlassian.confluence.extra.webdav.ConfluenceDavSessionProviderImpl.getCredentialTokens(ConfluenceDavSessionProviderImpl.java:60)  
at com.atlassian.confluence.extra.webdav.ConfluenceDavSessionProviderImpl.getUserName(ConfluenceDavSessionProviderImpl.java:83)  
at com.atlassian.confluence.extra.webdav.ConfluenceDavSessionProviderImpl.getConfluenceDavSession(ConfluenceDavSessionProviderImpl.java:108)  
... 312 more  
2018-05-10 16:23:52,177 INFO \[http-nio-8090-exec-8\] \[atlassian.confluence.status.SystemErrorInformationLogger\] writeToLog  
Request Unique ID : 99ddd7f5-d7ed-4c25-a948-34f3ff97f365  
--------------------------  
JVM Stats  
--------------------------  
usedMemory = 788277344  
usedMemoryInMegabytes = 751  
availableHeap = 285464480  
freeMemoryInMegabytes = 272  
allocatedHeap = 1073741824  
freeAllocatedHeap = 285464480  
totalMemory = 1073741824  
totalMemoryInMegabytes = 1024  
availablePermGen = 0  
maxPermGen = -1  
maxHeap = 1073741824  
usedHeap = 788277344  
freeMemory = 285464480  
usedPermGen = -1  
--------------------------  
Request Information  
--------------------------  
URL: [http://localhost:8090/500page.jsp](http://wiki.unifiedit.com.au:8090/500page.jsp)  
Scheme: http  
Server: localhost  
Port: 8090  
URI: /500page.jsp  
Context Path:  
Servlet Path: /500page.jsp  
Path Info: null  
Query String: null

Attributes  
--------------------------  
javax.servlet.forward.request_uri: /plugins/servlet/confluence/editinword/557068/attachments/ocauth/1ca4b3e8-22f2-4248-a82f-68cc41a7715a/  
javax.servlet.forward.context_path:  
javax.servlet.forward.servlet_path: /plugins/servlet  
javax.servlet.forward.path_info: /confluence/editinword/557068/attachments/ocauth/1ca4b3e8-22f2-4248-a82f-68cc41a7715a/  
javax.servlet.error.status_code: 500  
com.atlassian.confluence.impl.profiling.DecoratorTimings: com.atlassian.confluence.impl.profiling.DecoratorTimings@5cd91d4b  
com.opensymphony.sitemesh.APPLIED_ONCE: true  
__cleanup_recursion_counter: 0  
javax.servlet.error.message: Internal Server Error  
javax.servlet.error.servlet_name: servlet-module-container-servlet  
com.atlassian.confluence.util.message.MessagesDecoratorFilter__already_filtered__: true  
com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true  
atlassian.core.seraph.original.url: /500page.jsp  
com.atlassian.labs.botkiller.BotKillerFilter: true  
com.atlassian.gzipfilter.GzipFilter_already_filtered: true  
Confluence-Request-Time: 1525933432163  
com.opensymphony.sitemesh.USINGSTREAM: false  
B3-TraceId: f5210dd5985256  
loginfilter.already.filtered: true  
javax.servlet.error.request_uri: /plugins/servlet/confluence/editinword/557068/attachments/ocauth/1ca4b3e8-22f2-4248-a82f-68cc41a7715a/  
com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true  
com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFixupFilter: true  
com.atlassian.confluence.web.ConfluenceJohnsonFilter_already_filtered: true  
os_securityfilter_already_filtered: true  
com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter: true  
--------------------------  
Parameters  
--------------------------  
ttributes  
--------------------------  
javax.servlet.forward.request_uri: /plugins/servlet/confluence/editinword/557068/attachments/ocauth/1ca4b3e8-22f2-4248-a82f-68cc41a7715a/  
javax.servlet.forward.context_path:  
javax.servlet.forward.servlet_path: /plugins/servlet  
javax.servlet.forward.path_info: /confluence/editinword/557068/attachments/ocauth/1ca4b3e8-22f2-4248-a82f-68cc41a7715a/  
javax.servlet.error.status_code: 500  
com.atlassian.confluence.impl.profiling.DecoratorTimings: com.atlassian.confluence.impl.profiling.DecoratorTimings@5cd91d4b  
com.opensymphony.sitemesh.APPLIED_ONCE: true  
__cleanup_recursion_counter: 0  
javax.servlet.error.message: Internal Server Error  
javax.servlet.error.servlet_name: servlet-module-container-servlet  
com.atlassian.confluence.util.message.MessagesDecoratorFilter__already_filtered__: true  
com.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true  
atlassian.core.seraph.original.url: /500page.jsp  
com.atlassian.labs.botkiller.BotKillerFilter: true  
com.atlassian.gzipfilter.GzipFilter_already_filtered: true  
Confluence-Request-Time: 1525933432163  
com.opensymphony.sitemesh.USINGSTREAM: false  
B3-TraceId: f5210dd5985256  
loginfilter.already.filtered: true  
javax.servlet.error.request_uri: /plugins/servlet/confluence/editinword/557068/attachments/ocauth/1ca4b3e8-22f2-4248-a82f-68cc41a7715a/  
com.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true  
com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFixupFilter: true  
com.atlassian.confluence.web.ConfluenceJohnsonFilter_already_filtered: true  
os_securityfilter_already_filtered: true  
com.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter: true  
--------------------------  
Parameters  
--------------------------

2018-05-10 16:23:52,227 ERROR \[http-nio-8090-exec-2\] \[confluence.extra.webdav.ConfluenceDavSessionProviderImpl\] getConfluenceDavSession Unable to get user name and/or password from the Authenticate header.  
-- url: /plugins/servlet/confluence/editinword/557068/attachments/ocauth/1ca4b3e8-22f2-4248-a82f-68cc41a7715a/ \| traceId: 288c174c3dfa8d04 \| userName: anonymous  
java.io.IOException: Malformed Authorization header: Bearer


Answers:
author: Andrew Robb
body: Got it running in the end, at least on port 8090. I upgraded to 6.9.0 and that seemed to resolve whatever problem I was having above. It's still not accepting connections on 8443 for some reason but at least it's functional.


Tags: confluence-server

server