An invalid response was received from the upstream server

  • SonarQube Version - 9.9 LTE
  • How is SonarQube deployed: k8S deployment using sonarqube docker image

We are getting An invalid response was received from the upstream server error on UI, which is intermittent, and the server is unavailable for the scans. This error we observed recently.

Error log observed from the server
The server push client 127.x.x.x gone without notice, closing the connection (java. io. IOException: Broken pipe)

Could you please help us more with this error?

Thanks

1 Like

Observed these logs while server is failed to run, also noticing the frequent change in pod phase (terminating to running).

Could please take this as prior since we are blocked with this and help us understanding the issue. Thanks

WARN  web[][o.a.c.l.WebappClassLoaderBase] The web application [ROOT] appears to have started a thread named [OkHttp TaskRunner] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:\n java.base@17.0.9/java.lang.Object.wait(Native Method)\n java.base@17.0.9/java.lang.Object.wait(Unknown Source)\n app//okhttp3.internal.concurrent.TaskRunner$RealBackend.coordinatorWait(TaskRunner.kt:294)\n app//okhttp3.internal.concurrent.TaskRunner.awaitTaskToRun(TaskRunner.kt:218)\n app//okhttp3.internal.concurrent.TaskRunner$runnable$1.run(TaskRunner.kt:59)\n java.base@17.0.9/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\n java.base@17.0.9/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\n java.base@17.0.9/java.lang.Thread.run(Unknown Source)
2024.10.07 09:24:15 INFO  web[][o.s.s.app.WebServer] Web Server stopped

Hi @Tejas_M_D,

Welcome to the community!

What do your server logs say?

 
Ann

Hi @Priyanka-Kotturi,

The warning you’ve posted is just that - only a warning.

Do you work with the OP? If not, can you create a new thread, please?

 
Thx,
Ann

Hi @ganncamp

I’m referring to the same issue mentioned by @Tejas_M_D, the provided logs are the server logs at the time of that error and when the server stopped.

Thanks

Hi @Priyanka-Kotturi,

As mentioned in the link I posted, there are multiple server logs.

The log snippet you posted doesn’t show anything relevant. Can y’all take a look at all the logs?

 
Ann

Hi @ganncamp , this intermittent error still persists, and we are not finding any error in the server logs. And the error we shared before doesn’t exists anymore.

Hi,

With an intermittent error - and I assume no reliably way to reproduce it - and no logs, there’s not much I can do.

 
Ann