<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:29:34 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-32216] With Mongo 3.6(in docker) we hit this error &quot;Failed to unlink socket file /tmp/mongodb-27017.sock Operation not permitted&quot;</title>
                <link>https://jira.mongodb.org/browse/SERVER-32216</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We run mongo in docker. We were using 3.4 before and everything was good.&lt;/p&gt;

&lt;p&gt;Yesterday we upgraded to 3.6 and redeploy our docker services,  then mongo reported the error  &quot;Failed to unlink socket file /tmp/mongodb-27017.sock Operation not permitted&quot;&lt;/p&gt;

&lt;p&gt;The detailed log,&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:09.637+0000 I CONTROL  [initandlisten] options: { config: &quot;/etc/mongodb.conf&quot;, security: { authorization: &quot;enabled&quot; }, storage: { dbPath: &quot;/data/db2&quot;, mmapv1: { smallFiles: true } } }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:09.657+0000 I -        [initandlisten] Detected data files in /data/db2 created by the &apos;wiredTiger&apos; storage engine, so setting the active storage engine to &apos;wiredTiger&apos;.&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:09.657+0000 I STORAGE  [initandlisten]&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:09.657+0000 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:09.657+0000 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:09.657+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=1383M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:13.422+0000 E STORAGE  [initandlisten] WiredTiger error (-31802) [1512652213:422674][1:0x7fd7c63e7d40], txn-recover: unsupported WiredTiger file version: this build  only supports major/minor versions up to 1/0,  and the file is version 2/0: WT_ERROR: non-specific WiredTiger error&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:13.422+0000 E STORAGE  [initandlisten] WiredTiger error (0) [1512652213:422729][1:0x7fd7c63e7d40], txn-recover: WiredTiger is unable to read the recovery log.&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:13.422+0000 E STORAGE  [initandlisten] WiredTiger error (0) [1512652213:422736][1:0x7fd7c63e7d40], txn-recover: This may be due to the log files being encrypted, being from an older version or due to corruption on disk&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:13.422+0000 E STORAGE  [initandlisten] WiredTiger error (0) [1512652213:422742][1:0x7fd7c63e7d40], txn-recover: You should confirm that you have opened the database with the correct options including all encryption and compression options&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:13.422+0000 E STORAGE  [initandlisten] WiredTiger error (-31802) [1512652213:422757][1:0x7fd7c63e7d40], txn-recover: Recovery failed: WT_ERROR: non-specific WiredTiger error&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:13.425+0000 I -        [initandlisten] Assertion: 28595:-31802: WT_ERROR: non-specific WiredTiger error src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 276&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:13.425+0000 I STORAGE  [initandlisten] exception in initAndListen: 28595 -31802: WT_ERROR: non-specific WiredTiger error, terminating&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:13.425+0000 I NETWORK  [initandlisten] shutdown: going to close listening sockets...&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:13.425+0000 I NETWORK  [initandlisten] removing socket file: /tmp/mongodb-27017.sock&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:13.425+0000 I NETWORK  [initandlisten] shutdown: going to flush diaglog...&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:13.425+0000 I CONTROL  [initandlisten] now exiting&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2017-12-07T13:10:13.425+0000 I CONTROL  [initandlisten] shutting down with code:100&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</description>
                <environment></environment>
        <key id="469720">SERVER-32216</key>
            <summary>With Mongo 3.6(in docker) we hit this error &quot;Failed to unlink socket file /tmp/mongodb-27017.sock Operation not permitted&quot;</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="jonathan.reams@mongodb.com">Jonathan Reams</assignee>
                                    <reporter username="qiulang">lang qiu</reporter>
                        <labels>
                            <label>SWNA</label>
                    </labels>
                <created>Fri, 8 Dec 2017 08:11:12 +0000</created>
                <updated>Mon, 30 Oct 2023 23:10:07 +0000</updated>
                            <resolved>Tue, 19 Dec 2017 16:21:54 +0000</resolved>
                                                    <fixVersion>3.6.1</fixVersion>
                    <fixVersion>3.7.1</fixVersion>
                                    <component>Networking</component>
                                        <votes>0</votes>
                                    <watches>13</watches>
                                                                                                                <comments>
                            <comment id="1755736" author="ramon.fernandez" created="Tue, 19 Dec 2017 16:21:35 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=qiulang&quot; class=&quot;user-hover&quot; rel=&quot;qiulang&quot;&gt;qiulang&lt;/a&gt;, I&apos;m going to resolve this ticket since the fix to remove the unix domain socket on clean shutdown has made it into the codebase &amp;#8211; thanks for reporting this.&lt;/p&gt;

&lt;p&gt;We&apos;re planning on publishing a release with this fix soon. Until then you can use one of the workarounds listed above. For further support discussions please post on the &lt;a href=&quot;http://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user group&lt;/a&gt; or &lt;a href=&quot;http://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;, where your question will reach a larger audience.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;
</comment>
                            <comment id="1753619" author="qiulang" created="Sat, 16 Dec 2017 01:55:02 +0000"  >&lt;p&gt;Hi as I commented on Dec 11,  using &lt;tt&gt;&amp;#45;&amp;#45;nounixsocket&lt;/tt&gt; has the same effect as adding a volume for /tmp, no linking error, only &quot;this server is bound to localhost&quot; so my other docker container can&apos;t connect to it. I will try &lt;tt&gt;--bind_ip=0.0.0.0&lt;/tt&gt; as you suggested.&lt;/p&gt;

&lt;p&gt;So the only problem we have now is why do I see /tmp/mongodb-27017.sock error if I start mongo from a fresh docker container? Is it possible that my dockerfile caused the problem? I need my mongo image has the default data so I used a dockerfile at here suggested.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/33558506/how-to-create-a-mongo-docker-image-with-default-collections-and-data&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://stackoverflow.com/questions/33558506/how-to-create-a-mongo-docker-image-with-default-collections-and-data&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1753107" author="jonathan.reams@10gen.com" created="Fri, 15 Dec 2017 16:06:39 +0000"  >&lt;p&gt;The warning about the server being bound to localhost &lt;a href=&quot;https://docs.mongodb.com/manual/release-notes/3.6-compatibility/index.html#localhost-binding-compatibility-changes&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;was introduced in 3.6&lt;/a&gt; as a security improvement. You can restore the 3.4 behavior by specifying &lt;tt&gt;--bind_ip=0.0.0.0&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;If you&apos;re starting from a fresh docker container each time, then I don&apos;t understand why you&apos;re seeing the error about &lt;tt&gt;/tmp/mongodb-27017.sock&lt;/tt&gt; error, unless there&apos;s a permissions or some other problem with /tmp. I also don&apos;t know why &lt;tt&gt;--nounixsocket&lt;/tt&gt; didn&apos;t resolve your issue since that should prevent unlinking existing sockets in the first place. This is sounding more like a problem with the docker environment.&lt;/p&gt;</comment>
                            <comment id="1752766" author="qiulang" created="Fri, 15 Dec 2017 03:07:51 +0000"  >&lt;p&gt;OK, I find a way to check mongodb-27017.sock, so I added a docker volume for /tmp, i.e. map /tmp to host local folder. &lt;br/&gt;
Then mongo container can start now&lt;br/&gt;
srwx------ 1 mongodb mongodb    0 Dec 15 02:59 mongodb-27017.sock &lt;/p&gt;

&lt;p&gt;But unfortunately, the same error showed again &quot;this server is bound to localhost&quot;. So my other container failed to connect to it.&lt;/p&gt;

&lt;p&gt;yunwei-product-dbdebug_mongo_1 | 2017-12-15T02:59:10.946715113Z 2017-12-15T02:59:10.941+0000 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; ** WARNING: This server is bound to localhost.&lt;br/&gt;
yunwei-product-dbdebug_mongo_1 | 2017-12-15T02:59:10.946718654Z 2017-12-15T02:59:10.941+0000 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; **          Remote systems will be unable to connect to this server. &lt;/p&gt;</comment>
                            <comment id="1752755" author="qiulang" created="Fri, 15 Dec 2017 02:41:18 +0000"  >&lt;p&gt;Hi, when I used mongo 3.4 it was indeed a /tmp/mongodb-27017.sock, mongodb is the owner (check the attached).&lt;/p&gt;

&lt;p&gt;But when I used 3.6, the docker container kept restarting (with the error I reported) so I wasn&apos;t able to check its folder. What else can I do to further debug ?&lt;/p&gt;</comment>
                            <comment id="1750722" author="qiulang" created="Wed, 13 Dec 2017 13:47:06 +0000"  >&lt;p&gt;Hi, I run mongo in docker and I did a clean docker-compose build/up, which means there was nothing in /tmp. Also, the docker runs mongod with root, what other users can it be (I have limited knowledge about running mongo in docker though)? &lt;/p&gt;

&lt;p&gt;I will double check it tomorrow.&lt;/p&gt;</comment>
                            <comment id="1749762" author="jonathan.reams@10gen.com" created="Tue, 12 Dec 2017 16:09:47 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=qiulang&quot; class=&quot;user-hover&quot; rel=&quot;qiulang&quot;&gt;qiulang&lt;/a&gt;, we believe this problem is being caused by an old mongod&apos;s UNIX domain socket being left in &lt;tt&gt;/tmp&lt;/tt&gt; on shutdown, and the socket being owned by a different user than the new mongod. I&apos;ve just pushed a change that will be in 3.6.1 that ensures these socket files get cleaned up during normal shutdown of the server.&lt;/p&gt;

&lt;p&gt;I don&apos;t understand why &lt;tt&gt;--nounixsocket&lt;/tt&gt; doesn&apos;t work around your issue, however, or why downgrading to 3.4 fixes your issue. Could you check whether there is a /tmp/mongodb-27017.sock file on your system and what its permissions are?&lt;/p&gt;</comment>
                            <comment id="1749734" author="xgen-internal-githook" created="Tue, 12 Dec 2017 15:56:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jonathan Reams&apos;, &apos;email&apos;: &apos;jbreams@mongodb.com&apos;, &apos;username&apos;: &apos;jbreams&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32216&quot; title=&quot;With Mongo 3.6(in docker) we hit this error &amp;quot;Failed to unlink socket file /tmp/mongodb-27017.sock Operation not permitted&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32216&quot;&gt;&lt;del&gt;SERVER-32216&lt;/del&gt;&lt;/a&gt; Remove UNIX sockets on clean shutdown&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 9dc34426570cc57cfdb4b6f6ea4f31018662082f)&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0beac42d0151358516b4c4ed8b8c58a4185bec07&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0beac42d0151358516b4c4ed8b8c58a4185bec07&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1749708" author="xgen-internal-githook" created="Tue, 12 Dec 2017 15:39:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jonathan Reams&apos;, &apos;email&apos;: &apos;jbreams@mongodb.com&apos;, &apos;username&apos;: &apos;jbreams&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32216&quot; title=&quot;With Mongo 3.6(in docker) we hit this error &amp;quot;Failed to unlink socket file /tmp/mongodb-27017.sock Operation not permitted&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32216&quot;&gt;&lt;del&gt;SERVER-32216&lt;/del&gt;&lt;/a&gt; Remove UNIX sockets on clean shutdown&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9dc34426570cc57cfdb4b6f6ea4f31018662082f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9dc34426570cc57cfdb4b6f6ea4f31018662082f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1748116" author="qiulang" created="Mon, 11 Dec 2017 07:46:23 +0000"  >&lt;p&gt;I tried both  --transportLayer=legacy and --nounixsocket, unfortunately, them didn&apos;t work for me.&lt;br/&gt;
Although they both did not show &quot;Failed to unlink socket file /tmp/mongodb-27017.sock Operation not permitted&quot; error, they both showed &quot;** WARNING: This server is bound to localhost. ... Remote systems will be unable to connect to this server. &quot; And my nodejs docker can&apos;t  connect to mongo, &quot;Mongoose connected error MongoError: failed to connect to server &lt;span class=&quot;error&quot;&gt;&amp;#91;mongo:27017&amp;#93;&lt;/span&gt; on first connect &lt;span class=&quot;error&quot;&gt;&amp;#91;MongoError: connect ECONNREFUSED 172.18.7.11:27017&amp;#93;&lt;/span&gt;&quot;&lt;/p&gt;

&lt;p&gt;I also tried RUN rm /tmp/mongodb-27017.sock as another jira suggested, it did not work either.&lt;/p&gt;

&lt;p&gt;After I switched back to mongo 3.4, the problem went away! I have tried several times to confirm it.&lt;br/&gt;
One thing I forgot to mention is it works fine on my MacBook (both 3.4 &amp;amp; 3.6), only when I deployed 3.6 to the cloud (&lt;a href=&quot;https://www.aliyun.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.aliyun.com/&lt;/a&gt;) I hit this problem.&lt;/p&gt;

&lt;p&gt;BTW the command I use to start mongo is CMD &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;mongod&amp;quot;, &amp;quot;--config&amp;quot;, &amp;quot;/etc/mongodb.conf&amp;quot;, &amp;quot;--smallfiles&amp;quot;,&amp;quot;--auth&amp;quot;,&amp;quot;--transportLayer=legacy&amp;quot;&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;mongodb.conf only has 1 line&lt;/p&gt;

&lt;p&gt;dbpath = /data/db2&lt;/p&gt;</comment>
                            <comment id="1746820" author="jonathan.reams@10gen.com" created="Fri, 8 Dec 2017 15:12:14 +0000"  >&lt;p&gt;3.6 has a new networking implementation, but they should both have the same behaviour here. Could you try running the mongod with &lt;tt&gt;--transportLayer=legacy&lt;/tt&gt; to see if the problem reproduces? That should switch mongodb back to using the 3.4 networking code. You can also work around this problem by disabling UNIX sockets if you aren&apos;t using them (see &lt;a href=&quot;https://docs.mongodb.com/manual/reference/configuration-options/#net-unixdomainsocket-options&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/configuration-options/#net-unixdomainsocket-options&lt;/a&gt;)&lt;/p&gt;</comment>
                            <comment id="1746690" author="kaloian.manassiev" created="Fri, 8 Dec 2017 13:30:06 +0000"  >&lt;p&gt;This is also making it problematic to use MongoDB 3.6 on a shared Ubuntu system, because different users create these devices with different ownership and it leads to the same error for whoever comes second.&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="2361463">SERVER-77903</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>12.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15141"><![CDATA[v3.6]]></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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 8 Dec 2017 13:11:42 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 8 weeks, 1 day 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_14262" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>End date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 12 Dec 2017 00:00:00 +0000</customfieldvalue>

                        </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>
                            6 years, 8 weeks, 1 day 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>jonathan.reams@mongodb.com</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
            <customfieldvalue>qiulang</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htltyf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htdg9j:</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="2030">Platforms 2017-12-18</customfieldvalue>
    <customfieldvalue id="2050">Platforms 2018-01-01</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_14261" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 8 Dec 2017 00:00:00 +0000</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;1. Using the latest 3.6&lt;br/&gt;
2. redeploy the services&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|htlg2f:</customfieldvalue>

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