wohali commented on issue #1354: "User database does not exist", but first-time 
setup is successful!
URL: https://github.com/apache/couchdb/issues/1354#issuecomment-393389348
 
 
   You're using the wrong port if you can see _dbs as the database. Do not use 
port 5986 for anything other than what the documentation specifically tells you 
to do. **Use port 5984 exclusively.**
   
   Here is what I see locally when starting from scratch. In one window:
   
   ```
   $ mkdir ~/data
   $ docker run -p 5984:5984 --volume ~/data:/opt/couchdb/data --env 
COUCHDB_USER=admin --env COUCHDB_PASSWORD=password apache/couchdb:2.1.1
   ...
   
   [info] 2018-05-31T03:18:18.300289Z nonode@nohost <0.7.0> -------- 
Application couch_log started on node nonode@nohost
   [info] 2018-05-31T03:18:18.315246Z nonode@nohost <0.7.0> -------- 
Application folsom started on node nonode@nohost
   [info] 2018-05-31T03:18:18.413655Z nonode@nohost <0.7.0> -------- 
Application couch_stats started on node nonode@nohost
   [info] 2018-05-31T03:18:18.413994Z nonode@nohost <0.7.0> -------- 
Application khash started on node nonode@nohost
   [info] 2018-05-31T03:18:18.439314Z nonode@nohost <0.7.0> -------- 
Application couch_event started on node nonode@nohost
   [info] 2018-05-31T03:18:18.457026Z nonode@nohost <0.7.0> -------- 
Application ibrowse started on node nonode@nohost
   [info] 2018-05-31T03:18:18.470989Z nonode@nohost <0.7.0> -------- 
Application ioq started on node nonode@nohost
   [info] 2018-05-31T03:18:18.471257Z nonode@nohost <0.7.0> -------- 
Application mochiweb started on node nonode@nohost
   [info] 2018-05-31T03:18:18.494670Z nonode@nohost <0.195.0> -------- Apache 
CouchDB 2.1.1 is starting.
   ...
   ```
   
   In another window, after startup:
   
   ```
   $ curl localhost:5984
   
{"couchdb":"Welcome","version":"2.1.1","features":["scheduler"],"vendor":{"name":"The
 Apache Software Foundation"}}
   $ curl -X PUT http://admin:password@localhost:5984/_users
   {"ok":true}
   $ curl -X PUT http://admin:password@localhost:5984/_replicator
   {"ok":true}
   $ curl -X PUT http://admin:password@localhost:5984/_global_changes
   {"ok":true}
   ```
   
   In the first window, the errors stop as soon as I complete the above:
   
   ```
   [notice] 2018-05-31T03:19:04.990455Z nonode@nohost <0.326.0> -------- 
chttpd_auth_cache changes listener died database_does_not_exist at 
mem3_shards:load_shards_from_db/6(line:403) <= 
mem3_shards:load_shards_from_disk/1(line:378) <= 
mem3_shards:load_shards_from_disk/2(line:407) <= 
mem3_shards:for_docid/3(line:91) <= fabric_doc_open:go/3(line:38) <= 
chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= 
chttpd_auth_cache:listen_for_changes/1(line:134)
   [error] 2018-05-31T03:19:09.991602Z nonode@nohost emulator -------- Error in 
process <0.1209.0> with exit value: 
{database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,load_shards_from_disk...
   [notice] 2018-05-31T03:19:09.991792Z nonode@nohost <0.326.0> -------- 
chttpd_auth_cache changes listener died database_does_not_exist at 
mem3_shards:load_shards_from_db/6(line:403) <= 
mem3_shards:load_shards_from_disk/1(line:378) <= 
mem3_shards:load_shards_from_disk/2(line:407) <= 
mem3_shards:for_docid/3(line:91) <= fabric_doc_open:go/3(line:38) <= 
chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= 
chttpd_auth_cache:listen_for_changes/1(line:134)
   [error] 2018-05-31T03:19:14.992742Z nonode@nohost emulator -------- Error in 
process <0.1275.0> with exit value: 
{database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,403}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,378}]},{mem3_shards,load_shards_from_disk...
   [notice] 2018-05-31T03:19:14.992886Z nonode@nohost <0.326.0> -------- 
chttpd_auth_cache changes listener died database_does_not_exist at 
mem3_shards:load_shards_from_db/6(line:403) <= 
mem3_shards:load_shards_from_disk/1(line:378) <= 
mem3_shards:load_shards_from_disk/2(line:407) <= 
mem3_shards:for_docid/3(line:91) <= fabric_doc_open:go/3(line:38) <= 
chttpd_auth_cache:ensure_auth_ddoc_exists/2(line:187) <= 
chttpd_auth_cache:listen_for_changes/1(line:134)
   [error] 2018-05-31T03:19:16.994711Z nonode@nohost <0.1276.0> c9f97e1670 
Request to create N=3 DB but only 1 node(s)
   [notice] 2018-05-31T03:19:17.057156Z nonode@nohost <0.1276.0> c9f97e1670 
localhost:5984 172.17.0.1 admin PUT /_users 201 ok 94
   [error] 2018-05-31T03:19:19.940483Z nonode@nohost <0.1361.0> aa67a941ed 
Request to create N=3 DB but only 1 node(s)
   [notice] 2018-05-31T03:19:19.953376Z nonode@nohost <0.461.0> -------- 
creating replicator ddoc <<"shards/80000000-9fffffff/_replicator.1527736759">>
   [notice] 2018-05-31T03:19:19.960056Z nonode@nohost <0.1361.0> aa67a941ed 
localhost:5984 172.17.0.1 admin PUT /_replicator 201 ok 21
   [error] 2018-05-31T03:19:28.679148Z nonode@nohost <0.1582.0> 3d9b9d04d6 
Request to create N=3 DB but only 1 node(s)
   [notice] 2018-05-31T03:19:28.698094Z nonode@nohost <0.1582.0> 3d9b9d04d6 
localhost:5984 172.17.0.1 admin PUT /_global_changes 201 ok 20
   ```
   
   and then silence until I start my next command.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to