Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Error: forbidden Cannot replace existing tarball attachment: microbe/-/microbe-1.0.4.tgz/-rev/77-c29c2a9bc0c5261b3aaf737c2b8ba2fa #4790

Closed
jake-rigby opened this Issue Feb 26, 2014 · 8 comments

Comments

Projects
None yet
5 participants

Attempted npm publish, bumping version, npm publish --force, publishing from a fresh checkout. The version on npm increments, but the package does not get update

Here is the log :

0 info it worked if it ends with ok
1 verbose cli [ 'c:\\Program Files (x86)\\nodejs\\node.exe',
1 verbose cli   'c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'publish' ]
2 info using npm@1.1.33
3 info using node@v0.8.1
4 verbose config file C:\Users\Jake\.npmrc
5 verbose config file c:\Program Files (x86)\nodejs\etc\npmrc
6 verbose config file c:\Program Files (x86)\nodejs\node_modules\npm\npmrc
7 verbose publish [ '.' ]
8 verbose read json c:\Users\Jake\Projects\microbe\package.json
9 verbose cache add [ '.', null ]
10 silly cache add name=undefined spec="." args=[".",null]
11 verbose parsed url { pathname: '.', path: '.', href: '.' }
12 verbose lock . C:\Users\Jake\AppData\Roaming\npm-cache\3a52ce780950d4d969792a2559cd519d7ee8c727--.lock
13 verbose read json package.json
14 verbose tar pack [ 'C:\\Users\\Jake\\AppData\\Local\\Temp\\npm-6232\\1393415043362-0.3386696972884238\\tmp.tgz',
14 verbose tar pack   '.' ]
15 verbose tarball C:\Users\Jake\AppData\Local\Temp\npm-6232\1393415043362-0.3386696972884238\tmp.tgz
16 verbose folder .
17 info prepublish microbe@1.0.4
18 verbose tar unpack C:\Users\Jake\AppData\Local\Temp\npm-6232\1393415043362-0.3386696972884238\tmp.tgz
19 silly gunzTarPerm modes [ '755', '644' ]
20 silly gunzTarPerm extractEntry package.json
21 silly gunzTarPerm modified mode [ 'package.json', 438, 420 ]
22 silly gunzTarPerm extractEntry .npmignore
23 silly gunzTarPerm modified mode [ '.npmignore', 438, 420 ]
24 silly gunzTarPerm extractEntry README.md
25 silly gunzTarPerm modified mode [ 'README.md', 438, 420 ]
26 silly gunzTarPerm extractEntry index.js
27 silly gunzTarPerm modified mode [ 'index.js', 438, 420 ]
28 silly gunzTarPerm extractEntry modules/init.js
29 silly gunzTarPerm modified mode [ 'modules/init.js', 438, 420 ]
30 silly gunzTarPerm extractEntry modules/secure.js
31 silly gunzTarPerm modified mode [ 'modules/secure.js', 438, 420 ]
32 silly gunzTarPerm extractEntry modules/utils.js
33 silly gunzTarPerm modified mode [ 'modules/utils.js', 438, 420 ]
34 verbose read json C:\Users\Jake\AppData\Local\Temp\npm-6232\1393415043362-0.3386696972884238\package\package.json
35 verbose from cache C:\Users\Jake\AppData\Local\Temp\npm-6232\1393415043362-0.3386696972884238\package\package.json
36 verbose tar pack [ 'C:\\Users\\Jake\\AppData\\Roaming\\npm-cache\\microbe\\1.0.4\\package.tgz',
36 verbose tar pack   'C:\\Users\\Jake\\AppData\\Local\\Temp\\npm-6232\\1393415043362-0.3386696972884238\\package' ]
37 verbose tarball C:\Users\Jake\AppData\Roaming\npm-cache\microbe\1.0.4\package.tgz
38 verbose folder C:\Users\Jake\AppData\Local\Temp\npm-6232\1393415043362-0.3386696972884238\package
39 verbose tar unpack C:\Users\Jake\AppData\Roaming\npm-cache\microbe\1.0.4\package.tgz
40 silly gunzTarPerm modes [ '755', '644' ]
41 silly gunzTarPerm extractEntry package.json
42 silly gunzTarPerm modified mode [ 'package.json', 438, 420 ]
43 silly gunzTarPerm extractEntry .npmignore
44 silly gunzTarPerm modified mode [ '.npmignore', 438, 420 ]
45 silly gunzTarPerm extractEntry README.md
46 silly gunzTarPerm modified mode [ 'README.md', 438, 420 ]
47 silly gunzTarPerm extractEntry index.js
48 silly gunzTarPerm modified mode [ 'index.js', 438, 420 ]
49 silly gunzTarPerm extractEntry modules/init.js
50 silly gunzTarPerm modified mode [ 'modules/init.js', 438, 420 ]
51 silly gunzTarPerm extractEntry modules/secure.js
52 silly gunzTarPerm modified mode [ 'modules/secure.js', 438, 420 ]
53 silly gunzTarPerm extractEntry modules/utils.js
54 silly gunzTarPerm modified mode [ 'modules/utils.js', 438, 420 ]
55 verbose read json C:\Users\Jake\AppData\Roaming\npm-cache\microbe\1.0.4\package\package.json
56 silly shasum updated bytes 3427
57 info shasum c42ab3435224ce4e1686c550600a163e0a61d0f6
57 info shasum C:\Users\Jake\AppData\Roaming\npm-cache\microbe\1.0.4\package.tgz
58 verbose from cache C:\Users\Jake\AppData\Roaming\npm-cache\microbe\1.0.4\package\package.json
59 verbose chmod C:\Users\Jake\AppData\Roaming\npm-cache\microbe\1.0.4\package.tgz 644
60 silly chown skipping for windows C:\Users\Jake\AppData\Roaming\npm-cache\microbe\1.0.4\package.tgz
61 silly publish { name: 'microbe',
61 silly publish   description: 'Hooks up express js, passport.io, socket.io and redis. Requires Redis server. Exposes method to add socket.io api\'s',
61 silly publish   version: '1.0.4',
61 silly publish   private: false,
61 silly publish   dependencies:
61 silly publish    { express: '3.1.0',
61 silly publish      connect: '2.11.0',
61 silly publish      redis: '0.8.6',
61 silly publish      'connect-redis': '1.4.6',
61 silly publish      'socket.io': '0.9.16',
61 silly publish      cookie: '0.1.0',
61 silly publish      passport: '0.1.17',
61 silly publish      'passport-google': '0.3.0',
61 silly publish      'passport-local': '0.1.6',
61 silly publish      'passport-facebook': '1.0.2',
61 silly publish      'passport.socketio': '2.1.1' },
61 silly publish   main: 'lib/microbe/microbe.js',
61 silly publish   directories: { example: 'example' },
61 silly publish   repository:
61 silly publish    { type: 'git',
61 silly publish      url: 'https://github.com/jake-rigby/microbe.git' },
61 silly publish   keywords: [ 'passport', 'redis', 'express', 'socketio' ],
61 silly publish   author: { name: 'wigby' },
61 silly publish   license: 'BSD',
61 silly publish   devDependencies: {},
61 silly publish   readme: 'Microbe\r\n=========\r\n\r\nCombine express, socket.io, passport and redis to quickly implement an authenticated web app\r\n\r\n\r\n##30 seconds\r\n\r\n```javascript\r\nvar microbe = require(\'microbe\');\r\nvar express = require(\'express\');\r\n\r\nvar port = process.env.PORT ? process.env.PORT : 8080;\r\nvar url = process.env.URL ? process.env.URL : \'http://\'+microbe.myip()+\':\'+port;\r\n\r\nvar fbConfig = {\r\n    "name" : "MyFacebookApp,\r\n    "id" : "123456789123456",\r\n    "secret" : "4a16acac100822728b47c860e88aecd1"\r\n}\r\n\r\nvar app = microbe.init(url, port, microbe.utils.redisDefaultConfig(), fbConfig);\r\n\r\n/*\r\n * seperate public and secured content\r\n */\r\napp.use(express.static(__dirname+\'/www/public\'));\r\napp.use(microbe.secure(\'/auth/\')); \r\napp.use(express.static(__dirname+\'/www/private\'));\r\n\r\n/*\r\n * add socket functionality like middleware\r\n */\r\napp.add(function(socket, user) {\r\n    \r\n    socket.on(\'connect\', function() {\r\n        socket.emit(\'message\', \'welcome \'+user.displayName);\r\n    });\r\n});\r\n\r\n \r\n```\r\n',
61 silly publish   _id: 'microbe@1.0.4',
61 silly publish   dist: { shasum: 'c42ab3435224ce4e1686c550600a163e0a61d0f6' } }
62 verbose url raw microbe
63 verbose url resolving [ 'https://registry.npmjs.org/', './microbe' ]
64 verbose url resolved https://registry.npmjs.org/microbe
65 info retry registry request attempt 1 at 11:44:03
66 http PUT https://registry.npmjs.org/microbe
67 http 201 https://registry.npmjs.org/microbe
68 verbose url raw microbe
69 verbose url resolving [ 'https://registry.npmjs.org/', './microbe' ]
70 verbose url resolved https://registry.npmjs.org/microbe
71 info retry registry request attempt 1 at 11:44:04
72 http GET https://registry.npmjs.org/microbe
73 http 200 https://registry.npmjs.org/microbe
74 verbose url raw microbe/1.0.4/-tag/latest
75 verbose url resolving [ 'https://registry.npmjs.org/', './microbe/1.0.4/-tag/latest' ]
76 verbose url resolved https://registry.npmjs.org/microbe/1.0.4/-tag/latest
77 info retry registry request attempt 1 at 11:44:04
78 http PUT https://registry.npmjs.org/microbe/1.0.4/-tag/latest
79 http 201 https://registry.npmjs.org/microbe/1.0.4/-tag/latest
80 verbose publish attach 2 [ 'microbe',
80 verbose publish   'C:\\Users\\Jake\\AppData\\Roaming\\npm-cache\\microbe\\1.0.4\\package.tgz',
80 verbose publish   'microbe-1.0.4.tgz' ]
81 verbose url raw microbe
82 verbose url resolving [ 'https://registry.npmjs.org/', './microbe' ]
83 verbose url resolved https://registry.npmjs.org/microbe
84 info retry registry request attempt 1 at 11:44:05
85 http GET https://registry.npmjs.org/microbe
86 http 200 https://registry.npmjs.org/microbe
87 verbose uploading [ 'microbe/-/microbe-1.0.4.tgz/-rev/77-c29c2a9bc0c5261b3aaf737c2b8ba2fa',
87 verbose uploading   'C:\\Users\\Jake\\AppData\\Roaming\\npm-cache\\microbe\\1.0.4\\package.tgz' ]
88 verbose url raw microbe/-/microbe-1.0.4.tgz/-rev/77-c29c2a9bc0c5261b3aaf737c2b8ba2fa
89 verbose url resolving [ 'https://registry.npmjs.org/',
89 verbose url resolving   './microbe/-/microbe-1.0.4.tgz/-rev/77-c29c2a9bc0c5261b3aaf737c2b8ba2fa' ]
90 verbose url resolved https://registry.npmjs.org/microbe/-/microbe-1.0.4.tgz/-rev/77-c29c2a9bc0c5261b3aaf737c2b8ba2fa
91 info retry registry request attempt 1 at 11:44:06
92 http PUT https://registry.npmjs.org/microbe/-/microbe-1.0.4.tgz/-rev/77-c29c2a9bc0c5261b3aaf737c2b8ba2fa
93 http 403 https://registry.npmjs.org/microbe/-/microbe-1.0.4.tgz/-rev/77-c29c2a9bc0c5261b3aaf737c2b8ba2fa
94 verbose publish attach 3 [ [Error: forbidden Cannot replace existing tarball attachment: microbe/-/microbe-1.0.4.tgz/-rev/77-c29c2a9bc0c5261b3aaf737c2b8ba2fa],
94 verbose publish   'microbe' ]
95 error Error: forbidden Cannot replace existing tarball attachment: microbe/-/microbe-1.0.4.tgz/-rev/77-c29c2a9bc0c5261b3aaf737c2b8ba2fa
95 error     at RegClient.<anonymous> (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\request.js:211:14)
95 error     at Request.init.self.callback (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\request\main.js:119:22)
95 error     at Request.EventEmitter.emit (events.js:91:17)
95 error     at Request.<anonymous> (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\request\main.js:521:16)
95 error     at Request.EventEmitter.emit (events.js:88:17)
95 error     at IncomingMessage.Request.start.self.req.self.httpModule.request.buffer (c:\Program Files (x86)\nodejs\node_modules\npm\node_modules\request\main.js:483:14)
95 error     at IncomingMessage.EventEmitter.emit (events.js:115:20)
95 error     at IncomingMessage._emitEnd (http.js:366:10)
95 error     at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:149:23)
95 error     at CleartextStream.socketOnData [as ondata] (http.js:1356:20)
95 error  [Error: forbidden Cannot replace existing tarball attachment: microbe/-/microbe-1.0.4.tgz/-rev/77-c29c2a9bc0c5261b3aaf737c2b8ba2fa]
96 error You may report this log at:
96 error     <http://github.com/isaacs/npm/issues>
96 error or email it to:
96 error     <npm-@googlegroups.com>
97 error System Windows_NT 6.1.7600
98 error command "c:\\Program Files (x86)\\nodejs\\node.exe" "c:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "publish"
99 error cwd c:\Users\Jake\Projects\microbe
100 error node -v v0.8.1
101 error npm -v 1.1.33
102 error message forbidden Cannot replace existing tarball attachment: microbe/-/microbe-1.0.4.tgz/-rev/77-c29c2a9bc0c5261b3aaf737c2b8ba2fa
103 verbose exit [ 1, true ]

