Cannot access Web UI due to an error - getRequestURI()" is null

Hi everyone,
I have been tasked to setup a sonarqube infrastructure in our company.
Since we dont have a container orchestration platform we have to take small steps and begin with basic setups. I am trying to ansible script a podman deployment which has been successful so far. The server is running, but I receive a web error.

Okt 25 13:03:31 example.server podman-compose[65784]: [sonarqube] | 2023.10.25 11:03:29 INFO  ce[][o.s.ce.app.CeServer] Compute Engine is started
Okt 25 13:03:31 example.server podman-compose[65784]: [sonarqube] | 2023.10.25 11:03:29 INFO  app[][o.s.a.SchedulerImpl] Process[ce] is up
Okt 25 13:03:31 example.server podman-compose[65784]: [sonarqube] | 2023.10.25 11:03:29 INFO  app[][o.s.a.SchedulerImpl] SonarQube is operational
Okt 25 13:03:31 example.server podman-compose[65784]: [sonarqube] | 2023.10.25 11:03:31 ERROR web[][o.a.c.h.Http11Processor] Error processing request
Okt 25 13:03:31 example.server podman-compose[65784]: [sonarqube] | java.lang.NullPointerException: Cannot invoke "String.replaceFirst(String, String)" because the return value of "javax.servlet.http.HttpServletRequest.getRequestURI()" is null
Okt 25 13:03:31 example.server podman-compose[65784]: [sonarqube] |         at org.sonar.server.platform.web.SecurityServletFilter.addSecurityHeaders(SecurityServletFilter.java:70)
Okt 25 13:03:31 example.server podman-compose[65784]: [sonarqube] |         at org.sonar.server.app.SecureErrorReportValve.invoke(SecureErrorReportValve.java:36)
Okt 25 13:03:31 example.server podman-compose[65784]: [sonarqube] |         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
Okt 25 13:03:31 example.server podman-compose[65784]: [sonarqube] |         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
Okt 25 13:03:31 example.server podman-compose[65784]: [sonarqube] |         at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:389)
Okt 25 13:03:31 example.server podman-compose[65784]: [sonarqube] |         at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
Okt 25 13:03:31 example.server podman-compose[65784]: [sonarqube] |         at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
Okt 25 13:04:01 example.server podman-compose[65784]: [sonarqube] |         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1791)
Okt 25 13:04:01 example.server podman-compose[65784]: [sonarqube] |         at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
Okt 25 13:04:01 example.server podman-compose[65784]: [sonarqube] |         at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
Okt 25 13:04:01 example.server podman-compose[65784]: [sonarqube] |         at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
Okt 25 13:04:01 example.server podman-compose[65784]: [sonarqube] |         at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
Okt 25 13:04:01 example.server podman-compose[65784]: [sonarqube] |         at java.base/java.lang.Thread.run(Unknown Source)
Okt 25 13:04:01 example.server podman-compose[65784]: [sonarqube] | 2023.10.25 11:03:41 ERROR web[][o.a.c.h.Http11Processor] Error processing request
Okt 25 13:04:01 example.server podman-compose[65784]: [sonarqube] | java.lang.NullPointerException: Cannot invoke "String.replaceFirst(String, String)" because the return value of "javax.servlet.http.HttpServletRequest.getRequestURI()" is null
Okt 25 13:04:01 example.server podman-compose[65784]: [sonarqube] |         at org.sonar.server.platform.web.SecurityServletFilter.addSecurityHeaders(SecurityServletFilter.java:70)
Okt 25 13:04:01 example.server podman-compose[65784]: [sonarqube] |         at org.sonar.server.app.SecureErrorReportValve.invoke(SecureErrorReportValve.java:36)
Okt 25 13:04

My podman-compose.yml:


services:
  sonarqube:
    image: sonarqube:lts
    environment:
      - SONAR_EMBEDDEDDATABASE_PORT=9092
      - SONAR_WEB_HOST=0.0.0.0
      - SONAR_WEB_PORT=9000
      - SONAR_WEB_HTTP_MAXTHREADS=50
      - SONAR_LOG_LEVEL=INFO
      - SONAR_LOG_LEVEL_APP=INFO
      - SONAR_LOG_LEVEL_WEB=INFO
      - SONAR_LOG_LEVEL_CE=INFO
      - SONAR_LOG_LEVEL_ES=INFO
      - SONAR_WEB_SESSIONTIMEOUTINMINUTES=4320
    volumes:
      - {{ sonarqube_data_path }}:/opt/sonarqube/data
      - {{ sonarqube_extensions_path }}:/opt/sonarqube/extensions
      - {{ sonarqube_log_path }}:/opt/sonarqube/logs
    ports:
      - "8080:9000"

This is my first step with sonarqube. I just want to run and explore it using its H2 integrated DB.
I dont know if it’s relevant, but it seems that I cannot start the container with a non-root user. It only works when I set mount directories owner and group to 201000:201000.

Have I missed a step? When I try to access the Portal, Chrome showes me: “ERR_SSL_PROTOCOL_ERROR”

Thx4ward for every help.

Hi,

Welcome to the community!

Since you’re just trying to get it running now for initial exploration, why not just start it from the zip?

 
Ann