<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:55:24 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-40578] Not able to log in into mongodb server -  E QUERY    [js] Error: network error while attempting to run command &apos;isMaster&apos; on host &apos;127.0.0.1:37017&apos;  : connect@src/mongo/shell/mongo.js:328:13 @(connect):1:6 exception: connect failed</title>
                <link>https://jira.mongodb.org/browse/SERVER-40578</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I am facing issue in login into mongodb server, when i check ps -eaf | grep mongo, proces still running but not able to login into mongodb server.&lt;/p&gt;

&lt;p&gt;Below are the error&#160; I am facing&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;MongoDB&#160; version: 4.0.5&lt;/p&gt;

&lt;p&gt;E QUERY &lt;span class=&quot;error&quot;&gt;&amp;#91;js&amp;#93;&lt;/span&gt; Error: network error while attempting to run command &apos;isMaster&apos; on host &apos;127.0.0.1:37017&apos; :&lt;br/&gt;
connect@src/mongo/shell/mongo.js:328:13&lt;br/&gt;
@(connect):1:6&lt;br/&gt;
exception: connect failed&lt;/p&gt;

&lt;p&gt;But when I restart the service it works for some time and again I face log in issue.&lt;/p&gt;

&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;

&lt;p&gt;Madhu&lt;/p&gt;</description>
                <environment></environment>
        <key id="736179">SERVER-40578</key>
            <summary>Not able to log in into mongodb server -  E QUERY    [js] Error: network error while attempting to run command &apos;isMaster&apos; on host &apos;127.0.0.1:37017&apos;  : connect@src/mongo/shell/mongo.js:328:13 @(connect):1:6 exception: connect failed</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="9">Done</resolution>
                                        <assignee username="daniel.hatcher@mongodb.com">Danny Hatcher</assignee>
                                    <reporter username="madhungowda6590@gmail.com">Madhu N</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Apr 2019 09:28:54 +0000</created>
                <updated>Mon, 22 Apr 2019 15:40:08 +0000</updated>
                            <resolved>Mon, 22 Apr 2019 15:40:08 +0000</resolved>
                                                                    <component>Logging</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2220595" author="daniel.hatcher" created="Mon, 22 Apr 2019 15:40:01 +0000"  >&lt;p&gt;Hello Madhu,&lt;/p&gt;

&lt;p&gt;The SERVER project is for bugs and feature suggestions for the MongoDB server. As this ticket does not appear to a bug, we do not keep it open indefinitely. If you need further assistance troubleshooting, I encourage you to ask our community by posting on the &lt;a href=&quot;https://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 on &lt;a href=&quot;https://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;.&lt;/p&gt;

&lt;p&gt;Danny&lt;/p&gt;</comment>
                            <comment id="2214830" author="madhungowda6590@gmail.com" created="Tue, 16 Apr 2019 12:22:37 +0000"  >&lt;p&gt;Hi Danny,&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Thanks for the response again.&lt;/p&gt;

&lt;p&gt;Yes, that is why I am wondering&#160; I see no shutdown logs exists on log file.&lt;/p&gt;

&lt;p&gt;Yes both the mongod process running on same host.&lt;/p&gt;

&lt;p&gt;one is running as a root user - which is running fine&#160;&lt;/p&gt;

&lt;p&gt;second one running as a mongodb user -&#160; which has issue&lt;/p&gt;

&lt;p&gt;FYI&#160;&lt;/p&gt;

&lt;p&gt;I made below changes -&#160; I think everything looks fine.&lt;/p&gt;

&lt;p&gt;vi /etc/security/limits.d/99-mongodb.conf&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;- nproc 64000&lt;/li&gt;
	&lt;li&gt;- nofile 64000&lt;/li&gt;
	&lt;li&gt;- fsize unlimited&lt;/li&gt;
	&lt;li&gt;- cpu unlimited&lt;/li&gt;
	&lt;li&gt;- memlock unlimited&lt;/li&gt;
	&lt;li&gt;- as unlimited&lt;/li&gt;
	&lt;li&gt;- rss unlimited&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I will keep updated here in some time If I face any issues on this.&lt;/p&gt;

&lt;p&gt;If no more issue I will update the same to close the ticket.&lt;/p&gt;

&lt;p&gt;If you are okay, can this ticket be opened until I update on the same&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Thanks &amp;amp; Best Regards&lt;/p&gt;