Getting this too with didyoumean v1.2.0, 1.2.1 and 1.2.2. Very frustrating.

Also interesting: my markdown readme file doesn't get parsed, it's on the site in raw markdown.

Owner

isaacs commented Mar 16, 2014

@jake-rigby @dcporter Can you please upgrade your npm version, and then publish a new version?

npm i npm -g
npm -v
npm version patch
npm publish

It's really weird, but for some reason, the tarball isn't being added to the document.

Yup, I had old versions of everything, and at some point started segfaulting everywhere. Never seen that before. I had to completely uninstall node and reinstall fresh, but it bumped me from npm v1.2.0 to 1.4.2! So probably this is a version issue.

I'm holding my breath that you can wipe didyoumean 1.2.0, 1.2.1 and 1.2.2 from the database (I've had a rough night of tarballs)... if it's not an easy wipe then lemme know and I'll bump it again...

Owner

isaacs commented Mar 16, 2014

@dcporter Please try again.

Success! 🍻

I did a full un/reinstall of node and bumped to 1.0.4 - working, thanks ;)

On 16 March 2014 02:12, Dave Porter notifications@github.com wrote:

Success! [image: 🍻]

Reply to this email directly or view it on GitHubhttps://github.com/npm/npm/issues/4790#issuecomment-37745862
.

Contributor

othiym23 commented Nov 26, 2014

Closing as resolved.

@othiym23 othiym23 closed this Nov 26, 2014

@othiym23 othiym23 added the support label Nov 26, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment