sonar.scm.url is not working for encrypted password : bug

535 views
Skip to first unread message

saur...@gmail.com

unread,
Nov 27, 2015, 7:57:30 AM11/27/15
to SonarQube
Hi

Sonarqube 5.1 with SVN plugin 1.2 is not working  encrypted password and giving below error-

[WARN] [03:45:56.996] Fail to retrieve SCM info. Reason: The svn command failed.
svn: OPTIONS of 'http://******': authorization failed: Could not authenticate to server: rejected Basic challenge (http://*******)

However, when i give password in plain text it works like charm but we should not expose password in our jenkins. Request to help for fix for this bug.

Julien HENRY

unread,
Nov 27, 2015, 9:24:53 AM11/27/15
to SonarQube, saur...@gmail.com
Hi,

Are you using SonarQube encryption mechanism? Do you have configured the secret key?

++

Julien

saurabh ahuja

unread,
Nov 27, 2015, 10:31:10 PM11/27/15
to Julien HENRY, SonarQube
Need to check. Give me sometime

7:54 pm, 27 November 2015, Julien HENRY <julien...@sonarsource.com>:
--
Sent from mobile

Saurabh Ahuja

unread,
Nov 30, 2015, 5:35:13 AM11/30/15
to Julien HENRY, SonarQube
I checked with encryption mechanism-

i got below error-

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar (default-cli) on project ****: Fail to decrypt the property sonar.svn.password.secured. Please check your secret key. The property sonar.secretKeyPath does not link to a valid file: /users/*******/.sonar/sonar-secret.txt -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar (default-cli) on project ***********: Fail to decrypt the property sonar.svn.password.secured. Please check your secret key.
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Fail to decrypt the property sonar.svn.password.secured. Please check your secret key.
	at org.codehaus.mojo.sonar.bootstrap.ExceptionHandling.handle(ExceptionHandling.java:41)
	at org.codehaus.mojo.sonar.bootstrap.RunnerBootstrapper.execute(RunnerBootstrapper.java:104)
	at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:135)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
	... 19 more
Caused by: java.lang.IllegalStateException: Fail to decrypt the property sonar.svn.password.secured. Please check your secret key.

--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/Yngyqj-KQFY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/1500961448681468%40web15o.yandex.ru.

For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Saurabh Ahuja

saur...@gmail.com

unread,
Dec 2, 2015, 7:03:18 AM12/2/15
to SonarQube, saur...@gmail.com
Hi

I think i should not put secret kay path in jenkins job, so i removed it now but still getting same error-

[WARN] [04:01:54.943] Fail to retrieve SCM info. Reason: The svn command failed.
svn: OPTIONS of 'http://**************': authorization failed: Could not authenticate to server: rejected Basic challenge (http://***-svn)

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar (default-cli) on project RMFService: Fail to decrypt the property sonar.svn.password.secured. Please check your secret key. The property sonar.secretKeyPath does not link to a valid file: /users/cstgeet/.sonar/sonar-secret.txt -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.7.1:sonar (default-cli) on project RMFService: Fail to decrypt the property sonar.svn.password.secured. Please check your secret key.
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Fail to decrypt the property sonar.svn.password.secured. Please check your secret key.

saur...@gmail.com

unread,
Dec 2, 2015, 7:04:21 AM12/2/15
to SonarQube, saur...@gmail.com
i think this is bug in sonarqube where ecnryption mechanism dont work for svn from jenkins


On Friday, November 27, 2015 at 6:27:30 PM UTC+5:30, saur...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages