Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Error: Could not push document #275

Open
hehos opened this issue Nov 9, 2017 · 1 comment
Open

Error: Could not push document #275

hehos opened this issue Nov 9, 2017 · 1 comment

Comments

@hehos
Copy link

hehos commented Nov 9, 2017

环境(environment):

  • centos7
  • nodejs v6.10.0
  • npm 3.10.10

run:

# npm start   --npm-registry-couchapp:couch=http://admin:password@localhost:5984/registry

error:

/home/npm-registry-couchapp/node_modules/couchapp/main.js:149
        throw new Error("Could not push document\nCode: " + resp.statusCode + "\n"+body);
        ^

Error: Could not push document
Code: 404
{"error":"not_found","reason":"Database does not exist."}

run:

npm run load \
>   --npm-registry-couchapp:couch=http://localhost:5984/registry

output state:

./load-views.sh: line 33: dig: command not found

run:

npm run copy \
>   --npm-registry-couchapp:couch=http://localhost:5984/registry

output state:

Did you already run the load-views.sh script? (type 'yes')
yes
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    41  100    41    0     0   7124      0 --:--:-- --:--:-- --:--:--  8200
{"ok":true,"ok":true,"id":"_design/app","rev":"1-34665355e46f685b08ce82f830a8f33b"}
curl: (3) <url> malformed
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    58  100    58    0     0   3571      0 --:--:-- --:--:-- --:--:--  3625
{"error":"not_found","reason":"Database does not exist."}
curl: (3) <url> malformed
@ab077u
Copy link

ab077u commented Feb 29, 2020

The first error

{"error":"not_found","reason":"Database does not exist."}

is solved by creating _users, as follows:

curl -X PUT http://admin:password@localhost:5984/_users

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants