HTTP Status 500 – Internal Server Error getting error in 2025.1.0-enterprise

Hello,

We installed SonarQube version 2025.1 on Red Hat 8 and got everything set up and working, but we’re having trouble with SSO. When we try to log in with our username and password, it works, but when we try to log in with SSO, we get the error HTTP Status 500: Internal Server Error. We’ve checked all the settings, and everything is correct, but the problem persists. Could you please suggest another configuration or tell us if we need to download an additional plugin?

When we looked at the server’s web log, we saw the following error.
Caused by: org.sonar.server.authentication.event.AuthenticationException: Cookie ‘OAUTHSTATE’ is missing

have you tried clearing your browser’s cookies and cache?

check also your oauth settings in sonar dot properties file or the Sonarqube admin UI. It might have been mistyped.

where I get this setting on sonarqube UI

yes tried

Hi,

These threads might be helpful:

 
Ann

I have the same error in the enterprise version. I am using Azure AAD. Any other solutions or ways to debug?
2025.03.08 23:03:17 ERROR web[ea1ec6e4-4c9f-4c3a-b93d-e02ab7bf0cc0][o.a.a.a.AadIdentityProvider] Exception:org.sonar.server.authentication.event.AuthenticationException: Cookie ‘OAUTHSTATE’ is missing

We got it fixed by updating the plugin of azure AD from 2.0.0 to 2.0.1

2 Likes