"unexpected EOF in middle of data block" when downloading artifact

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server と Data Center のみ - この記事は、サーバーおよびデータセンター プラットフォームのアトラシアン製品にのみ適用されます。

問題

Artifact download task is failing to download the artifact.

診断

The following stack trace is thrown in the logs:

017-01-18 15:34:55,781 INFO [4-BAM::10.37.175.58::Agent:pool-7-thread-1] [TaskExecutorImpl] Starting task 'Download release contents' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask'
2017-01-18 15:35:13,460 ERROR [4-BAM::10.37.175.58::Agent:pool-7-thread-1] [ArtifactTransferPayload] Failed to download artifact file E:\23592962-25657352\Fusion-DevOps\CodeDeploy\emr\location-assoc-mr-1.0.2-SNAPSHOT.jar
2017-01-18 15:35:13,461 ERROR [4-BAM::10.37.175.58::Agent:pool-7-thread-1] [HttpMessageSender] Failed to send message.
java.io.IOException: Exception when receiving artifact: 
        at com.atlassian.bamboo.v2.build.agent.messages.ArtifactTransferPayload.readObject(ArtifactTransferPayload.java:170)
        at sun.reflect.GeneratedMethodAccessor151.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1058)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1909)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2018)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1942)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1808)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1353)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:373)
        at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.deserializeResponse(HttpMessageSender.java:156)
        at com.atlassian.bamboo.v2.build.agent.remote.sender.HttpMessageSender.send(HttpMessageSender.java:119)
        ...
Caused by: java.io.StreamCorruptedException: unexpected EOF in middle of data block
        at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2567)
        at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2730)
        ...

原因

Bamboo didn't have an effective retry mechanism to prevent this type of problem before version 5.10.x.

ソリューション

Upgrade Bamboo to a version above 5.10.x.
If your Bamboo is already above this version please contact the Atlassian Support and let them know about this article.

最終更新日: 2017 年 2 月 9 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.