craigburke / karma-gradle

Gradle Plugin for Running tests with Karma
Other
21 stars 11 forks source link

Execution failed for task ':karmaRun'. #16

Open fljmayer opened 8 years ago

fljmayer commented 8 years ago

I am using Gradle 2.13 and version 1.4.3 of this plugin. When I try to run a JavaScript test, I get this error:

Execution failed for task ':objectaid-update-site:karmaRun'.
Process 'command 'cmd'' finished with non-zero exit value 1

Is there any way to get more information about the actual source of the problem?

kunkun-tang commented 8 years ago

+1. Facing the same issue, and looking for solutions.

craigburke commented 8 years ago

let me know what you get when you run this: ./gradlew karmaRun -PkarmaDebug=true --debug --stacktrace

fljmayer commented 8 years ago

As this happened 3 months ago, I don't remember the details anymore. Probably it was related to Windows; I had to add this into build.gradle to make it work:

import org.apache.tools.ant.taskdefs.condition.Os
task karma(type: Exec) {
  if (Os.isFamily(Os.FAMILY_WINDOWS)) {
    commandLine 'cmd', '/c', 'karma', 'start', '--single-run true'
  } else {
    commandLine 'karma', 'start', '--single-run true'
  }
}

I have to run chcp 65001 from the Windows command line to get somewhat readable console output. Some of the output is still broken though, any idea what I can do?

kunkun-tang commented 8 years ago

15:55:47.159 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: 15:55:47.159 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':karmaRun'. 15:55:47.159 [ERROR] [org.gradle.BuildExceptionReporter] > Process 'command '/Users/latang/Desktop/0825/azkaban/.gradle/nodejs/node-v4.2.3-darwin-x64/bin/node'' finished with non-zero exit value 1 15:55:47.159 [ERROR] [org.gradle.BuildExceptionReporter] 15:55:47.159 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is: 15:55:47.160 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':karmaRun'. 15:55:47.160 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) 15:55:47.160 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) 15:55:47.160 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35) 15:55:47.160 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) 15:55:47.160 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) 15:55:47.160 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52) 15:55:47.161 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) 15:55:47.161 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) 15:55:47.161 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) 15:55:47.161 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203) 15:55:47.161 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185) 15:55:47.162 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:62) 15:55:47.162 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50) 15:55:47.162 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) 15:55:47.162 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) 15:55:47.162 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.process.internal.ExecException: Process 'command '/Users/latang/Desktop/0825/azkaban/.gradle/nodejs/node-v4.2.3-darwin-x64/bin/node'' finished with non-zero exit value 1 15:55:47.162 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:367) 15:55:47.162 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:31) 15:55:47.162 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.DefaultFileOperations.exec(DefaultFileOperations.java:165) 15:55:47.162 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.java:795) 15:55:47.163 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.java:791) 15:55:47.163 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.Project$exec$12.call(Unknown Source) 15:55:47.163 [ERROR] [org.gradle.BuildExceptionReporter] at com.moowork.gradle.node.exec.ExecRunner.run(ExecRunner.groovy:36) 15:55:47.163 [ERROR] [org.gradle.BuildExceptionReporter] at com.moowork.gradle.node.exec.NodeExecRunner.doExecute(NodeExecRunner.groovy:44) 15:55:47.163 [ERROR] [org.gradle.BuildExceptionReporter] at com.moowork.gradle.node.exec.ExecRunner.execute(ExecRunner.groovy:66) 15:55:47.163 [ERROR] [org.gradle.BuildExceptionReporter] at com.moowork.gradle.node.exec.ExecRunner$execute.call(Unknown Source) 15:55:47.163 [ERROR] [org.gradle.BuildExceptionReporter] at com.moowork.gradle.node.task.NodeTask.exec(NodeTask.groovy:78) 15:55:47.163 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75) 15:55:47.163 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:226) 15:55:47.164 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:219) 15:55:47.164 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:208) 15:55:47.164 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585) 15:55:47.164 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568) 15:55:47.164 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) 15:55:47.164 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) 15:55:47.164 [ERROR] [org.gradle.BuildExceptionReporter] ... 14 more 15:55:47.164 [ERROR] [org.gradle.BuildExceptionReporter] 15:55:47.165 [LIFECYCLE] [org.gradle.BuildResultLogger] 15:55:47.165 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED

kunkun-tang commented 8 years ago

It seems that karma can not init nodejs successfully?

vitalii-dmytruk commented 7 years ago

+1. With very similar output

01:54:18.402 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTING 01:54:18.403 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Waiting until process started: command '/Users/salo/.gradle/nodejs/node-v4.2.3-darwin-x64/bin/node'. 01:54:18.405 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTED 01:54:18.406 [DEBUG] [org.gradle.process.internal.ExecHandleRunner] waiting until streams are handled... 01:54:18.406 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process 'command '/Users/salo/.gradle/nodejs/node-v4.2.3-darwin-x64/bin/node'' 01:54:20.246 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED 01:54:20.247 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command '/Users/salo/.gradle/nodejs/node-v4.2.3-darwin-x64/bin/node'' finished with exit value 1 (state: FAILED) 01:54:20.247 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter] Removed task artifact state for {} from context. 01:54:20.247 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':karmaRun' 01:54:20.248 [LIFECYCLE] [class org.gradle.internal.buildevents.TaskExecutionLogger] :karmaRun FAILED 01:54:20.250 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 17: dispatching class org.gradle.launcher.daemon.protocol.BuildEvent 01:54:20.252 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :karmaRun (Thread[Daemon worker,5,main]) completed. Took 1.865 secs. 01:54:20.252 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationWorkerRegistry] Worker root.5 completed (0 in use) 01:54:20.252 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[Daemon worker,5,main]] finished, busy: 2.768 secs, idle: 0.004 secs 01:54:20.253 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 17: dispatching class org.gradle.launcher.daemon.protocol.BuildEvent 01:54:20.258 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 01:54:20.258 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 01:54:20.258 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 01:54:20.258 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] What went wrong: 01:54:20.258 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':karmaRun'. 01:54:20.258 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Process 'command '/Users/salo/.gradle/nodejs/node-v4.2.3-darwin-x64/bin/node'' finished with non-zero exit value 1 01:54:20.259 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 01:54:20.259 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Exception is: 01:54:20.259 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':karmaRun'. 01:54:20.260 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:84) 01:54:20.260 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:55) 01:54:20.260 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62) 01:54:20.260 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) 01:54:20.260 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88) 01:54:20.260 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:46) 01:54:20.260 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51) 01:54:20.260 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54) 01:54:20.260 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) 01:54:20.260 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34) 01:54:20.261 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:236) 01:54:20.261 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:228) 01:54:20.261 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.Transformers$4.transform(Transformers.java:169) 01:54:20.261 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) 01:54:20.261 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61) 01:54:20.261 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228) 01:54:20.261 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215) 01:54:20.261 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:77) 01:54:20.261 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:58) 01:54:20.261 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:32) 01:54:20.262 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:113) 01:54:20.262 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37) 01:54:20.262 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) 01:54:20.262 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23) 01:54:20.262 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43) 01:54:20.262 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) 01:54:20.262 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37) 01:54:20.262 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30) 01:54:20.262 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher$3.execute(DefaultGradleLauncher.java:196) 01:54:20.262 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher$3.execute(DefaultGradleLauncher.java:193) 01:54:20.262 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.Transformers$4.transform(Transformers.java:169) 01:54:20.262 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) 01:54:20.263 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56) 01:54:20.263 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:193) 01:54:20.263 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:119) 01:54:20.263 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102) 01:54:20.263 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71) 01:54:20.263 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:50) 01:54:20.263 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) 01:54:20.263 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.tooling.internal.provider.runner.RunAsBuildOperationBuildActionRunner$1.execute(RunAsBuildOperationBuildActionRunner.java:43) 01:54:20.263 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.tooling.internal.provider.runner.RunAsBuildOperationBuildActionRunner$1.execute(RunAsBuildOperationBuildActionRunner.java:40) 01:54:20.263 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.Transformers$4.transform(Transformers.java:169) 01:54:20.263 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106) 01:54:20.263 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56) 01:54:20.264 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.tooling.internal.provider.runner.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:40) 01:54:20.264 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.tooling.internal.provider.runner.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:75) 01:54:20.264 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35) 01:54:20.264 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41) 01:54:20.264 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26) 01:54:20.264 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75) 01:54:20.264 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49) 01:54:20.264 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44) 01:54:20.264 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29) 01:54:20.264 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67) 01:54:20.264 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) 01:54:20.265 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 01:54:20.265 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47) 01:54:20.265 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 01:54:20.265 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26) 01:54:20.265 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 01:54:20.265 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34) 01:54:20.265 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 01:54:20.265 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74) 01:54:20.265 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72) 01:54:20.266 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.util.Swapper.swap(Swapper.java:38) 01:54:20.266 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72) 01:54:20.266 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 01:54:20.266 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55) 01:54:20.266 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 01:54:20.266 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60) 01:54:20.266 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) 01:54:20.266 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 01:54:20.266 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72) 01:54:20.266 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36) 01:54:20.267 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120) 01:54:20.267 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50) 01:54:20.267 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297) 01:54:20.267 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) 01:54:20.267 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) 01:54:20.267 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: org.gradle.process.internal.ExecException: Process 'command '/Users/salo/.gradle/nodejs/node-v4.2.3-darwin-x64/bin/node'' finished with non-zero exit value 1 01:54:20.267 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:369) 01:54:20.267 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:31) 01:54:20.267 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.file.DefaultFileOperations.exec(DefaultFileOperations.java:176) 01:54:20.268 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.DefaultProject.exec(DefaultProject.java:951) 01:54:20.268 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.DefaultProject.exec(DefaultProject.java:947) 01:54:20.268 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.Project$exec$7.call(Unknown Source) 01:54:20.268 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.moowork.gradle.node.exec.ExecRunner.run(ExecRunner.groovy:43) 01:54:20.268 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.moowork.gradle.node.exec.NodeExecRunner.doExecute(NodeExecRunner.groovy:44) 01:54:20.268 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.moowork.gradle.node.exec.ExecRunner.execute(ExecRunner.groovy:83) 01:54:20.268 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.moowork.gradle.node.exec.ExecRunner$execute.call(Unknown Source) 01:54:20.268 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at com.moowork.gradle.node.task.NodeTask.exec(NodeTask.groovy:78) 01:54:20.268 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73) 01:54:20.268 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.doExecute(DefaultTaskClassInfoStore.java:141) 01:54:20.268 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134) 01:54:20.269 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123) 01:54:20.269 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:632) 01:54:20.269 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:615) 01:54:20.269 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:95) 01:54:20.269 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:76) 01:54:20.269 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] ... 78 more 01:54:20.269 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 01:54:20.269 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] 01:54:20.269 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED

asrikanth1990 commented 7 years ago

Has anyone found the solution. I am getting similar output

Execution failed for task ':karmaRun'.

Process 'command '/Users/CognizantMobility/.gradle/nodejs/node-v4.2.3-darwin-x64/bin/node'' finished with non-zero exit value 1

sergeymild commented 7 years ago
rasenderhase commented 7 years ago

Bug is still present:

> Task :karmaRun
14:33:47.407 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Build operation 'Task :karmaRun' started
14:33:47.408 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Starting to execute task ':karmaRun'
14:33:47.408 [INFO] [org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter] Putting task artifact state for task ':karmaRun' into context took 0.0 secs.
14:33:47.408 [DEBUG] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Determining if task ':karmaRun' is up-to-date
14:33:47.408 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Executing task ':karmaRun' (up-to-date check took 0.0 secs) due to:
  Task has not declared any outputs.
14:33:47.409 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':karmaRun'.
14:33:47.409 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Build operation 'Execute exec for :karmaRun' started
14:33:47.410 [INFO] [org.gradle.process.internal.DefaultExecHandle] Starting process 'command '/Users/andreas/.gradle/nodejs/node-v4.2.3-darwin-x64/bin/node''. Working directory: /Users/andreas/git/shopfloor-web Command: /Users/andreas/.gradle/nodejs/node-v4.2.3-darwin-x64/bin/node /Users/andreas/git/shopfloor-web/node_modules/karma/bin/karma start /Users/andreas/git/shopfloor-web/build/karma.conf.js --single-run --color
14:33:47.410 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Environment for process 'command '/Users/andreas/.gradle/nodejs/node-v4.2.3-darwin-x64/bin/node'': {PATH=/Users/andreas/.gradle/nodejs/node-v4.2.3-darwin-x64/bin:/Users/andreas/.nvm/versions/node/v8.5.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/gradle/bin:/usr/local/git/bin:/opt/maven/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin:/Users/andreas/Library/PackageManager/bin, MANPATH=/Users/andreas/.nvm/versions/node/v8.5.0/share/man:/usr/local/share/man:/usr/share/man:/usr/local/git/share/man:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man, JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home, TERM=xterm-256color, JAVA_MAIN_CLASS_21001=org.gradle.launcher.GradleMain, LANG=de_DE.UTF-8, GRADLE_HOME=/opt/gradle, DISPLAY=/private/tmp/com.apple.launchd.lrXL5pzH17/org.macosforge.xquartz:0, MAVEN_HOME=/opt/maven, LOGNAME=andreas, NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist, TERM_PROGRAM_VERSION=400, PWD=/Users/andreas/git/shopfloor-web, XPC_SERVICE_NAME=0, APP_ICON_21001=/usr/local/Cellar/gradle/4.2.1/libexec/media/gradle.icns, NVM_CD_FLAGS=-q, SHELL=/bin/zsh, NVM_DIR=/Users/andreas/.nvm, HOMEBREW_GITHUB_API_TOKEN=2571b955a3b70cd9b4441a6b2114a0778a0efb28, TERM_PROGRAM=Apple_Terminal, PAGER=less, NVM_PATH=/Users/andreas/.nvm/versions/node/v8.5.0/lib/node, LSCOLORS=Gxfxcxdxbxegedabagacad, OLDPWD=/usr/local/Cellar/gradle/4.2.1/libexec, USER=andreas, JAVA_MAIN_CLASS_21013=org.gradle.launcher.daemon.bootstrap.GradleDaemon, ZSH=/Users/andreas/.oh-my-zsh, TMPDIR=/var/folders/x7/3dgrvk_s3w98rvq76py1h0yr0000gn/T/, SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.5aNa2xMbYt/Listeners, XPC_FLAGS=0x0, TERM_SESSION_ID=5E64DECF-B6B7-43C8-BE95-ADA51C595B57, CODACY_PROJECT_TOKEN=72d0a507401e4752aff1a37315cabfba, NVM_IOJS_ORG_MIRROR=https://iojs.org/dist, __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x3, Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.50Km15vYfw/Render, LESS=-R, LC_CTYPE=de_DE.UTF-8, NVM_BIN=/Users/andreas/.nvm/versions/node/v8.5.0/bin, APP_NAME_21001=Gradle, HOME=/Users/andreas, SHLVL=1}
14:33:47.410 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTING
14:33:47.410 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Waiting until process started: command '/Users/andreas/.gradle/nodejs/node-v4.2.3-darwin-x64/bin/node'.
14:33:47.416 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTED
14:33:47.417 [DEBUG] [org.gradle.process.internal.ExecHandleRunner] waiting until streams are handled...
14:33:47.417 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process 'command '/Users/andreas/.gradle/nodejs/node-v4.2.3-darwin-x64/bin/node''
                                  PhantomJS 2.1.1 (Mac OS X 0.0.0): Executed 0 of 0 ERROR (0.001 secs / 0 secs)
14:33:49.924 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
14:33:49.924 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command '/Users/andreas/.gradle/nodejs/node-v4.2.3-darwin-x64/bin/node'' finished with exit value 1 (state: FAILED)