Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-28200

Docker push failed(retrying), file too long

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 3.31.1
    • Fix Version/s: None
    • Component/s: Docker
    • Labels:
      None

      Description

      I am getting attached exception when pushing image to docker container. After successful login.

      Clean install through docker(synology) with image 3.31.1. I have created docker hosted registry with http port. Blob default. User with role nx-repository-view-docker--.

      Client side is fine, a have double checked with registry (2.0 from docker)

      How to resolve that?

         2021-06-30 14:13:44,727+0000 DEBUG [qtp2100015461-684]  docker-user org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Request: Request{action='POST', path='/v2/black-web/blobs/uploads/', parameters=null, payload=HttpRequestPayloadAdapter{contentType='', size=0}, multipart=false}
          2021-06-30 14:13:44,727+0000 DEBUG [qtp2100015461-684]  docker-user org.sonatype.nexus.repository.httpbridge.internal.DefaultHttpResponseSender - Sending response: Response{status=Status{successful=false, code=500, message='null'}, payload=StringPayload{size=65, charset=UTF-8, contentType='application/json'}}
          2021-06-30 14:13:44,727+0000 DEBUG [qtp2100015461-680]  docker-user org.sonatype.nexus.common.property.PropertiesFile - Storing: /nexus-data/blobs/smbb-docker-hosted/content/tmp/path$nexus-repository-docker-3ca97bb8-bba6-4652-a3d3-994ab90c0687-0.cda387eb-840d-48c2-8a2a-a39f4827d5a9.properties
          2021-06-30 14:13:44,728+0000 DEBUG [qtp2100015461-684]  docker-user org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Service completed
          2021-06-30 14:13:44,732+0000 WARN  [qtp2100015461-680]  docker-user org.sonatype.nexus.repository.docker.internal.V2Handlers - Error: POST /v2/black-web/blobs/uploads/
          org.sonatype.nexus.blobstore.api.BlobStoreException: BlobId: path$nexus-repository-docker/3ca97bb8-bba6-4652-a3d3-994ab90c0687/0, java.io.IOException: File name too long, Cause: File name too long
          	at org.sonatype.nexus.blobstore.file.FileBlobStore.tryCreate(FileBlobStore.java:396)
          	at org.sonatype.nexus.blobstore.file.FileBlobStore.create(FileBlobStore.java:330)
          	at org.sonatype.nexus.blobstore.file.FileBlobStore.doCreate(FileBlobStore.java:311)
          	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)
          	at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:54)
          	at org.sonatype.nexus.repository.docker.internal.Upload.create(Upload.java:100)
          	at org.sonatype.nexus.repository.docker.internal.UploadManagerImpl.startUpload(UploadManagerImpl.java:60)
          	at org.sonatype.nexus.repository.docker.internal.orient.DockerHostedFacetImpl.beginBlobUpload(DockerHostedFacetImpl.java:617)
          	at org.sonatype.nexus.repository.docker.internal.DockerHostedFacet$beginBlobUpload$0.call(Unknown Source)
          	at org.sonatype.nexus.repository.docker.internal.V2Handlers$_closure3.doCall(V2Handlers.groovy:118)
          	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          	at java.lang.reflect.Method.invoke(Method.java:498)
          	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
          	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
          	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
          	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
          	at groovy.lang.Closure.call(Closure.java:420)
          	at org.codehaus.groovy.runtime.ConvertedClosure.invokeCustom(ConvertedClosure.java:54)
          	at org.codehaus.groovy.runtime.ConversionHandler.invoke(ConversionHandler.java:124)
          	at com.sun.proxy.$Proxy188.handle(Unknown Source)
          	at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
          	at org.sonatype.nexus.repository.storage.UnitOfWorkHandler.handle(UnitOfWorkHandler.java:39)
          	at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
          	at com.sonatype.nexus.clm.internal.orient.FirewallContributedHandler.handle(FirewallContributedHandler.java:104)
          	at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
          	at org.sonatype.nexus.repository.view.handlers.HandlerContributor.handle(HandlerContributor.java:67)
          	at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
          	at org.sonatype.nexus.repository.security.SecurityHandler.handle(SecurityHandler.java:51)
          	at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
          	at org.sonatype.nexus.repository.view.Context$proceed.call(Unknown Source)
          	at org.sonatype.nexus.repository.docker.internal.V2Handlers$_closure18.doCall(V2Handlers.groovy:305)
          	at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source)
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          	at java.lang.reflect.Method.invoke(Method.java:498)
          	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
          	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
          	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
          	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
          	at groovy.lang.Closure.call(Closure.java:420)
          	at org.codehaus.groovy.runtime.ConvertedClosure.invokeCustom(ConvertedClosure.java:54)
          	at org.codehaus.groovy.runtime.ConversionHandler.invoke(ConversionHandler.java:124)
          	at com.sun.proxy.$Proxy188.handle(Unknown Source)
          	at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
          	at org.sonatype.nexus.repository.view.Context$proceed.call(Unknown Source)
          	at org.sonatype.nexus.repository.docker.internal.V2Handlers$_closure1.doCall(V2Handlers.groovy:93)
          	at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source)
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          	at java.lang.reflect.Method.invoke(Method.java:498)
          	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
          	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
          	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
          	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
          	at groovy.lang.Closure.call(Closure.java:420)
          	at org.codehaus.groovy.runtime.ConvertedClosure.invokeCustom(ConvertedClosure.java:54)
          	at org.codehaus.groovy.runtime.ConversionHandler.invoke(ConversionHandler.java:124)
          	at com.sun.proxy.$Proxy188.handle(Unknown Source)
          	at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
          	at com.sonatype.analytics.internal.handler.AnalyticsMeteringHandler.handle(AnalyticsMeteringHandler.java:69)
          	at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
          	at org.sonatype.nexus.repository.view.handlers.TimingHandler.handle(TimingHandler.java:58)
          	at org.sonatype.nexus.repository.view.Context.proceed(Context.java:88)
          	at org.sonatype.nexus.repository.view.Context.start(Context.java:179)
          	at org.sonatype.nexus.repository.view.Router.dispatch(Router.java:65)
          	at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:52)
          	at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:43)
          	at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.dispatchAndSend(ViewServlet.java:213)
          	at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.doService(ViewServlet.java:175)
          	at org.sonatype.nexus.repository.httpbridge.internal.ViewServlet.service(ViewServlet.java:127)
          	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
          	at com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:290)
          	at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:280)
          	at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:184)
          	at com.google.inject.servlet.DynamicServletPipeline.service(DynamicServletPipeline.java:71)
          	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 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.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:450)
          	at org.sonatype.nexus.security.SecurityFilter.executeChain(SecurityFilter.java:96)
          	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:387)
          	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
          	at org.sonatype.nexus.security.SecurityFilter.doFilterInternal(SecurityFilter.java:112)
          	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
          	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
          	at org.sonatype.nexus.repository.httpbridge.internal.ExhaustRequestFilter.doFilter(ExhaustRequestFilter.java:80)
          	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
          	at com.sonatype.nexus.licensing.internal.LicensingRedirectFilter.doFilter(LicensingRedirectFilter.java:116)
          	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
          	at com.codahale.metrics.servlet.AbstractInstrumentedFilter.doFilter(AbstractInstrumentedFilter.java:112)
          	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
          	at org.sonatype.nexus.internal.web.ErrorPageFilter.doFilter(ErrorPageFilter.java:79)
          	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
          	at org.sonatype.nexus.internal.web.EnvironmentFilter.doFilter(EnvironmentFilter.java:101)
          	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
          	at org.sonatype.nexus.internal.web.HeaderPatternFilter.doFilter(HeaderPatternFilter.java:98)
          	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
          	at com.google.inject.servlet.DynamicFilterPipeline.dispatch(DynamicFilterPipeline.java:104)
          	at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:133)
          	at org.sonatype.nexus.bootstrap.osgi.DelegatingFilter.doFilter(DelegatingFilter.java:73)
          	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201)
          	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
          	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
          	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
          	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
          	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
          	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
          	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
          	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
          	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1435)
          	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
          	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
          	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
          	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
          	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1350)
          	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
          	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
          	at com.codahale.metrics.jetty9.InstrumentedHandler.handle(InstrumentedHandler.java:239)
          	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
          	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
          	at org.eclipse.jetty.server.Server.handle(Server.java:516)
          	at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:388)
          	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:633)
          	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:380)
          	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
          	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
          	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
          	at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
          	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
          	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
          	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
          	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
          	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:383)
          	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:882)
          	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1036)
          	at java.lang.Thread.run(Thread.java:748)
          Caused by: java.io.IOException: File name too long
          	at java.io.UnixFileSystem.createFileExclusively(Native Method)
          	at java.io.File.createNewFile(File.java:1023)
          	at org.sonatype.goodies.common.FileReplacer.<init>(FileReplacer.java:67)
          	at org.sonatype.nexus.common.property.PropertiesFile.store(PropertiesFile.java:67)
          	at org.sonatype.nexus.common.property.PropertiesFile.store(PropertiesFile.java:57)
          	at org.sonatype.nexus.blobstore.file.FileBlobAttributes.store(FileBlobAttributes.java:65)
          	at org.sonatype.nexus.blobstore.file.FileBlobStore.tryCreate(FileBlobStore.java:372)
          	... 161 common frames omitted
          2021-06-30 14:13:44,734+0000 DEBUG [qtp2100015461-680]  docker-user org.sonatype.nexus.repository.view.Router - Response: Response{status=Status{successful=false, code=500, message='null'}, payload=StringPayload{size=65, charset=UTF-8, contentType='application/json'}}
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mikeblermabs Mike Blermabs
            Last Updated By:
            Joe Tom Joe Tom
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title