Sonar - Apply projects exclusions on analysis hangs infinite time

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Sonar - Apply projects exclusions on analysis hangs infinite time

GOENS Jérôme

Hello,

 

I’ve just updated from SonarQube 5.0.1 to 5.1 and am trying to run a full analysis from Jenkins. I didn’t change anything in my configuration while upgrading.

Here is the log of my analysis :

 

<===[JENKINS REMOTING CAPACITY]===>channel started

Executing Maven:  -B -f XXX/jenkins/jobs/rp-parent-TRUNK-sonar/workspace/rp-parent/pom.xml sonar:sonar -e -X -Dsonar.verbose=true

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)

Maven home: XXX/maven/apache-maven-3.2.1

Java version: 1.7.0_55, vendor: Oracle Corporation

Java home: XXX/java/jdk1.7.0_55/jre

Default locale: fr_CH, platform encoding: UTF-8

OS name: "linux", version: "2.6.32-358.14.1.el6.x86_64", arch: "amd64", family: "unix"

[INFO] Error stacktraces are turned on.

[DEBUG] Reading global settings from XXX/maven/apache-maven-3.2.1/conf/settings.xml

[DEBUG] Reading user settings from XXX/.m2/settings.xml

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Build Order:

[INFO]

[INFO] rp-parent

[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building rp-parent XXX-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] --- sonar-maven-plugin:2.5:sonar (default-cli) @ rp-parent ---

[INFO] SonarQube version: 5.1

INFO: Default locale: "fr_CH", source code encoding: "UTF-8"

INFO: Work directory: XXX/jenkins/jobs/rp-parent-TRUNK-sonar/workspace/rp-parent/target/sonar

INFO: SonarQube Server 5.1

[INFO] [10:13:55.514] Load global repositories

[DEBUG] [10:13:55.535] Download: http://localhost:9000/batch/global (no proxy)

[INFO] [10:13:55.982] Load global repositories (done) | time=470ms

[INFO] [10:13:56.014] Server id: 20150518081302

[INFO] [10:13:56.017] User cache: XXX/.sonar/cache

[INFO] [10:13:56.042] Install plugins

[DEBUG] [10:13:56.042] Download index of plugins

[DEBUG] [10:13:56.042] Download: http://localhost:9000/deploy/plugins/index.txt (no proxy)

[DEBUG] [10:13:58.573] Loaded 3365 properties from l10n bundles

[INFO] [10:13:58.581] Install JDBC driver

[DEBUG] [10:13:58.581] Download index of jdbc-driver

[DEBUG] [10:13:58.581] Download: http://localhost:9000/deploy/jdbc-driver.txt (no proxy)

[INFO] [10:13:58.625] Create JDBC datasource for jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance

[DEBUG] [10:13:59.170] Testing JDBC connection

[DEBUG] [10:14:01.591] Download: http://localhost:9000/api/server (no proxy)

[INFO] [10:14:01.652] Initializing Hibernate

[DEBUG] [10:14:01.662] hibernate.generate_statistics: false

[DEBUG] [10:14:01.662] hibernate.dialect: org.sonar.core.persistence.dialect.MySql$MySqlWithDecimalDialect

[DEBUG] [10:14:01.662] hibernate.connection.provider_class: org.sonar.jpa.session.CustomHibernateConnectionProvider

[INFO] [10:14:07.164] Load project repositories

[DEBUG] [10:14:07.173] Download: http://localhost:9000/batch/project?key=ch.rp%3Arp-parent&amp;preview=false (no proxy)

[INFO] [10:14:12.375] Load project repositories (done) | time=5211ms

[INFO] [10:14:12.376] Load project settings

[INFO] [10:14:12.938] Load technical debt model

[DEBUG] [10:14:13.015] Load technical debt model (done) | time=77ms

[INFO] [10:14:13.042] Apply project exclusions

 

With 2.0.1 it takes around 2 seconds but now with 5.1 it’s 10:30 and I’m still stuck there. I tried to upgrade sonar-maven-plugin to 2.6 but still no results.

Do anybody else has the same problem or knows what is wrong ?

 

Thanks

 

Jérôme Goens
Intégrateur JAVA

Retraites Populaires  |  Division services  |  Service informatique
Caroline 9  |  Case postale 288  |  CH-1001 Lausanne
Tél.: 021 348 29 70  |  Fax: 021 348 
[hidden email]  |  www.retraitespopulaires.ch

Retraites Populaires est certifiée ISO 9001.
Pensez à l'environnement: devez-vous vraiment imprimer ce message ?

 

Reply | Threaded
Open this post in threaded view
|

Re: Sonar - Apply projects exclusions on analysis hangs infinite time

Julien HENRY
Hi Jérôme,

The log is confusing. I don't think the issue is in project exclusions but in later step that is not logged (http://jira.codehaus.org/browse/SONAR-6463).

Can you confirm your project is very big regading number of modules?

Would you mind to share (privately) the output file produced with the same command but adding -DsonarRunner.dumpToFile=out.txt

++

Julien


2015-05-18 10:31 GMT+02:00 GOENS Jérôme <[hidden email]>:

Hello,

 

I’ve just updated from SonarQube 5.0.1 to 5.1 and am trying to run a full analysis from Jenkins. I didn’t change anything in my configuration while upgrading.

Here is the log of my analysis :

 

<===[JENKINS REMOTING CAPACITY]===>channel started

Executing Maven:  -B -f XXX/jenkins/jobs/rp-parent-TRUNK-sonar/workspace/rp-parent/pom.xml sonar:sonar -e -X -Dsonar.verbose=true

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)

Maven home: XXX/maven/apache-maven-3.2.1

Java version: 1.7.0_55, vendor: Oracle Corporation

Java home: XXX/java/jdk1.7.0_55/jre

Default locale: fr_CH, platform encoding: UTF-8

OS name: "linux", version: "2.6.32-358.14.1.el6.x86_64", arch: "amd64", family: "unix"

[INFO] Error stacktraces are turned on.

[DEBUG] Reading global settings from XXX/maven/apache-maven-3.2.1/conf/settings.xml

[DEBUG] Reading user settings from XXX/.m2/settings.xml

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Build Order:

[INFO]

[INFO] rp-parent

[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building rp-parent XXX-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] --- sonar-maven-plugin:2.5:sonar (default-cli) @ rp-parent ---

[INFO] SonarQube version: 5.1

INFO: Default locale: "fr_CH", source code encoding: "UTF-8"

INFO: Work directory: XXX/jenkins/jobs/rp-parent-TRUNK-sonar/workspace/rp-parent/target/sonar

INFO: SonarQube Server 5.1

[INFO] [10:13:55.514] Load global repositories

[DEBUG] [10:13:55.535] Download: http://localhost:9000/batch/global (no proxy)

[INFO] [10:13:55.982] Load global repositories (done) | time=470ms

[INFO] [10:13:56.014] Server id: 20150518081302

[INFO] [10:13:56.017] User cache: XXX/.sonar/cache

[INFO] [10:13:56.042] Install plugins

[DEBUG] [10:13:56.042] Download index of plugins

[DEBUG] [10:13:56.042] Download: http://localhost:9000/deploy/plugins/index.txt (no proxy)

[DEBUG] [10:13:58.573] Loaded 3365 properties from l10n bundles

[INFO] [10:13:58.581] Install JDBC driver

[DEBUG] [10:13:58.581] Download index of jdbc-driver

[DEBUG] [10:13:58.581] Download: http://localhost:9000/deploy/jdbc-driver.txt (no proxy)

[INFO] [10:13:58.625] Create JDBC datasource for jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance

[DEBUG] [10:13:59.170] Testing JDBC connection

[DEBUG] [10:14:01.591] Download: http://localhost:9000/api/server (no proxy)

[INFO] [10:14:01.652] Initializing Hibernate

[DEBUG] [10:14:01.662] hibernate.generate_statistics: false

[DEBUG] [10:14:01.662] hibernate.dialect: org.sonar.core.persistence.dialect.MySql$MySqlWithDecimalDialect

[DEBUG] [10:14:01.662] hibernate.connection.provider_class: org.sonar.jpa.session.CustomHibernateConnectionProvider

[INFO] [10:14:07.164] Load project repositories

[DEBUG] [10:14:07.173] Download: http://localhost:9000/batch/project?key=ch.rp%3Arp-parent&amp;preview=false (no proxy)

[INFO] [10:14:12.375] Load project repositories (done) | time=5211ms

[INFO] [10:14:12.376] Load project settings

[INFO] [10:14:12.938] Load technical debt model

[DEBUG] [10:14:13.015] Load technical debt model (done) | time=77ms

[INFO] [10:14:13.042] Apply project exclusions

 

With 2.0.1 it takes around 2 seconds but now with 5.1 it’s 10:30 and I’m still stuck there. I tried to upgrade sonar-maven-plugin to 2.6 but still no results.

Do anybody else has the same problem or knows what is wrong ?

 

Thanks

 

Jérôme Goens
Intégrateur JAVA

Retraites Populaires  |  Division services  |  Service informatique
Caroline 9  |  Case postale 288  |  CH-1001 Lausanne
Tél.: 021 348 29 70  |  Fax: 021 348 
[hidden email]  |  www.retraitespopulaires.ch

Retraites Populaires est certifiée ISO 9001.
Pensez à l'environnement: devez-vous vraiment imprimer ce message ?