From: tcarlier <tca...@gm...> - 2011-04-22 23:30:20
|
Yes, I'm able to deploy small files. I found a couple pages suggesting a switch to wagon-webdav for large files, so I tried it (without success) and now have this in my build.gradle: configurations { deployerJars } dependencies { deployerJars "org.apache.maven.wagon:wagon-webdav-jackrabbit:1.0-beta-6" } uploadArchives { repositories.mavenDeployer { repository(url: "dav:${artifactoryDeployUrl}") { authentication(userName: artifactoryUser, password: artifactoryPass) } configuration = configurations.deployerJars } } Here is the stacktrace using webdav Transferring 174021K from remote Broken pipe FAILURE: Build failed with an exception. ... Execution failed for task ':uploadArchives'. at org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions(DefaultTaskExecuter.java:66) at org.gradle.api.internal.tasks.DefaultTaskExecuter.execute(DefaultTaskExecuter.java:43) at org.gradle.api.internal.project.taskfactory.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:32) at org.gradle.api.internal.project.taskfactory.ExecutionShortCircuitTaskExecuter.execute(ExecutionShortCircuitTaskExecuter.java:50) at org.gradle.api.internal.tasks.SkipTaskExecuter.doExecute(SkipTaskExecuter.java:57) at org.gradle.api.internal.tasks.SkipTaskExecuter.execute(SkipTaskExecuter.java:35) at org.gradle.api.internal.tasks.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:32) at org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:231) at org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167) at org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:160) at org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:78) at org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:113) at org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54) at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:153) at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:107) at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:75) at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:41) at org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:27) at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:209) at org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:193) at org.gradle.launcher.Main.execute(Main.java:55) at org.gradle.launcher.Main.main(Main.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:46) at org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:28) at org.gradle.launcher.GradleMain.main(GradleMain.java:24) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:37) at org.gradle.wrapper.Wrapper.execute(Wrapper.java:58) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:42) Caused by: org.gradle.api.GradleException: Could not publish configurations [configuration ':archives']. at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.publish(ErrorHandlingIvyService.java:44) at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.publish(DefaultConfiguration.java:211) at org.gradle.api.tasks.Upload.upload(Upload.java:56) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886) at org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:158) at org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:93) at org.gradle.api.tasks.Upload_Decorated.invokeMethod(Unknown Source) at groovy.lang.GroovyObject$invokeMethod.call(Unknown Source) at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:131) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:130) at org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions(DefaultTaskExecuter.java:58) ... 35 more Caused by: Error deploying artifact 'com.tripwire:tepolicy:zip': Error deploying artifact: Broken pipe at org.apache.maven.artifact.ant.DeployTask.doExecute(DeployTask.java:144) at org.gradle.api.internal.artifacts.publish.maven.deploy.CustomDeployTask.doExecute(CustomDeployTask.java:42) at org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtifactTask.java:718) at org.gradle.api.internal.artifacts.publish.maven.deploy.AbstractMavenResolver.execute(AbstractMavenResolver.java:189) at org.gradle.api.internal.artifacts.publish.maven.deploy.AbstractMavenResolver.commitPublishTransaction(AbstractMavenResolver.java:180) at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:262) at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyDependencyPublisher.publish(DefaultIvyDependencyPublisher.java:54) at org.gradle.api.internal.artifacts.ivyservice.DefaultIvyService.publish(DefaultIvyService.java:144) at org.gradle.api.internal.artifacts.ivyservice.ShortcircuitEmptyConfigsIvyService.publish(ShortcircuitEmptyConfigsIvyService.java:61) at org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.publish(ErrorHandlingIvyService.java:42) ... 53 more Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Error deploying artifact: Broken pipe at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:121) at org.apache.maven.artifact.ant.DeployTask.doExecute(DeployTask.java:125) ... 62 more Caused by: org.apache.maven.wagon.TransferFailedException: Broken pipe at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:336) at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:280) at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317) at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107) ... 63 more Caused by: java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105) at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon$RequestEntityImplementation.writeRequest(AbstractHttpClientWagon.java:160) at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324) at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:446) at org.apache.maven.wagon.shared.http.AbstractHttpClientWagon.put(AbstractHttpClientWagon.java:330) ... 67 more BUILD FAILED On Fri, Apr 22, 2011 at 4:12 PM, Yoav Landman-2 [via Artifactory] < ml-...@n2...> wrote: > Your error seems to be related to the size of the published file and to the > fact that deployment is done using the lightweight http client, which is > known to have issues with large files (loads the whole file into memory for > streaming). > > - What does your Gradle repository configuration look like? > - Are you able to deploy smaller files? > > If you are using a CI server, then you can use the Artifactory build > integration<http://wiki.jfrog.org/confluence/display/RTF/Build+Integration> (with > the Artifactory CI plugin for Jenkins/TeamCity or Bamboo) to deploy huge > files from your Gradle builds + you will gain the extra build-info data that > is captured upon deployment. > We will soon release a new version of the Artifactory Gradle plugin that > allows you to easily get the same functionality directly from your Gradle > builds. > > On Sat, Apr 23, 2011 at 12:42 AM, tcarlier <[hidden email]<http://user/SendEmail.jtp?type=node&node=6298382&i=0&by-user=t> > > wrote: > >> Here's the stacktrace. Thanks for any help you can give me. >> >> Transferring 174021K from remote >> Error writing to server >> >> FAILURE: Build failed with an exception. >> >> ... >> >> Execution failed for task ':uploadArchives'. >> at >> >> org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions(DefaultTaskExecuter.java:66) >> at >> >> org.gradle.api.internal.tasks.DefaultTaskExecuter.execute(DefaultTaskExecuter.java:43) >> at >> >> org.gradle.api.internal.project.taskfactory.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:32) >> at >> >> org.gradle.api.internal.project.taskfactory.ExecutionShortCircuitTaskExecuter.execute(ExecutionShortCircuitTaskExecuter.java:50) >> at >> >> org.gradle.api.internal.tasks.SkipTaskExecuter.doExecute(SkipTaskExecuter.java:57) >> at >> >> org.gradle.api.internal.tasks.SkipTaskExecuter.execute(SkipTaskExecuter.java:35) >> at >> >> org.gradle.api.internal.tasks.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:32) >> at >> org.gradle.api.internal.AbstractTask.execute(AbstractTask.java:231) >> at >> >> org.gradle.execution.DefaultTaskGraphExecuter.executeTask(DefaultTaskGraphExecuter.java:167) >> at >> >> org.gradle.execution.DefaultTaskGraphExecuter.doExecute(DefaultTaskGraphExecuter.java:160) >> at >> >> org.gradle.execution.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:78) >> at >> >> org.gradle.execution.TaskNameResolvingBuildExecuter.execute(TaskNameResolvingBuildExecuter.java:113) >> at >> >> org.gradle.execution.DelegatingBuildExecuter.execute(DelegatingBuildExecuter.java:54) >> at >> >> org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:153) >> at >> >> org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:107) >> at >> >> org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:75) >> at >> org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:41) >> at >> org.gradle.launcher.RunBuildAction.execute(RunBuildAction.java:27) >> at >> >> org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:209) >> at >> >> org.gradle.launcher.CommandLineActionFactory$WithLoggingAction.execute(CommandLineActionFactory.java:193) >> at org.gradle.launcher.Main.execute(Main.java:55) >> at org.gradle.launcher.Main.main(Main.java:40) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> org.gradle.launcher.ProcessBootstrap.runNoExit(ProcessBootstrap.java:46) >> at >> org.gradle.launcher.ProcessBootstrap.run(ProcessBootstrap.java:28) >> at org.gradle.launcher.GradleMain.main(GradleMain.java:24) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> >> org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:37) >> at org.gradle.wrapper.Wrapper.execute(Wrapper.java:58) >> at >> org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:42) >> Caused by: org.gradle.api.GradleException: Could not publish >> configurations >> [configuration ':archives']. >> at >> >> org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.publish(ErrorHandlingIvyService.java:44) >> at >> >> org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.publish(DefaultConfiguration.java:211) >> at org.gradle.api.tasks.Upload.upload(Upload.java:56) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >> at >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >> at java.lang.reflect.Method.invoke(Method.java:597) >> at >> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88) >> at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) >> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058) >> at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886) >> at >> >> org.gradle.api.internal.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:158) >> at >> >> org.gradle.api.internal.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:93) >> at org.gradle.api.tasks.Upload_Decorated.invokeMethod(Unknown >> Source) >> at groovy.lang.GroovyObject$invokeMethod.call(Unknown Source) >> at org.gradle.util.ReflectionUtil.invoke(ReflectionUtil.groovy:23) >> at >> >> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:131) >> at >> >> org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$2.execute(AnnotationProcessingTaskFactory.java:130) >> at >> >> org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions(DefaultTaskExecuter.java:58) >> ... 35 more >> Caused by: Error deploying artifact 'com.tripwire:tepolicy:zip': Error >> deploying artifact: Error transferring file >> at >> org.apache.maven.artifact.ant.DeployTask.doExecute(DeployTask.java:144) >> at >> >> org.gradle.api.internal.artifacts.publish.maven.deploy.CustomDeployTask.doExecute(CustomDeployTask.java:42) >> at >> >> org.apache.maven.artifact.ant.AbstractArtifactTask.execute(AbstractArtifactTask.java:718) >> at >> >> org.gradle.api.internal.artifacts.publish.maven.deploy.AbstractMavenResolver.execute(AbstractMavenResolver.java:189) >> at >> >> org.gradle.api.internal.artifacts.publish.maven.deploy.AbstractMavenResolver.commitPublishTransaction(AbstractMavenResolver.java:180) >> at >> org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:262) >> at >> >> org.gradle.api.internal.artifacts.ivyservice.DefaultIvyDependencyPublisher.publish(DefaultIvyDependencyPublisher.java:54) >> at >> >> org.gradle.api.internal.artifacts.ivyservice.DefaultIvyService.publish(DefaultIvyService.java:144) >> at >> >> org.gradle.api.internal.artifacts.ivyservice.ShortcircuitEmptyConfigsIvyService.publish(ShortcircuitEmptyConfigsIvyService.java:61) >> at >> >> org.gradle.api.internal.artifacts.ivyservice.ErrorHandlingIvyService.publish(ErrorHandlingIvyService.java:42) >> ... 53 more >> Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: >> Error deploying artifact: Error transferring file >> at >> >> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:121) >> at >> org.apache.maven.artifact.ant.DeployTask.doExecute(DeployTask.java:125) >> ... 62 more >> Caused by: org.apache.maven.wagon.TransferFailedException: Error >> transferring file >> at >> >> org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:213) >> at >> org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:413) >> at >> org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:392) >> at >> org.apache.maven.wagon.AbstractWagon.putTransfer(AbstractWagon.java:365) >> at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:163) >> at >> >> org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:317) >> at >> >> org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:227) >> at >> >> org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:107) >> ... 63 more >> Caused by: java.io.IOException: Error writing to server >> at >> >> sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:468) >> at >> >> sun.net.www.protocol.http.HttpURLConnection.writeRequests(HttpURLConnection.java:480) >> at >> >> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1070) >> at >> java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:373) >> at >> >> org.apache.maven.wagon.providers.http.LightweightHttpWagon.finishPutTransfer(LightweightHttpWagon.java:185) >> ... 70 more >> >> >> -- >> View this message in context: >> http://forums.jfrog.org/Could-not-create-the-temp-file-for-upload-when-deploying-a-single-artifact-tp6202461p6298219.html<http://forums.jfrog.org/Could-not-create-the-temp-file-for-upload-when-deploying-a-single-artifact-tp6202461p6298219.html?by-user=t> >> Sent from the Artifactory - Users mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------------ >> Fulfilling the Lean Software Promise >> Lean software platforms are now widely adopted and the benefits have been >> demonstrated beyond question. Learn why your peers are replacing JEE >> containers with lightweight application servers - and what you can gain >> from the move. http://p.sf.net/sfu/vmware-sfemails >> _______________________________________________ >> Artifactory-users mailing list >> [hidden email]<http://user/SendEmail.jtp?type=node&node=6298382&i=1&by-user=t> >> https://lists.sourceforge.net/lists/listinfo/artifactory-users >> > > > ------------------------------------------------------------------------------ > > Fulfilling the Lean Software Promise > Lean software platforms are now widely adopted and the benefits have been > demonstrated beyond question. Learn why your peers are replacing JEE > containers with lightweight application servers - and what you can gain > from the move. http://p.sf.net/sfu/vmware-sfemails > _______________________________________________ > Artifactory-users mailing list > [hidden email]<http://user/SendEmail.jtp?type=node&node=6298382&i=2&by-user=t> > https://lists.sourceforge.net/lists/listinfo/artifactory-users > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://forums.jfrog.org/Could-not-create-the-temp-file-for-upload-when-deploying-a-single-artifact-tp6202461p6298382.html > To unsubscribe from "Could not create the temp file for upload" when > deploying a single artifact, click here<http://forums.jfrog.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6202461&code=dGNhcmxpZXJAZ21haWwuY29tfDYyMDI0NjF8LTE0MjczNDIzNjc=>. > > -- View this message in context: http://forums.jfrog.org/Could-not-create-the-temp-file-for-upload-when-deploying-a-single-artifact-tp6202461p6298410.html Sent from the Artifactory - Users mailing list archive at Nabble.com. |