: Error 500 sonarqube

6,221 views
Skip to first unread message

Deviprasath Natarajan

unread,
Feb 14, 2017, 7:23:07 AM2/14/17
to SonarQube
Hello,

I have issue in sending the report from the maven to sonar server, I'm able to open the sonarqube instance which is connected to mysql but not able send the scan to the server to see the report from http://10.6.33.1:9000/sonarqube/.

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default) on project xxxments_subsystem-pa
me=psssnts%20subsystem%20-%20aggregate : {"errors":[{"msg":"An error has occurred. Please contact your administrator."}]} -> [Help
1]

Br,
Dp

Deviprasath Natarajan

unread,
Feb 14, 2017, 7:40:20 AM2/14/17
to SonarQube

Caused by: org.sonarqube.ws.client.HttpException: Error 500 on http://10.6.105.1:9000/sonarqube/api/ce/submit?projectKey=com.paf
ments:payments_subsystem-aggregate&projectName=payments%20subsystem%20-%20aggregate : {"errors":[{"msg":"An error has occurred.
se contact your administrator."}]}
        at org.sonarqube.ws.client.BaseResponse.failIfNotSuccessful(BaseResponse.java:36)
        at org.sonar.scanner.bootstrap.BatchWsClient.failIfUnauthorized(BatchWsClient.java:102)
        at org.sonar.scanner.bootstrap.BatchWsClient.call(BatchWsClient.java:71)
        at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:173)
        at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:128)
        at org.sonar.scanner.phases.PublishPhaseExecutor.publishReportJob(PublishPhaseExecutor.java:64)
        at org.sonar.scanner.phases.PublishPhaseExecutor.executeOnRoot(PublishPhaseExecutor.java:51)
        at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:81)
        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:182)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:247)
        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:242)
        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:232)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
        at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)
        at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:86)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)
        at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:115)
        at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:116)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy23.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)
        at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)
        at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute(ScannerBootstrapper.java:78)
        ... 23 more

Julien Lancelot

unread,
Feb 14, 2017, 7:49:33 AM2/14/17
to Deviprasath Natarajan, SonarQube
Hi,

Could you please send us the server's logs ?

Thanks.
Regards

--
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/761fb145-ef4c-4159-a32f-ed942a147d8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Julien LANCELOT | SonarSource

Deviprasath Natarajan

unread,
Feb 14, 2017, 8:15:39 AM2/14/17
to Julien Lancelot, SonarQube
Thanks for the reply.

        ... 41 common frames omitted
2017.02.14 14:39:42 ERROR web[AVoY8eXUAk9kIpj4AAP3][o.s.s.w.WebServiceEngine] Fail to process request http://10.6.105.1:9000/sonarqube/api/ce/submit?projectKey=com.paf.payments:payments_subsystem-aggregate&projectName=payments%20subsystem%20-%20aggregate
java.lang.IllegalStateException: Can't read file part
        at org.sonar.server.ws.ServletRequest.readPart(ServletRequest.java:102)
        at org.sonar.server.ws.ServletRequest.readInputStreamParam(ServletRequest.java:85)
        at org.sonar.api.server.ws.internal.ValidatingRequest.paramAsInputStream(ValidatingRequest.java:86)
        at org.sonar.server.ce.ws.SubmitAction.handle(SubmitAction.java:87)
        at org.sonar.server.ws.WebServiceEngine.execute(WebServiceEngine.java:108)
        at org.sonar.server.ws.WebServiceFilter.doFilter(WebServiceFilter.java:74)
        at org.sonar.server.platform.web.MasterServletFilter$GodFilterChain.doFilter(MasterServletFilter.java:126)
        at org.sonar.server.platform.web.MasterServletFilter.doFilter(MasterServletFilter.java:95)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.sonar.server.user.UserSessionFilter.doFilter(UserSessionFilter.java:83)
        at org.sonar.server.user.UserSessionFilter.doFilter(UserSessionFilter.java:66)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.sonar.server.platform.web.SecurityServletFilter.doHttpFilter(SecurityServletFilter.java:73)
        at org.sonar.server.platform.web.SecurityServletFilter.doFilter(SecurityServletFilter.java:49)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.sonar.server.platform.web.RoutesFilter.doFilter(RoutesFilter.java:55)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.sonar.server.platform.web.requestid.RequestIdFilter.doFilter(RequestIdFilter.java:63)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.sonar.server.platform.web.RootFilter.doFilter(RootFilter.java:62)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
        at ch.qos.logback.access.tomcat.LogbackValve.invoke(LogbackValve.java:256)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
        at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: The temporary upload location [/home/payment/Desktop/sonarqube-6.2/temp/tc/work/Tomcat/localhost/sonarqube] is not valid


