Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for proxy behind firewall #8

Open
shreyaspurohit opened this issue Jul 16, 2013 · 0 comments
Open

Support for proxy behind firewall #8

shreyaspurohit opened this issue Jul 16, 2013 · 0 comments

Comments

@shreyaspurohit
Copy link

I was configuring grails with this wrapper behind firewall in teamcity. I am getting this exception stack trace below. From this URL http://www.pressingquestion.com/1542947/Gradle-Proxy-Configuration I think you may have to support it in the code. Please close this issue if you think its not correct or if it is already working and a mistake on my part.

---- trace----

[11:41:44][:install-grails] Downloading Grails 2.2.3
11:41:44
11:41:44BUILD FAILED
11:41:44Total time: 36.933 secs
11:41:44Process exited with code 1
11:41:44Gradle failure report
[11:41:44][Gradle failure report] FAILURE: Build failed with an exception.
[11:41:44]Gradle failure report[Gradle failure report] * What went wrong:
[11:41:44][Gradle failure report] Execution failed for task ':install-grails'.
[11:41:44][Gradle failure report] > java.io.IOException: Server returned HTTP response code: 407 for URL: http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.2.3.zip
[11:41:44]Gradle failure report[Gradle failure report] * Try:
[11:41:44][Gradle failure report] Run with --info or --debug option to get more log output.
[11:41:44]Gradle failure report[Gradle failure report] * Exception is:
[11:41:44][Gradle failure report] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':install-grails'.
[11:41:44][Gradle failure report] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:72)
[11:41:44][Gradle failure report] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:49)
[11:41:44][Gradle failure report] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:34)
[11:41:44][Gradle failure report] at org.gradle.api.internal.changedetection.CacheLockHandlingTaskExecuter$1.run(CacheLockHandlingTaskExecuter.java:34)
[11:41:44][Gradle failure report] at org.gradle.internal.Factories$1.create(Factories.java:22)
[11:41:44][Gradle failure report] at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:179)
[11:41:44][Gradle failure report] at org.gradle.cache.internal.DefaultCacheAccess.longRunningOperation(DefaultCacheAccess.java:232)
[11:41:44][Gradle failure report] at org.gradle.cache.internal.DefaultPersistentDirectoryStore.longRunningOperation(DefaultPersistentDirectoryStore.java:142)
[11:41:44][Gradle failure report] at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCacheAccess.longRunningOperation(DefaultTaskArtifactStateCacheAccess.java:83)
[11:41:44][Gradle failure report] at org.gradle.api.internal.changedetection.CacheLockHandlingTaskExecuter.execute(CacheLockHandlingTaskExecuter.java:32)
[11:41:44][Gradle failure report] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:55)
[11:41:44][Gradle failure report] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)
[11:41:44][Gradle failure report] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:41)
[11:41:44][Gradle failure report] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
[11:41:44][Gradle failure report] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:52)
[11:41:44][Gradle failure report] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:42)
[11:41:44][Gradle failure report] at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:275)
[11:41:44][Gradle failure report] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.executeTask(DefaultTaskPlanExecutor.java:52)
[11:41:44][Gradle failure report] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.processTask(DefaultTaskPlanExecutor.java:38)
[11:41:44][Gradle failure report] at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:30)
[11:41:44][Gradle failure report] at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:84)
[11:41:44][Gradle failure report] at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
[11:41:44][Gradle failure report] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
[11:41:44][Gradle failure report] at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
[11:41:44][Gradle failure report] at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)
[11:41:44][Gradle failure report] at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExecuter$1.run(TaskCacheLockHandlingBuildExecuter.java:31)
[11:41:44][Gradle failure report] at org.gradle.internal.Factories$1.create(Factories.java:22)
[11:41:44][Gradle failure report] at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:124)
[11:41:44][Gradle failure report] at org.gradle.cache.internal.DefaultCacheAccess.useCache(DefaultCacheAccess.java:112)
[11:41:44][Gradle failure report] at org.gradle.cache.internal.DefaultPersistentDirectoryStore.useCache(DefaultPersistentDirectoryStore.java:134)
[11:41:44][Gradle failure report] at org.gradle.api.internal.changedetection.DefaultTaskArtifactStateCacheAccess.useCache(DefaultTaskArtifactStateCacheAccess.java:79)
[11:41:44][Gradle failure report] at org.gradle.api.internal.changedetection.TaskCacheLockHandlingBuildExecuter.execute(TaskCacheLockHandlingBuildExecuter.java:29)
[11:41:44][Gradle failure report] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
[11:41:44][Gradle failure report] at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
[11:41:44][Gradle failure report] at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)
[11:41:44][Gradle failure report] at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
[11:41:44][Gradle failure report] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
[11:41:44][Gradle failure report] at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54)
[11:41:44][Gradle failure report] at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:165)
[11:41:44][Gradle failure report] at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:113)
[11:41:44][Gradle failure report] at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:81)
[11:41:44][Gradle failure report] at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:38)
[11:41:44][Gradle failure report] at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:39)
[11:41:44][Gradle failure report] at org.gradle.launcher.exec.InProcessGradleLauncherActionExecuter.execute(InProcessGradleLauncherActionExecuter.java:25)
[11:41:44][Gradle failure report] at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
[11:41:44][Gradle failure report] at org.gradle.api.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
[11:41:44][Gradle failure report] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:201)
[11:41:44][Gradle failure report] at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:174)
[11:41:44][Gradle failure report] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:170)
[11:41:44][Gradle failure report] at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:139)
[11:41:44][Gradle failure report] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
[11:41:44][Gradle failure report] at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
[11:41:44][Gradle failure report] at org.gradle.launcher.Main.doAction(Main.java:48)
[11:41:44][Gradle failure report] at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
[11:41:44][Gradle failure report] at org.gradle.launcher.Main.main(Main.java:39)
[11:41:44][Gradle failure report] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[11:41:44][Gradle failure report] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[11:41:44][Gradle failure report] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[11:41:44][Gradle failure report] at java.lang.reflect.Method.invoke(Method.java:597)
[11:41:44][Gradle failure report] at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:50)
[11:41:44][Gradle failure report] at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
[11:41:44][Gradle failure report] at org.gradle.launcher.GradleMain.main(GradleMain.java:26)
[11:41:44][Gradle failure report] Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: java.io.IOException: Server returned HTTP response code: 407 for URL: http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.2.3.zip
[11:41:44][Gradle failure report] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:97)
[11:41:44][Gradle failure report] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
[11:41:44][Gradle failure report] at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
[11:41:44][Gradle failure report] at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
[11:41:44][Gradle failure report] at groovy.lang.Closure.call(Closure.java:412)
[11:41:44][Gradle failure report] at groovy.lang.Closure.call(Closure.java:425)
[11:41:44][Gradle failure report] at org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:485)
[11:41:44][Gradle failure report] at org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:469)
[11:41:44][Gradle failure report] at org.gradle.api.internal.tasks.TaskStatusNagger$1.execute(TaskStatusNagger.java:78)
[11:41:44][Gradle failure report] at org.gradle.api.internal.tasks.TaskStatusNagger$1.execute(TaskStatusNagger.java:74)
[11:41:44][Gradle failure report] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:64)
[11:41:44][Gradle failure report] ... 61 more
[11:41:44][Gradle failure report] Caused by: java.io.IOException: Server returned HTTP response code: 407 for URL: http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-2.2.3.zip
[11:41:44][Gradle failure report] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436)
[11:41:44][Gradle failure report] at java.net.URL.openStream(URL.java:1010)
[11:41:44][Gradle failure report] at java_net_URL$openStream.call(Unknown Source)
[11:41:44][Gradle failure report] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
[11:41:44][Gradle failure report] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
[11:41:44][Gradle failure report] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
[11:41:44][Gradle failure report] at com.connorgarvey.gradlegrails.GrailsPlugin.downloadZip(GrailsPlugin.groovy:179)
[11:41:44][Gradle failure report] at com.connorgarvey.gradlegrails.GrailsPlugin.download(GrailsPlugin.groovy:164)
[11:41:44][Gradle failure report] at com.connorgarvey.gradlegrails.GrailsPlugin.this$2$download(GrailsPlugin.groovy)
[11:41:44][Gradle failure report] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[11:41:44][Gradle failure report] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[11:41:44][Gradle failure report] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[11:41:44][Gradle failure report] at java.lang.reflect.Method.invoke(Method.java:597)
[11:41:44][Gradle failure report] at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
[11:41:44][Gradle failure report] at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
[11:41:44][Gradle failure report] at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:361)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant