Docker Community Forums

Share and learn in the Docker community.

Confluence: Invalid character found in method name

I have atlassian/confluence-server:latest running on Docker on a MacMini (Sierra 16D32).
When I bring the container up, everything seems fine in the log, but when I try to go to the port, I see:

10-Feb-2017 06:41:58.205 INFO [http-nio-8090-exec-1] org.apache.coyote.http11.AbstractHttp11Processor.process Error parsing HTTP request header
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in method name. HTTP method names must be tokens
at org.apache.coyote.http11.AbstractNioInputBuffer.parseRequestLine(AbstractNioInputBuffer.java:233)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1017)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

Container is started using:

docker run \
	-v /www/newDev:/var/atlassian/application-data/confluence \
	-v /www/logs/dev:/opt/atlassian/confluence/logs \
	--name="dev" \
	-it -d \
	-p 8090:8090 \
	-p 8091:8091 \
	--expose=8090-8091 \
	-e VIRTUAL_HOST=dev.erps.org \
	-e VIRTUAL_PORT=80 \
	atlassian/confluence-server

Any ideas?

This exception can occur when you try to execute an https request on an endpoint which isn’t https enabled.

Hmmm … So I should put a -p 443:8090 as well?

Or a -e VIRTUAL_PORT=443?