License Errors
License Expired Errors
You must renew your subscription by entering a new license key if your subscription has expired and you can no longer access your CodeScan account. For your subscription extension and the proper license key, reach out to our support team.
However, if the system throws the following error message after you enter a new license key, you need to identify where the expired license key is being passed on and update it with the new license key.
A CodeScan license key can be entered via the following ways:
SonarQube UI
Command Line parameter [-Dsf.license.secured]
In the sonar.properties, codescan.properties or sfdx-project.json inside the project folder considered for analysis
In the SonarQube-{version} installation folder Example: sonarqube-1.0.12345/conf/sonar.properties
System environment variable: Add an environment variable called codescanLicense containing the license on the user's machine.
Variable name: codescanLicense
Value: <License_Key>
Proxy Errors
The most common problem with licensing problems are when your network has a proxy. This can cause licensing problems including:
Couldn't fetch license for unlicensed product is sometimes coupled with something similar to:
This is the proxy replying with an HTML error page when a JSON object is expected.
See here for instructions on how to set up CodeScan on a network with a proxy.
Version Errors
Licensing version problems can occur with older versions of CodeScan. When this occurs, you will see the following error:
This can be avoided by updating to the latest version of CodeScan.
If this is not an option, contact Support for assistance and we will provide you with the appropriate license version.
Line Count Problems
Licensing problems can occur when you are operating outside the Terms of Service.
This can be avoided by increasing your license limit or reducing the lines of code you are scanning. More information: CodeScan License Issues (IDE)
Please reach out to CodeScan Support for any queries about your license.
Last updated