Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{conn_failed,{error,eaddrnotavail}} will fail on Windows when verifying installation via Fauxton #4466

Open
big-r81 opened this issue Mar 10, 2023 · 8 comments

Comments

@big-r81
Copy link
Contributor

big-r81 commented Mar 10, 2023

Description

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
  1. Open Fauxton and navigate to http:https://127.0.0.1:15984/_utils/#/verifyinstall
  2. Run Verify Install

Expected Behaviour

All tests should succeed.

Your Environment

Config

{
  "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:https://127.0.0.1:15984/
[info] 2023-03-10T09:36:39.272000Z [email protected] <0.435.0> -------- Apache CouchDB has started on http:https://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:https://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:https://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:https://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:https://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:https://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:https://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:https://0.0.0.0:15984/verifytestdb/",{error,{error,{conn_failed,{error,eaddrnotavail}}}}}: Replication 3b0b6719607f9c77873820e36cde9bbe+create_target failed to start "http:https://0.0.0.0:15984/verifytestdb/" -> "http:https://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:https://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
@janl
Copy link
Member

janl commented Mar 10, 2023

what happens if you curl http:https://127.0.0.1:15984/?

@big-r81
Copy link
Contributor Author

big-r81 commented Mar 10, 2023

what happens if you curl http:https://127.0.0.1:15984/?

all other things seem to work...

PS C:\relax\couchdb> curl.exe -s http:https://a:[email protected]:15984

{"couchdb":"Welcome","version":"3.3.1-8ec7b57","git_sha":"8ec7b57","uuid":"fake_uuid_for_dev","features":["access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The Apache Software Foundation"}}

@doctor-claw
Copy link

doctor-claw commented May 8, 2023

I can confirm I'm seeing the same behaviour with CouchDB 3.3.1 on Windows 10 Pro:

[notice] 2023-05-08T12:57:54.149000Z couchdb@localhost <0.7107.0> 2265febc59 localhost:5984 127.0.0.1 admin GET /verifytestdb 404 ok 8
[notice] 2023-05-08T12:57:54.149000Z couchdb@localhost <0.6838.0> be15be928d localhost:5984 127.0.0.1 admin GET /verifytestdb_replicate 404 ok 7
[error] 2023-05-08T12:57:54.154000Z couchdb@localhost <0.6838.0> 0568597d13 Request to create N=3 DB but only 1 node(s)
[notice] 2023-05-08T12:57:54.166000Z couchdb@localhost <0.6838.0> 0568597d13 localhost:5984 127.0.0.1 admin PUT /verifytestdb 201 ok 13
[notice] 2023-05-08T12:57:54.173000Z couchdb@localhost <0.7107.0> 27ec6347f0 localhost:5984 127.0.0.1 admin PUT /verifytestdb/test_doc_1 201 ok 4
[notice] 2023-05-08T12:57:54.179000Z couchdb@localhost <0.7107.0> 3b427cb631 localhost:5984 127.0.0.1 admin PUT /verifytestdb/test_doc_1 201 ok 4
[notice] 2023-05-08T12:57:54.186000Z couchdb@localhost <0.7107.0> 18c801eca1 localhost:5984 127.0.0.1 admin DELETE /verifytestdb/test_doc_1?rev=2-d588d3e93ee155c5afffdf0247a2c5ef 200 ok 4
[notice] 2023-05-08T12:57:54.195000Z couchdb@localhost <0.6789.0> 2244ddd6a0 localhost:5984 127.0.0.1 admin PUT /verifytestdb/test_doc_30 201 ok 5
[notice] 2023-05-08T12:57:54.195000Z couchdb@localhost <0.6786.0> 3666a1e388 localhost:5984 127.0.0.1 admin PUT /verifytestdb/test_doc_20 201 ok 5
[notice] 2023-05-08T12:57:54.195000Z couchdb@localhost <0.7107.0> 9eecc42e7a localhost:5984 127.0.0.1 admin PUT /verifytestdb/test_doc_10 201 ok 6
[notice] 2023-05-08T12:57:54.208000Z couchdb@localhost <0.6786.0> a56c5be681 localhost:5984 127.0.0.1 admin PUT /verifytestdb/_design/view_check 201 ok 10
[info] 2023-05-08T12:57:54.215000Z couchdb@localhost <0.9569.0> -------- Starting index update for db: shards/00000000-7fffffff/verifytestdb.1683550674 idx: _design/view_check
[info] 2023-05-08T12:57:54.219000Z couchdb@localhost <0.9583.0> -------- Starting index update for db: shards/80000000-ffffffff/verifytestdb.1683550674 idx: _design/view_check
[info] 2023-05-08T12:57:54.219000Z couchdb@localhost <0.9569.0> -------- Index update finished for db: shards/00000000-7fffffff/verifytestdb.1683550674 idx: _design/view_check
[info] 2023-05-08T12:57:54.222000Z couchdb@localhost <0.9583.0> -------- Index update finished for db: shards/80000000-ffffffff/verifytestdb.1683550674 idx: _design/view_check
[notice] 2023-05-08T12:57:54.223000Z couchdb@localhost <0.6786.0> 29253cbf65 localhost:5984 127.0.0.1 admin GET /verifytestdb/_design/view_check/_view/testview 200 ok 11
[notice] 2023-05-08T12:57:54.229000Z couchdb@localhost <0.461.0> -------- couch_replicator_scheduler: Job {"e472081da9cacdefb968f5a0be0f7e52","+create_target"} started as <0.9600.0>
[notice] 2023-05-08T12:57:57.757000Z couchdb@localhost <0.9600.0> -------- Retrying GET request to http:https://0.0.0.0:5984/verifytestdb/ in 0.25 seconds due to error {conn_failed,{error,eaddrnotavail}}
[notice] 2023-05-08T12:57:58.271000Z couchdb@localhost <0.9600.0> -------- Retrying GET request to http:https://0.0.0.0:5984/verifytestdb/ in 0.5 seconds due to error sel_conn_closed
[notice] 2023-05-08T12:57:59.289000Z couchdb@localhost <0.9600.0> -------- Retrying GET request to http:https://0.0.0.0:5984/verifytestdb/ in 1.0 seconds due to error {conn_failed,{error,eaddrnotavail}}
[notice] 2023-05-08T12:58:01.302000Z couchdb@localhost <0.9600.0> -------- Retrying GET request to http:https://0.0.0.0:5984/verifytestdb/ in 2.0 seconds due to error {conn_failed,{error,eaddrnotavail}}
[notice] 2023-05-08T12:58:05.315000Z couchdb@localhost <0.9600.0> -------- Retrying GET request to http:https://0.0.0.0:5984/verifytestdb/ in 4.0 seconds due to error {conn_failed,{error,eaddrnotavail}}
[error] 2023-05-08T12:58:05.316000Z couchdb@localhost <0.9600.0> -------- Replicator, request GET to "http:https://0.0.0.0:5984/verifytestdb/" failed due to error {error,{conn_failed,{error,eaddrnotavail}}}
[error] 2023-05-08T12:58:05.316000Z couchdb@localhost <0.9600.0> -------- exit:{http_request_failed,"GET","http:https://0.0.0.0:5984/verifytestdb/",{error,{error,{conn_failed,{error,eaddrnotavail}}}}}: Replication e472081da9cacdefb968f5a0be0f7e52+create_target failed to start "http:https://0.0.0.0:5984/verifytestdb/" -> "http:https://0.0.0.0:5984/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-05-08T12:58:05.317000Z couchdb@localhost <0.461.0> -------- couch_replicator_scheduler : Transient job {"e472081da9cacdefb968f5a0be0f7e52","+create_target"} failed, removing. Error: <<"{http_request_failed,\"GET\",\"http:https://0.0.0.0:5984/verifytestdb/\",\n                     {error,{error,{conn_failed,{error,eaddrnotavail}}}}}">>
[notice] 2023-05-08T12:58:05.317000Z couchdb@localhost <0.6786.0> 41aaab8679 localhost:5984 127.0.0.1 admin POST /_replicate 500 ok 11089
[notice] 2023-05-08T12:58:05.332000Z couchdb@localhost <0.6786.0> 126d5450c6 localhost:5984 127.0.0.1 admin DELETE /verifytestdb_replicate 404 ok 0
[notice] 2023-05-08T12:58:05.337000Z couchdb@localhost <0.7107.0> 3bfb599f94 localhost:5984 127.0.0.1 admin DELETE /verifytestdb 200 ok 5

@mwasson74
Copy link

Any updates on this?

@big-r81
Copy link
Contributor Author

big-r81 commented Feb 29, 2024

Any updates on this?

whats your bind_address in section chttpd?

@mwasson74
Copy link

chttpd section:

  "chttpd": {
    "bind_address": "0.0.0.0",
    "enable_cors": "true",
    "port": "5984"
  }

@big-r81
Copy link
Contributor Author

big-r81 commented Feb 29, 2024

0.0.0.0 doesn't work on Windows, try 127.0.0.1 or your external ip address. Then verify from Fauxton should work.

@mwasson74
Copy link

That worked, thanks! However, I was trying to change it in the local.ini and restart the service and it wouldn't take. I decided to edit the value via Fauxton and then go find what changed on the server. The file that changed was ..\CouchDB\etc\local.d\10-admins.ini. I wonder why it wouldn't take my updated config value from ..\CouchDB\etc\local.ini...? I tried removing ..\CouchDB\etc\local.d\10-admins.ini and it certainly didn't like that so I put it back.

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

No branches or pull requests

4 participants