Open big-r81 opened 1 year ago
what happens if you curl http://127.0.0.1:15984/
?
what happens if you
curl http://127.0.0.1:15984/
?
all other things seem to work...
PS C:\relax\couchdb> curl.exe -s http://a:a@127.0.0.1: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"}}
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://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://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://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://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://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://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://0.0.0.0:5984/verifytestdb/",{error,{error,{conn_failed,{error,eaddrnotavail}}}}}: Replication e472081da9cacdefb968f5a0be0f7e52+create_target failed to start "http://0.0.0.0:5984/verifytestdb/" -> "http://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://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
Any updates on this?
Any updates on this?
whats your bind_address
in section chttpd
?
chttpd section:
"chttpd": {
"bind_address": "0.0.0.0",
"enable_cors": "true",
"port": "5984"
}
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.
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.
Description
Trying to verify the install from Fauxton on a dev cluster on Windows (with default settings) will fail with the following error:
It seems, setting
chttpd/bind_address
on Windows to0.0.0.0
doesn't work.Steps to Reproduce
http://127.0.0.1:15984/_utils/#/verifyinstall
Verify Install
Expected Behaviour
All tests should succeed.
Your Environment
Config
Log