Scan Fails due to license issue

Hi all,

We have an issue around sonarqube license.
When we scan projects, we often get this error message and the scan fails.

Analyses suspended. The server ID is invalid. Please ask for a license for the server with ID: corrupted

It’s from this API(http://our-host-name/api/ce/task?id=process-id).

We can also see the GUI error message, which says

Last analysis blocked due to an invalid license, which has since been corrected. Please reanalyze this project.

The thing that makes it more complicate is that it doesn’t always happen. Sometimes it succeeds.

We already contacted sales and renewed our license, but it didn’t resolve this issue.

Does anyone know why this happens and the way to fix it?

Thank you


Must-share information (formatted with Markdown):

which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

  • Developer Edition Version 7.6 (build 21501)
  • SonarQube Scanner 3.3.0.1492

what are you trying to achieve

  • No errors when scan completes

what have you tried so far to achieve this

  1. contacted sales and got a new license
  2. set the license
  3. rebuild data/es5 several times

Hello,

The best explanation I see for this kind of erratic behavior is that you’re having another SQ instance connecting to the same database from time to time (could be preproduction, any copy of production started for dev, …).

Cheers,

2 Likes

Hi,

Thanks for your quick answer.

I found an old instance that is still running SQ process, since it auto restarted when it rebooted.
I’ve killed the process and detached it from daemon.

I am getting successful scans now. I think the problems was resolved.

Best Regards,