You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/03/27 23:00:25 UTC

[GitHub] [couchdb] j3k0 opened a new issue #3973: IPv6 cluster

j3k0 opened a new issue #3973:
URL: https://github.com/apache/couchdb/issues/3973


   I cannot setup a IPv6 cluster, because the `_cluster_setup` action `add_node` doesn't accept IPv6.
   
   ```
   curl -H 'Content-type: application/json' "admin:password@host1.vlan0:5984/_cluster_setup" -d '{"action": "add_node", "host":"host2.vlan0", "port": 5984, "username": "admin", "password":"password"}' | jq
   {
     "error": "invalid_ejson",
     "reason": "{conn_failed,{error,nxdomain}}",
     "ref": 878456848
   }
   ```
   
   * `host1.vlan0` resolves (AAAA) to an address similar to `abcd:1234:abcd:1234:abcd:123:abcd:1`
   * `host2.vlan0` resolves (AAAA) to an address similar to `abcd:1234:abcd:1234:abcd:123:abcd:2`
   
   When trying to set the "host" to the IPv6 address, I get:
   
   ```
   {
     "error": "invalid_ejson",
     "reason": "{url_parsing_failed,{error,invalid_uri}}",
     "ref": 878456848
   }
   ```
   
   I also try to include the IPv6 between `[ ]` (thinking maybe couchdb tries to setup a URL like `http://{ host }:{ port }`) ... but it fails with the same error as if I used an hostname (`error, nxdomain`). (I wonder if there's a regex figuring out if the thing is an IP that only matches IPv4?)
   
   *Note*: another hiccup was that `apache.jfrog.io` does not resolve in IPv6 (solved by downloading and copying the deb file manually... meh). But that's a different issue.


-- 
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: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org