big-r81 opened a new issue, #4466:
URL: https://github.com/apache/couchdb/issues/4466
[NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^
)
## Description
[NOTE]: # ( Describe the problem you're encountering. )
[TIP]: # ( Do NOT give us access or passwords to your actual CouchDB! )
Trying to verify the install from Fauxton on a dev cluster on Windows (with
default settings)
will fail with the following error:
```
{conn_failed,{error,eaddrnotavail}}
```
It seems, setting `chttpd/bind_address` on Windows to `0.0.0.0` doesn't work.
## Steps to Reproduce
1. Start a sample dev server
```
PS C:\relax\couchdb> .\dev\run.cmd -n 1 -a a:a
```
2. Open Fauxton and navigate to
`http://127.0.0.1:15984/_utils/#/verifyinstall`
3. Run `Verify Install`
## Expected Behaviour
[NOTE]: # ( Tell us what you expected to happen. )
All tests should succeed.
## Your Environment
### Config
```json
{
"cluster": {
"n": "1"
},
"chttpd": {
"bind_address": "0.0.0.0",
"port": "15984"
},
"admins": {
"a":
"-pbkdf2-22aa7b0689b4c838334590a185de850406dbcd20,61f8d1310d3dd517446f88584a15b4ba,10"
},
"vendor": {
"name": "The Apache Software Foundation"
},
"feature_flags": {
"partitioned||*": "true"
},
"chttpd_auth": {
"hash_algorithms": "sha256, sha",
"secret": "9f2d7c0d21734ad3bb8615c058cf2dbf"
},
"indexers": {
"couch_mrview": "true"
},
"prometheus": {
"additional_port": "false",
"bind_address": "127.0.0.1",
"port": "17986"
},
"httpd": {
"bind_address": "127.0.0.1",
"enable": "true",
"port": "15986"
},
"smoosh": {
"state_dir": "C:/relax/couchdb/dev/lib/node1/data"
},
"couch_httpd_auth": {
"authentication_db": "_users"
},
"couchdb_engines": {
"couch": "couch_bt_engine"
},
"couchdb": {
"database_dir": "C:/relax/couchdb/dev/lib/node1/data",
"uuid": "fake_uuid_for_dev",
"view_index_dir": "C:/relax/couchdb/dev/lib/node1/data"
}
}
```
### Log
```
[info] 2023-03-10T09:36:38.573000Z [email protected] <0.288.0> --------
Preflight check: Checking For Monsters
[info] 2023-03-10T09:36:38.573000Z [email protected] <0.288.0> --------
Preflight check: Asserting Admin Account
[info] 2023-03-10T09:36:38.580000Z [email protected] <0.288.0> -------- Apache
CouchDB 3.3.1-8ec7b57 is starting.
[info] 2023-03-10T09:36:38.586000Z [email protected] <0.289.0> --------
Starting couch_sup
[info] 2023-03-10T09:36:38.827000Z [email protected] <0.288.0> -------- Apache
CouchDB has started. Time to relax.
[notice] 2023-03-10T09:36:38.859000Z [email protected] <0.383.0> --------
rexi_server : started servers
[notice] 2023-03-10T09:36:38.867000Z [email protected] <0.387.0> --------
rexi_buffer : started servers
[info] 2023-03-10T09:36:38.962000Z [email protected] <0.396.0> --------
open_result error {not_found,no_db_file} for _nodes
[warning] 2023-03-10T09:36:38.962000Z [email protected] <0.395.0> --------
creating missing database: _nodes
[warning] 2023-03-10T09:36:39.169000Z [email protected] <0.412.0> --------
creating missing database: _dbs
[warning] 2023-03-10T09:36:39.169000Z [email protected] <0.411.0> --------
creating missing database: _dbs
[info] 2023-03-10T09:36:39.169000Z [email protected] <0.414.0> --------
open_result error {not_found,no_db_file} for _dbs
[notice] 2023-03-10T09:36:39.206000Z [email protected] <0.426.0> --------
mem3_reshard_dbdoc start init()
[notice] 2023-03-10T09:36:39.219000Z [email protected] <0.428.0> --------
mem3_reshard start init()
[notice] 2023-03-10T09:36:39.219000Z [email protected] <0.429.0> --------
mem3_reshard db monitor <0.429.0> starting
[notice] 2023-03-10T09:36:39.223000Z [email protected] <0.428.0> --------
mem3_reshard starting reloading jobs
[notice] 2023-03-10T09:36:39.223000Z [email protected] <0.428.0> --------
mem3_reshard finished reloading jobs
[info] 2023-03-10T09:36:39.272000Z [email protected] <0.435.0> -------- Apache
CouchDB has started. Time to relax.
[info] 2023-03-10T09:36:39.272000Z [email protected] <0.435.0> -------- Apache
CouchDB has started on http://127.0.0.1:15984/
[info] 2023-03-10T09:36:39.272000Z [email protected] <0.435.0> -------- Apache
CouchDB has started on http://127.0.0.1:15986/
[notice] 2023-03-10T09:36:39.303000Z [email protected] <0.455.0> --------
chttpd_auth_cache changes listener died because the _users database does not
exist. Create the database to silence this notice.
[error] 2023-03-10T09:36:39.303000Z [email protected] emulator -------- Error
in process <0.456.0> on node '[email protected]' with exit value:
{database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,430}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,405}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,434}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,100}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,214}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,160}]}]}
[error] 2023-03-10T09:36:39.303000Z [email protected] emulator -------- Error
in process <0.456.0> on node '[email protected]' with exit value:
{database_does_not_exist,[{mem3_shards,load_shards_from_db,"_users",[{file,"src/mem3_shards.erl"},{line,430}]},{mem3_shards,load_shards_from_disk,1,[{file,"src/mem3_shards.erl"},{line,405}]},{mem3_shards,load_shards_from_disk,2,[{file,"src/mem3_shards.erl"},{line,434}]},{mem3_shards,for_docid,3,[{file,"src/mem3_shards.erl"},{line,100}]},{fabric_doc_open,go,3,[{file,"src/fabric_doc_open.erl"},{line,39}]},{chttpd_auth_cache,ensure_auth_ddoc_exists,2,[{file,"src/chttpd_auth_cache.erl"},{line,214}]},{chttpd_auth_cache,listen_for_changes,1,[{file,"src/chttpd_auth_cache.erl"},{line,160}]}]}
[notice] 2023-03-10T09:36:39.513000Z [email protected] <0.503.0> --------
Missing system database _users
[notice] 2023-03-10T09:36:39.950000Z [email protected] <0.439.0> 736573967c
127.0.0.1:15984 127.0.0.1 undefined GET / 200 ok 251
[notice] 2023-03-10T09:36:39.991000Z [email protected] <0.440.0> 354675d9a9
Setup:
[{<<"action">>,<<"enable_cluster">>},{<<"bind_address">>,<<"0.0.0.0">>},{<<"username">>,<<"a">>},{<<"password">>,<<"****">>},{<<"node_count">>,1}]
[notice] 2023-03-10T09:36:39.996000Z [email protected] <0.141.0> --------
config: [admins] a set to '****' for reason nil
[notice] 2023-03-10T09:36:40.003000Z [email protected] <0.141.0> --------
config: [chttpd] bind_address set to 0.0.0.0 for reason nil
[error] 2023-03-10T09:36:40.009000Z [email protected] <0.436.0> --------
Supervisor chttpd_sup had child chttpd started with chttpd:start_link() at
<0.438.0> exit with reason normal in context child_terminated
[error] 2023-03-10T09:36:40.010000Z [email protected] <0.436.0> --------
Supervisor chttpd_sup had child chttpd started with chttpd:start_link() at
<0.438.0> exit with reason normal in context child_terminated
[notice] 2023-03-10T09:36:40.010000Z [email protected] <0.141.0> --------
config: [admins] a set to '****' for reason nil
[notice] 2023-03-10T09:36:40.015000Z [email protected] <0.141.0> --------
config: [cluster] n set to 1 for reason nil
[notice] 2023-03-10T09:36:40.025000Z [email protected] <0.440.0> 354675d9a9
127.0.0.1:15984 127.0.0.1 a POST /_cluster_setup 201 ok 56
[notice] 2023-03-10T09:36:40.028000Z [email protected] <0.580.0> 7de7f3de89
Setup: [{<<"action">>,<<"finish_cluster">>}]
[notice] 2023-03-10T09:36:40.028000Z [email protected] <0.580.0> 7de7f3de89
finish_cluster: [{<<"action">>,<<"finish_cluster">>}]
[notice] 2023-03-10T09:36:40.281000Z [email protected] <0.580.0> 7de7f3de89
finish_cluster: ok
[notice] 2023-03-10T09:36:40.281000Z [email protected] <0.580.0> 7de7f3de89
127.0.0.1:15984 127.0.0.1 a POST /_cluster_setup 201 ok 254
[notice] 2023-03-10T09:36:44.334000Z [email protected] <0.477.0> --------
couch_replicator_clustering : cluster stable
[notice] 2023-03-10T09:36:44.348000Z [email protected] <0.487.0> --------
Started replicator db changes listener <0.721.0>
[info] 2023-03-10T09:36:44.348000Z [email protected] <0.723.0> --------
open_result error {not_found,no_db_file} for _replicator
[notice] 2023-03-10T09:36:53.867000Z [email protected] <0.383.0> --------
rexi_server : cluster stable
[notice] 2023-03-10T09:36:53.867000Z [email protected] <0.387.0> --------
rexi_buffer : cluster stable
[notice] 2023-03-10T09:36:59.486000Z [email protected] <0.958.0> 7de90d5aa8
127.0.0.1:15984 127.0.0.1 undefined GET /_utils/ 304 ok 9
[notice] 2023-03-10T09:36:59.523000Z [email protected] <0.958.0> 56780467f4
127.0.0.1:15984 127.0.0.1 undefined GET
/_utils/dashboard.assets/js/manifest.f9cde0db85e3cd97708e.js 304 ok 0
[notice] 2023-03-10T09:36:59.534000Z [email protected] <0.958.0> f0cfe68de2
127.0.0.1:15984 127.0.0.1 undefined GET
/_utils/dashboard.assets/js/vendor.5bda604c70f688307c36.js 304 ok 1
[notice] 2023-03-10T09:36:59.539000Z [email protected] <0.959.0> c4390794fc
127.0.0.1:15984 127.0.0.1 undefined GET
/_utils/dashboard.assets/css/styles.5bda604c70f688307c36.css 304 ok 2
[notice] 2023-03-10T09:36:59.552000Z [email protected] <0.958.0> 4116c22a5e
127.0.0.1:15984 127.0.0.1 undefined GET
/_utils/dashboard.assets/css/styles.2fe6f2383b82d9a7610a.css 304 ok 4
[notice] 2023-03-10T09:36:59.553000Z [email protected] <0.960.0> 9d31959e39
127.0.0.1:15984 127.0.0.1 undefined GET
/_utils/dashboard.assets/js/bundle.2fe6f2383b82d9a7610a.js 304 ok 3
[notice] 2023-03-10T09:36:59.748000Z [email protected] <0.960.0> 29b9ea9bcc
127.0.0.1:15984 127.0.0.1 undefined GET / 200 ok 12
[notice] 2023-03-10T09:36:59.773000Z [email protected] <0.959.0> 3eebee3f16
127.0.0.1:15984 127.0.0.1 undefined GET /_session 200 ok 1
[notice] 2023-03-10T09:36:59.777000Z [email protected] <0.960.0> 72b84437c9
127.0.0.1:15984 127.0.0.1 undefined GET / 200 ok 14
[notice] 2023-03-10T09:36:59.780000Z [email protected] <0.958.0> 4f787523c4
127.0.0.1:15984 127.0.0.1 undefined GET / 200 ok 7
[notice] 2023-03-10T09:36:59.806000Z [email protected] <0.959.0> 20e656fc6a
127.0.0.1:15984 127.0.0.1 undefined GET
/_utils/dashboard.assets/fonts/fontawesome-webfont.woff 304 ok 12
[notice] 2023-03-10T09:36:59.806000Z [email protected] <0.960.0> 92aa278b1d
127.0.0.1:15984 127.0.0.1 undefined GET
/_utils/dashboard.assets/img/couchdb-logo.png 304 ok 12
[notice] 2023-03-10T09:36:59.823000Z [email protected] <0.958.0> d956f7e134
127.0.0.1:15984 127.0.0.1 undefined GET
/_utils/dashboard.assets/fonts/fauxtonicon5.woff 304 ok 2
[notice] 2023-03-10T09:36:59.829000Z [email protected] <0.958.0> ed6ff33ffa
127.0.0.1:15984 127.0.0.1 undefined GET /_session 200 ok 0
[notice] 2023-03-10T09:37:01.668000Z [email protected] <0.958.0> a8288f8560
127.0.0.1:15984 127.0.0.1 undefined POST /_session 200 ok 2
[notice] 2023-03-10T09:37:01.700000Z [email protected] <0.958.0> f54d5c71f6
127.0.0.1:15984 127.0.0.1 a GET /_session 200 ok 2
[notice] 2023-03-10T09:37:01.759000Z [email protected] <0.958.0> 0c3e993d79
127.0.0.1:15984 127.0.0.1 a GET /_all_dbs 200 ok 25
[notice] 2023-03-10T09:37:01.822000Z [email protected] <0.958.0> 381ac48be6
127.0.0.1:15984 127.0.0.1 a GET /_replicator 200 ok 27
[notice] 2023-03-10T09:37:01.838000Z [email protected] <0.959.0> c9906b25a3
127.0.0.1:15984 127.0.0.1 a GET /_users 200 ok 25
[notice] 2023-03-10T09:37:02.134000Z [email protected] <0.959.0> 97c5a094ba
127.0.0.1:15984 127.0.0.1 a GET
/_all_dbs?startkey=%22%22&endkey=%22%E9%A6%99%22&limit=30 200 ok 3
[notice] 2023-03-10T09:37:04.777000Z [email protected] <0.959.0> ee78daa40d
127.0.0.1:15984 127.0.0.1 a GET /verifytestdb 404 ok 2
[notice] 2023-03-10T09:37:04.780000Z [email protected] <0.958.0> 6999fb31ad
127.0.0.1:15984 127.0.0.1 a GET /verifytestdb_replicate 404 ok 1
[notice] 2023-03-10T09:37:04.860000Z [email protected] <0.958.0> a2196c39bf
127.0.0.1:15984 127.0.0.1 a PUT /verifytestdb 201 ok 61
[notice] 2023-03-10T09:37:04.912000Z [email protected] <0.959.0> 186954cddb
127.0.0.1:15984 127.0.0.1 a PUT /verifytestdb/test_doc_1 201 ok 44
[notice] 2023-03-10T09:37:04.940000Z [email protected] <0.959.0> cbe1e087a6
127.0.0.1:15984 127.0.0.1 a PUT /verifytestdb/test_doc_1 201 ok 18
[notice] 2023-03-10T09:37:04.960000Z [email protected] <0.959.0> 6d5a3f9665
127.0.0.1:15984 127.0.0.1 a DELETE
/verifytestdb/test_doc_1?rev=2-d588d3e93ee155c5afffdf0247a2c5ef 200 ok 13
[notice] 2023-03-10T09:37:05.014000Z [email protected] <0.959.0> 6bdc392024
127.0.0.1:15984 127.0.0.1 a PUT /verifytestdb/test_doc_10 201 ok 45
[notice] 2023-03-10T09:37:05.046000Z [email protected] <0.960.0> 86b1753a85
127.0.0.1:15984 127.0.0.1 a PUT /verifytestdb/test_doc_20 201 ok 76
[notice] 2023-03-10T09:37:05.047000Z [email protected] <0.961.0> b3394ee74f
127.0.0.1:15984 127.0.0.1 a PUT /verifytestdb/test_doc_30 201 ok 74
[notice] 2023-03-10T09:37:05.196000Z [email protected] <0.1120.0> b498cba290
127.0.0.1:15984 127.0.0.1 a PUT /verifytestdb/_design/view_check 201 ok 218
[info] 2023-03-10T09:37:05.321000Z [email protected] <0.1312.0> --------
Starting index update for db: shards/00000000-7fffffff/verifytestdb.1678441024
idx: _design/view_check
[info] 2023-03-10T09:37:05.321000Z [email protected] <0.1313.0> --------
Starting index update for db: shards/80000000-ffffffff/verifytestdb.1678441024
idx: _design/view_check
[info] 2023-03-10T09:37:05.366000Z [email protected] <0.1313.0> -------- Index
update finished for db: shards/80000000-ffffffff/verifytestdb.1678441024 idx:
_design/view_check
[info] 2023-03-10T09:37:05.480000Z [email protected] <0.1312.0> -------- Index
update finished for db: shards/00000000-7fffffff/verifytestdb.1678441024 idx:
_design/view_check
[notice] 2023-03-10T09:37:05.481000Z [email protected] <0.1120.0> f942431a0d
127.0.0.1:15984 127.0.0.1 a GET /verifytestdb/_design/view_check/_view/testview
200 ok 277
[notice] 2023-03-10T09:37:05.573000Z [email protected] <0.482.0> --------
couch_replicator_scheduler: Job
{"3b0b6719607f9c77873820e36cde9bbe","+create_target"} started as <0.1346.0>
[notice] 2023-03-10T09:37:08.233000Z [email protected] <0.1346.0> --------
Retrying GET request to http://0.0.0.0:15984/verifytestdb/ in 0.25 seconds due
to error {conn_failed,{error,eaddrnotavail}}
[notice] 2023-03-10T09:37:08.736000Z [email protected] <0.1346.0> --------
Retrying GET request to http://0.0.0.0:15984/verifytestdb/ in 0.5 seconds due
to error sel_conn_closed
[notice] 2023-03-10T09:37:09.742000Z [email protected] <0.1346.0> --------
Retrying GET request to http://0.0.0.0:15984/verifytestdb/ in 1.0 seconds due
to error {conn_failed,{error,eaddrnotavail}}
[notice] 2023-03-10T09:37:11.746000Z [email protected] <0.1346.0> --------
Retrying GET request to http://0.0.0.0:15984/verifytestdb/ in 2.0 seconds due
to error {conn_failed,{error,eaddrnotavail}}
[notice] 2023-03-10T09:37:15.752000Z [email protected] <0.1346.0> --------
Retrying GET request to http://0.0.0.0:15984/verifytestdb/ in 4.0 seconds due
to error {conn_failed,{error,eaddrnotavail}}
[error] 2023-03-10T09:37:15.755000Z [email protected] <0.1346.0> --------
Replicator, request GET to "http://0.0.0.0:15984/verifytestdb/" failed due to
error {error,{conn_failed,{error,eaddrnotavail}}}
[error] 2023-03-10T09:37:15.755000Z [email protected] <0.1346.0> --------
exit:{http_request_failed,"GET","http://0.0.0.0:15984/verifytestdb/",{error,{error,{conn_failed,{error,eaddrnotavail}}}}}:
Replication 3b0b6719607f9c77873820e36cde9bbe+create_target failed to start
"http://0.0.0.0:15984/verifytestdb/" ->
"http://0.0.0.0:15984/verifytestdb_replicate/" doc null:null
stack:[{couch_replicator_api_wrap,db_open,3,[{file,"src/couch_replicator_api_wrap.erl"},{line,122}]},{couch_replicator_scheduler_job,init_state,1,[{file,"src/couch_replicator_scheduler_job.erl"},{line,634}]}]
[error] 2023-03-10T09:37:15.755000Z [email protected] <0.482.0> --------
couch_replicator_scheduler : Transient job
{"3b0b6719607f9c77873820e36cde9bbe","+create_target"} failed, removing. Error:
<<"{http_request_failed,\"GET\",\"http://0.0.0.0:15984/verifytestdb/\",\n
{error,{error,{conn_failed,{error,eaddrnotavail}}}}}">>
[notice] 2023-03-10T09:37:15.756000Z [email protected] <0.1120.0> 8431907145
127.0.0.1:15984 127.0.0.1 a POST /_replicate 500 ok 10257
[notice] 2023-03-10T09:37:15.795000Z [email protected] <0.1120.0> afc450f8ac
127.0.0.1:15984 127.0.0.1 a DELETE /verifytestdb_replicate 404 ok 11
[notice] 2023-03-10T09:37:15.802000Z [email protected] <0.960.0> 0a75320b61
127.0.0.1:15984 127.0.0.1 a DELETE /verifytestdb 200 ok 17
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]