Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
nickva commented on issue #3887: URL: https://github.com/apache/couchdb/issues/3887#issuecomment-1858748063 Cheers, @ajithcnambiar! I'll close the issue then. -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
nickva closed issue #3887: Replication - url_parsing_failed/nx_domain on IPv6 URL: https://github.com/apache/couchdb/issues/3887 -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
ajithcnambiar commented on issue #3887: URL: https://github.com/apache/couchdb/issues/3887#issuecomment-1858747387 The replication works well in the IPv6 cluster with [CouchDB 3.3.3](https://hub.docker.com/layers/library/couchdb/3.3.3/images/sha256-cf27045a93f5d1eabf758e3d01b21e5cce109ac2f1061189d74f7c8b8dd043da) Thanks again! -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
ajithcnambiar commented on issue #3887: URL: https://github.com/apache/couchdb/issues/3887#issuecomment-1776133932 I also faced the same issue while migrating to the IPv6 cluster. When can we expect a release with this fix? Thanks, everyone🙏 -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
nickva commented on issue #3887: URL: https://github.com/apache/couchdb/issues/3887#issuecomment-1756696635 > Might also make a PR to the docs on replication to add this stuff That would be great, please do. Contributions are always welcome! -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
catgirlinspace commented on issue #3887: URL: https://github.com/apache/couchdb/issues/3887#issuecomment-1756686422 Ah, I'll try that, thanks! Might also make a PR to the docs on replication to add this stuff (unless you want to?). Feels like this is information that should be there but I couldn't find it. -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
nickva commented on issue #3887: URL: https://github.com/apache/couchdb/issues/3887#issuecomment-1756661265 > good news-- building CouchDB from main and using the config option you provided fixed it!! That's great to hear. Credit also goes to @rnewson for both fixing the ipv6 setting and remembering that it was the correct answer for this issue! > For having A, B, and C nodes, how would I setup replication? Would I want like a triangle, where each vertex is a node and each side has bi-directional replication? A triangle would work with 3 bi-directional links (a total of 6 links): * On A run: A -> B, A-> C * On B run: B -> A, B -> C * On C run: C -> A, C -> B -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
catgirlinspace commented on issue #3887: URL: https://github.com/apache/couchdb/issues/3887#issuecomment-1756491509 @nickva good news-- building CouchDB from `main` and using the config option you provided fixed it!! -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
catgirlinspace commented on issue #3887: URL: https://github.com/apache/couchdb/issues/3887#issuecomment-1756488038 Ah, that makes a lot more sense, thank you!! Would be good to maybe put that somewhere in the docs possibly. I didn't see an explanation like this anywhere when I was looking. For having A, B, and C nodes, how would I setup replication? Would I want like a triangle, where each vertex is a node and each side has bi-directional replication? -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
nickva commented on issue #3887: URL: https://github.com/apache/couchdb/issues/3887#issuecomment-1756164815 Clustering is a way to connect multiple Apache CouchDB nodes using Erlang's native clustering mechanism over TCP connections. At the HTTP API level it looks like a single Apache CouchDB instance. With clustering you could get 1) better performance, by having nodes process requests in parallel, and 2) reliability by having 2 extra document copies on separate nodes. If one or two node go down, you can still access you data. However there is more setup involved, with some firewall rules. See https://docs.couchdb.org/en/stable/cluster/index.html for more info. Clustering works best on reliable, low latency, network connections. Replication is a way to replicate data between any Apache CouchDB compatible endpoints. It's a peer-to-peer setup, which is kind of a unique feature amongst databases. All the data is replicated via the HTTP API interface. You can run replication jobs on any Apache CouchDB instance and it can replicate between any two other CouchDB instances. Replication can be bi-directional (A->B, B->A), or you can set up any other topology you like: a star, with a central instance, or a circle, etc. Replication is suitable even for high latency or unreliable networks, with intermittent connectivity. There are checkpoints and retries, which are all configurable. > Can I write to any node and it replicates to all the others with both methods or does that only work with one of them? In case of replications, you can achieve that with a bi-directional replication. If you have CouchDB instances A and B. You can replicate from A to B and then also from B to A. Those two replication jobs, then can also run on A, B, or even a third cluster C! You can read more about it in: https://docs.couchdb.org/en/stable/replication/index.html But you'd also have to be aware of conflicts since the same document could be updated concurrently on A and B. You can read more about it here: https://docs.couchdb.org/en/stable/replication/conflicts.html -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
catgirlinspace commented on issue #3887: URL: https://github.com/apache/couchdb/issues/3887#issuecomment-1756136122 not at home to try that atm, but I'll try using a build of main tonight! Unrelated but feels like an ok opportunity to ask since it was mentioned--is there much of a difference between replication and the clustering? Can I write to any node and it replicates to all the others with both methods or does that only work with one of them? -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
rnewson commented on issue #3887: URL: https://github.com/apache/couchdb/issues/3887#issuecomment-1755867763 also its implied the nodes are ipv6-only so if this is a cluster I don't think they can connect without a separate change in `vm.args` to switch the distribution protocol module to `inet6_tcp' (https://www.erlang.org/doc/man/erl#proto_dist) -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
nickva commented on issue #3887: URL: https://github.com/apache/couchdb/issues/3887#issuecomment-1755852807 Good find @rnewson That patch hasn't been released yet I think. @catgirlinspace would you be able to build Apache CouchDB `main` from source? If you can, then you can try it out with this option: ```ini [replicator] ibrowse_options = [{prefer_ipv6, true}] ``` -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
rnewson commented on issue #3887: URL: https://github.com/apache/couchdb/issues/3887#issuecomment-1755847211 Is it fixed by 882e7161acb692d3e721c7653d8cdc2e5e65d2ef? -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [I] Replication - url_parsing_failed/nx_domain on IPv6 [couchdb]
catgirlinspace commented on issue #3887: URL: https://github.com/apache/couchdb/issues/3887#issuecomment-1755747390 @nickva Not sure if that's the bug actually, as I'm getting this same error when using internal domains from fly.io that have records. I'm able to `curl` the same thing just fine, but CouchDB fails to replicate. ``` 2023-10-10T15:37:03.329 app[5683d554a54dd8] iad [info] [error] 2023-10-10T15:37:03.329220Z nonode@nohost <0.2198.1> Replicator, request GET to "http://5683d554a54dd8.vm.kitty-couchdb.internal:5984/kitty/"; failed due to error {error,{conn_failed,{error,nxdomain}}} 2023-10-10T15:37:03.330 app[5683d554a54dd8] iad [info] [error] 2023-10-10T15:37:03.329678Z nonode@nohost <0.2198.1> exit:{nxdomain,<<"could not resolve http://5683d554a54dd8.vm.kitty-couchdb.internal:5984/kitty/";>>}: Replication c69137545c9630b0fc5f26941816e28b+continuous+create_target failed to start "http://5683d554a54dd8.vm.kitty-couchdb.internal:5984/kitty/"; -> "http://e784936a2e2768.vm.kitty-couchdb.internal:5984/kitty/"; doc <<"shards/8000-/_replicator.1696915972">>:<<"f0283eeea4248b169847e01f30001169">> 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}]}] ``` ``` root@5683d554a54dd8:/# curl http://5683d554a54dd8.vm.kitty-couchdb.internal:5984/_up {"status":"ok","seeds":{}} ``` (`5683d554a54dd8` is the machine with the local database, `e784936a2e2768` is the machine being replicated to) -- 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-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org