&lt;p&gt;Madhu&lt;/p&gt;</comment>
                            <comment id="2214306" author="daniel.hatcher" created="Mon, 15 Apr 2019 21:21:52 +0000"  >&lt;p&gt;There are no shutdown messages in the log which indicate that the process was hard-killed by either a user or the operating system. Are both of your &lt;tt&gt;mongod&lt;/tt&gt; processes on the same host? If so, it is possible that you are experiencing out-of-memory issues due to both processes attempting to use the same memory resource. We *&lt;b&gt;strongly recommend&lt;/b&gt;*  that a Production &lt;tt&gt;mongod&lt;/tt&gt; process is the only intensive process on the server.&lt;/p&gt;

&lt;p&gt;If you split your &lt;tt&gt;mongod&lt;/tt&gt; processes to different servers do you still see the issue?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Danny&lt;/p&gt;</comment>
                            <comment id="2209826" author="madhungowda6590@gmail.com" created="Thu, 11 Apr 2019 16:21:01 +0000"  >&lt;p&gt;&#160;Hi Danny,&lt;/p&gt;

&lt;p&gt;Please find the requested complete log attached.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/attachment/213804/213804_mongod.log-bak&quot; title=&quot;mongod.log-bak attached to SERVER-40578&quot;&gt;mongod.log-bak&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.mongodb.org/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;And in the same server I am running another mongod service with same configuration port 27017 which has no issue running. But only issue I am facing in second service which is port 37017.&#160;&lt;/p&gt;

&lt;p&gt;( two services are different for different application)&lt;/p&gt;

&lt;p&gt;Configuration is same&#160; as given below.&lt;/p&gt;

&lt;p&gt;---------------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;mongodb@host&amp;#93;&lt;/span&gt;$ cat /etc/mongodIMS.conf&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; // port 37017&#160;&lt;br/&gt;
systemLog:&lt;br/&gt;
 destination: file&lt;br/&gt;
 path: &quot;/mongodbIMS/log/mongod.log&quot;&lt;br/&gt;
 logAppend: true&lt;br/&gt;
 logRotate: reopen&lt;br/&gt;
 timeStampFormat: ctime&lt;br/&gt;
net:&lt;br/&gt;
 bindIp: 0.0.0.0&lt;br/&gt;
 port: 37017&lt;br/&gt;
storage:&lt;br/&gt;
 dbPath: &quot;/mongodbIMS/data/&quot;&lt;br/&gt;
processManagement:&lt;br/&gt;
 fork: true&lt;br/&gt;
 pidFilePath: /mongodbIMS/data/mongod.pid&lt;br/&gt;
 timeZoneInfo: /usr/share/zoneinfo&lt;br/&gt;
security:&lt;br/&gt;
 authorization: enabled&lt;/p&gt;

&lt;p&gt;----------------------------------------------------------------------------&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;mongodb@host&amp;#93;&lt;/span&gt;$ cat /etc/mongod.conf&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; //port 27017&lt;br/&gt;
systemLog:&lt;br/&gt;
 destination: file&lt;br/&gt;
 path: &quot;/mongodb/log/mongod.log&quot;&lt;br/&gt;
 logAppend: true&lt;br/&gt;
 logRotate: reopen&lt;br/&gt;
 timeStampFormat: ctime&lt;br/&gt;
net:&lt;br/&gt;
 bindIp: 0.0.0.0&lt;br/&gt;
 port: 27017&lt;br/&gt;
storage:&lt;br/&gt;
 dbPath: &quot;/mongodb/data/&quot;&lt;br/&gt;
processManagement:&lt;br/&gt;
 fork: true&lt;br/&gt;
 pidFilePath: /mongodb/data/mongod.pid&lt;br/&gt;
 timeZoneInfo: /usr/share/zoneinfo&lt;br/&gt;
security:&lt;br/&gt;
 authorization: enabled&lt;/p&gt;</comment>
                            <comment id="2209786" author="daniel.hatcher" created="Thu, 11 Apr 2019 15:57:38 +0000"  >&lt;p&gt;Hello Madhu,&lt;/p&gt;

&lt;p&gt;Please attach your full &lt;tt&gt;mongod&lt;/tt&gt; log file covering the time frame from a restart until you start encountering issues.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Danny&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="213804" name="mongod.log-bak" size="772107" author="madhungowda6590@gmail.com" created="Thu, 11 Apr 2019 16:20:46 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 11 Apr 2019 15:57:38 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 42 weeks, 2 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>daniel.hatcher@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 42 weeks, 2 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>daniel.hatcher@mongodb.com</customfieldvalue>
            <customfieldvalue>madhungowda6590@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|huu4bb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hujlzr:</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_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|hutqkn:</customfieldvalue>

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