porscheinformatik / sonarqube-licensecheck

SonarQube Licensecheck Plugin
Apache License 2.0
156 stars 58 forks source link

After adding SPDX list, getting error on Administration->System #420

Open mahalekiran opened 5 months ago

mahalekiran commented 5 months ago

Hello Team, This is to inform you that we have installed License-check plugin in SQ instance. After Adding SPDX List option in Administration->Configuration -> License check, we are getting error on Administration->System. It says "An error has occurred. Please contact administrator".

Also is there any way to delete all SPDX list?

Malgosiatobiasz1 commented 4 months ago

sonarqube version 10.2.1

in addition to the error described in the comment above, duplicate key in database errors were also observed in the logs:

java.lang.IllegalStateException: Duplicate key licensecheck.license-set.3.id (attempted merging values Abstyles and Abstyles)

    at java.base/java.util.stream.Collectors.duplicateKeyException(Unknown Source)

There are approximately 1.5 thousand duplicate keys like 'licensecheck.%' in the database.

Simply uninstalling the plugin does not remove duplicate keys from the database, nor does it solve the error mentioned in the comment above.

vineethng commented 3 months ago

I faced the same issue, I uninstalled the plugin and restarted the server and installed the plugin again. After installing, you need to import the SPDX list again from the Configuration-> License check. This worked for me.