# Job fails while archiving a large file

**URL:** <https://community.jenkins.io/t/job-fails-while-archiving-a-large-file/4237>\
**Category:** Ask a question\
**Created:** [October 19, 2022, 11:04pm UTC](https://community.jenkins.io/t/job-fails-while-archiving-a-large-file/4237 "2022-10-19T23:04:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScottatAlcon](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@ScottatAlcon](https://community.jenkins.io/u/ScottatAlcon)\
**Post date:** [October 19, 2022, 11:04pm UTC](https://community.jenkins.io/t/job-fails-while-archiving-a-large-file/4237/1 "2022-10-19T23:04:02Z")

</div>

I am running a new instance of Jenkins 2.361.2 on a Windows 2016 server over HTTPS. Jobs and Nodes folders were copied over from an older instance of Jenkins. Everything seems to work fine until a job attempts to archive a large file. A large file (over 1 GB) partially uploads then we receive this error in the Console output: (there is much more text in with the error. I can post if here if needed)

ERROR: Step ‘Archive the artifacts’ aborted due to exception:  
java.nio.channels.ClosedChannelException

The agent disconnects either just before or after the message. The agent service is still running but requires a restart.

I also see this in the System Log right at the same time the job failed:

Oct 19, 2022 3:29:01 PM INFO hudson.slaves.ChannelPinger$1 onDead  
Ping failed. Terminating the channel Win10Build02Tes.  
java.util.concurrent.TimeoutException: Ping started at 1666218301366 hasn’t completed by 1666218541369  
at hudson.remoting.PingThread.ping(PingThread.java:132)  
at hudson.remoting.PingThread.run(PingThread.java:88)

We are using Microsoft OpenJDK v11.0.16.101 on both Master and Slaves.

I don’t seem to have a problem archiving multiple smaller files (~50MB each). But 1 large file caused the above errors

Is there a setting to limit the size of upload?
