<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:47:29 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-37941] specifying --bind_ip localhost results in error &quot;address already in use&quot; when IPv6 alias exists</title>
                <link>https://jira.mongodb.org/browse/SERVER-37941</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Specifying --bind_ip localhost with or without an additional ip address results in the server error below and the mongod fails to start:&lt;/p&gt;

&lt;p&gt;2018-11-06T10:23:07.682-0600 I STORAGE  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; exception in initAndListen std::exception: listen: Address already in use, terminating&lt;br/&gt;
2018-11-06T10:23:07.682-0600 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close listening sockets...&lt;/p&gt;

&lt;p&gt;This is due to the `localhost` alias being used for both IPv4 and IPv6 loopback addresses in /etc/hosts.&lt;/p&gt;

&lt;p&gt;The following workarounds are available:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Use localhost4 or some other unique alias in /etc/hosts for 127.0.0.1&lt;/li&gt;
	&lt;li&gt;Use the loopback address directly 127.0.0.1 instead of an alias shared by both 127.0.0.1 and ::1&lt;/li&gt;
	&lt;li&gt;Comment out or remove matching IPv6 aliases in /etc/hosts if IPv6 is not currently in use&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;This was tested on the following release:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;mongod --version&lt;br/&gt;
db version v4.0.3&lt;br/&gt;
git version: 7ea530946fa7880364d88c8d8b6026bbc9ffa48c&lt;br/&gt;
OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013&lt;br/&gt;
allocator: tcmalloc&lt;br/&gt;
modules: enterprise &lt;br/&gt;
build environment:&lt;br/&gt;
    distmod: rhel62&lt;br/&gt;
    distarch: x86_64&lt;br/&gt;
    target_arch: x86_64&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="629736">SERVER-37941</key>
            <summary>specifying --bind_ip localhost results in error &quot;address already in use&quot; when IPv6 alias exists</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="sara.golemon@mongodb.com">Sara Golemon</assignee>
                                    <reporter username="mariano.escribano@mongodb.com">Mariano Escribano</reporter>
                        <labels>
                    </labels>
                <created>Tue, 6 Nov 2018 16:50:37 +0000</created>
                <updated>Sun, 29 Oct 2023 22:26:51 +0000</updated>
                            <resolved>Wed, 7 Nov 2018 18:18:31 +0000</resolved>
                                                    <fixVersion>4.0.5</fixVersion>
                    <fixVersion>4.1.5</fixVersion>
                                    <component>Networking</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="2057665" author="xgen-internal-githook" created="Fri, 9 Nov 2018 21:04:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Sara Golemon&apos;, &apos;email&apos;: &apos;sara.golemon@mongodb.com&apos;, &apos;username&apos;: &apos;sgolemon&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-37941&quot; title=&quot;specifying --bind_ip localhost results in error &amp;quot;address already in use&amp;quot; when IPv6 alias exists&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-37941&quot;&gt;&lt;del&gt;SERVER-37941&lt;/del&gt;&lt;/a&gt; De-duplicate resolved addresses&lt;/p&gt;

&lt;p&gt;(cherry picked from commit f62cf06d496a357b6fb3f1ca9f3174887fca302a)&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b412039546462ef05b84986262c9eb0c6e390a19&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b412039546462ef05b84986262c9eb0c6e390a19&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2054838" author="xgen-internal-githook" created="Wed, 7 Nov 2018 18:18:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Sara Golemon&apos;, &apos;email&apos;: &apos;sara.golemon@mongodb.com&apos;, &apos;username&apos;: &apos;sgolemon&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-37941&quot; title=&quot;specifying --bind_ip localhost results in error &amp;quot;address already in use&amp;quot; when IPv6 alias exists&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-37941&quot;&gt;&lt;del&gt;SERVER-37941&lt;/del&gt;&lt;/a&gt; De-duplicate resolved addresses&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f62cf06d496a357b6fb3f1ca9f3174887fca302a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f62cf06d496a357b6fb3f1ca9f3174887fca302a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2053379" author="sara.golemon" created="Tue, 6 Nov 2018 17:18:58 +0000"  >&lt;p&gt;Looks like the fix applied for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32631&quot; title=&quot;specifying --bind_ip localhost results in error &amp;quot;address already in use&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32631&quot;&gt;&lt;del&gt;SERVER-32631&lt;/del&gt;&lt;/a&gt; is no longer valid as transport layer asio now uses its own WrappedResolver library instead of SockAddr, so we just need to apply the same de-duping logic we made for SockAddr to the loop in TransportLayerASIO::setup().&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="977642">SERVER-44184</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="481147">SERVER-32631</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15640"><![CDATA[v4.0]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000cSzaeIAC]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 6 Nov 2018 17:18:58 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 13 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 13 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>mariano.escribano@mongodb.com</customfieldvalue>
            <customfieldvalue>sara.golemon@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|huc6nj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hu2f1r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="2598">Security 2018-11-19</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Assuming the following /etc/hosts file:&lt;/p&gt;

&lt;p&gt;&amp;#35; cat /etc/hosts&lt;br/&gt;
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 &lt;br/&gt;
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6&lt;/p&gt;

&lt;p&gt;mongod --bind_ip localhost --dbpath data --logpath mongod.log&lt;br/&gt;
or&lt;br/&gt;
mongod --bind_ip localhost,10.0.2.15 --dbpath data --logpath mongod.log&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hubswv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>