AstraLuma opened a new issue, #5227:
URL: https://github.com/apache/couchdb/issues/5227

   ## Description
   
   The replicator is unable to connect to IPv6 only hosts. ([Happy 
Eyeballs](https://en.wikipedia.org/wiki/Happy_Eyeballs))
   
   ```
   [notice] 2024-09-06T18:40:16.424279Z nonode@nohost <0.410.0> -------- 
couch_replicator_scheduler: Job 
{"9ee427e17d0ca9d26cff95636c8688e2","+continuous"} started as <0.12139.0> 
   [notice] 2024-09-06T18:40:16.424979Z nonode@nohost <0.410.0> -------- 
couch_replicator_scheduler: Job 
{"3738333319a979810d1d75ffeb980cf5","+continuous"} started as <0.12140.0>       
            [error] 2024-09-06T18:40:16.517725Z nonode@nohost <0.12140.0> 
-------- couch_replicator_httpc: auth plugin initialization failed 
"http://2875003f0099e8.vm.fc-test.internal:5984/_users/"; 
{session_request_failed,"http://2875003f0099e8.vm.fc-test.internal:5984/_session","admin",{conn_failed,{error,nxdomain}}}
   [error] 2024-09-06T18:40:16.518260Z nonode@nohost <0.12140.0> -------- 
throw:{replication_auth_error,session_request_failed,"http://2875003f0099e8.vm.fc-test.internal:5984/_session","admin",{conn_failed,{error,nxdomain}}}}:
 Replication 3738333319a979810d1d75ffeb980cf5+continuous failed to start 
"http://2875003f0099e8.vm.fc-test.internal:5984/_users/"; -> 
"http://localhost:5984/_users/"; doc 
<<"shards/00000000-7fffffff/_replicator.1725575687">>:<<"pup_2875003f0099e8.vm.fc-test.internal__users">>
 
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}]}]
                                                                          
   [error] 2024-09-06T18:40:17.296788Z nonode@nohost <0.12139.0> -------- 
couch_replicator_httpc: auth plugin initialization failed 
"http://89172ef6e46538.vm.fc-test.internal:5984/_users/"; 
{session_request_failed,"http://89172ef6e46538.vm.fc-test.internal:5984/_session","admin",{conn_failed,{error,nxdomain}}}
         
   [error] 2024-09-06T18:40:17.297405Z nonode@nohost <0.12139.0> -------- 
throw:{replication_auth_error,session_request_failed,"http://89172ef6e46538.vm.fc-test.internal:5984/_session","admin",{conn_failed,{error,nxdomain}}}}:
 Replication 9ee427e17d0ca9d26cff95636c8688e2+continuous failed to start 
"http://89172ef6e46538.vm.fc-test.internal:5984/_users/"; -> 
"http://localhost:5984/_users/"; doc 
<<"shards/80000000-ffffffff/_replicator.1725575687">>:<<"pup_89172ef6e46538.vm.fc-test.internal__users">>
 
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}]}]
     
   ```
   
   ## Steps to Reproduce
   
   1. Set up two CouchDB instances in an IPv6-only network
   2. Have them replicate
   
   ## Expected Behaviour
   
   Happy replication
   
   ## Your Environment
   
   ```
   {
     "couchdb": "Welcome",
     "version": "3.3.3",
     "git_sha": "40afbcfc7",
     "uuid": "4f7a158064db1f9c3ae5e9f02cae56d9",
     "features": [
       "access-ready",
       "partitioned",
       "pluggable-storage-engines",
       "reshard",
       "scheduler"
     ],
     "vendor": {
       "name": "The Apache Software Foundation"
     }
   }
   ```
   
   ## Additional Context
   
   This was discovered while implementing work-arounds for #5223.
   
   Fly.io's internal network is IPv6 only--it only does IPv4 at ingress.
   


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