ERROR ce[][o.s.ce.app.CeServer] Compute Engine startup failed\n",

365 views
Skip to first unread message

nvk...@gmail.com

unread,
Feb 13, 2018, 4:59:50 PM2/13/18
to SonarQube
Hi,

we recently updated to sonar 6.7.1 version and ever since we have not been able to have a stable session of sonar for more than an hour. When we run the dockerfile, it successfully installs SonarQube and the process is up but after a while, say 30 minutes, the compute engine fails and the process is stopped. Please find the attached error logs.

Along with the compute engine failure error, there were couple of other errors sometimes and in the logs attached you can see that there is an error with one of the plugins not being able to be unzipped. I went ahead and commented all the lines involving plugins installation in my dockerfile and then I tried to run it but I still se the same CE error. Also, dropped the db and created a new one and tried the process again but no luck.

nvk...@gmail.com

unread,
Feb 13, 2018, 5:04:28 PM2/13/18
to SonarQube
Here are the logs.


"log":"\u0009... 22 common frames omitted\n","stream":"stdout","time":"2018-02-13T21:46:35.116217197Z"}
{"log":"2018.02.13 21:46:35 ERROR ce[][o.s.ce.app.CeServer] Compute Engine startup failed\n","stream":"stdout","time":"2018-02-13T21:46:35.116220037Z"}
{"log":"java.lang.IllegalStateException: Fail to unzip plugin [csharp] /opt/sonarqube/extensions/plugins/sonar-csharp-plugin-6.7.0.4267.jar to /opt/sonarqube/temp/ce-exploded-plugins/csharp\n","stream":"stdout","time":"2018-02-13T21:46:35.116223082Z"}
{"log":"\u0009at org.sonar.ce.container.CePluginJarExploder.explode(CePluginJarExploder.java:56)\n","stream":"stdout","time":"2018-02-13T21:46:35.116226246Z"}
{"log":"\u0009at org.sonar.core.platform.PluginLoader.defineClassloaders(PluginLoader.java:92)\n","stream":"stdout","time":"2018-02-13T21:46:35.116229272Z"}
{"log":"\u0009at org.sonar.core.platform.PluginLoader.load(PluginLoader.java:72)\n","stream":"stdout","time":"2018-02-13T21:46:35.116232148Z"}
{"log":"\u0009at org.sonar.ce.container.CePluginRepository.start(CePluginRepository.java:71)\n","stream":"stdout","time":"2018-02-13T21:46:35.116235119Z"}
{"log":"\u0009at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n","stream":"stdout","time":"2018-02-13T21:46:35.116238009Z"}{"log":"\u0009at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n","stream":"stdout","time":"2018-02-13T21:46:35.116240963Z"
…………………

{"log":"\u0009at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:315)\n","stream":"stdout","time":"2018-02-13T21:46:35.116521618Z"}
{"log":"\u0009at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:1142)\n","stream":"stdout","time":"2018-02-13T21:46:35.116524457Z"}
{"log":"\u0009at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1091)\n","stream":"stdout","time":"2018-02-13T21:46:35.11652727Z"}
{"log":"\u0009at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1038)\n","stream":"stdout","time":"2018-02-13T21:46:35.116530177Z"}
{"log":"\u0009at org.sonar.ce.container.CePluginJarExploder.explode(CePluginJarExploder.java:52)\n","stream":"stdout","time":"2018-02-13T21:46:35.116533066Z"}
{"log":"\u0009... 22 common frames omitted\n","stream":"stdout","time":"2018-02-13T21:46:35.116536018Z"}
{"log":"2018.02.13 21:46:35 INFO  app[][o.s.a.SchedulerImpl] Process [ce] is stopped\n","stream":"stdout","time":"2018-02-13T21:46:35.534465784Z"}
{"log":"2018.02.13 21:46:35 INFO  web[][o.s.p.StopWatcher] Stopping process\n","stream":"stdout","time":"2018-02-13T21:46:35.931013763Z"}
{"log":"2018.02.13 21:46:35 INFO  web[][o.s.p.StopWatcher] Stopping process\n","stream":"stdout","time":"2018-02-13T21:46:35.931053752Z"}
{"log":"2018.02.13 21:46:38 INFO  app[][o.s.a.SchedulerImpl] Process [web] is stopped\n","stream":"stdout","time":"2018-02-13T21:46:38.946861093Z"}
{"log":"2018.02.13 21:46:38 INFO  app[][o.s.a.SchedulerImpl] SonarQube is stopped\n","stream":"stdout","time":"2018-02-13T21:46:38.946886963Z"}

Eric Hartmann

unread,
Feb 14, 2018, 5:37:01 AM2/14/18
to nvk...@gmail.com, SonarQube
Hi,

Please send the log files in a better form that this one, it's really hard to read.
Anyway, the error is clearly stated in the logs : "Fail to unzip plugin [csharp] /opt/sonarqube/extensions/plugins/sonar-csharp-plugin-6.7.0.4267.jar to /opt/sonarqube/temp/ce-exploded-plugins/csharp".
This happens at startup due to probably incorrect rights on /opt/sonarqube/temp that must be writable for the user running SonarQube.

It does not explain the error you are facing after 30min.

Cheers,

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/1964bf40-b4f7-4fda-bbe3-a79dcf98da26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Eric HARTMANN | SonarSource

nvk...@gmail.com

unread,
Feb 15, 2018, 8:55:27 PM2/15/18
to SonarQube
Hi,

I am running SQ in a kubernetes cluster. Every time I run the deployment job, it spins up a new container and installs SQ on it. But once the deployment fails, it immediately restarts because of which I am not able to export the logs outside the container. Please find the attached logs from the deployment after I removed all the plugins from the Dockerfile.

I have highlighted the errors. In the logs, it says "Realm LDAP not found" but please see the below config in my sonar.properties file.



# LDAP Configuration
sonar.security.realm=LDAP
ldap.url=****************
ldap.bindDn=CN=*****************
ldap.bindPassword={************}
logs.docx

Eric Hartmann

unread,
Feb 16, 2018, 3:23:51 AM2/16/18
to nvk...@gmail.com, SonarQube
Hi,

If you remove the LDAP plugin, that's normal that SonarQube is stopping because you configured it with LDAP, so this error is expected.
It will be quite hard to help you, if you cannot have the log when SonarQube is stopping.

Cheers,



For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages