IllegalArgumentException Error when upgrading SonarQube Docker installation from 8.5.1 to 8.9.1 LTS

We have a docker installation of SonarQube version 8.5.1 and I wanted to upgrade to 8.9 LTS. We are deploying in a Docker Swarm using an stack file, and the result is a service with 1 container for SonarQube.

During the upgrade the container tries to start but fails with error:

NFO web[][o.a.c.h.Http11Processor] Error parsing HTTP request header
 Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.,
java.lang.IllegalArgumentException: Invalid character found in the HTTP protocol [|],
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:573),
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:503),
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65),
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:831),
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1629),
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49),
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source),
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source),
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61),
at java.base/java.lang.Thread.run(Unknown Source),

How can this be overcome?
John

Hi @johnqa ,

Welcome to SonarSource Community :sonarsource:

From the error it seems apparent:

Can you share the stack file you are using? What commands are you using to upgrade the container and then start the container?