Failed to publish artifacts from Agent tmp folder to TC server

Hi Team,

We are faicing an issue when TC Agents (on windows) are publishing artifacts to TC server (which is running in docker 2020.2.2 on linux)

[Publishing artifacts] Recoverable problem publishing artifacts (will retry): java.net.SocketException: Software caused connection abort: socket write error

From The Agent logs:

[2021-01-28 08:28:29,458] WARN - jetbrains.buildServer.AGENT - Failed to publish artifacts [D:\BuildAgentNew\temp\buildTmp\ZipPreprocessor1524495393208268768\artifact.zip (size: 10291527)] because of error: java.net.SocketException: Software caused connection abort: socket write error, will try again.
[2021-01-28 08:28:29,458] DEBUG - ors.TeamCityThreadPoolExecutor - Executor task has finished with error, executor: Thread factory "Artifacts Processor pool", thread name: TC: 09:27:12 Task: 'jetbrains.buildServer.agent.impl.artifacts.ArtifactProcessor$5$1@25dac482'; Artifacts Processor pool 2, task details: jetbrains.buildServer.agent.impl.artifacts.ArtifactProcessor$5$1@25dac482, task class: jetbrains.buildServer.agent.impl.artifacts.ArtifactProcessor$5$1, error: jetbrains.buildServer.agent.ArtifactPublishingFailedException: java.net.SocketException: Software caused connection abort: socket write error
jetbrains.buildServer.agent.ArtifactPublishingFailedException: java.net.SocketException: Software caused connection abort: socket write error
at jetbrains.buildServer.agent.publisher.WebPublisher.doPublish(WebPublisher.java:259)
at jetbrains.buildServer.agent.publisher.WebPublisher.splitByPartsAndPublish(WebPublisher.java:121)
at jetbrains.buildServer.agent.publisher.WebPublisher.publishFiles(WebPublisher.java:69)
at jetbrains.buildServer.agent.impl.artifacts.ArtifactProcessor$5$1.call(ArtifactProcessor.java:287)
at jetbrains.buildServer.agent.impl.artifacts.ArtifactProcessor$5$1.call(ArtifactProcessor.java:279)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.net.SocketException: Software caused connection abort: socket write error
at java.base/java.net.SocketOutputStream.socketWrite0(Native Method)

 

From TC Server :

[2021-01-28 08:25:40,712] WARN [ no auth; http-nio-8111-exec-2] - jetbrains.buildServer.SERVER - Failed to send response to agent: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe

[2021-01-28 08:25:59,906] WARN [no auth; http-nio-8111-exec-10] - jetbrains.buildServer.SERVER - Failed to upload artifact for build with id: 15910: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. java.io.IOException: Connection reset by peer (enable debug to see stacktrace)

[2021-01-28 08:25:59,907] WARN [no auth; http-nio-8111-exec-10] - jetbrains.buildServer.SERVER - Failed to send response to agent: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe

[2021-01-28 08:26:19,089] WARN [no auth; http-nio-8111-exec-14] - jetbrains.buildServer.SERVER - Failed to upload artifact for build with id: 15910: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. java.io.IOException: Connection reset by peer (enable debug to see stacktrace)

[2021-01-28 08:26:19,090] WARN [no auth; http-nio-8111-exec-14] - jetbrains.buildServer.SERVER - Failed to send response to agent: org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe

[2021-01-28 08:26:38,270] WARN [ no auth; http-nio-8111-exec-7] - jetbrains.buildServer.SERVER - Failed to upload artifact for build with id: 15910: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. java.io.IOException: Connection reset by peer (enable debug to see stacktrace)

 

From infrastructure and network point everithing is open between servers

It will be great if you can advise further troubleshooting steps 

 

Many thanks,

Dmytro

0

Please sign in to leave a comment.