Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-3022

Fix npm publish to packages.nuxeo.com

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Package Repositories
    • Team:
      DevTools
    • Sprint:
      DevTools-10, DevTools-12

      Description

      We cannot publish to https://packages.nuxeo.com/

      Steps to reproduce:

      fox@fox-xps:~/Desktop$ git clone --single-branch --branch 0.6-p3 git@github.com:nuxeo/paper-typeahead.git
      
      Cloning into 'paper-typeahead'...
      remote: Enumerating objects: 3, done.
      remote: Counting objects: 100% (3/3), done.
      remote: Compressing objects: 100% (3/3), done.
      remote: Total 485 (delta 0), reused 2 (delta 0), pack-reused 482
      Receiving objects: 100% (485/485), 117.67 KiB | 278.00 KiB/s, done.
      Resolving deltas: 100% (296/296), done.
      fox@fox-xps:~/Desktop$ cd paper-typeahead/
      fox@fox-xps:~/Desktop/paper-typeahead$ npm login --registry=https://packages.nuxeo.com/repository/npmjs-nuxeo/
      Username: guirenard
      Password: 
      Email: (this IS public) grenard@nuxeo.com
      Logged in as guirenard on https://packages.nuxeo.com/repository/npmjs-nuxeo/.
      fox@fox-xps:~/Desktop/paper-typeahead$ npm adduser --registry=https://packages.nuxeo.com/repository/npmjs-nuxeo/ --scope=@nuxeo
      Username: guirenard
      Password: 
      Email: (this IS public) grenard@nuxeo.com
      Logged in as guirenard to scope @nuxeo on https://packages.nuxeo.com/repository/npmjs-nuxeo/.
      fox@fox-xps:~/Desktop/paper-typeahead$ npm publish --registry=https://packages.nuxeo.com/repository/npmjs-nuxeo/
      npm notice 
      npm notice 📦  @nuxeo/paper-typeahead@0.6.0-SNAPSHOT
      npm notice === Tarball Contents === 
      npm notice 921B   package.json      
      npm notice 85B    .jscsrc           
      npm notice 49B    .travis.yml       
      npm notice 411B   index.html        
      npm notice 11.3kB LICENSE           
      npm notice 15.4kB paper-typeahead.js
      npm notice 292B   README.md         
      npm notice === Tarball Details === 
      npm notice name:          @nuxeo/paper-typeahead                  
      npm notice version:       0.6.0-SNAPSHOT                          
      npm notice package size:  9.1 kB                                  
      npm notice unpacked size: 28.5 kB                                 
      npm notice shasum:        8fff03c7029bcb1eb0edb2c3d55df019a04e50f5
      npm notice integrity:     sha512-L1mGaXjh3jG11[...]MQH7QJYVh9yBw==
      npm notice total files:   7                                       
      npm notice 
      npm ERR! publish Failed PUT 401
      npm ERR! code E401
      npm ERR! 401 Unauthorized
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/fox/.npm/_logs/2019-09-25T12_46_32_789Z-debug.log
      

      but we can upload manually through UI.

      Note that:

      • My client stack is npm@6.4.1 and node@v10.12.0
      • I am able to login to https://packages.nuxeo.com/ with a GH Personal access tokens with
        read:org

        permission. I am admin out there.

      • Realms was missing npm Bearer token Realm which is needed to be able to issue
        npm login .. 

        command, I added it

      • The npmjs-nuxeo repo has Allow redeploy policy which is good and needed to republish snapshot
      • The roles:nuxeodev has
        nx-repository-view-*-*-* 

        (see security-parms.json) which should include

        nx-repository-view-npm-npmjs-nuxeo-*-* 

        I believe I have this role but cannot verify by listing my user in Nexus (Github auth plugin?)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 2 hours, 1 minute
                  3d 2h 1m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.