Sonarqube: Job fails with Couldn't delete lock file: .././.sonar_lock java.nio.file.NoSuchFileException

1,503 views
Skip to first unread message

Shashank Devan

unread,
Jun 14, 2016, 1:12:22 PM6/14/16
to SonarQube
I am running 'gradle sonarqube --stacktrace' which fails with the following exception:

Analysis report generated in /Users/shashank.devan/dev/myproject/build/sonar/batch-report
23:38:14.994 DEBUG - Couldn't delete lock file: /Users/shashank.devan/dev/myproject/./.sonar_lock java.nio.file.NoSuchFileException: /Users/shashank.devan/dev/myproject/./.sonar_lock
> Buildiat sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)
    at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
    at java.nio.file.Files.delete(Files.java:1126)
    at org.sonar.home.cache.DirectoryLock.unlock(DirectoryLock.java:98)
    at org.sonar.batch.scan.ProjectLock.stop(ProjectLock.java:57)..
..
 What went wrong:
Execution failed for task ':myproject:sonarqube'.
> Unable to execute Sonar
Did I miss something? The job worked fine in other directories of the subprojects. Is this a known issue in sonar?

G. Ann Campbell

unread,
Jun 15, 2016, 3:56:44 AM6/15/16
to SonarQube
Please don't cross-post here and on StackOverflow. Both channels are answered "at best" by the community, and you've just used a twice your fair share of community time and attention.


Ann

Julien HENRY

unread,
Jun 17, 2016, 12:07:05 PM6/17/16
to SonarQube
Hi,

Please provide more logs since this error is in fact hiding the original cause. The real error should be right before (may need to enable verbose mode with --debug).

++

Julien

Shashank Devan

unread,
Jul 6, 2016, 5:01:41 PM7/6/16
to SonarQube
Here are the complete logs -

13:21:56.074 [QUIET] [system.out] 13:21:56.074 INFO  - Sensor CPD Sensor (wrapped) (done) | time=119ms

 

13:21:56.075 [QUIET] [system.out] 13:21:56.075 INFO  - -------------  Scan load-test

13:21:56.103 [QUIET] [system.out] 13:21:56.103 DEBUG - [GERRIT PLUGIN] Instanciating GerritInitializer

13:21:56.103 [QUIET] [system.out] 13:21:56.103 INFO  - [GERRIT PLUGIN] changeId or revisionId is empty. Not called from Gerrit ? Soft-disabling myself.

13:21:56.104 [QUIET] [system.out] 13:21:56.104 INFO  - [GERRIT PLUGIN] Initializer : will NOT execute plugin on project 'load-test'.

13:21:56.104 [QUIET] [system.out] 13:21:56.104 DEBUG - [GERRIT PLUGIN] Verifying configuration settings

