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

Intermittent npm publish failing with 500 error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Automatically Closed
    • Affects Version/s: 3.16.1
    • Fix Version/s: None
    • Component/s: NPM
    • Labels:

      Description

      Intermittent npm publish failing with 500 error. 

      91 npm components are published to hosted npm repo and 5 fail with the following error.

      2019-06-28 07:35:33,385+0000 WARN  [qtp2025397791-1010184] az-1b xxxx org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Failure servicing: PUT /repository/online-web/@beans%2fvalue-message

      java.io.IOException: failed to process attachment data

       at org.sonatype.nexus.repository.npm.internal.NpmPublishParser.parseAttachmentData(NpmPublishParser.java:399)

      ...

      Caused by: java.lang.RuntimeException: Unable to properly read from stream

       at org.sonatype.nexus.thread.io.StreamCopier.read(StreamCopier.java:129)

       at org.sonatype.nexus.thread.io.StreamCopier.read(StreamCopier.java:94)

       at org.sonatype.nexus.repository.npm.internal.NpmPublishParser.readBinaryValueIntoTempBlob(NpmPublishParser.java:404)

       at org.sonatype.nexus.repository.npm.internal.NpmPublishParser.parseAttachmentData(NpmPublishParser.java:393)

       ... 121 common frames omitted

      Caused by: java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@7b644f22 rejected from java.util.concurrent.ThreadPoolExecutor@4ad1682c[Running, pool size = 100, active threads = 100, queued tasks = 0, completed tasks = 534701]

       at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2063)

       at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:830)

       at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1379)

       at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)

       at org.apache.shiro.concurrent.SubjectAwareExecutorService.submit(SubjectAwareExecutorService.java:115)

       at org.sonatype.nexus.thread.io.StreamCopier.read(StreamCopier.java:108)

        Attachments

          Activity

            People

            Assignee:
            msurani Mahendra Surani
            Reporter:
            msurani Mahendra Surani
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title