Plugins update, Sonar not starting

Hi !

I’ve just found this unresolved ticket from 2 years ago, I encounter the same problem today, while trying to update a plugin (any plugin, same issue) : Error during SonarScanner execution: Fail to compute md5

We deploy Sonarqube with Bosh, we’ve just updated from 9.9 to 10.5, now it’s in 10.5 but with older plugins, and it works just fine.

As soon as we replace any plugin by a newer version in extensions/plugins, when we restart we get this error :

[o.s.c.a.AnnotationConfigApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@2aae9190-org.sonar.server.plugins.ServerPluginManager': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Fail to compute md5 of /var/vcap/data/packages/sonarqube/534f9ee6a2f10d6298269f0eb3d9d806fdc55b0d/extensions/plugins/mutation-analysis-plugin-1.8.jar
/var/vcap/data/sys/log/sonarqube/web.log:6089:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdk.internal.loader.ClassLoaders$AppClassLoader@2aae9190-org.sonar.server.plugins.ServerPluginManager': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Fail to compute md5 of /var/vcap/data/packages/sonarqube/534f9ee6a2f10d6298269f0eb3d9d806fdc55b0d/extensions/plugins/mutation-analysis-plugin-1.8.jar
/var/vcap/data/sys/log/sonarqube/web.log:6135:Caused by: java.lang.IllegalStateException: Fail to compute md5 of /var/vcap/data/packages/sonarqube/534f9ee6a2f10d6298269f0eb3d9d806fdc55b0d/extensions/plugins/mutation-analysis-plugin-1.8.jar
/var/vcap/data/sys/log/sonarqube/web.log:6144:Caused by: java.io.FileNotFoundException: /var/vcap/data/packages/sonarqube/534f9ee6a2f10d6298269f0eb3d9d806fdc55b0d/extensions/plugins/mutation-analysis-plugin-1.8.jar (No such file or directory)

We also tried to just delete a plugin and we have the same error. What’s the problem ? We probably do something wrong.

And we already checked that this file exists : /var/vcap/data/packages/sonarqube/534f9ee6a2f10d6298269f0eb3d9d806fdc55b0d/extensions/plugins/mutation-analysis-plugin-1.8.jar

Thanks for your help !

Isabelle

Hey there.

Can you go a bit more into detail about your deployment method? Any relevant config files, scripts…

Hi Colin !

Finally, we were able to make it work ! We had tried to upgrade from ubuntu 18 straight to ubuntu 22, and this might have caused some side effect… We stayed on ubuntu 18, upgraded sonar to 10.5, and then we upgraded the plugins, and now it works just fine :woman_shrugging:

We’ll try to update ubuntu later, and we’ll do it in 2 steps : 18>20, then 20>22.

Thank you for your time !

Isabelle

1 Like