13:21:56.104 [QUIET] [system.out] GerritConfiguration [valid=false, enabled=true, scheme=http, host=null, port=80, anonymous=true, username=null, password=blank, authScheme=digest, basePath=/, sshKeyPath=null, label=Code-Review, message=Sonar review at ${sonar.host.url}, issueComment=[${issue.isNew}] New: ${issue.ruleKey} Severity: ${issue.severity}, Message: ${issue.message}, threshold=INFO, voteNoIssue=1,voteBelowThreshold=1,voteAboveThreshold=-1,commentNewIssuesOnly=false, projectName=null, branchName=null, changeId=null, revisionId=null, 'forceBranch=false]

13:21:56.104 [QUIET] [system.out] 13:21:56.104 INFO  - [GERRIT PLUGIN] changeId or revisionId is empty. Not called from Gerrit ? Soft-disabling myself.

13:21:56.104 [QUIET] [system.out] 13:21:56.104 ERROR - [GERRIT PLUGIN] ServerConfiguration is not valid : GerritConfiguration [valid=false, enabled=true, scheme=http, host=null, port=80, anonymous=true, username=null, password=blank, authScheme=digest, basePath=/, sshKeyPath=null, label=Code-Review, message=Sonar review at ${sonar.host.url}, issueComment=[${issue.isNew}] New: ${issue.ruleKey} Severity: ${issue.severity}, Message: ${issue.message}, threshold=INFO, voteNoIssue=1,voteBelowThreshold=1,voteAboveThreshold=-1,commentNewIssuesOnly=false, projectName=null, branchName=null, changeId=null, revisionId=null, 'forceBranch=false]

13:21:56.104 [QUIET] [system.out] 13:21:56.104 INFO  - [GERRIT PLUGIN] changeId or revisionId is empty. Not called from Gerrit ? Soft-disabling myself.

13:21:56.104 [QUIET] [system.out] 13:21:56.104 ERROR - [GERRIT PLUGIN] ReviewConfiguration is not valid : GerritConfiguration [valid=false, enabled=true, scheme=http, host=null, port=80, anonymous=true, username=null, password=blank, authScheme=digest, basePath=/, sshKeyPath=null, label=Code-Review, message=Sonar review at ${sonar.host.url}, issueComment=[${issue.isNew}] New: ${issue.ruleKey} Severity: ${issue.severity}, Message: ${issue.message}, threshold=INFO, voteNoIssue=1,voteBelowThreshold=1,voteAboveThreshold=-1,commentNewIssuesOnly=false, projectName=null, branchName=null, changeId=null, revisionId=null, 'forceBranch=false]

13:21:56.104 [QUIET] [system.out] 13:21:56.104 INFO  - [GERRIT PLUGIN] Initializer : Configuration is not valid, will not execute.

13:21:56.104 [QUIET] [system.out] 13:21:56.104 DEBUG - Initializers :  

13:21:56.104 [QUIET] [system.out] 13:21:56.104 INFO  - Base dir: /
Users/shashank.devan/dev/codebase/controller/controller-eventsvc/load-test

13:21:56.104 [QUIET] [system.out] 13:21:56.104 INFO  - Working dir: /Users/shashank.devan/dev/codebase/controller/controller-eventsvc/build/sonar/codebase.controller.controller-eventsvc_load-test

13:21:56.105 [QUIET] [system.out] 13:21:56.105 INFO  - Source paths: ../core/src/main/java, src/main/java

13:21:56.105 [QUIET] [system.out] 13:21:56.105 INFO  - Test paths: src/test/java

13:21:56.105 [QUIET] [system.out] 13:21:56.105 INFO  - Binary dirs: build/classes/main, build/resources/main

13:21:56.105 [QUIET] [system.out] 13:21:56.105 INFO  - Source encoding: UTF-8, default locale: en_US

13:21:56.105 [QUIET] [system.out] 13:21:56.105 INFO  - Index files

13:21:56.106 [QUIET] [system.out] 13:21:56.106 INFO  - Excluded sources:  

13:21:56.106 [QUIET] [system.out] 13:21:56.106 INFO  -   src/main/java/com/singularity/ee/controller/beans/cache/*

13:21:56.106 [QUIET] [system.out] 13:21:56.106 DEBUG - Declared extensions of language Python were converted to sonar.lang.patterns.py : **/
*.py

13:21:56.106 [QUIET] [system.out] 13:21:56.106 DEBUG - Declared extensions of language JavaScript were converted to sonar.lang.patterns.js : **/*.js

13:21:56.106 [QUIET] [system.out] 13:21:56.106 DEBUG - Declared extensions of language C# were converted to sonar.lang.patterns.cs : **/
*.cs

13:21:56.106 [QUIET] [system.out] 13:21:56.106 DEBUG - Declared extensions of language Java were converted to sonar.lang.patterns.java : **/*.java,**/*.jav

13:21:56.106 [QUIET] [system.out] 13:21:56.106 DEBUG - Declared extensions of language Web were converted to sonar.lang.patterns.web : **/*.html,**/*.xhtml,**/*.rhtml,**/*.shtml

13:21:56.107 [QUIET] [system.out] 13:21:56.107 DEBUG - Declared extensions of language Flex were converted to sonar.lang.patterns.flex : **/*.as

13:21:56.107 [QUIET] [system.out] 13:21:56.107 DEBUG - Declared extensions of language PHP were converted to sonar.lang.patterns.php : **/
*.php,**/*.php3,**/*.php4,**/*.php5,**/*.phtml,**/*.inc

13:21:56.107 [QUIET] [system.out] 13:21:56.107 DEBUG - Declared extensions of language TypeScript were converted to sonar.lang.patterns.ts : **/
*.ts

13:21:56.118 [QUIET] [system.out] 13:21:56.118 DEBUG - Language of file 'src/main/java/com/appdynamics/eventsvc/loadgenerator/EventCountsLoadGenerator.java' is detected to be 'java'

13:21:56.118 [QUIET] [system.out] 13:21:56.118 DEBUG - Language of file 'src/main/java/com/appdynamics/eventsvc/loadgenerator/EventsLoadGenerator.java' is detected to be 'java'

13:21:56.118 [QUIET] [system.out] 13:21:56.118 DEBUG - Language of file 'src/main/java/com/appdynamics/eventsvc/loadgenerator/EventCountKeyLoadGenerator.java' is detected to be 'java'

13:21:56.119 [QUIET] [system.out] 13:21:56.118 DEBUG - Language of file 'src/main/java/com/appdynamics/eventsvc/loadgenerator/Interval.java' is detected to be 'java'

13:21:56.119 [QUIET] [system.out] 13:21:56.118 DEBUG - Language of file 'src/main/java/com/appdynamics/eventsvc/loadgenerator/EventSummaryGenerator.java' is detected to be 'java'

13:21:56.119 [QUIET] [system.out] 13:21:56.118 DEBUG - Language of file 'src/main/java/com/appdynamics/eventsvc/loadgenerator/Main.java' is detected to be 'java'

13:21:56.119 [QUIET] [system.out] 13:21:56.118 DEBUG - Language of file 'src/main/java/com/appdynamics/eventsvc/loadgenerator/LoadGeneratorConfig.java' is detected to be 'java'

13:21:56.120 [QUIET] [system.out] 13:21:56.120 DEBUG - Language of file 'src/main/java/com/appdynamics/eventsvc/loadgenerator/RangeManager.java' is detected to be 'java'

13:21:56.121 [QUIET] [system.out] 13:21:56.121 DEBUG - Language of file 'src/main/java/com/appdynamics/eventsvc/loadgenerator/UniqueKey.java' is detected to be 'java'

13:21:56.121 [QUIET] [system.out] 13:21:56.121 DEBUG - Language of file 'src/test/java/com/appdynamics/eventsvc/loadgenerator/EventSummaryGeneratorTest.java' is detected to be 'java'

13:21:56.121 [QUIET] [system.out] 13:21:56.121 DEBUG - Language of file 'src/test/java/com/appdynamics/eventsvc/loadgenerator/RangeManagerTest.java' is detected to be 'java'

13:21:56.121 [QUIET] [system.out] 13:21:56.121 DEBUG - Language of file 'src/test/java/com/appdynamics/eventsvc/loadgenerator/UniqueKeyTest.java' is detected to be 'java'

13:21:56.122 [QUIET] [system.out] 13:21:56.122 INFO  - Analysis report generated in /Users/shashank.devan/dev/codebase/controller/controller-eventsvc/build/sonar/batch-report

13:21:56.126 [QUIET] [system.out] 13:21:56.126 DEBUG - Couldn't delete lock file: /Users/shashank.devan/dev/codebase/controller/controller-eventsvc/./.sonar_lock java.nio.file.NoSuchFileException: /Users/shashank.devan/dev/codebase/controller/controller-eventsvc/./.sonar_lock

13:21:56.127 [QUIET] [system.out] at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)

13:21:56.127 [QUIET] [system.out] at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)

13:21:56.127 [QUIET] [system.out] at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)

13:21:56.127 [QUIET] [system.out] at sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:244)

13:21:56.127 [QUIET] [system.out] at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)

13:21:56.127 [QUIET] [system.out] at java.nio.file.Files.delete(Files.java:1126)

13:21:56.127 [QUIET] [system.out] at org.sonar.home.cache.DirectoryLock.unlock(DirectoryLock.java:98)

13:21:56.127 [QUIET] [system.out] at org.sonar.batch.scan.ProjectLock.stop(ProjectLock.java:57)

13:21:56.127 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

13:21:56.127 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

13:21:56.127 [QUIET] [system.out] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

13:21:56.127 [QUIET] [system.out] at java.lang.reflect.Method.invoke(Method.java:498)

13:21:56.127 [QUIET] [system.out] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:110)

13:21:56.127 [QUIET] [system.out] at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.stop(ReflectionLifecycleStrategy.java:96)

13:21:56.127 [QUIET] [system.out] at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.stop(AbstractInjectionFactory.java:88)

13:21:56.127 [QUIET] [system.out] at org.picocontainer.behaviors.AbstractBehavior.stop(AbstractBehavior.java:179)

13:21:56.127 [QUIET] [system.out] at org.picocontainer.behaviors.Stored$RealComponentLifecycle.stop(Stored.java:141)

13:21:56.127 [QUIET] [system.out] at org.picocontainer.behaviors.Stored.stop(Stored.java:118)

13:21:56.127 [QUIET] [system.out] at org.picocontainer.DefaultPicoContainer.stopAdapters(DefaultPicoContainer.java:1048)

13:21:56.127 [QUIET] [system.out] at org.picocontainer.DefaultPicoContainer.stop(DefaultPicoContainer.java:803)

13:21:56.127 [QUIET] [system.out] oller-at org.sonar.core.platform.ComponentContainer.stopComponents(ComponentContainer.java:166)

13:21:56.128 [QUIET] [system.out] at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)

13:21:56.128 [QUIET] [system.out] at org.sonar.batch.task.ScanTask.execute(ScanTask.java:55)

13:21:56.128 [QUIET] [system.out] at org.sonar.batch.task.TaskContainer.doAfterStart(TaskContainer.java:86)

13:21:56.128 [QUIET] [system.out] at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:135)

13:21:56.128 [QUIET] [system.out] at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:120)

13:21:56.128 [QUIET] [system.out] at org.sonar.batch.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:122)

13:21:56.128 [QUIET] [system.out] at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:119)

13:21:56.128 [QUIET] [system.out] at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:79)

13:21:56.128 [QUIET] [system.out] at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:48)

13:21:56.128 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

13:21:56.128 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

13:21:56.128 [QUIET] [system.out] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

13:21:56.129 [QUIET] [system.out] at java.lang.reflect.Method.invoke(Method.java:498)

13:21:56.129 [QUIET] [system.out] at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87)

13:21:56.129 [QUIET] [system.out] at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75)

13:21:56.129 [QUIET] [system.out] at java.security.AccessController.doPrivileged(Native Method)

13:21:56.129 [QUIET] [system.out] at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69)

13:21:56.129 [QUIET] [system.out] at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)

13:21:56.129 [QUIET] [system.out] at org.sonar.runner.api.EmbeddedRunner.doExecute(EmbeddedRunner.java:102)

13:21:56.129 [QUIET] [system.out] at org.sonar.runner.api.Runner.execute(Runner.java:100)

13:21:56.129 [QUIET] [system.out] at org.sonarqube.gradle.SonarQubeTask.run(SonarQubeTask.java:53)

13:21:56.129 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

13:21:56.129 [QUIET] [system.out] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

13:21:56.129 [QUIET] [system.out] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

13:21:56.129 [QUIET] [system.out] at java.lang.reflect.Method.invoke(Method.java:498)

13:21:56.129 [QUIET] [system.out] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)

13:21:56.129 [QUIET] [system.out] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:228)

13:21:56.129 [QUIET] [system.out] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221)

13:21:56.129 [QUIET] [system.out] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)

13:21:56.130 [QUIET] [system.out] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)

13:21:56.130 [QUIET] [system.out] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)

13:21:56.130 [QUIET] [system.out] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)

13:21:56.130 [QUIET] [system.out] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)

13:21:56.130 [QUIET] [system.out] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)

13:21:56.130 [QUIET] [system.out] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)

13:21:56.130 [QUIET] [system.out] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:68)

13:21:56.130 [QUIET] [system.out] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)

13:21:56.130 [QUIET] [system.out] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)

13:21:56.130 [QUIET] [system.out] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)

13:21:56.130 [QUIET] [system.out] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)

13:21:56.130 [QUIET] [system.out] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)

13:21:56.130 [QUIET] [system.out] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)

13:21:56.130 [QUIET] [system.out] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)

13:21:56.130 [QUIET] [system.out] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)

13:21:56.130 [QUIET] [system.out] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)

13:21:56.130 [QUIET] [system.out] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)

13:21:56.130 [QUIET] [system.out] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)

13:21:56.130 [QUIET] [system.out] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)

13:21:56.130 [QUIET] [system.out] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)

13:21:56.130 [QUIET] [system.out] at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)

13:21:56.131 [QUIET] [system.out] at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)

13:21:56.131 [QUIET] [system.out] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)

13:21:56.131 [QUIET] [system.out] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)

13:21:56.131 [QUIET] [system.out] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)

13:21:56.131 [QUIET] [system.out] at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)

13:21:56.131 [QUIET] [system.out] at org.gradle.internal.Factories$1.create(Factories.java:22)

13:21:56.131 [QUIET] [system.out] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)

13:21:56.131 [QUIET] [system.out] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)

13:21:56.131 [QUIET] [system.out] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)

13:21:56.131 [QUIET] [system.out] at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)

13:21:56.131 [QUIET] [system.out] at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)

13:21:56.131 [QUIET] [system.out] at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)

13:21:56.131 [QUIET] [system.out] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)

13:21:56.131 [QUIET] [system.out] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)

13:21:56.131 [QUIET] [system.out] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)

13:21:56.131 [QUIET] [system.out] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)

13:21:56.131 [QUIET] [system.out] at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)

13:21:56.131 [QUIET] [system.out] at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)

13:21:56.131 [QUIET] [system.out] at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)

13:21:56.131 [QUIET] [system.out] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)

13:21:56.131 [QUIET] [system.out] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)

13:21:56.131 [QUIET] [system.out] at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)

13:21:56.131 [QUIET] [system.out] at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)

13:21:56.131 [QUIET] [system.out] at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)

13:21:56.132 [QUIET] [system.out] at org.gradle.util.Swapper.swap(Swapper.java:38)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:40)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41)

13:21:56.132 [QUIET] [system.out] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)

13:21:56.133 [QUIET] [system.out] at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)

13:21:56.133 [QUIET] [system.out] at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:246)

13:21:56.133 [QUIET] [system.out] at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)

13:21:56.133 [QUIET] [system.out] at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)

13:21:56.133 [QUIET] [system.out] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

13:21:56.133 [QUIET] [system.out] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

13:21:56.133 [QUIET] [system.out] at java.lang.Thread.run(Thread.java:745)

13:21:56.133 [QUIET] [system.out]  

13:21:56.199 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task '
:controller:controller-eventsvc:sonarqube'

13:21:56.199 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :controller:controller-eventsvc:sonarqube FAILED

13:21:56.199 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :controller:controller-eventsvc:sonarqube (Thread[Daemon worker,5,main]) completed. Took 26.778 secs.

13:21:56.200 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon worker,5,main]] finished, busy: 3 mins 36.011 secs, idle: 0.089 secs

13:21:56.207 [ERROR] [org.gradle.BuildExceptionReporter]  

13:21:56.208 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.

13:21:56.208 [ERROR] [org.gradle.BuildExceptionReporter]  

13:21:56.209 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:

13:21:56.209 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task '
:controller:controller-eventsvc:sonarqube'.

13:21:56.209 [ERROR] [org.gradle.BuildExceptionReporter] > Unable to execute Sonar

13:21:56.209 [ERROR] [org.gradle.BuildExceptionReporter]  

13:21:56.209 [ERROR] [org.gradle.BuildExceptionReporter] * Try:

13:21:56.209 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.  

13:21:56.209 [LIFECYCLE] [org.gradle.BuildResultLogger]  

13:21:56.209 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED

13:21:56.209 [LIFECYCLE] [org.gradle.BuildResultLogger]  

13:21:56.209 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 4 mins 1.492 secs

13:21:56.210 [DEBUG] [org.gradle.api.internal.project.antbuilder.FinalizerThread] Shutdown of classloader cache in progress

13:21:56.210 [DEBUG] [org.gradle.api.internal.project.antbuilder.FinalizerThread] Removing classloader from cache, classpath = [file:/Users/shashank.devan/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.ant/0.7.6.201602180812/366588726d11725024370417f9c80124f52c99cd/org.jacoco.ant-0.7.6.201602180812.jar, file:/Users/shashank.devan/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.core/0.7.6.201602180812/88d729e2cf2af80fe8873ab605905576cb50d23a/org.jacoco.core-0.7.6.201602180812.jar, file:/Users/shashank.devan/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.report/0.7.6.201602180812/9fd248e4d4622aa1eae776e9252ab46dd05400ea/org.jacoco.report-0.7.6.201602180812.jar, file:/Users/shashank.devan/.gradle/caches/modules-2/files-2.1/org.jacoco/org.jacoco.agent/0.7.6.201602180812/7cf4f41f6c1f2e47c7f620721374a5169ed8e1ac/org.jacoco.agent-0.7.6.201602180812.jar, file:/Users/shashank.devan/.gradle/caches/modules-2/files-2.1/org.ow2.asm/asm-debug-all/5.0.4/702b8525fcf81454235e5e2fa2a35f15ffc0ec7e/asm-debug-all-5.0.4.jar]

Shashank Devan

unread,
Jul 6, 2016, 5:14:06 PM7/6/16
to SonarQube
I did some more troubleshooting to find whether the .sonar_lock file is created. 
When I fire the 'gradlew sonarqube' command and monitor the directory contents, I see that there is a file '.sonar_lock' created by the sonarqube. This file just disappears just before sonarqube tries to check for it again in DirectoryLock.unlock(). 

I don't know of any process that deletes this file as soon as it gets created. Is there any way I can find out what is happening to this file?


On Wednesday, 6 July 2016 14:01:41 UTC-7, Shashank Devan wrote:
Here are the complete logs -

13:21:56.074 [QUIET] [system.out] 13:21:56.074 INFO  - Sensor CPD Sensor (wrapped) (done) | time=119ms

 

13:21:56.075 [QUIET] [system.out] 13:21:56.075 INFO  - -------------  Scan load-test

13:21:56.103 [QUIET] [system.out] 13:21:56.103 DEBUG - [GERRIT PLUGIN] Instanciating GerritInitializer

13:21:56.103 [QUIET] [system.out] 13:21:56.103 INFO  - [GERRIT PLUGIN] changeId or revisionId is empty. Not called from Gerrit ? Soft-disabling myself.

13:21:56.104 [QUIET] [system.out] 13:21:56.104 INFO  - [GERRIT PLUGIN] Initializer : will NOT execute plugin on project 'load-test'.

13:21:56.104 [QUIET] [system.out] 13:21:56.104 DEBUG - [GERRIT PLUGIN] Verifying configuration settings

13:21:56.104 [QUIET] [system.out] GerritConfiguration [valid=false, enabled=true, scheme=http, host=null, port=80, anonymous=true, username=null, password=blank, authScheme=digest, basePath=/, sshKeyPath=null, label=Code-Review, message=Sonar review at ${sonar.host.url}, issueComment=[${issue.isNew}] New: ${issue.ruleKey} Severity: ${issue.severity}, Message: ${issue.message}, threshold=INFO, voteNoIssue=1,voteBelowThreshold=1,voteAboveThreshold=-1,commentNewIssuesOnly=false, projectName=null, branchName=null, changeId=null, revisionId=null, 'forceBranch=false]

13:21:56.104 [QUIET] [system.out] 13:21:56.104 INFO  - [GERRIT PLUGIN] changeId or revisionId is empty. Not called from Gerrit ? Soft-disabling myself.

13:21:56.104 [QUIET] [system.out] 13:21:56.104 ERROR - [GERRIT PLUGIN] ServerConfiguration is not valid : GerritConfiguration [valid=false, enabled=true, scheme=http, host=null, port=80, anonymous=true, username=null, password=blank, authScheme=digest, basePath=/, sshKeyPath=null, label=Code-Review, message=Sonar review at ${sonar.host.url}, issueComment=[${issue.isNew}] New: ${issue.ruleKey} Severity: ${issue.severity}, Message: ${issue.message}, threshold=INFO, voteNoIssue=1,voteBelowThreshold=1,voteAboveThreshold=-1,commentNewIssuesOnly=false, projectName=null, branchName=null, changeId=null, revisionId=null, 'forceBranch=false]

13:21:56.104 [QUIET] [system.out] 13:21:56.104 INFO  - [GERRIT PLUGIN] changeId or revisionId is empty. Not called from Gerrit ? Soft-disabling myself.

13:21:56.104 [QUIET] [system.out] 13:21:56.104 ERROR - [GERRIT PLUGIN] ReviewConfiguration is not valid : GerritConfiguration [valid=false, enabled=true, scheme=http, host=null, port=80, anonymous=true, username=null, password=blank, authScheme=digest, basePath=/, sshKeyPath=null, label=Code-Review, message=Sonar review at ${sonar.host.url}, issueComment=[${issue.isNew}] New: ${issue.ruleKey} Severity: ${issue.severity}, Message: ${issue.message}, threshold=INFO, voteNoIssue=1,voteBelowThreshold=1,voteAboveThreshold=-1,commentNewIssuesOnly=false, projectName=null, branchName=null, changeId=null, revisionId=null, 'forceBranch=false]

13:21:56.104 [QUIET] [system.out] 13:21:56.104 INFO  - [GERRIT PLUGIN] Initializer : Configuration is not valid, will not execute.

13:21:56.104 [QUIET] [system.out] 13:21:56.104 DEBUG - Initializers :  

13:21:56.104 [QUIET] [system.out] 13:21:56.104 INFO  - Base dir: /
Users/shashank.devan/dev/codebase/controller/controller-eventsvc/load-test

13:21:56.104 [QUIET] [system.out] 13:21:56.104 INFO  - Working dir: /Users/shashank.devan/dev/codebase/controller/controller-eventsvc/build/sonar/codebase.controller.controller-eventsvc_load-test

13:21:56.105 [QUIET] [system.out] 13:21:56.105 INFO  - Source paths: ../core/src/main/java, src/main/java

13:21:56.105 [QUIET] [system.out] 13:21:56.105 INFO  - Test paths: src/test/java

13:21:56.105 [QUIET] [system.out] 13:21:56.105 INFO  - Binary dirs: build/classes/main, build/resources/main

13:21:56.105 [QUIET] [system.out] 13:21:56.105 INFO  - Source encoding: UTF-8, default locale: en_US

13:21:56.105 [QUIET] [system.out] 13:21:56.105 INFO  - Index files

13:21:56.106 [QUIET] [system.out] 13:21:56.106 INFO  - Excluded sources:  

13:21:56.106 [QUIET] [system.out] 13:21:56.106 INFO  -   src/main/java/com<span style="color: #660;" cl

Julien HENRY

unread,
Jul 13, 2016, 6:20:58 AM7/13/16
to SonarQube
Hi,

Please don't spend time on this lock file. The problem here is that the original exception is lost so it is hard to tell what's wrong.

What is your version of SonarQube? Using a more recent version (5.6) should make the original exception preserved.

++

Julien

Shashank Devan

unread,
Jul 13, 2016, 12:09:39 PM7/13/16
to SonarQube

Hi Julien,

I am using soanrqube 5.6. I find this weird, for some reason the .sonar_lock file issue suddenly went away. All I did was a computer restart a couple of times. 
I hope thats a closure. Thanks for your help anyway.
Reply all
Reply to author
Forward
0 new messages