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(
at org.apache.coyote.http11.AbstractHttp11Processor.process(
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$
at org.apache.tomcat.util.threads.TaskThread$

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 \

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?