Errors replicating npm registry #4287

Closed
gmaggess opened this Issue Dec 10, 2013 · 7 comments

Projects

None yet

5 participants

Hi there,

I'm trying to install my own rpm registry and I'm facing the errors below:

[Tue, 10 Dec 2013 23:00:37 GMT] [error] [<0.22454.3>] Replicator: couldn't write document ...., revision ..., to target database registry. Error: forbidden, reason: _npmUser.name must === user.name.

AND

[Tue, 10 Dec 2013 22:32:37 GMT] [error] [<0.21474.2>] Replicator: couldn't write document ..., revision ..., to target database registry. Error: forbidden, reason: New packages must have all-lowercase names.

I have Couchdb 1.5 running on Oracle Enterprise Linux 6u3. Node version is 0.10.22 and the npm version is 1.3.14.

It might also be important to mention that I'm behind a firewall and that I followed all installation instructions found here: https://github.com/isaacs/npmjs.org.

Any help is appreciated.

Got the same issue, couchdb v1.4

The issue related to these modules:
couchapp push registry/app.js http://localhost:5984/registry
couchapp push www/app.js http://localhost:5984/registry

Actually this validation is described here npmjs.org/registry/validate_doc_update.js :
// New documents may only be created with all lowercase names.
// At some point, existing docs will be migrated to lowercase names
// as well.
if (!oldDoc && doc.name !== doc.name.toLowerCase()) {
assert(false, "New packages must have all-lowercase names")
}

So what is the right way to fix that and why it happened when we do first time replication at all ?

gmaggess commented Jan 9, 2014

Has anyone found a solution for this matter?

see also #4405 (which may be duplicate). No resolution yet.

Solution is to do replication before you push registry js scripts to your repository:
couchapp push registry/app.js http://localhost:5984/registry
couchapp push www/app.js http://localhost:5984/registry

But I got a bunch of other sporadic issues in replication process so we decided to use kappa as workaround.
https://npmjs.org/package/kappa

Contributor
rlidwka commented Jan 12, 2014

But I got a bunch of other sporadic issues in replication process so we decided to use kappa as workaround.

What is that workaround for? You either need the entire npm registry or you don't.

If you need the entire registry, you might want to contact npmjs.eu guys, they don't seem to have this issue. Or just replicate directly from there.

If you don't need the entire npm registry, just use an appropriate tools and avoid having that complexity in the first place.

@othiym23 othiym23 added the support label Oct 3, 2014
Contributor
othiym23 commented Oct 3, 2014

This is actually an issue for npm-registry-couchapp, and also I believe that we have actually fixed this over the past year.

@othiym23 othiym23 closed this Oct 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment