Developer Edition license renewed, but pipeline reports invalid license

Our previous license was about to expire, so we renewed it and updated the license in the SonarQube instance. But since today, the following inconsistent behavior occurs:

Our Azure DevOps pipelines fail during the “Prepare Analysis” step with the error: “Your SonarQube instance seems to have an invalid license. Please check it.”

The Administration → License page displays the new license and shows it as valid (Edition: Developer, Production, expiring 2027-08-18). However, calling the API endpoint /api/editions/is_valid_license returns: {“isValidLicense”:false}

SonarQube version: 2025.4.1 (build 111832), in Windows-Server
Edition: Developer Edition
Symptom: After renewing our license, the Administration UI shows the license as valid, but /api/editions/is_valid_license returns {“isValidLicense”:false}. Azure DevOps pipelines fail with “Your SonarQube instance seems to have an invalid license.”
Already tried: Restarted the server multiple times; no license errors in web.log / ce.log;

Hi @LeiXu,

The contradictory behaviour you’re seeing with the UI showing the license as valid while /api/editions/is_valid_license returns false, is a known bug in SonarQube Server 2025.4.0 and 2025.4.1 (SONAR-25635).

There is a defect in the license key check in those specific versions that causes the API to incorrectly report the license as invalid even when it isn’t.

Your license renewal is likely fine, the UI is correctly reflecting the new key expiring 2027-08-18. The problem is the bug in the version of SonarQube, not the license.

In order to fix this you will need to upgrade to patch version 2025.4.2 or any later release. Once you’re past 2025.4.1, the license check will work correctly and your pipelines should pass again.

Hope that helps.

Best regards,

Stevan

Hi Stevan,

Following your recommendations, we upgraded SonarQube Server to the version 2025.4.8.125717, and I am happy to confirm that the problem is now fully resolved. The pipeline analysis is working correctly again.

Thank you again for your help and for the clear and timely instructions !

Best regards,
Lei