Gradle 1.12 getting Permision denied

Hi Gradle guru, I can’t figure out why am I getting exception below. Exception does not say on which file I’m getting Permision denied. Please help.

09:34:12.487 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :gobblin-api:clean UP-TO-DATE 09:34:12.487 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :gobblin-rest-service:gobblin-rest-server:cleanGeneratedDir (Thread[Task wor

ker,5,main]) completed. Took 0.041 secs. 09:34:12.488 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :gobblin-azkaban:processResources (Thread[Task worker Thread 4,5,main]) comp

leted. Took 0.008 secs. 09:34:12.488 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Task worker Thread 7,5,main]] finished, busy: 0.082 sec

s, idle: 0.03 secs 09:34:12.488 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Task worker Thread 3,5,main]] finished, busy: 0.081 sec

s, idle: 0.031 secs 09:34:12.488 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Task worker Thread 2,5,main]] finished, busy: 0.096 sec

s, idle: 0.017 secs 09:34:12.488 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Task worker Thread 6,5,main]] finished, busy: 0.082 sec

s, idle: 0.03 secs 09:34:12.488 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon,5,main]] finished, busy: 0.087 secs, idle: 0.025

secs 09:34:12.488 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Task worker Thread 5,5,main]] finished, busy: 0.088 sec

s, idle: 0.024 secs 09:34:12.488 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Task worker Thread 4,5,main]] finished, busy: 0.081 sec

s, idle: 0.031 secs 09:34:12.488 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Task worker,5,main]] finished, busy: 0.105 secs, idle:

0.008 secs 09:34:12.493 [ERROR] [org.gradle.BuildExceptionReporter] 09:34:12.496 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build completed with 3 failures. 09:34:12.499 [ERROR] [org.gradle.BuildExceptionReporter] 09:34:12.499 [ERROR] [org.gradle.BuildExceptionReporter] 1: Task failed with an exception. 09:34:12.500 [ERROR] [org.gradle.BuildExceptionReporter] ----------- 09:34:12.500 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: 09:34:12.501 [ERROR] [org.gradle.BuildExceptionReporter] java.io.IOException: Permission denied 09:34:12.501 [ERROR] [org.gradle.BuildExceptionReporter] > Permission denied 09:34:12.502 [ERROR] [org.gradle.BuildExceptionReporter] 09:34:12.503 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is: 09:34:12.504 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.internal.UncheckedException: java.io.IOException: Permission denied 09:34:12.504 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.jav

a:39) 09:34:12.504 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultFileLockManager.lock(DefaultFileLockManager.java:83) 09:34:12.505 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultCacheAccess.onStartWork(DefaultCacheAccess.java:344) 09:34:12.505 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:186) 09:34:12.505 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDir

ectoryStore.java:102) 09:34:12.506 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.useCache(DefaultCa

cheFactory.java:189) 09:34:12.506 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.useCa

che(DefaultTaskArtifactStateCacheAccess.java:54) 09:34:12.507 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository.loadHist

ory(CacheBackedTaskHistoryRepository.java:90) 09:34:12.507 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository.getHisto

ry(CacheBackedTaskHistoryRepository.java:42) 09:34:12.507 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.changes.DefaultTaskArtifactStateRepository.getS

tateFor(DefaultTaskArtifactStateRepository.java:54) 09:34:12.508 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.changes.ShortCircuitTaskArtifactStateRepository

.getStateFor(ShortCircuitTaskArtifactStateRepository.java:46) 09:34:12.508 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTa

skExecuter.java:49) 09:34:12.509 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskEx

ecuter.java:58) 09:34:12.509 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEm

ptySourceFilesTaskExecuter.java:42) 09:34:12.510 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskW

ithNoActionsExecuter.java:52) 09:34:12.510 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskEx

ecuter.java:53) 09:34:12.510 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAt

MostOnceTaskExecuter.java:43) 09:34:12.511 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.jav

a:289) 09:34:12.511 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(

AbstractTaskPlanExecutor.java:79) 09:34:12.512 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(

AbstractTaskPlanExecutor.java:63) 09:34:12.512 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(Abstract

TaskPlanExecutor.java:51) 09:34:12.512 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.taskgraph.ParallelTaskPlanExecutor.process(ParallelTaskPlanExecuto

r.java:51) 09:34:12.513 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecute

r.java:86) 09:34:12.513 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.ja

va:29) 09:34:12.514 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61) 09:34:12.514 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23) 09:34:12.515 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67) 09:34:12.515 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java

:32) 09:34:12.515 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61) 09:34:12.516 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54) 09:34:12.516 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.jav

a:166) 09:34:12.517 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113) 09:34:12.517 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81) 09:34:12.517 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProc

essBuildActionExecuter.java:64) 09:34:12.518 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33) 09:34:12.518 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24) 09:34:12.519 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecu

ter.java:35) 09:34:12.519 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:45) 09:34:12.520 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:3

  1. 09:34:12.520 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExec

ution.java:125) 09:34:12.520 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnect

ion.java:42) 09:34:12.521 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExec

ution.java:125) 09:34:12.521 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationL

ogger.java:24) 09:34:12.522 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExec

ution.java:125) 09:34:12.522 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.StartStopIfBuildAndStop.execute(StartStopIfBuild

AndStop.java:33) 09:34:12.523 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExec

ution.java:125) 09:34:12.523 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.ReturnResult.execute(ReturnResult.java:34) 09:34:12.523 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExec

ution.java:125) 09:34:12.524 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.jav

a:71) 09:34:12.524 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.jav

a:69) 09:34:12.525 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.util.Swapper.swap(Swapper.java:38) 09:34:12.525 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.ja

va:69) 09:34:12.525 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExec

ution.java:125) 09:34:12.526 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60) 09:34:12.526 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:3

  1. 09:34:12.527 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExec

ution.java:125) 09:34:12.527 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuild

Environment.java:60) 09:34:12.528 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:3

  1. 09:34:12.528 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExec

ution.java:125) 09:34:12.529 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRe

spondWithBusy.java:45) 09:34:12.529 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.DaemonStateCoordinator.runCommand(DaemonStateCoordina

tor.java:186) 09:34:12.529 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy.doBuild(StartBuildOr

RespondWithBusy.java:49) 09:34:12.530 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:3

  1. 09:34:12.530 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExec

ution.java:125) 09:34:12.531 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.HandleStop.execute(HandleStop.java:36) 09:34:12.531 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExec

ution.java:125) 09:34:12.531 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.DaemonHygieneAction.execute(DaemonHygieneAction.

java:39) 09:34:12.532 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExec

ution.java:125) 09:34:12.532 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.CatchAndForwardDaemonFailure.execute(CatchAndFor

wardDaemonFailure.java:32) 09:34:12.533 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.DaemonCommandExecution.proceed(DaemonCommandExec

ution.java:125) 09:34:12.533 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.exec.DefaultDaemonCommandExecuter.executeCommand(Defa

ultDaemonCommandExecuter.java:51) 09:34:12.534 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.han

dleCommand(DefaultIncomingConnectionHandler.java:155) 09:34:12.534 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.rec

eiveAndHandleCommand(DefaultIncomingConnectionHandler.java:128) 09:34:12.534 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler$ConnectionWorker.run

(DefaultIncomingConnectionHandler.java:116) 09:34:12.535 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(Defau

ltExecutorFactory.java:64) 09:34:12.535 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.io.IOException: Permission denied 09:34:12.536 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultFileLockManager$DefaultFileLock.(DefaultFileLock

Manager.java:122) 09:34:12.536 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultFileLockManager.lock(DefaultFileLockManager.java:80) 09:34:12.536 [ERROR] [org.gradle.BuildExceptionReporter]

… 73 more 09:34:12.537 [ERROR] [org.gradle.BuildExceptionReporter] 09:34:12.537 [ERROR] [org.gradle.BuildExceptionReporter] ============================================================================== 09:34:12.538 [ERROR] [org.gradle.BuildExceptionReporter] 09:34:12.538 [ERROR] [org.gradle.BuildExceptionReporter] 2: Task failed with an exception. 09:34:12.539 [ERROR] [org.gradle.BuildExceptionReporter] ----------- 09:34:12.539 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: 09:34:12.540 [ERROR] [org.gradle.BuildExceptionReporter] java.io.IOException: Permission denied 09:34:12.540 [ERROR] [org.gradle.BuildExceptionReporter] > Permission denied 09:34:12.540 [ERROR] [org.gradle.BuildExceptionReporter] 09:34:12.541 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is: 09:34:12.542 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.internal.UncheckedException: java.io.IOException: Permission denied 09:34:12.542 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.jav

a:39) 09:34:12.542 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultFileLockManager.lock(DefaultFileLockManager.java:83) 09:34:12.543 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultCacheAccess.onStartWork(DefaultCacheAccess.java:344) 09:34:12.543 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:186) 09:34:12.543 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDir

ectoryStore.java:102) 09:34:12.544 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.useCache(DefaultCa

cheFactory.java:189) 09:34:12.544 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.useCa

che(DefaultTaskArtifactStateCacheAccess.java:54) 09:34:12.545 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository.loadHist

ory(CacheBackedTaskHistoryRepository.java:90) 09:34:12.545 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository.getHisto

ry(CacheBackedTaskHistoryRepository.java:42) 09:34:12.545 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.changes.DefaultTaskArtifactStateRepository.getS

tateFor(DefaultTaskArtifactStateRepository.java:54) 09:34:12.546 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.changes.ShortCircuitTaskArtifactStateRepository

.getStateFor(ShortCircuitTaskArtifactStateRepository.java:46) 09:34:12.546 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTa

skExecuter.java:49) 09:34:12.546 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskEx

ecuter.java:58) 09:34:12.547 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEm

ptySourceFilesTaskExecuter.java:42) 09:34:12.547 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskW

ithNoActionsExecuter.java:52) 09:34:12.548 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskEx

ecuter.java:53) 09:34:12.548 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAt

MostOnceTaskExecuter.java:43) 09:34:12.548 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.jav

a:289) 09:34:12.549 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(

AbstractTaskPlanExecutor.java:79) 09:34:12.549 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(

AbstractTaskPlanExecutor.java:63) 09:34:12.549 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(Abstract

TaskPlanExecutor.java:51) 09:34:12.550 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(Defau

ltExecutorFactory.java:64) 09:34:12.550 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.io.IOException: Permission denied 09:34:12.550 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultFileLockManager$DefaultFileLock.(DefaultFileLock

Manager.java:122) 09:34:12.551 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultFileLockManager.lock(DefaultFileLockManager.java:80) 09:34:12.551 [ERROR] [org.gradle.BuildExceptionReporter]

… 20 more 09:34:12.551 [ERROR] [org.gradle.BuildExceptionReporter] 09:34:12.552 [ERROR] [org.gradle.BuildExceptionReporter] ============================================================================== 09:34:12.552 [ERROR] [org.gradle.BuildExceptionReporter] 09:34:12.553 [ERROR] [org.gradle.BuildExceptionReporter] 3: Task failed with an exception. 09:34:12.553 [ERROR] [org.gradle.BuildExceptionReporter] ----------- 09:34:12.553 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: 09:34:12.554 [ERROR] [org.gradle.BuildExceptionReporter] java.io.IOException: Permission denied 09:34:12.554 [ERROR] [org.gradle.BuildExceptionReporter] > Permission denied 09:34:12.555 [ERROR] [org.gradle.BuildExceptionReporter] 09:34:12.555 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is: 09:34:12.556 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.internal.UncheckedException: java.io.IOException: Permission denied 09:34:12.556 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.jav

a:39) 09:34:12.556 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultFileLockManager.lock(DefaultFileLockManager.java:83) 09:34:12.557 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultCacheAccess.onStartWork(DefaultCacheAccess.java:344) 09:34:12.557 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:186) 09:34:12.557 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDir

ectoryStore.java:102) 09:34:12.558 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultCacheFactory$ReferenceTrackingCache.useCache(DefaultCa

cheFactory.java:189) 09:34:12.558 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.state.DefaultTaskArtifactStateCacheAccess.useCa

che(DefaultTaskArtifactStateCacheAccess.java:54) 09:34:12.558 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository.loadHist

ory(CacheBackedTaskHistoryRepository.java:90) 09:34:12.559 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository.getHisto

ry(CacheBackedTaskHistoryRepository.java:42) 09:34:12.559 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.changes.DefaultTaskArtifactStateRepository.getS

tateFor(DefaultTaskArtifactStateRepository.java:54) 09:34:12.559 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.changedetection.changes.ShortCircuitTaskArtifactStateRepository

.getStateFor(ShortCircuitTaskArtifactStateRepository.java:46) 09:34:12.560 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTa

skExecuter.java:49) 09:34:12.560 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskEx

ecuter.java:58) 09:34:12.561 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEm

ptySourceFilesTaskExecuter.java:42) 09:34:12.561 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskW

ithNoActionsExecuter.java:52) 09:34:12.561 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskEx

ecuter.java:53) 09:34:12.562 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAt

MostOnceTaskExecuter.java:43) 09:34:12.562 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.jav

a:289) 09:34:12.563 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(

AbstractTaskPlanExecutor.java:79) 09:34:12.563 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(

AbstractTaskPlanExecutor.java:63) 09:34:12.563 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(Abstract

TaskPlanExecutor.java:51) 09:34:12.564 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(Defau

ltExecutorFactory.java:64) 09:34:12.564 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.io.IOException: Permission denied 09:34:12.564 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultFileLockManager$DefaultFileLock.(DefaultFileLock

Manager.java:122) 09:34:12.565 [ERROR] [org.gradle.BuildExceptionReporter]

at org.gradle.cache.internal.DefaultFileLockManager.lock(DefaultFileLockManager.java:80) 09:34:12.565 [ERROR] [org.gradle.BuildExceptionReporter]

… 20 more 09:34:12.566 [ERROR] [org.gradle.BuildExceptionReporter] 09:34:12.566 [ERROR] [org.gradle.BuildExceptionReporter] ============================================================================== 09:34:12.566 [LIFECYCLE] [org.gradle.BuildResultLogger] 09:34:12.567 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED 09:34:12.567 [LIFECYCLE] [org.gradle.BuildResultLogger] 09:34:12.567 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 16 mins 46.57 secs 09:34:12.570 [DEBUG] [org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonManager] Stopping 0 compiler daemon(s).

It looks like it can’t access the project cache, which by default is located in a folder ‘.gradle’ in the root of your project.

Thanks that help a lot. Apparently person who set up project before me ran it under super user :slight_smile:

Is it possible to ask one more question regarding gradle build without opening new topic?

I have build.gradle with following

// (c) 2014 LinkedIn Corp. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the “License”); you may not use // this file except in compliance with the License. You may obtain a copy of the // License at http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software distributed // under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR // CONDITIONS OF ANY KIND, either express or implied. //

//apply plugin: ‘com.linkedin.pegasus’ apply plugin: ‘pegasus’ apply plugin: ‘java’

dependencies {

dataModel externalDependency.pegasus.restliCommon

compile externalDependency.pegasus.data

compile externalDependency.pegasus.restliClient

compile externalDependency.pegasus.restliCommon

compile externalDependency.pegasus.pegasusCommon }

buildscript {

repositories {

mavenLocal()

maven {

url “<our_local_repository>”

}

}

dependencies {

classpath group: ‘com.linkedin.pegasus’, name: ‘gradle-plugins’, version: ‘1.15.9’

} }

the thing is that external access to maven central repo is forbidden in our organization that’s why I removed mavencentral() from build script but during the build I still see that it tries to connect to maven central repo.

50:25.879 [ERROR] [org.gradle.BuildExceptionReporter] Could not resolve all dependencies for configuration ‘:gobblin-rest-service:gobblin-rest-api:dataModel’. 16:50:25.880 [ERROR] [org.gradle.BuildExceptionReporter] > Could not resolve com.linkedin.pegasus:restli-common:1.15.9. 16:50:25.881 [ERROR] [org.gradle.BuildExceptionReporter]

Required by: 16:50:25.881 [ERROR] [org.gradle.BuildExceptionReporter]

gobblin.gobblin-rest-service:gobblin-rest-api:unspecified 16:50:25.882 [ERROR] [org.gradle.BuildExceptionReporter]

Could not HEAD ‘http://repo1.maven.org/maven2/com/linkedin/pegasus/restli-common/1.15.9/restli-common-1.15.9.pom’. 16:50:25.883 [ERROR] [org.gradle.BuildExceptionReporter]

Connection to http://repo1.maven.org refused

Gobblin has one main build.gradle but i do not see any mentionings of mavenCentral in there. How can I disable mavenCentral globally for gradle?

Gradle doesn’t not implicitly add any repositories. If maven central is being added its because some piece of configuration is doing so. This could be in the project’s build script, a parent’s build script (in the case of multi-project builds) a plugin or even an initialization script.

Thanks for clearing this up. I searched through whole gobblin project and couldn’t find any mentioning of repo1.maven.org. This is puzzling me :slight_smile: