Fail to load plugin Findbugs SonarQube 7.4

SonarQube is a very powerful tool, which can be used to inspect your code quality. It is able to detect bugs, code smells, and security vulnerabilities and provides continuous inspections. Many Developers and the whole Teams use this fantastic tool on a daily basis. SonarSource is improving SonarQube, so it’s a normal behavior, that sometimes we need to upgrade our application to a newer version. If you just did that and now you see “Fail to load plugin Findbugs” in your logs, AND you tried to upgrade to the 7.4 version, I think I have a solution of your problem.

Before each upgrade, we should see the changelog and upgrade notes. We should, but we don’t always do that. Hence, sometimes we can see something surprising in our logs. When we want to upgrade SonarQube, we need to check not only the Changelog but also (among others) Plugin Version Matrix. It tells us which plugin version is compatible with the SonarQube version we want to update to. Yes, if you think that this is the problem, in this case, you’re right.

I see Fail to load plugin Findbugs – what should I do?

Ok, so you’ve just upgraded your SonarQube and database (https://SONAR_URL/setup), but your Sonar doesn’t want to become fully operational. Let’s check logs! They (almost) always tell the truth. Ok, so what do we have there…

Hmm, it doesn’t look good, right? But don’t worry! Logs clearly say that the problem is with one of the plugins… So now let’s check Plugin Version Matrix.

Fail to load plugin Findbugs - Plugin Version MAtrix

Do you see that? Yes, this plugin is incompatible with our SonarQube. Hope you have backup… 🙂 However, if you don’t, you can still use SonarQube 7.4.

I want to use SonarQube 7.4, what should I do?

If you don’t want to downgrade (or you are not able to do that – you don’t have backup or it’s the only one, production instance), you can still finish upgrade process. Fail to load plugin Findbugs means not more than… SonarQube cannot load this plugin. Removing this plugin will be enough to complete the upgrade.

I use a docker version with linked PostgreSQL docker, so it is very simple for me to remove that. My version doesn’t use docker volumes, both SonarQube and PostgreSQL use bind mounts. So in my case, I needed to do something like that:

and that was all. After that upgrade process has been finished properly, what you can see in the logs:

Good to check before upgrade:

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.