Unable to download large artifacts from Nexus

1,809 views
Skip to first unread message

Saatviga Sudhahar

unread,
May 20, 2018, 6:17:16 PM5/20/18
to Nexus Users
Hi,

I'm using Nexus Repository connector and Artifact Resolver from Jenkins to download a specific version of a .zip artifact from nexus snapshots which is around 3.3 GB.
I usually download and copy to staging environment.
But the file is not downloaded to my local nexus repository fully. It seems to download around 2 GB and then the file size gets reset and download starts again.
This results in a corruputed .zip file which I'm not able to open.  

Is there a fix for this? Can I increase the size somewhere in the config or any other suggestions please?



Thanks

Rich Seddon

unread,
May 20, 2018, 6:21:33 PM5/20/18
to Nexus Users
There is no artifact size limit built into Nexus Repository Manager.

Do you have a reverse proxy such as nginx running in front of Nexus? If so, check it's configuration, it may be limiting the maximum response size.

Saatviga Sudhahar

unread,
May 20, 2018, 6:39:15 PM5/20/18
to Nexus Users
Hi Rich,

I'm not running any reverse proxy. Anything else that might cause it?


Thanks

niristotle okram

unread,
May 20, 2018, 7:25:09 PM5/20/18
to Saatviga Sudhahar, Nexus Users
Logs ? 

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/9716af15-cf99-41bf-80cd-1cbc311e7189%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
--
Sent from mobile device, excuse typos if any.

Alexei Znamensky

unread,
May 21, 2018, 5:33:04 AM5/21/18
to Saatviga Sudhahar, Nexus Users
Saatviga, to be on the safe side, please check whether you can create a file >2Gb in that server, using the same id you use ti run Nexus. I am thinking on ulimit - I *think* I recall seeing the 2Gb magic number as a default limit for file size, back in the day, but I am not able to check that information right now. Maybe tomorrow.

Cheers 


--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
--
Alexei "RUSSOZ" Znamensky | russoz EM gmail com
"I don't know... fly casual!" -- Han Solo

Rich Seddon

unread,
May 21, 2018, 12:03:54 PM5/21/18
to Nexus Users, saat...@gmail.com
There is no artifact size limit built into Nexus Repository Manager, we have many, many users successfully deploying and retrieving very large artifacts from Nexus.

So far in all the cases I've seen it's been something on the network outside of Nexus that causes issues like this one.

On Monday, May 21, 2018 at 4:33:04 AM UTC-5, Alexei Znamensky wrote:
Saatviga, to be on the safe side, please check whether you can create a file >2Gb in that server, using the same id you use ti run Nexus. I am thinking on ulimit - I *think* I recall seeing the 2Gb magic number as a default limit for file size, back in the day, but I am not able to check that information right now. Maybe tomorrow.

Cheers 
On Mon, 21 May 2018 at 10:17, Saatviga Sudhahar <saat...@gmail.com> wrote:
Hi,

I'm using Nexus Repository connector and Artifact Resolver from Jenkins to download a specific version of a .zip artifact from nexus snapshots which is around 3.3 GB.
I usually download and copy to staging environment.
But the file is not downloaded to my local nexus repository fully. It seems to download around 2 GB and then the file size gets reset and download starts again.
This results in a corruputed .zip file which I'm not able to open.  

Is there a fix for this? Can I increase the size somewhere in the config or any other suggestions please?



Thanks

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.

Saatviga Sudhahar

unread,
May 22, 2018, 5:50:58 AM5/22/18
to Nexus Users, saat...@gmail.com
Thanks Alexei. I'm using a Windows Server 2008 Amazon EC2 instance to run this. Not sure how to set the ulimit in this setting.
I understand that there should be some restriction for that user in download size. 

I will have a look.


Thanks

Peter Lynch

unread,
May 22, 2018, 12:58:25 PM5/22/18
to Saatviga Sudhahar, Nexus Users
On Tue, May 22, 2018 at 6:50 AM, Saatviga Sudhahar <saat...@gmail.com> wrote:
Thanks Alexei. I'm using a Windows Server 2008 Amazon EC2 instance to run this. Not sure how to set the ulimit in this setting.
I understand that there should be some restriction for that user in download size. 

