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(,
at org.apache.coyote.http11.Http11Processor.service(,
at org.apache.coyote.AbstractProcessorLight.process(,
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(,
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source),
at java.base/java.util.concurrent.ThreadPoolExecutor$ Source),
at org.apache.tomcat.util.threads.TaskThread$,
at java.base/ Source),

How can this be overcome?

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?