-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CouchDB sends A dns request when configured -proto_dist inet6_tcp #4668
Comments
the erlang/otp Support for replicating to ipv6-only hosts was added back in couchdb 2.3 (by upgrading ibrowse). given you are within an docker image, have you confirmed the environment is capable of ipv6 host resolution and routing? When you said couchdb only does an |
Yes, I have started replication and in another tab, I have started
Please check my real result without "example" masking. The same results you will get on the your PC.
|
routing also works
couchdb cluster with 2.3.1
|
Thanks. looks like this change in the third party http client we use (ibrowse): apache/couchdb-ibrowse@e6a0c36 try setting;
You'll need to restart couchdb if you edit the config files, or you can use the |
on the server I have created file
Then I mounted this file into the docker container. The CouchDB container started with this file mounted. [root@ippbx-1b ~]# docker exec couch ls -l /opt/couchdb/etc/local.d/replicator.ini
-rw-r--r--. 1 couchdb couchdb 403 Jul 10 09:53 /opt/couchdb/etc/local.d/replicator.ini Started replications again and using tcpdump can see
I also have checked local node config after CouchDB restart. I see
|
hi, I've tried this locally and it doesn't work, sorry for the bad steer. I see several bugs that prevent you from getting the necessary |
in particular this allows; [replicator] ibrowse_options = [{prefer_ipv6, true}] which allows the replicator to replicate with an ipv6-only source or target. Closes: #4668
in particular this allows; [replicator] ibrowse_options = [{prefer_ipv6, true}] which allows the replicator to replicate with an ipv6-only source or target. Closes: #4668
in particular this allows; [replicator] ibrowse_options = [{prefer_ipv6, true}] which allows the replicator to replicate with an ipv6-only source or target. Closes: #4668
in particular this allows; [replicator] ibrowse_options = [{prefer_ipv6, true}] which allows the replicator to replicate with an ipv6-only source or target. Closes: #4668
in particular this allows; [replicator] ibrowse_options = [{prefer_ipv6, true}] which allows the replicator to replicate with an ipv6-only source or target. Closes: #4668
in particular this allows; [replicator] ibrowse_options = [{prefer_ipv6, true}] which allows the replicator to replicate with an ipv6-only source or target. Closes: #4668
we have a fix for the next release, thank you for filing the issue! |
Should I use?
|
@sergey-safarov when there's a release with the fix all you'll need to do is;
and then ipv6 will be attempted for all replications, which is appropriate for your ipv6-only setup. In other setups you might just specify |
in particular this allows; [replicator] ibrowse_options = [{prefer_ipv6, true}] which allows the replicator to replicate with an ipv6-only source or target. Closes: #4668
in particular this allows; [replicator] ibrowse_options = [{prefer_ipv6, true}] which allows the replicator to replicate with an ipv6-only source or target. Closes: #4668
in particular this allows; [replicator] ibrowse_options = [{prefer_ipv6, true}] which allows the replicator to replicate with an ipv6-only source or target. Closes: #4668
in particular this allows; [replicator] ibrowse_options = [{prefer_ipv6, true}] which allows the replicator to replicate with an ipv6-only source or target. Closes: #4668
in particular this allows; [replicator] ibrowse_options = [{prefer_ipv6, true}] which allows the replicator to replicate with an ipv6-only source or target. Closes: #4668
in particular this allows; [replicator] ibrowse_options = [{prefer_ipv6, true}] which allows the replicator to replicate with an ipv6-only source or target. Closes: #4668
in particular this allows; [replicator] ibrowse_options = [{prefer_ipv6, true}] which allows the replicator to replicate with an ipv6-only source or target. Closes: #4668
in particular this allows; [replicator] ibrowse_options = [{prefer_ipv6, true}] which allows the replicator to replicate with an ipv6-only source or target. Closes: #4668
Description
We have an IPv6-only installation. No IPv4 is configured on the server (except loopback). In the
vm.agrs
configuredWhen I start replication to then CouchDB sends only
A
dns request and does not try to sendAAAA
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 likeThen send curl command like
in the logs i can see
Expected Behaviour
CouchDB should send a
AAAA
dns request to get a remote host IP address. If theAAAA
request fails, then try to send anA
DNS request.Your Environment
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.The text was updated successfully, but these errors were encountered: