Cannot upload to s3 blobstore

Hi Nexus experts,

We run a nexus server on an AWS EC2 instance to host our apt repositories, and uses S3 as the blobstores.

It looks like when we upload a bigger deb package (60MB) it’s truncated and fails to proceed.

Is this some S3 issue, or nexus issue? I tried setting up an http server on that ec2 instance and posting the same package and it succeeded, so the ec2 instance itself should be good.

Thanks!

2023-07-20 01:50:52,054+0000 WARN [qtp131317913-122780] aptuploader org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Failure servicing: POST [repo name]
org.sonatype.nexus.blobstore.api.BlobStoreException: Error uploading blob to bucket:[our bucket] key:content/vol-40/chap-01/14e76e61-c591-4f91-8b43-e9d6bc82964e.bytes, Cause: Early EOF
at org.sonatype.nexus.blobstore.s3.internal.ProducerConsumerUploader.upload(ProducerConsumerUploader.java:184)
at com.palominolabs.metrics.guice.TimedInterceptor.invoke(TimedInterceptor.java:26)
at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:54)
at org.sonatype.nexus.blobstore.s3.internal.S3BlobStore.lambda$1(S3BlobStore.java:308)
at org.sonatype.nexus.blobstore.s3.internal.S3BlobStore.create(S3BlobStore.java:346)
at org.sonatype.nexus.blobstore.s3.internal.S3BlobStore.doCreate(S3BlobStore.java:305)
at com.palominolabs.metrics.guice.TimedInterceptor.invoke(TimedInterceptor.java:26)
at org.sonatype.nexus.blobstore.metrics.BlobStoreAnalyticsInterceptor.invoke(BlobStoreAnalyticsInterceptor.java:60)
at org.sonatype.nexus.blobstore.BlobStoreSupport.create(BlobStoreSupport.java:125)
at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:54)
at org.sonatype.nexus.blobstore.BlobStoreSupport.create(BlobStoreSupport.java:109)
at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)

Further investigation shows that this problem is not deterministic. Larger packages may still work. Even if we use exactly the same command to upload the same package, it may succeed or fail.

Any help or insight will be appreciated!

Check for (reverse) proxies, anti-virus, etc. that may be interfering with the request.