sergey-safarov opened a new issue, #4668:
URL: https://github.com/apache/couchdb/issues/4668

   ## Description
   We have an IPv6-only installation. No IPv4 is configured on the server 
(except loopback). In the `vm.agrs` configured
   ```
   -proto_dist inet6_tcp
   ```
   When I start replication to then CouchDB sends only `A` dns request and does 
not try to send `AAAA` dns requsts.
   [NOTE]: # ( Describe the problem you're encountering. )
   [TIP]:  # ( Do NOT give us access or passwords to your actual CouchDB! )
   
   ## Steps to Reproduce
   Create `request.json` file like
   ```json
   {
     "user_ctx": {
       "name": "admin",
       "roles": [
         "_admin",
         "_reader",
         "_writer"
       ]
     },
     "source": {
       "url": "http://ippbx-1a.la.example.com:5984/mydb";,
       "headers": {
         "Authorization": "Basic XXXXXXXXXXXX"
       }
     },
     "target": {
       "url": "http://127.0.0.1:5984/mydb";,
       "headers": {
         "Authorization": "Basic XXXXXXXXX"
       }
     },
     "create_target": true,
     "continuous": false
   }
   ```
   Then send curl command like
   ```bash
   curl \
    -H 'Content-Type: application/json' \
    -H 'Accept: application/json' \
    -d @request.json \
    'http://admin:[email protected]:5984/_replicator'
   ```
   in the logs i can see
   > Jul 07 09:21:51 ippbx-1b.la.example.com docker[3677369]: [error] 
2023-07-07T09:21:51.599467Z 
[[email protected]](mailto:[email protected]) 
<0.6095.0> -------- couch_replicator_httpc: auth plugin initialization failed 
"http://ippbx-1a.la.example.com:5984/mydb/"; 
{session_request_failed,"[http://ippbx-1a.la.example.com:5984/_session","admin",{conn_failed,{error,nxdomain}}}](http://ippbx-1a.la.example.com:5984/_session%22,%22admin%22,%7Bconn_failed,%7Berror,nxdomain%7D%7D%7D)
   Jul 07 09:21:51 ippbx-1b.la.example.com docker[3677369]: [error] 
2023-07-07T09:21:51.599676Z 
[[email protected]](mailto:[email protected]) 
<0.6095.0> -------- 
throw:{replication_auth_error,{session_request_failed,"[http://ippbx-1a.la.example.com:5984/_session","admin",{conn_failed,{error,nxdomain}}}}](http://ippbx-1a.la.example.com:5984/_session%22,%22admin%22,%7Bconn_failed,%7Berror,nxdomain%7D%7D%7D%7D):
 Replication 69411eb9179c970995746a1ecd781fac+create_target failed to start 
"http://ippbx-1a.la.example.com:5984/mydb/"; -> "http://127.0.0.1:5984/mydb/"; 
doc 
<<"shards/00000000-7fffffff/_replicator.1688721035">>:<<"477deb9261a9927a1d20e90f2a001b31">>
 
stack:[{couch_replicator_httpc,setup,1,[{file,"src/couch_replicator_httpc.erl"},{line,62}]},{couch_replicator_api_wrap,db_open,3,[{file,"src/couch_replicator_api_wrap.erl"},{line,68}]}]
   
   ## Expected Behaviour
   
   CouchDB should send a `AAAA`  dns request to get a remote host IP address. 
If the `AAAA` request fails, then try to send an `A` DNS request.
   
   ## Your Environment
   
   [TIP]:  # ( Include as many relevant details about your environment as 
possible. )
   [TIP]:  # ( You can paste the output of curl http://YOUR-COUCHDB:5984/ here. 
)
   
   * CouchDB version used:
   Used `apache/couchdb:3.3.2` docker image.
   
   * Browser name and version:
   Used curl to trigger replication.
   
   * Operating system and version:
   
   ## Additional Context
   IPv6 only `CouchDB` installation.


-- 
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]

Reply via email to