I will have a look.


ulimit should have nothing to do with this.

32 bit operating systems, FAT32 file systems, and Nexus running with 32bit Java have 2GB file size limits.

It is not clear if "my local nexus repository" is where the nexus-snapshots repository is which hosts this 3.3GB file. Are there two Nexus instances involved here? - one in EC2 running on Windows Server 2008 and your "local" one running on your desktop?

Regardless of the scenario, there must be log messages either by the local client which is doing the downloading or in the Nexus Repository Manager which is proxying the file from another remote server. Start by looking closely at all log messages at the time of the file size  "reset" and proceed from there. Check the Logging UI in Nexus right after the problem happens and look for ERROR or WARN messages.



Thanks


On Monday, 21 May 2018 10:33:04 UTC+1, Alexei Znamensky wrote:
Saatviga, to be on the safe side, please check whether you can create a file >2Gb in that server, using the same id you use ti run Nexus. I am thinking on ulimit - I *think* I recall seeing the 2Gb magic number as a default limit for file size, back in the day, but I am not able to check that information right now. Maybe tomorrow.

Cheers 


On Mon, 21 May 2018 at 10:17, Saatviga Sudhahar <saat...@gmail.com> wrote:
Hi,

I'm using Nexus Repository connector and Artifact Resolver from Jenkins to download a specific version of a .zip artifact from nexus snapshots which is around 3.3 GB.
I usually download and copy to staging environment.
But the file is not downloaded to my local nexus repository fully. It seems to download around 2 GB and then the file size gets reset and download starts again.
This results in a corruputed .zip file which I'm not able to open.  

Is there a fix for this? Can I increase the size somewhere in the config or any other suggestions please?



Thanks

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/8f353ba0-e1d0-42ef-9970-9bc0348446f9%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.
--
Alexei "RUSSOZ" Znamensky | russoz EM gmail com
"I don't know... fly casual!" -- Han Solo

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.

To post to this group, send email to nexus...@glists.sonatype.com.

Saatviga Sudhahar

unread,
May 22, 2018, 5:30:14 PM5/22/18
to Nexus Users, saat...@gmail.com
Thanks Peter.

After looking at the logs, it seems that some program is blocking the download. I tried turning the firewall off, but still it happens.
Here are the log messages.

2018-05-22 21:27:35,799+0000 WARN  [qtp395034094-48] anonymous org.sonatype.nexus.content.internal.ContentServlet - org.eclipse.jetty.io.EofException, caused by: java.io.IOException: An established connection was aborted by the software in your host machine [client=34.209.162.157,ua=Aether,req=GET http://34.209.162.157:8081/nexus/content/groups/Ontomatrix_projects/swd/swd_web/1.0.4/swd_web-1.0.4.zip]
2018-05-22 21:27:35,856+0000 ERROR [qtp395034094-48]  org.sonatype.nexus.web.internal.ErrorPageFilter - Internal error
org.eclipse.jetty.io.EofException: null
at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:914)
at org.eclipse.jetty.http.AbstractGenerator.blockForOutput(AbstractGenerator.java:528)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:170)
at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:107)
at org.sonatype.nexus.util.io.StreamSupport.copy(StreamSupport.java:59)
at org.sonatype.nexus.web.WebUtils.sendContent(WebUtils.java:105)
at org.sonatype.nexus.content.internal.ContentServlet.doGetFile(ContentServlet.java:522)
at org.sonatype.nexus.content.internal.ContentServlet.doGet(ContentServlet.java:402)
at org.sonatype.nexus.content.internal.ContentServlet.service(ContentServlet.java:352)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:297)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:281)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:186)
at com.google.inject.servlet.AbstractServletPipeline.service(AbstractServletPipeline.java:65)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:112)
at com.google.inject.servlet.AbstractFilterPipeline.dispatch(AbstractFilterPipeline.java:100)
at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)
at com.google.inject.servlet.AbstractFilterPipeline.dispatch(AbstractFilterPipeline.java:100)
at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)
at com.google.inject.servlet.AbstractFilterPipeline.dispatch(AbstractFilterPipeline.java:100)
at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.sonatype.nexus.web.internal.SecurityFilter.executeChain(SecurityFilter.java:90)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at com.google.inject.servlet.AbstractFilterPipeline.dispatch(AbstractFilterPipeline.java:100)
at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)
at com.yammer.metrics.web.WebappMetricsFilter.doFilter(WebappMetricsFilter.java:76)
at org.sonatype.nexus.web.internal.CommonHeadersFilter.doFilter(CommonHeadersFilter.java:69)
at org.sonatype.nexus.web.internal.ErrorPageFilter.doFilter(ErrorPageFilter.java:71)
at org.sonatype.nexus.web.internal.BaseUrlHolderFilter.doFilter(BaseUrlHolderFilter.java:66)
at org.sonatype.nexus.web.internal.HeaderPatternFilter.doFilter(HeaderPatternFilter.java:96)
at com.google.inject.servlet.AbstractFilterPipeline.dispatch(AbstractFilterPipeline.java:100)
at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)
at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterPipeline.dispatch(NexusGuiceFilter.java:56)
at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:133)
at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:130)
at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:203)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:130)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1476)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:429)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at com.yammer.metrics.jetty.InstrumentedHandler.handle(InstrumentedHandler.java:200)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:370)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:696)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:53)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:748)
Suppressed: org.eclipse.jetty.io.EofException: null
at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:914)
at org.eclipse.jetty.server.AbstractHttpConnection.flushResponse(AbstractHttpConnection.java:686)
at org.eclipse.jetty.server.AbstractHttpConnection$Output.close(AbstractHttpConnection.java:1108)
at org.sonatype.nexus.web.WebUtils.sendContent(WebUtils.java:107)
at org.sonatype.nexus.content.internal.ContentServlet.doGetFile(ContentServlet.java:522)
at org.sonatype.nexus.content.internal.ContentServlet.doGet(ContentServlet.java:402)
at org.sonatype.nexus.content.internal.ContentServlet.service(ContentServlet.java:352)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:297)
at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:281)
at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:186)
at com.google.inject.servlet.AbstractServletPipeline.service(AbstractServletPipeline.java:65)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:85)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:112)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.servlet.AbstractFilterPipeline.dispatch(AbstractFilterPipeline.java:100)
at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)
at com.google.inject.servlet.AbstractFilterPipeline.dispatch(AbstractFilterPipeline.java:100)
at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)
at com.google.inject.servlet.AbstractFilterPipeline.dispatch(AbstractFilterPipeline.java:100)
at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
at org.sonatype.nexus.web.internal.SecurityFilter.executeChain(SecurityFilter.java:90)
at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at com.google.inject.servlet.AbstractFilterPipeline.dispatch(AbstractFilterPipeline.java:100)
at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)
at com.yammer.metrics.web.WebappMetricsFilter.doFilter(WebappMetricsFilter.java:76)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at org.sonatype.nexus.web.internal.CommonHeadersFilter.doFilter(CommonHeadersFilter.java:69)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at org.sonatype.nexus.web.internal.ErrorPageFilter.doFilter(ErrorPageFilter.java:71)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at org.sonatype.nexus.web.internal.BaseUrlHolderFilter.doFilter(BaseUrlHolderFilter.java:66)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
at org.sonatype.nexus.web.internal.HeaderPatternFilter.doFilter(HeaderPatternFilter.java:96)
at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
... 33 common frames omitted
Caused by: java.io.IOException: An established connection was aborted by the software in your host machine
at sun.nio.ch.SocketDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
at org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:310)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:404)
at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:853)
... 91 common frames omitted
Caused by: java.io.IOException: An established connection was aborted by the software in your host machine
at sun.nio.ch.SocketDispatcher.write0(Native Method)
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93)
at sun.nio.ch.IOUtil.write(IOUtil.java:65)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471)
at org.eclipse.jetty.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:310)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:404)
at org.eclipse.jetty.http.HttpGenerator.flushBuffer(HttpGenerator.java:853)
... 81 common frames omitted



I have changed the version of java being used by nexus to the 64 bit one and still getting the problem.



Thanks

Saatviga Sudhahar

unread,
May 30, 2018, 6:20:51 PM5/30/18
to Nexus Users, saat...@gmail.com
Hi,

Still this issue remains unresolved. I wonder if this is an issue with nexus. I'm using the version Nexus Repository Manager OSS 2.14.7-01

I have tried increasing even the TCP connection timeout limits, turned off firewall, changed used java versions to 64 bit, and still getting the same error.

While the zip file is downloading the connection resets (after >2GB) so the downloaded file is lost. Only the remaining is downloaded and it is not valid. 

Can someone help me with this?

Rich Seddon

unread,
May 30, 2018, 6:31:34 PM5/30/18
to Nexus Users
An established connection was aborted by the software in your host machine.

This message indicates the socket has been closed by something running on the host machine (not Nexus).  Is there security software such as McAfee Websense running on the machine? I've seen it cause this message in other cases.

To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.

To post to this group, send email to nexus...@glists.sonatype.com.

Saatviga Sudhahar

unread,
May 31, 2018, 7:18:04 AM5/31/18
to Nexus Users
Hi Rich,

There is no antivirus running in that instance. It is an AWS EC2 instance with Windows. 
It has a firewall, but even disabling it is not fixing the issue.



Rich Seddon

unread,
May 31, 2018, 9:33:59 AM5/31/18
to Nexus Users
Try ssh'ing into the instance, and do the download directly against Nexus via http://localhost:8081.  This will isolate the issue, telling you if it is a problem in Nexus or outside of it.

To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.

To post to this group, send email to nexus...@glists.sonatype.com.

Saatviga Sudhahar

unread,
May 31, 2018, 10:11:14 AM5/31/18
to Rich Seddon, Nexus Users
Thanks Rich. There is no issue with directly downloading the zip file in that instance from  http://localhost:8081.
It downloads the whole file without issues.
But when I use the Jenkins process in the same machine to download artifact from nexus to the local repo in that machine, I get this issue.






--
Dr. Saatviga Sudhahar
Research Associate in Machine Learning
Department of Computer Science
University of Bristol

niristotle okram

unread,
May 31, 2018, 10:35:13 AM5/31/18
to Saatviga Sudhahar, Nexus Users
This is interesting. So, Jenkins and nexus are on the same EC2 windows instance. Manual download from nexus with the localhost endpoint works. While the same download via jenkins job failed. 

1. What is the instance type of the ec2
2. show the Jenkins log
3. how is the download done a) manually when it worked b)via jenkins which failed
4. Did you checked the application log in the windows server as well?









--
Regards
nirish okram

Saatviga Sudhahar

unread,
May 31, 2018, 11:01:32 AM5/31/18
to niristotle okram, Nexus Users
  • The instance is a Windows t2.large
  • In the Jenkins logs, I have the following: 
          May 31, 2018 2:51:24 PM org.jvnet.hudson.plugins.repositoryconnector.VersionParameterDefinition toDefaultVersion
          INFO: toDefaultVersion 1.0.7,LATEST
          May 31, 2018 2:51:24 PM org.jvnet.hudson.plugins.repositoryconnector.VersionParameterDefinition toDefaultVersion
          INFO: toDefaultVersion 1.0.7,RELEASE

  • When manually done, I download from the localhost nexus UI by just clicking the zip file under my repository. When doing with Jenkins I connect to nexus from Jenkins and download it using the Nexus Artifact Resolver plugin. This file gets downloaded in another location in the instance (this is where the issue is). I need to unzip it and copy to another server location but when unzipping it says file is corrupted because of the partial download. . 
  • I don't see any errors or warnings in the Application Log. Only I see that Software Protect service has started. 
  • Only in the Nexus Log it says that "Established connection was aborted by software in host machine". 

niristotle okram

unread,
May 31, 2018, 11:28:43 AM5/31/18
to Saatviga Sudhahar, Nexus Users
When doing with Jenkins I connect to nexus from Jenkins and download it using the Nexus Artifact Resolver plugin. This file gets downloaded in another location in the instance (this is where the issue is). 

> use wget/curl to download the artifact, so as to isolate if the issue is with the plugin. Refer this SO post https://stackoverflow.com/questions/23596257/how-to-download-artifacts-using-wget-from-sonatype-nexus 

Nexus 3.x have issues with the wget to download, hopefully you are in ver2.x



--
Regards
nirish okram

Rich Seddon

unread,
May 31, 2018, 2:02:32 PM5/31/18
to Nexus Users
Nexus 3.x have issues with the wget to download, hopefully you are in ver2.x

I'm not aware of any such issues, can you elaborate?

Regards,

Rich

niristotle okram

unread,
May 31, 2018, 4:43:27 PM5/31/18
to Rich Seddon, Nexus Users

Matthew Piggott

unread,
May 31, 2018, 5:23:14 PM5/31/18
to Nexus Users, rse...@sonatype.com
I believe there is some confusion in that thread.

wget should have no issues downloading components from Nexus repositories.  However, the REST endpoint which would allow someone to use query parameters for groupId, artifactId and version doesn't exist on Nexus 3.

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
--
Dr. Saatviga Sudhahar
Research Associate in Machine Learning
Department of Computer Science
University of Bristol

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.



--
Regards
nirish okram



--
Dr. Saatviga Sudhahar
Research Associate in Machine Learning
Department of Computer Science
University of Bristol



--
Regards
nirish okram

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.



--
Regards
nirish okram

Peter Lynch

unread,
Jun 4, 2018, 4:53:48 PM6/4/18
to Matthew Piggott, Nexus Users, Rich Seddon
On Thu, May 31, 2018 at 6:23 PM, Matthew Piggott <mpig...@sonatype.com> wrote:
I believe there is some confusion in that thread.

wget should have no issues downloading components from Nexus repositories.  However, the REST endpoint which would allow someone to use query parameters for groupId, artifactId and version doesn't exist on Nexus 3.


Not only that, this line is cited:


Understanding what -O does to wget may need to be reviewed - from the man page: 

Use of -O is not intended to mean simply "use the name file instead

           of the one in the URL;" rather, it is analogous to shell

           redirection



 
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.

To post to this group, send email to nexus...@glists.sonatype.com.

Jitendra gupta

unread,
Oct 10, 2018, 12:21:54 AM10/10/18
to Nexus Users
Hi Saatviga,

I am also facing the same issue with Jenkins-Nexus integration. When I download the file directly from localhost:8081 or from wget, I was able to download it but when I use Artifact Resolver from Jenkins, it just downloads 2GB. were you able to resolve this? Please help!

Peter Lynch

unread,
Oct 10, 2018, 9:16:01 AM10/10/18
to mint....@gmail.com, Nexus Users
On Wed, Oct 10, 2018 at 1:21 AM Jitendra gupta <mint....@gmail.com> wrote:
Hi Saatviga,

I am also facing the same issue with Jenkins-Nexus integration. When I download the file directly from localhost:8081 or from wget, I was able to download it but when I use Artifact Resolver from Jenkins, it just downloads 2GB. were you able to resolve this? Please help!


You are asking about this in the wrong place. Nexus repository manager does not have a file download size limitation proven by you from your own statement. The solution is 

- make sure all processes ( Jenkins / Java / Nexus / OS Host ) are not 32 bit processes and are instead 64bit
- turn off all firewalls, virus scanning software that may be hitting a 2GB limit while scanning the http traffic
- use a different technology to perform the download or file an issue against the Artifact Resolver of Jenkins. Keep in mind the Artifact resolver in Jenkins uses underlying technology that is over 7 years old and probably has all sorts of bugs.
 
On Monday, May 21, 2018 at 3:47:16 AM UTC+5:30, Saatviga Sudhahar wrote:
Hi,

I'm using Nexus Repository connector and Artifact Resolver from Jenkins to download a specific version of a .zip artifact from nexus snapshots which is around 3.3 GB.
I usually download and copy to staging environment.
But the file is not downloaded to my local nexus repository fully. It seems to download around 2 GB and then the file size gets reset and download starts again.
This results in a corruputed .zip file which I'm not able to open.  

Is there a fix for this? Can I increase the size somewhere in the config or any other suggestions please?



Thanks

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
Reply all
Reply to author
Forward
0 new messages