You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Michael Stapelberg (JIRA)" <ji...@apache.org> on 2010/02/23 14:58:27 UTC

[jira] Created: (COUCHDB-665) Replication not possible via IPv6

Replication not  possible via IPv6
----------------------------------

                 Key: COUCHDB-665
                 URL: https://issues.apache.org/jira/browse/COUCHDB-665
             Project: CouchDB
          Issue Type: Bug
          Components: Database Core, Replication
    Affects Versions: 0.10.1
         Environment: Linux x200 2.6.32-2 #2 SMP Wed Feb 17 01:00:03 CET 2010 x86_64 GNU/Linux
            Reporter: Michael Stapelberg


I have a host which is only reachable via IPv6. While I can connect to a CouchDB running on this host just fine, I cannot replicate my database to it.

This is due to the inet6-option missing from the gen_tcp.connect() call. I will attach a patch which fixes the issue.

To test it, you can use a host which only has an AAAA record in the DNS. CouchDB will immediately return 404 if you want to replicate to it unless you add the inet6 option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-665) Replication not possible via IPv6

Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Joseph Davis updated COUCHDB-665:
--------------------------------------

    Skill Level: Regular Contributors Level (Easy to Medium)

> Replication not  possible via IPv6
> ----------------------------------
>
>                 Key: COUCHDB-665
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-665
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core, Replication
>    Affects Versions: 0.10.1
>         Environment: Linux x200 2.6.32-2 #2 SMP Wed Feb 17 01:00:03 CET 2010 x86_64 GNU/Linux
>            Reporter: Michael Stapelberg
>            Priority: Blocker
>         Attachments: couchdb-ipv6.patch, patch
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> I have a host which is only reachable via IPv6. While I can connect to a CouchDB running on this host just fine, I cannot replicate my database to it.
> This is due to the inet6-option missing from the gen_tcp.connect() call. I will attach a patch which fixes the issue.
> To test it, you can use a host which only has an AAAA record in the DNS. CouchDB will immediately return 404 if you want to replicate to it unless you add the inet6 option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-665) Replication not possible via IPv6

Posted by "Michael Stapelberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Stapelberg updated COUCHDB-665:
---------------------------------------

    Attachment: patch

Adds inet6 to ssl:connect() and gen_tcp:connect() to enable replication via IPv6

> Replication not  possible via IPv6
> ----------------------------------
>
>                 Key: COUCHDB-665
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-665
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core, Replication
>    Affects Versions: 0.10.1
>         Environment: Linux x200 2.6.32-2 #2 SMP Wed Feb 17 01:00:03 CET 2010 x86_64 GNU/Linux
>            Reporter: Michael Stapelberg
>         Attachments: patch
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> I have a host which is only reachable via IPv6. While I can connect to a CouchDB running on this host just fine, I cannot replicate my database to it.
> This is due to the inet6-option missing from the gen_tcp.connect() call. I will attach a patch which fixes the issue.
> To test it, you can use a host which only has an AAAA record in the DNS. CouchDB will immediately return 404 if you want to replicate to it unless you add the inet6 option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-665) Replication not possible via IPv6

Posted by "Jan Lehnardt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Lehnardt updated COUCHDB-665:
---------------------------------

    Priority: Blocker  (was: Major)

Set to blocking as per dev@ request.

> Replication not  possible via IPv6
> ----------------------------------
>
>                 Key: COUCHDB-665
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-665
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core, Replication
>    Affects Versions: 0.10.1
>         Environment: Linux x200 2.6.32-2 #2 SMP Wed Feb 17 01:00:03 CET 2010 x86_64 GNU/Linux
>            Reporter: Michael Stapelberg
>            Priority: Blocker
>         Attachments: patch
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> I have a host which is only reachable via IPv6. While I can connect to a CouchDB running on this host just fine, I cannot replicate my database to it.
> This is due to the inet6-option missing from the gen_tcp.connect() call. I will attach a patch which fixes the issue.
> To test it, you can use a host which only has an AAAA record in the DNS. CouchDB will immediately return 404 if you want to replicate to it unless you add the inet6 option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-665) Replication not possible via IPv6

Posted by "Michael Stapelberg (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837241#action_12837241 ] 

Michael Stapelberg commented on COUCHDB-665:
--------------------------------------------

I forgot to mention that replication works via IPv6 *and* IPv4 after this patch.

> Replication not  possible via IPv6
> ----------------------------------
>
>                 Key: COUCHDB-665
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-665
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core, Replication
>    Affects Versions: 0.10.1
>         Environment: Linux x200 2.6.32-2 #2 SMP Wed Feb 17 01:00:03 CET 2010 x86_64 GNU/Linux
>            Reporter: Michael Stapelberg
>         Attachments: patch
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> I have a host which is only reachable via IPv6. While I can connect to a CouchDB running on this host just fine, I cannot replicate my database to it.
> This is due to the inet6-option missing from the gen_tcp.connect() call. I will attach a patch which fixes the issue.
> To test it, you can use a host which only has an AAAA record in the DNS. CouchDB will immediately return 404 if you want to replicate to it unless you add the inet6 option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-665) Replication not possible via IPv6

Posted by "Michael Stapelberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Stapelberg updated COUCHDB-665:
---------------------------------------

    Attachment: couchdb-ipv6.patch

The new version of the patch does not always add the inet6 option (which only works on systems where /proc/sys/net/ipv6/bindv6only == 0) but checks which kind of hostname this is.

> Replication not  possible via IPv6
> ----------------------------------
>
>                 Key: COUCHDB-665
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-665
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core, Replication
>    Affects Versions: 0.10.1
>         Environment: Linux x200 2.6.32-2 #2 SMP Wed Feb 17 01:00:03 CET 2010 x86_64 GNU/Linux
>            Reporter: Michael Stapelberg
>            Priority: Blocker
>         Attachments: couchdb-ipv6.patch, patch
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> I have a host which is only reachable via IPv6. While I can connect to a CouchDB running on this host just fine, I cannot replicate my database to it.
> This is due to the inet6-option missing from the gen_tcp.connect() call. I will attach a patch which fixes the issue.
> To test it, you can use a host which only has an AAAA record in the DNS. CouchDB will immediately return 404 if you want to replicate to it unless you add the inet6 option.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.