[Issue 4689] New - IOException: Failed to copy full contents during artifact installation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 4689] New - IOException: Failed to copy full contents during artifact installation

amertum
https://hudson.dev.java.net/issues/show_bug.cgi?id=4689
                 Issue #|4689
                 Summary|IOException: Failed to copy full contents during artif
                        |act installation
               Component|hudson
                 Version|current
                Platform|PC
              OS/Version|Linux
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P2
            Subcomponent|core
             Assigned to|issues@hudson
             Reported by|amertum






------- Additional comments from [hidden email] Wed Oct 21 09:47:10 +0000 2009 -------
Hi,

This error occurs with hudson 1.329 but not with 1.328 for exactly the same job
and m2 project using maven-2.1, jdk-1.5

Maybe a duplicate of late #1624 issue for hudson 1.212 ?

<code>
[HUDSON] Archiving /var/local/maven-repo/voxaly/vote-melino-project/5.0-
SNAPSHOT/vote-melino-project-5.0-SNAPSHOT.pom to /home/hudson/jobs/vote-melino-
project-branch-5.x-depouillement-REPORTING/modules/voxaly$vote-melino-
project/builds/2009-10-21_05-02-53/archive/voxaly/vote-melino-project/5.0-
SNAPSHOT/vote-melino-project-5.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error installing artifact: Failed to copy full contents from
/home/hudson/jobs/vote-melino-project-branch-5.x-depouillement-
REPORTING/workspace/vote-melino-project/target/vote-melino-project-5.0-SNAPSHOT-
tests.jar to /var/local/maven-repo/voxaly/vote-melino-project/5.0-SNAPSHOT/vote-
melino-project-5.0-SNAPSHOT-tests.jar

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error installing
artifact: Failed to copy full contents from /home/hudson/jobs/vote-melino-
project-branch-5.x-depouillement-REPORTING/workspace/vote-melino-
project/target/vote-melino-project-5.0-SNAPSHOT-tests.jar to /var/local/maven-
repo/voxaly/vote-melino-project/5.0-SNAPSHOT/vote-melino-project-5.0-SNAPSHOT-
tests.jar
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycl
eExecutor.java:703)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(Def
aultLifecycleExecutor.java:540)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycle
Executor.java:519)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:371)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultL
ifecycleExecutor.java:332)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExec
utor.java:181)
        at
org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecuto
rInterceptor.java:65)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at hudson.maven.agent.Main.launch(Main.java:165)
        at hudson.maven.MavenBuilder.call(MavenBuilder.java:159)
        at
hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:688)
        at
hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:634)
        at hudson.remoting.UserRequest.perform(UserRequest.java:104)
        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
        at hudson.remoting.Request$2.run(Request.java:244)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:6
51)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error installing
artifact: Failed to copy full contents from /home/hudson/jobs/vote-melino-
project-branch-5.x-depouillement-REPORTING/workspace/vote-melino-
project/target/vote-melino-project-5.0-SNAPSHOT-tests.jar to /var/local/maven-
repo/voxaly/vote-melino-project/5.0-SNAPSHOT/vote-melino-project-5.0-SNAPSHOT-
tests.jar
        at
org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:143)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.ja
va:483)
        at
hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor
.java:182)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycl
eExecutor.java:678)
        ... 28 more
Caused by: org.apache.maven.artifact.installer.ArtifactInstallationException:
Error installing artifact: Failed to copy full contents from
/home/hudson/jobs/vote-melino-project-branch-5.x-depouillement-
REPORTING/workspace/vote-melino-project/target/vote-melino-project-5.0-SNAPSHOT-
tests.jar to /var/local/maven-repo/voxaly/vote-melino-project/5.0-SNAPSHOT/vote-
melino-project-5.0-SNAPSHOT-tests.jar
        at
org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArti
factInstaller.java:119)
        at
org.apache.maven.plugin.install.InstallMojo.execute(InstallMojo.java:133)
        ... 31 more
Caused by: java.io.IOException: Failed to copy full contents from
/home/hudson/jobs/vote-melino-project-branch-5.x-depouillement-
REPORTING/workspace/vote-melino-project/target/vote-melino-project-5.0-SNAPSHOT-
tests.jar to /var/local/maven-repo/voxaly/vote-melino-project/5.0-SNAPSHOT/vote-
melino-project-5.0-SNAPSHOT-tests.jar
        at
hidden.org.codehaus.plexus.util.FileUtils.copyFile(FileUtils.java:970)
        at
org.apache.maven.artifact.installer.DefaultArtifactInstaller.install(DefaultArti
factInstaller.java:98)
        ... 32 more
</code>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4689] IOException: Failed to copy full contents during artifact installation

kohsuke-djn
https://hudson.dev.java.net/issues/show_bug.cgi?id=4689



User kohsuke changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
                Priority|P2                        |P3
--------------------------------------------------------------------------------
              Resolution|                          |INVALID
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Tue Nov 24 02:33:30 +0000 2009 -------
This happens deep in Maven where Hudson doesn't do anything.

Plexus copies a file, then it verifies the copy by making sure that the source
and the destination has the same file size, and that's apparently failing.

Perhaps you have some other Maven processes running at the same time,
overwriting a file?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4689] IOException: Failed to copy full contents during artifact installation

amertum
In reply to this post by amertum
https://hudson.dev.java.net/issues/show_bug.cgi?id=4689






------- Additional comments from [hidden email] Tue Nov 24 10:39:54 +0000 2009 -------
I agree. After some change in my POM, I found that maven command run with both
package and site goal caused some problem. So, I've made two hudson job, one that  
makes package and the other that makes site.
Now I run with hudson 1.333 and everything is alright.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]