Closed marlonsilva10 closed 8 years ago
Can you try configuring your proxy via the method described here:
https://docs.gradle.org/current/userguide/build_environment.html (20.3)
I tried using both gradle.properties file in the project directory and in my home directory. None worked!
I know that gradle is using my proxy configuration because all jar and zip dependencies it is downloading with success. Only bowerDependencies is failing.
Maybe a .bowerrc
file is needed? http://stackoverflow.com/questions/18359887/bower-proxy-configuration
I tried to put this configuration in .bowerrc
file at my user home directory and at the project root. Both without success.
@marlonsilva10 does your .bowerrc
file looks something like this (with the braces):
{
"proxy": "http://proxy.local",
"https-proxy": "https://proxy.local"
}
@craigburke
I tried configuring like that but it did not worked (.bowerrc
file at project root and user home directory):
{
"proxy":"http://localhost:53128",
"https-proxy":"http://localhost:53128"
}
I created a proxy using cntlm.
same problem here. bower, npm as well as gradle works all in seperate. But somehow inside the grails app node/bower doesn't work properly. I digged now into that and I guess one would require a plugin like global tunnel for node: https://www.npmjs.com/package/global-tunnel. unfortunately I don't know how one could manage that as I don't know the grails infrastructure good enough and don't know in detail how gradle works.
@schmittr thanks for the tip. I'll look into it.
@marlonsilva10 could you see if changing the version of the bower installer plugin to 2.4.2 in your project fixes your issue?
@marlonsilva10 if that doesn't work could you run the following and let me know what you get:
./gradlew bowerRefresh -PbowerDebug=true --stacktrace --verbose
@craigburke
Actually, not! :-(
I'm on windows 7.
Now, it creates the folder named node_modules
in the project root but it remains empty.
The npm-debug file looks like:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Users\\u42s\\.gradle\\nodejs\\node-v0.11.10-windows-x64\\bin\\node.exe',
1 verbose cli 'C:\\Users\\u42s\\.gradle\\nodejs\\node-v0.11.10-linux-x86\\lib\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'bower-installer' ]
2 info using npm@1.3.22
3 info using node@v0.11.10
4 verbose cache add [ 'bower-installer', null ]
5 verbose cache add name=undefined spec="bower-installer" args=["bower-installer",null]
6 verbose parsed url { protocol: null,
6 verbose parsed url slashes: null,
6 verbose parsed url auth: null,
6 verbose parsed url host: null,
6 verbose parsed url port: null,
6 verbose parsed url hostname: null,
6 verbose parsed url hash: null,
6 verbose parsed url search: null,
6 verbose parsed url query: null,
6 verbose parsed url pathname: 'bower-installer',
6 verbose parsed url path: 'bower-installer',
6 verbose parsed url href: 'bower-installer' }
7 silly lockFile e75a97de-bower-installer bower-installer
8 verbose lock bower-installer C:\Users\u42s\AppData\Roaming\npm-cache\e75a97de-bower-installer.lock
9 silly lockFile e75a97de-bower-installer bower-installer
10 silly lockFile e75a97de-bower-installer bower-installer
11 verbose addNamed [ 'bower-installer', '' ]
12 verbose addNamed [ null, '*' ]
13 silly lockFile 8dda27d5-bower-installer bower-installer@
14 verbose lock bower-installer@ C:\Users\u42s\AppData\Roaming\npm-cache\8dda27d5-bower-installer.lock
15 silly addNameRange { name: 'bower-installer', range: '*', hasData: false }
16 verbose url raw bower-installer
17 verbose url resolving [ 'https://registry.npmjs.org/', './bower-installer' ]
18 verbose url resolved https://registry.npmjs.org/bower-installer
19 info trying registry request attempt 1 at 14:33:45
20 http GET https://registry.npmjs.org/bower-installer
21 error TypeError: Request path contains unescaped characters.
21 error at Agent.request (_http_agent.js:286:11)
21 error at TunnelingAgent.exports.request (http.js:52:22)
21 error at TunnelingAgent.createSocket (C:\Users\u42s\.gradle\nodejs\node-v0.11.10-linux-x86\lib\node_modules\npm\node_modules\request\node_modules\tunnel-agent\index.js:117:25)
21 error at TunnelingAgent.createSecureSocket [as createSocket] (C:\Users\u42s\.gradle\nodejs\node-v0.11.10-linux-x86\lib\node_modules\npm\node_modules\request\node_modules\tunnel-agent\index.js:184:41)
21 error at TunnelingAgent.addRequest (C:\Users\u42s\.gradle\nodejs\node-v0.11.10-linux-x86\lib\node_modules\npm\node_modules\request\node_modules\tunnel-agent\index.js:80:8)
21 error at new ClientRequest (_http_client.js:125:16)
21 error at Agent.request (_http_agent.js:301:10)
21 error at Object.exports.request (https.js:129:22)
21 error at Request.start (C:\Users\u42s\.gradle\nodejs\node-v0.11.10-linux-x86\lib\node_modules\npm\node_modules\request\request.js:583:30)
21 error at Request.end (C:\Users\u42s\.gradle\nodejs\node-v0.11.10-linux-x86\lib\node_modules\npm\node_modules\request\request.js:1237:28)
22 error If you need help, you may report this *entire* log,
22 error including the npm and node versions, at:
22 error <http://github.com/isaacs/npm/issues>
23 error System Windows_NT 6.1.7601
24 error command "C:\\Users\\u42s\\.gradle\\nodejs\\node-v0.11.10-windows-x64\\bin\\node.exe" "C:\\Users\\u42s\\.gradle\\nodejs\\node-v0.11.10-linux-x86\\lib\\node_modules\\npm\\bin\\npm-cli.js" "install" "bower-installer"
25 error cwd C:\Users\u42s\Desktop\angularTest
26 error node -v v0.11.10
27 error npm -v 1.3.22
28 verbose exit [ 1, true ]
I saw some people that dowgraded node as a workaround for this issue but i didn't try that yet.
The full log is:
14:41:29.794 [INFO] [org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter] Executing task ':bowerDependencies' (up-to-date check took 0.003 secs) due to:
No history is available.
14:41:29.798 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter] Executing actions for task ':bowerDependencies'.
14:41:29.827 [INFO] [org.gradle.process.internal.DefaultExecHandle] Starting process 'command 'cmd''. Working directory: C:\Users\u42s\Desktop\angularTest Command: cmd /c ""C:\Users\u42s\.gradle\nodejs\node-v0.11.10-windows-x64\bin\node.exe" "C:\Users\u42s\.grad
le\nodejs\node-v0.11.10-linux-x86\lib\node_modules\npm\bin\npm-cli.js" "install" "bower-installer""
14:41:29.837 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTING
14:41:29.843 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Waiting until process started: command 'cmd'.
14:41:29.851 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: STARTED
14:41:29.855 [INFO] [org.gradle.process.internal.DefaultExecHandle] Successfully started process 'command 'cmd''
14:41:29.855 [DEBUG] [org.gradle.process.internal.ExecHandleRunner] waiting until streams are handled...
14:41:31.505 [ERROR] [system.err] npm http GET https://registry.npmjs.org/bower-installer
npm ERR! TypeError: Request path contains unescaped characters.
npm ERR! at Agent.request (_http_agent.js:286:11)
npm ERR! at TunnelingAgent.exports.request (http.js:52:22)
npm ERR! at TunnelingAgent.createSocket (C:\Users\u42s\.gradle\nodejs\node-v0.11.10-linux-x86\lib\node_modules\npm\node_modules\request\node_modules\tunnel-agent\index.js:117:25)
npm ERR!
at TunnelingAgent.createSecureSocket [as createSocket] (C:\Users\u42s\.gradle\nodejs\node-v0.11.10-linux-x86\lib\node_modules\npm\node_modules\request\node_modules\tunnel-agent\index.js:184:41)
npm ERR! at TunnelingAgent.addRequest (C:\Users\u42s\.gradle\nodejs\node-v0.11.10-linux-x86\lib\node_modules\npm\node_modules\request\node_modules\tunnel-agent\index.js:80:8)
npm ERR! at new ClientRequest (_http_client.js:125:16)
npm ERR! at Agent.request (_http_agent.js:301:10)
npm ERR! at Object.exports.request (https.js:129:22)
npm ERR! at Request.start (C:\Users\u42s\.gradle\nodejs\node-v0.11.10-linux-x86\lib\node_modules\npm\node_modules\request\request.js:583:30)
npm ERR! at Request.end (C:\Users\u42s\.gradle\nodejs\node-v0.11.10-linux-x86\lib\node_modules\npm\node_modules\request\request.js:1237:28)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm E
RR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Users\\u42s\\.gradle\\nodejs\\node-v0.11.10-windows-x64\\bin\\node.exe" "C:\\Users\\u42s\\.gradle\\nodejs\\node-v0.11.10-linux-x86\\lib\\node_modules\\npm\\bin\\npm-cli.js" "install" "bower-installer"
npm ERR! cwd C:\Users\u42s\Desktop\angularTest
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.22
npm
14:41:31.528 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing state to: FAILED
14:41:31.536 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'cmd'' finished with exit value 1 (state: FAILED)
14:41:31.541 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':bowerDependencies'
14:41:31.545 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :bowerDependencies FAILED
14:41:31.550 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :bowerDependencies (Thread[main,5,main]) completed. Took 1.77 secs.
14:41:31.554 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 2.236 secs, idle: 0.034 secs
14:41:31.564 [ERROR] [org.gradle.BuildExceptionReporter]
14:41:31.570 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
14:41:31.582 [ERROR] [org.gradle.BuildExceptionReporter]
14:41:31.591 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
14:41:31.595 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':bowerDependencies'.
14:41:31.598 [ERROR] [org.gradle.BuildExceptionReporter] > Process 'command 'cmd'' finished with non-zero exit value 1
14:41:31.603 [ERROR] [org.gradle.BuildExceptionReporter]
14:41:31.607 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
14:41:31.624 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':bowerDependencies'.
14:41:31.628 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
14:41:31.631 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
14:41:31.634 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
14:41:31.638 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
14:41:31.641 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
14:41:31.644 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
14:41:31.647 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
14:41:31.651 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
14:41:31.655 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
14:41:31.658 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
14:41:31.661 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
14:41:31.665 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
14:41:31.668 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
14:41:31.672 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
14:41:31.676 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
14:41:31.680 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
14:41:31.686 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
14:41:31.703 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
14:41:31.707 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
14:41:31.711 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
14:41:31.714 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
14:41:31.717 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
14:41:31.725 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
14:41:31.730 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Factories$1.create(Factories.java:22)
14:41:31.733 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
14:41:31.736 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
14:41:31.740 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
14:41:31.744 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
14:41:31.747 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
14:41:31.755 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
14:41:31.760 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
14:41:31.763 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
14:41:31.766 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
14:41:31.770 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
14:41:31.773 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
14:41:31.778 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
14:41:31.784 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
14:41:31.788 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
14:41:31.791 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
14:41:31.794 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:77)
14:41:31.798 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:47)
14:41:31.801 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
14:41:31.807 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
14:41:31.815 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
14:41:31.819 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:170)
14:41:31.822 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
14:41:31.826 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
14:41:31.830 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
14:41:31.833 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
14:41:31.836 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
14:41:31.840 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
14:41:31.844 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
14:41:31.847 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
14:41:31.851 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.Main.doAction(Main.java:33)
14:41:31.855 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
14:41:31.859 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
14:41:31.863 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
14:41:31.866 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
14:41:31.869 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
14:41:31.874 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
14:41:31.878 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
14:41:31.884 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: org.gradle.process.internal.ExecException: Process 'command 'cmd'' finished with non-zero exit value 1
14:41:31.888 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:367)
14:41:31.891 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:31)
14:41:31.895 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.file.DefaultFileOperations.exec(DefaultFileOperations.java:165)
14:41:31.898 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.java:800)
14:41:31.903 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.java:796)
14:41:31.909 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.Project$exec$14.call(Unknown Source)
14:41:31.914 [ERROR] [org.gradle.BuildExceptionReporter] at com.moowork.gradle.node.exec.ExecRunner.run(ExecRunner.groovy:43)
14:41:31.918 [ERROR] [org.gradle.BuildExceptionReporter] at com.moowork.gradle.node.exec.NodeExecRunner.doExecute(NodeExecRunner.groovy:44)
14:41:31.921 [ERROR] [org.gradle.BuildExceptionReporter] at com.moowork.gradle.node.exec.ExecRunner.execute(ExecRunner.groovy:83)
14:41:31.925 [ERROR] [org.gradle.BuildExceptionReporter] at com.moowork.gradle.node.exec.ExecRunner$execute.call(Unknown Source)
14:41:31.928 [ERROR] [org.gradle.BuildExceptionReporter] at com.moowork.gradle.node.exec.NpmExecRunner.doExecute(NpmExecRunner.groovy:37)
14:41:31.931 [ERROR] [org.gradle.BuildExceptionReporter] at com.moowork.gradle.node.exec.ExecRunner.execute(ExecRunner.groovy:83)
14:41:31.935 [ERROR] [org.gradle.BuildExceptionReporter] at com.moowork.gradle.node.exec.ExecRunner$execute.call(Unknown Source)
14:41:31.939 [ERROR] [org.gradle.BuildExceptionReporter] at com.moowork.gradle.node.task.NpmTask.exec(NpmTask.groovy:74)
14:41:31.942 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
14:41:31.945 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:227)
14:41:31.949 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)
14:41:31.952 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)
14:41:31.955 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
14:41:31.958 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
14:41:31.962 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
14:41:31.965 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
14:41:31.970 [ERROR] [org.gradle.BuildExceptionReporter] ... 60 more
14:41:31.974 [ERROR] [org.gradle.BuildExceptionReporter]
14:41:31.977 [LIFECYCLE] [org.gradle.BuildResultLogger]
14:41:31.981 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
14:41:31.985 [LIFECYCLE] [org.gradle.BuildResultLogger]
14:41:31.988 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 29.491 secs
14:41:31.999 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cp_proj class cache for build file 'C:\Users\u42s\Desktop\angularTest\build.gradle' (C:\Users\u42s\.gradle\caches\2.9\scripts\build_1o58cxyql2xf914wehr58u6lq\cp_proj).
14:41:32.003 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on proj class cache for build file 'C:\Users\u42s\Desktop\angularTest\build.gradle' (C:\Users\u42s\.gradle\caches\2.9\scripts\build_1o58cxyql2xf914wehr58u6lq\proj).
14:41:32.011 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileSnapshots.bin (C:\Users\u42s\Desktop\angularTest\.gradle\2.9\taskArtifacts\fileSnapshots.bin)
14:41:32.013 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileHashes.bin (C:\Users\u42s\Desktop\angularTest\.gradle\2.9\taskArtifacts\fileHashes.bin)
14:41:32.015 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache outputFileStates.bin (C:\Users\u42s\Desktop\angularTest\.gradle\2.9\taskArtifacts\outputFileStates.bin)
14:41:32.017 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache taskArtifacts.bin (C:\Users\u42s\Desktop\angularTest\.gradle\2.9\taskArtifacts\taskArtifacts.bin)
14:41:32.019 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on task history cache (C:\Users\u42s\Desktop\angularTest\.gradle\2.9\taskArtifacts).
14:41:32.022 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-metadata.bin (C:\Users\u42s\.gradle\caches\modules-2\metadata-2.16\module-metadata.bin)
14:41:32.024 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache artifact-at-repository.bin (C:\Users\u42s\.gradle\caches\modules-2\metadata-2.16\artifact-at-repository.bin)
14:41:32.028 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (C:\Users\u42s\.gradle\caches\modules-2).
14:41:32.030 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.memcache.InMemoryCachedRepositoryFactory] In-memory dependency metadata cache closed. Repos cached: 21, cache instances: 3, modules served from cache: 37, artifacts: 37
14:41:32.033 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolved configuration cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
14:41:32.035 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs)
14:41:32.037 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 2 resolution results binary files in 0.005 secs
14:41:32.039 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache Plugin Resolution Cache (C:\Users\u42s\.gradle\caches\2.9\plugin-resolution) was closed 0 times.
14:41:32.041 [DEBUG] [org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonManager] Stopping 0 compiler daemon(s).
14:41:32.043 [INFO] [org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonManager] Stopped 0 compiler daemon(s).
@craigburke Frst, I'm still on 2.4.1. What did you change in 2.4.2? I studied your code today a bit.
I recognized the following:
The call in the debug output is: _/home/schmittr/.gradle/nodejs/node-v0.11.10-linux-x64/bin/node /home/schmittr/.gradle/nodejs/node-v0.11.10-linux-x64/lib/nodemodules/npm/bin/npm-cli.js install bower-installer --silent
Funny thing is, it doesn't lookup the proxy settings in ~/.npmrc, but calling /home/schmittr/.gradle/nodejs/node-v0.11.10-linux-x64/bin/npm config get proxy does look it up correctly.
After comparing my local version of node (v0.11.0 vs v5.1.1) and npm (1.3.22 vs 3.5.2) I decided to google that specific version that was installed by the gradle module and crossed the following page: https://github.com/npm/npm/issues/4569.
An update of nodejs would suffice to get rid of the proxy-problem. I guess this affected both of your extensions:
I solved it now by just adding the following lines to the build.gradle:
node {
// Version of node to use.
version = '5.1.1'
// Version of npm to use.
npmVersion = '3.5.2'
}
After that bowerDependencies ran through. Now :bowerComponents threw an error in bowerComponents:
Cannot find module '/home/schmittr/projects/new/node_modules/bower-installer/node_modules/bower/bin/bower'
The command it tries to run is
Starting process 'command '/home/schmittr/.gradle/nodejs/node-v5.1.1-linux-x64/bin/node''. Working directory: /home/schmittr/projects/new/project Command: /home/schmittr/.gradle/nodejs/node-v5.1.1-linux-x64/bin/node /home/schmittr/projects/new/project/node_modules/bower-installer/node_modules/bower/bin/bower install
which would work like that:
/home/schmittr/.gradle/nodejs/node-v5.1.1-linux-x64/bin/node /home/schmittr/projects/new/project/node_modules/bower/bin/bower install
This might be a problem inside of your module, but I dunno. Perhaps it's a misconfiguration of something I did here..
Btw: ./gradlew test does also end up in an error in karmaRun.
I hope all of this analysis helps you ;)
updating to 2.4.2 didn't solve that. Still the path, as described in my last post, was not found and incorrect. For now I solved this, by setting a symlink inside bower-installer:
cd /home/schmittr/projects/new/project/node_modules/bower-installer
ln -s ../ node_modules
With this symlink it works...
@schmittr The change in 2.4.2 was related to an issue I noticed when a node_modules folder exists in a parent folder of the project. Unless the node_modules
directory is created in the project as a first step, all the npm dependencies ended up being installed outside the project into the parent folder's node_modules directory (not very helpful). I just wanted to make sure that wasn't complicating things here.
Your analysis is fantastic and incredibly helpful. I suspected it might be related to the version of either node or npm since the gradle node plugin uses fairly old versions by default.
The reason the path isn't right is that I don't believe the dependencies are nested in npm 3+ anymore. So the path to bower itself will have to be changed in my plugin.
So, in short you pretty much figured out the problem. :tada:
I'd like to preserve the ability for people to override the version of either node or npm (they shouldn't really need to but I'd like to keep that as an option). I'll do a new release shortly and have you give it a try.
Thanks for working through this :+1:
@Schlogen @craigburke Do we need to update anything in the profile following this?
@graemerocher we should only need to change the version of the plugin in profile.yml
once I've confirmed it fixes the issue.
Ok great
@schmittr and @marlonsilva10 ok, I think I finally got it. Could you each give version 2.5.1 a try?
It should work out of the box now and for any version of npm you choose.
@craigburke I just switched to 2.5.1 and :boom: it ran through :+1: I tested it with the default npm version and the one I posted before. Both works!
Thank you for fixing that!
@schmittr @craigburke Sweet! So is it just this dependency that needs updating to 2.5.1?
https://github.com/grails/grails-profile-repository/blob/master/profiles/angular/profile.yml#L21
As far as I tested: yes
Ok, I have to revert my last reply. Just tested gradlew test. There was still an error in karmaDependencies.
I guess it is similar to the other error. I'm still looking into it.
There is a problem with phantomjs. According to https://nodejs.org/en/download/releases I switched to the most recent LTS version and the most recent version:
npm ERR! Linux 4.1.13-1-MANJARO
npm ERR! argv "/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node" "/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/lib/node_modules/npm/bin/npm-cli.js" "install" "karma" "karma-phantomjs-launcher" "phantomjs"
npm ERR! node v4.2.3
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! phantomjs@1.9.19 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs@1.9.19 install script 'node install.js'.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls phantomjs
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/schmittr/projects/eers-new/app/npm-debug.log
I didn't stepped into it, what exactly went wrong here. Seems to be a phantomjs-problem: https://github.com/Medium/phantomjs/issues/399
@craigburke
For run-app
, it's ok now!
@marlonsilva10 and @schmittr great! thanks for confirming that the bower plugin works as expected! :+1:
@schmittr that's strange I'm not seeing the same thing on my end. Would you mind throwing up a test app so that I can try to see exactly what you're seeing.
Thanks all changes committed
@craigburke I think it's a problem of phantomjs as mentioned above. Probably something to do with proxy as others have the same problem with phantomjs.
I don't do any special, just running grails create-app angularApp --profile=angular followed by ./gradlew test (assuming your plugin is the correct version).
@marlonsilva10 could you perhaps try ./gradlew test? As you also have a proxy it might be that you end up in the same hassle.. and we all know: don't hassle the hoff.. :wink:
@schmittr I assure you, there will be no hassling of the Hoff :)
@marlonsilva10 I would be interested to see if you also have issues with ./gradlew test
. It might warrant a separate github issue if you do.
My KarmaDependencies went ok. However KarmaRun failed with de following module missing:
:compileJava UP-TO-DATE
:compileGroovy UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:nodeSetup UP-TO-DATE
:karmaDependencies UP-TO-DATE
:karmaGenerateConfig UP-TO-DATE
:karmaRun
module.js:340
throw err;
^
Error: Cannot find module 'jasmine-core'
at Function.Module._resolveFilename (module.js:338:15)
at Function.require.resolve (module.js:389:19)
at initJasmine (C:\Users\u42s\Desktop\angularTest\node_modules\karma-jasmine
\lib\index.js:8:42)
at Array.invoke (C:\Users\u42s\Desktop\angularTest\node_modules\di\lib\injec
tor.js:75:15)
at get (C:\Users\u42s\Desktop\angularTest\node_modules\di\lib\injector.js:48
:43)
at C:\Users\u42s\Desktop\angularTest\node_modules\karma\lib\server.js:137:20
at Array.forEach (native)
at Server._start (C:\Users\u42s\Desktop\angularTest\node_modules\karma\lib\s
erver.js:136:21)
at invoke (C:\Users\u42s\Desktop\angularTest\node_modules\di\lib\injector.js
:75:15)
at Server.start (C:\Users\u42s\Desktop\angularTest\node_modules\karma\lib\se
rver.js:101:18)
at Object.exports.run (C:\Users\u42s\Desktop\angularTest\node_modules\karma\
lib\cli.js:231:26)
at Object.<anonymous> (C:\Users\u42s\Desktop\angularTest\node_modules\karma\
bin\karma:3:23)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
:karmaRun FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':karmaRun'.
> Process 'command 'cmd'' finished with non-zero exit value 1
* Try:
Run with --info or --debug option to get more log output.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':karmaRu
n'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
ecuteActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
ecute(ExecuteActionsTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExec
uter.execute(PostExecutionAnalysisTaskExecuter.java:35)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.exec
ute(SkipUpToDateTaskExecuter.java:64)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execut
e(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecu
ter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter
.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execut
e(SkipOnlyIfTaskExecuter.java:53)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter
.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTa
skWorker.execute(DefaultTaskGraphExecuter.java:203)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTa
skWorker.execute(DefaultTaskGraphExecuter.java:185)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW
orker.processTask(AbstractTaskPlanExecutor.java:66)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorW
orker.run(AbstractTaskPlanExecutor.java:50)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(Defaul
tTaskPlanExecutor.java:25)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(Defau
ltTaskGraphExecuter.java:110)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTask
ExecutionAction.java:37)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:37)
at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExec
uter.java:23)
at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecu
ter.java:43)
at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildEx
ecutionAction.java:32)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:37)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecute
r.java:30)
at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLa
uncher.java:154)
at org.gradle.internal.Factories$1.create(Factories.java:22)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
tBuildOperationExecutor.java:90)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
tBuildOperationExecutor.java:52)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(Default
GradleLauncher.java:151)
at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGra
dleLauncher.java:32)
at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradl
eLauncher.java:99)
at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradl
eLauncher.java:93)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
tBuildOperationExecutor.java:90)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(Defaul
tBuildOperationExecutor.java:62)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradle
Launcher.java:93)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLaun
cher.java:82)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildCon
troller.run(InProcessBuildActionExecuter.java:94)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(Exe
cuteBuildActionRunner.java:28)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildA
ctionRunner.java:35)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
ssBuildActionExecuter.java:43)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProce
ssBuildActionExecuter.java:28)
at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Contin
uousBuildActionExecuter.java:77)
at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(Contin
uousBuildActionExecuter.java:47)
at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exe
cute(DaemonUsageSuggestingBuildActionExecuter.java:51)
at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.exe
cute(DaemonUsageSuggestingBuildActionExecuter.java:28)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.jav
a:170)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
execute(CommandLineActionFactory.java:237)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.
execute(CommandLineActionFactory.java:210)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
meValidationAction.java:35)
at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRunti
meValidationAction.java:24)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
CommandLineActionFactory.java:206)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(
CommandLineActionFactory.java:169)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
ortingAction.java:33)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionRep
ortingAction.java:22)
at org.gradle.launcher.Main.doAction(Main.java:33)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBoots
trap.java:54)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.j
ava:35)
at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.ja
va:30)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: org.gradle.process.internal.ExecException: Process 'command 'cmd'' fi
nished with non-zero exit value 1
at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNo
rmalExitValue(DefaultExecHandle.java:367)
at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecActi
on.java:31)
at org.gradle.api.internal.file.DefaultFileOperations.exec(DefaultFileOp
erations.java:165)
at org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.
java:800)
at org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.
java:796)
at org.gradle.api.Project$exec$14.call(Unknown Source)
at com.moowork.gradle.node.exec.ExecRunner.run(ExecRunner.groovy:43)
at com.moowork.gradle.node.exec.NodeExecRunner.doExecute(NodeExecRunner.
groovy:44)
at com.moowork.gradle.node.exec.ExecRunner.execute(ExecRunner.groovy:83)
at com.moowork.gradle.node.exec.ExecRunner$execute.call(Unknown Source)
at com.moowork.gradle.node.task.NodeTask.exec(NodeTask.groovy:78)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF
actory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:227)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF
actory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskF
actory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstra
ctTask.java:585)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(Abstra
ctTask.java:568)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
ecuteAction(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.ex
ecuteActions(ExecuteActionsTaskExecuter.java:61)
... 60 more
BUILD FAILED
Total time: 10.421 secs
@marlonsilva10 and @schmittr Could you both try version 1.3.0 of the karma plugin.
./gradlew karmaRefresh
./gradlew karamRun --info --stacktrace -PkarmaDebug=true
I appreciate you both working through this with me.
@craigburke you're welcome, I appreciate your work in genereal ;) Here the output of /gradlew karamRun --info --stacktrace -PkarmaDebug=true
I really suspect phantomjs to have a problem with proxies as mentioned in https://github.com/Medium/phantomjs/issues/399
Executing task ':app:karmaDependencies' (up-to-date check took 0.229 secs) due to:
No history is available.
Starting process 'command '/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node''. Working directory: /home/schmittr/projects/eers-new/app Command: /home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node /home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/lib/node_modules/npm/bin/npm-cli.js install karma karma-phantomjs-launcher phantomjs karma-jasmine
Successfully started process 'command '/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node''
npm WARN optional dep failed, continuing fsevents@1.0.6
> phantomjs@1.9.19 install /home/schmittr/projects/eers-new/app/node_modules/phantomjs
> node install.js
Install exited unexpectedly
> bufferutil@1.2.1 install /home/schmittr/projects/eers-new/app/node_modules/karma/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild
make: Entering directory '/home/schmittr/projects/eers-new/app/node_modules/karma/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/obj.target/bufferutil.node
COPY Release/bufferutil.node
make: Leaving directory '/home/schmittr/projects/eers-new/app/node_modules/karma/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/bufferutil/build'
> utf-8-validate@1.2.1 install /home/schmittr/projects/eers-new/app/node_modules/karma/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild
make: Entering directory '/home/schmittr/projects/eers-new/app/node_modules/karma/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/obj.target/validation.node
COPY Release/validation.node
make: Leaving directory '/home/schmittr/projects/eers-new/app/node_modules/karma/node_modules/socket.io/node_modules/engine.io/node_modules/ws/node_modules/utf-8-validate/build'
> utf-8-validate@1.2.1 install /home/schmittr/projects/eers-new/app/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate
> node-gyp rebuild
make: Entering directory '/home/schmittr/projects/eers-new/app/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/obj.target/validation.node
COPY Release/validation.node
make: Leaving directory '/home/schmittr/projects/eers-new/app/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/utf-8-validate/build'
> bufferutil@1.2.1 install /home/schmittr/projects/eers-new/app/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild
make: Entering directory '/home/schmittr/projects/eers-new/app/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/obj.target/bufferutil.node
COPY Release/bufferutil.node
make: Leaving directory '/home/schmittr/projects/eers-new/app/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/node_modules/bufferutil/build'
npm ERR! Linux 4.1.15-1-MANJARO
npm ERR! argv "/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node" "/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/lib/node_modules/npm/bin/npm-cli.js" "install" "karma" "karma-phantomjs-launcher" "phantomjs" "karma-jasmine"
npm ERR! node v4.2.3
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! phantomjs@1.9.19 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs@1.9.19 install script 'node install.js'.
npm ERR! This is most likely a problem with the phantomjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls phantomjs
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/schmittr/projects/eers-new/app/npm-debug.log
:app:karmaDependencies FAILED
:app:karmaDependencies (Thread[Daemon worker Thread 3,5,main]) completed. Took 24.052 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:karmaDependencies'.
> Process 'command '/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node'' finished with non-zero exit value 1
* Try:
Run with --debug option to get more log output.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:karmaDependencies'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
at org.gradle.internal.Factories$1.create(Factories.java:22)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:77)
at org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:47)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
at org.gradle.util.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:47)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:66)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:246)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
Caused by: org.gradle.process.internal.ExecException: Process 'command '/home/schmittr/.gradle/nodejs/node-v4.2.3-linux-x64/bin/node'' finished with non-zero exit value 1
at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:367)
at org.gradle.process.internal.DefaultExecAction.execute(DefaultExecAction.java:31)
at org.gradle.api.internal.file.DefaultFileOperations.exec(DefaultFileOperations.java:165)
at org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.java:800)
at org.gradle.api.internal.project.AbstractProject.exec(AbstractProject.java:796)
at org.gradle.api.Project$exec$16.call(Unknown Source)
at com.moowork.gradle.node.exec.ExecRunner.run(ExecRunner.groovy:43)
at com.moowork.gradle.node.exec.NodeExecRunner.doExecute(NodeExecRunner.groovy:44)
at com.moowork.gradle.node.exec.ExecRunner.execute(ExecRunner.groovy:83)
at com.moowork.gradle.node.exec.ExecRunner$execute.call(Unknown Source)
at com.moowork.gradle.node.exec.NpmExecRunner.doExecute(NpmExecRunner.groovy:37)
at com.moowork.gradle.node.exec.ExecRunner.execute(ExecRunner.groovy:83)
at com.moowork.gradle.node.exec.ExecRunner$execute.call(Unknown Source)
at com.moowork.gradle.node.task.NpmTask.exec(NpmTask.groovy:74)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:227)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)
at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:585)
at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:568)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
... 68 more
BUILD FAILED
hmpf... @craigburke is it possible to assign a certain the bower version as I get now, after I removed the nodejs folder, the following error:
:app:bowerComponentsurl.js:195
this.auth = decodeURIComponent(auth);
^
URIError: URI malformed
at decodeURIComponent (native)
at Url.parse (url.js:195:19)
at Object.urlParse [as parse] (url.js:84:5)
at Request.setupTunnel (/home/schmittr/projects/eers-new/app/node_modules/bower-installer/node_modules/bower/node_modules/bower-registry-client/node_modules/request/request.js:296:22)
at Request.init (/home/schmittr/projects/eers-new/app/node_modules/bower-installer/node_modules/bower/node_modules/bower-registry-client/node_modules/request/request.js:426:10)
at new Request (/home/schmittr/projects/eers-new/app/node_modules/bower-installer/node_modules/bower/node_modules/bower-registry-client/node_modules/request/request.js:283:8)
at request (/home/schmittr/projects/eers-new/app/node_modules/bower-installer/node_modules/bower/node_modules/bower-registry-client/node_modules/request/index.js:50:10)
at Function.request.get (/home/schmittr/projects/eers-new/app/node_modules/bower-installer/node_modules/bower/node_modules/bower-registry-client/node_modules/request/index.js:63:27)
at RegistryClient.doRequest (/home/schmittr/projects/eers-new/app/node_modules/bower-installer/node_modules/bower/node_modules/bower-registry-client/lib/lookup.js:88:26)
at /home/schmittr/projects/eers-new/app/node_modules/bower-installer/node_modules/bower/node_modules/bower-registry-client/lib/lookup.js:38:27
FAILED
FAILURE: Build failed with an exception.
I didn't change anything else, but I guess, that it installed a more actual bower version and now the whole thing exploded :boom:
ok, was something else.. this proxy shizzle drives me nuts.. I had to url-encode the password in .bowerrc as well
@schmittr I feel for you, man. Does that mean it's working after url encoding the password or still not yet?
@craigburke the test-cases unfortunately not :( karmaDependencies still fails. I still believe it's phantomjs. Should I open an new issue and link to them?
@schmittr yeah you can submit a new issue here: https://github.com/craigburke/karma-gradle
@craigburke done, thank you for responding so fast ;) At least I can start developing for now, but without testing... But that's ok, as I'm never making failures :stuck_out_tongue_winking_eye: I hope the phantomjs guys can get rid of that phenomen, if that's really their issue..
I created a simple grails application with the new angular profile using the following command:
The application was successfully created. If i try to execute the command
grails run-app
in an environment without proxy, all things go great and the app starts. However, in an environment with a proxy (inside a corporate proxy), the same commandgrails run-app
gets the exception below (with--stacktrace
and--verbose
arguments).My proxy is configured with the -Dhttp.proxyHost, -Dhttp.proxyPort, -Dhttps.proxyHost, -Dhttps.proxyPort,... parameters in GRAILS_OPTS environment variable. I tried configuring gradle proxy parameters in GRADLE_OPTS variable and in gradle.properties file but it didn't work. I also tried using the HTTP_PROXY and HTTPS_PROXY variables without success .
It looks like the gradle-node-plugin used by bower-installer plugin had some problems to use npm behind the proxy.
I would appreciate any help!
StackTrace: