Errors Running Sonar-Runner - Please see log

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Errors Running Sonar-Runner - Please see log

Kyle Smith
SonarQube Runner 2.4

Java 1.7.0_25 Oracle Corporation (64-bit)

Linux 2.6.32-358.14.1.el6.x86_64 amd64

SONAR_RUNNER_OPTS=-Xms256m -Xmx1536m -XX:+UseG1GC

INFO: Error stacktraces are turned on.

INFO: Runner configuration file: /app/new_sonar/runner/sonar-runner-2.4/conf/sonar-runner.properties

INFO: Project configuration file: NONE

INFO: SonarQube Server 4.3.1
15:55:34.840 
INFO  - Load batch settings
15:55:34.850 
DEBUG - Download: http://localhost:9000/batch_bootstrap/properties?dryRun=false (no proxy)
15:55:34.928 
INFO  - User cache: /app/sonar/.sonar/cache
15:55:34.941 
INFO  - Install plugins
15:55:34.941 
DEBUG - Download index of plugins
15:55:34.941
 DEBUG - Download: http://localhost:9000/deploy/plugins/index.txt (no proxy)
15:55:35.274
 INFO  - Install JDBC driver
15:55:35.274 

DEBUG - Download index of jdbc-driver
15:55:35.274
 DEBUG - Download: http://localhost:9000/deploy/jdbc-driver.txt (no proxy)
15:55:35.279 
INFO  - Create JDBC datasource for jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8
15:55:35.525
 DEBUG - Testing JDBC connection
15:55:36.523
 DEBUG - Download: http://localhost:9000/api/server (no proxy)
15:55:36.544
 INFO  - Initializing Hibernate
15:55:36.545 
DEBUG - hibernate.generate_statistics: false
15:55:36.546
 DEBUG - hibernate.dialect: org.sonar.core.persistence.dialect.MySql$MySqlWithDecimalDialect
15:55:36.546
 DEBUG - hibernate.connection.provider_class: org.sonar.jpa.session.CustomHibernateConnectionProvider
15:55:37.328
 DEBUG - Loaded 3675 properties from l10n bundles
15:55:37.876 
ERROR - Server ID is invalid. Please check settings.
15:55:37.891 
ERROR - No license for plugin views
15:55:37.934 
DEBUG - To prevent a memory leak, the JDBC Driver [com.mysql.jdbc.Driver] has been forcibly deregistered

INFO: ------------------------------------------------------------------------

INFO: EXECUTION FAILURE

INFO: ------------------------------------------------------------------------

Total time: 3.627s

Final Memory: 17M/256M

INFO: ------------------------------------------------------------------------


I am having some problems running sonar-runner. I have what I think is a valid source for code but I may have other issues as well. Can someone help decipher this and point me in the right direction?

Regards,

Reply | Threaded
Open this post in threaded view
|

Re: Errors Running Sonar-Runner - Please see log

willman
The error is at the second to last line: "ERROR - No license for plugin views"

The views plugin is under a commercial license. You have to pay to use it.
Reply | Threaded
Open this post in threaded view
|

Re: Errors Running Sonar-Runner - Please see log

Kyle Smith
Willman,

Thanks for the reply. I noticed that this is not the only error though. If I uninstall the plugin won't it still fail?

Regards,
Reply | Threaded
Open this post in threaded view
|

Re: Errors Running Sonar-Runner - Please see log

G. Ann Campbell
The first error also relates to licensing. Remove the views plugin (or work with our sales team to buy a license :-) and your analysis should work fine.


On Wed, Jun 25, 2014 at 7:15 PM, What_Just_Happened <[hidden email]> wrote:
Willman,

Thanks for the reply. I noticed that this is not the only error though. If I
uninstall the plugin won't it still fail?

Regards,




--
View this message in context: http://sonarqube.15.x6.nabble.com/Errors-Running-Sonar-Runner-Please-see-log-tp5026068p5026070.html
Sent from the SonarQube Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email





--
G. Ann CAMPBELL | SonarSource
Reply | Threaded
Open this post in threaded view
|

Re: Errors Running Sonar-Runner - Please see log

Kyle Smith
I uninstalled the plugin but still receive
EXECUTION FAILURE
 
Now I receive one main error that says:
Caused by: The folder 'some\path\to\source_code' does not exist for 'MyProject:Project1' (base directory = /tmp/code/MyProject/.)


09:09:41.972 ERROR - Server ID is invalid. Please check settings.
09:09:42.004 ERROR - Invalid value of sonar.sources for MyProject:Project1
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 3.737s
Final Memory: 16M/256M
INFO: ------------------------------------------------------------------------
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: The folder 'some\path\to\source_code' does not exist for 'MyProject:Project1' (base directory = /tmp/code/MyProject/.)
ERROR:
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.

Reply | Threaded
Open this post in threaded view
|

Re: Errors Running Sonar-Runner - Please see log

G. Ann Campbell
It's pretty clear (emphasis mine):

"Caused by: The folder 'some\path\to\source_code' does not exist for 'MyProject:Project1' (base directory = /tmp/code/MyProject/.)"


On Thu, Jun 26, 2014 at 10:20 AM, What_Just_Happened <[hidden email]> wrote:
I uninstalled the plugin but still receive

Now I receive one main error that says:





--
View this message in context: http://sonarqube.15.x6.nabble.com/Errors-Running-Sonar-Runner-Please-see-log-tp5026068p5026114.html
Sent from the SonarQube Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email





--
G. Ann CAMPBELL | SonarSource
Reply | Threaded
Open this post in threaded view
|

Re: Errors Running Sonar-Runner - Please see log

Kyle Smith
Ann,

Thank-you for clarifying that error message.

Regards,