To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.

Julien Lancelot

unread,
Feb 15, 2017, 4:37:56 AM2/15/17
to Deviprasath Natarajan, SonarQube
Please don't forget to send the email to the mailing list.

Could you please send us last lines of logs/web.log ?

Regards,

On Tue, 14 Feb 2017 at 14:55 Deviprasath Natarajan <deviprasat...@paf.com> wrote:
Hi Julien,

Now I cleared the tmp folder then I got the below error.

2017.02.14 15:53:08 INFO  app[][o.s.p.m.JavaProcessLauncher] Launch process[web]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-4.b16.fc25.x86_64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Djruby.compile.invokedynamic=false -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/home/payment/Desktop/sonarqube-6.2/temp -javaagent:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.111-4.b16.fc25.x86_64/jre/lib/management-agent.jar -cp ./lib/common/*:./lib/server/*:/home/payment/Desktop/sonarqube-6.2/lib/jdbc/mysql/mysql-connector-java-5.1.39.jar org.sonar.server.app.WebServer /home/payment/Desktop/sonarqube-6.2/temp/sq-process618044408972967006properties
2017.02.14 15:53:16 INFO  app[][o.s.p.m.Monitor] Process[es] is stopping
2017.02.14 15:53:16 ERROR app[][o.s.p.m.Monitor] Process[web] failed to start
2017.02.14 15:53:17 INFO  app[][o.s.p.m.Monitor] Process[es] is stopped
<-- Wrapper Stopped



On Tue, Feb 14, 2017 at 2:49 PM, Julien Lancelot <julien....@sonarsource.com> wrote:

Deviprasath Natarajan

unread,
Feb 15, 2017, 4:40:43 AM2/15/17
to Julien Lancelot, SonarQube
Weblog:


 java.lang.Thread.run(Thread.java:745)
2017.02.15 09:46:54 WARN  web[][o.a.c.l.WebappClassLoaderBase] The web application [sonarqube] appears to have started a thread named [elasticsearch[White Tiger][transport_client_timer][T#1]{Hashed wheel timer #1}] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Thread.sleep(Native Method)
 org.jboss.netty.util.HashedWheelTimer$Worker.waitForNextTick(HashedWheelTimer.java:445)
 org.jboss.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:364)
 org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
 java.lang.Thread.run(Thread.java:745)
2017.02.15 09:46:54 WARN  web[][o.a.c.l.WebappClassLoaderBase] The web application [sonarqube] appears to have started a thread named [elasticsearch[White Tiger][generic][T#1]] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 sun.misc.Unsafe.park(Native Method)
 java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
 java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460)
 java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:362)
 java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:941)
 java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1066)
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1127)
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
 java.lang.Thread.run(Thread.java:745)
2017.02.15 09:46:54 WARN  web[][o.a.c.l.WebappClassLoaderBase] The web application [sonarqube] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Object.wait(Native Method)
 java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
 com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
2017.02.15 09:46:54 WARN  web[][o.a.c.l.WebappClassLoaderBase] The web application [sonarqube] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Object.wait(Native Method)
 java.util.TimerThread.mainLoop(Timer.java:552)
 java.util.TimerThread.run(Timer.java:505)
2017.02.15 09:46:54 INFO  web[][o.a.c.h.Http11NioProtocol] Starting ProtocolHandler ["http-nio-10.6.105.1-9000"]
2017.02.15 09:46:54 INFO  web[][o.s.s.a.TomcatAccessLog] Web server is started
2017.02.15 09:46:54 INFO  web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2017.02.15 09:46:54 WARN  web[][o.s.p.ProcessEntryPoint] Fail to start web
java.lang.IllegalStateException: Webapp did not start
        at org.sonar.server.app.EmbeddedTomcat.isUp(EmbeddedTomcat.java:84)
        at org.sonar.server.app.WebServer.isUp(WebServer.java:46)
        at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:105)
        at org.sonar.server.app.WebServer.main(WebServer.java:67)
2017.02.15 09:46:54 INFO  web[][o.a.c.h.Http11NioProtocol] Pausing ProtocolHandler ["http-nio-10.6.105.1-9000"]
2017.02.15 09:46:55 INFO  web[][o.a.c.h.Http11NioProtocol] Stopping ProtocolHandler ["http-nio-10.6.105.1-9000"]
2017.02.15 09:46:55 INFO  web[][o.a.c.h.Http11NioProtocol] Destroying ProtocolHandler ["http-nio-10.6.105.1-9000"]
2017.02.15 09:46:55 INFO  web[][o.s.s.a.TomcatAccessLog] Web server is stopped






Regards,


To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
--
Julien LANCELOT | SonarSource

Julien Lancelot

unread,
Feb 16, 2017, 7:40:05 AM2/16/17
to Deviprasath Natarajan, SonarQube
You should check earlier in the log to search for some some ERROR logs

Regards,


To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
--
Julien LANCELOT | SonarSource
--
Julien LANCELOT | SonarSource

wuwe...@gmail.com

unread,
Apr 10, 2017, 12:37:55 AM4/10/17
to SonarQube, deviprasat...@paf.com
I have the same problem.

2017.04.10 12:21:57 ERROR web[AVtTgXFpCle520UCAJ3P][o.s.s.w.WebServiceEngine] Fail to process request http://sonar.dev.ofpay.com/api/ce/submit?projectKey=com.ofpay.ofrc:ofrc-ofrg&projectName=ofrc-ofrg
java.lang.IllegalStateException: Fail to insert data of CE task AVtWGM3pmCvW26yhnR2U
at org.sonar.db.ce.CeTaskInputDao.insert(CeTaskInputDao.java:56)
at org.sonar.server.computation.queue.ReportSubmitter.submitReport(ReportSubmitter.java:133)
at org.sonar.server.computation.queue.ReportSubmitter.submit(ReportSubmitter.java:80)
....
Caused by: com.mysql.jdbc.PacketTooBigException: Packet for query is too large (4422007 > 4194304). You can change this value on the server by setting the max_allowed_packet' variable.
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3671)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2508)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2673)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2549)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1861)
at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2073)
at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2009)
at com.mysql.jdbc.PreparedStatement.executeLargeUpdate(PreparedStatement.java:5098)
at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1994)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at org.sonar.db.ce.CeTaskInputDao.insert(CeTaskInputDao.java:53)


在 2017年2月16日星期四 UTC+8下午8:40:05,Julien Lancelot写道:

Simon Brandhof

unread,
Apr 10, 2017, 1:56:31 AM4/10/17
to wuwe...@gmail.com, SonarQube, deviprasat...@paf.com
Hi,

As described by the message "Packet for query is too large. You can change this value on the server by setting the max_allowed_packet' variable", the default packet size on MySQL is too small. You should fix the MySQL configuration by editing the file my.cnf :

[mysqld]
max_allowed_packet = 16M

(or bigger value).

Regards



For more options, visit https://groups.google.com/d/optout.
--
Simon BRANDHOF | SonarSource
Tech Lead & Co-Founder
http://twitter.com/SimonBrandhof

gurup...@techjini.com

unread,
Jun 17, 2017, 12:05:25 AM6/17/17
to SonarQube, wuwe...@gmail.com, deviprasat...@paf.com
Hi,

INFO: 1094/1094 files analyzed
INFO: 72 files had no CPD blocks
INFO: Calculating CPD for 866 files
INFO: CPD calculation finished
INFO: Analysis report generated in 914ms, dir size=10 MB
INFO: Analysis reports compressed in 1617ms, zip size=4 MB
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 56.745s
INFO: Final Memory: 53M/932M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: Failed to upload report - 500: An error has occurred. Please contact your administrator
ERROR: 
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.
ERROR: SonarQube scanner exited with non-zero code: 1
Finished: FAILURE


Any one can help me.

Julien Lancelot

unread,
Jun 19, 2017, 2:45:56 AM6/19/17
to SonarQube
Hi,

Could you please send us more information on the error ?
Is it the same error as the one that has started this thread ? If no, please start another thread on the mailing list.

Thanks.


For more options, visit https://groups.google.com/d/optout.
--
Julien Lancelot | SonarSource
Reply all
Reply to author
Forward
Message has been deleted
Message has been deleted
0 new messages