SonarQube 10.3.0 developer on kubernetes : Unexpected Application Error!

Hi everyone,

I’m facing a strange issue with SonarQube developer version 10.3.0 running in kubernetes.
Suddenly getting an error message on the frontend.
I don’t see any issues on the pod logs so not sure what is happening.

Has anyone faced similar issues ?

Helm

  • what are you trying to achieve

Use the application

  • what have you tried so far to achieve this

Check the database, storage and infrastructure. No problems detected
Restart the pod, still the same issue.
On the pod everything start correctly ending with SonarQube is operational

See the logs from the web browser

Edge

Unexpected Application Error!
Cannot read properties of undefined (reading 'Fragment')
TypeError: Cannot read properties of undefined (reading 'Fragment')
    at Nor (https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:2374853)
    at Owe (https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:513761)
    at Y_t (https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:561566)
    at H_t (https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:553683)
    at vEn (https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:553606)
    at Ej (https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:553454)
    at uwe (https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:550259)
    at https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:499482
    at gs.unstable_runWithPriority (https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:452273)
    at tE (https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:499249)

From Firefox it’s a bit different

Unexpected Application Error!

React is undefined

Nor@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:2374838 
Owe@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:513761 
Y_t@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:561566 
H_t@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:553686 
vEn@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:553609 
Ej@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:553454 
uwe@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:550259 
VW@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:547796 
kme@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:568728 
Kme/<@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:570411 
T_t@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:550755 
Kme@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:570396 
O_t</by.render@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:573005 
DUr@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:4886100 
Ixi@https://sonarqube.app.eeas.europa.eu/js/out6M7OCNJE.js:1:4888904

Hi,

To be clear, you see this in your browser… on your initial attempt to access the UI? Could you provide the path you’re trying to access?

Also, can you try it without the 3rd-party plugins?

 
Thx,
Ann

Hi Ann,

Yes correct I see this in the browser.

I don’t get the error message right after the initial connection, first i get the login button, then I authenticate and it’s on the redirect to the application on the /projects path that i get the error message.

I tried that after a login from OIDC or the local admin account but the result is the same.

Just removed all the plugins following the procedure but unfortunately still the same error message on the frontend. I don’t see any particular issue in the logs it looks like a normal sonarqube startup.

I tried to look into the sonarqube home logs folder just in case but i’m not seeing anything relevant.

I’m attaching the last logs from the main container : sonarqube.txt (24.8 KB)

Thanks,
Sébastien

Hi Sébastien,

So, you get the error even when you go straight to /projects after login?

You get the error even without the OIDC plugin?

 
Ann

Hi Ann,

OIDC is disabled now.

So when connecting to the application, I’m landing on the authentication page and it proposes me GitHub or click more for local login. I use the local admin to log in and right after that i’m redirected to the /projects where i have this error message.

I also tried a few other paths (/issues, /coding_rules) but with the same error message as /projects.

Interestingly when I try to access a path that does not exist, I correctly get the “The page you were looking for does not exist.” error page though.

Sébastien

1 Like

Hi Sébastien,

Thanks for checking the no-plugins scenario. Since you’re getting this in a vanilla instance, I’m going to flag it for more expert attention.

 
Thx,
Ann

Thank you Ann, much appreciated

Sébastien

Hi,

Apparently the issue was caused by Dynatrace injection.

We noticed using the browser tools some that some injections was happening in the javascript that was failing. After excluding the sonarqube namespace from injection and restarting, the frontend came back.

Sébastien.

2 Likes