<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:35:43 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>[GODRIVER-1115] Mongodb socket: permission denied in Golang_workspace                                                                                                                          </title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1115</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;We are facing an permission denied error with mongodb while connecting the db from&#160;Golang_workspace.&lt;/p&gt;

&lt;p&gt;But using the same mongo db string, we can able to access other application without any issue. Only from Golang_workspace, we are getting this error. Please let us know,&#160; any Go lang package compatability is casuing this issue.&lt;/p&gt;

&lt;p&gt;Please find the error below:&lt;/p&gt;

&lt;p&gt;root@ip:#gopherjs run main.go &lt;br/&gt;
gopherjs: Source maps disabled. Install source-map-support module for nice stack traces. See &lt;a href=&quot;https://github.com/gopherjs/gopherjs#gopherjs-run-gopherj&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/gopherjs/gopherjs#gopherjs-run-gopherj&lt;/a&gt;&lt;br/&gt;
s-test. |&lt;br/&gt;
Cancel !!! |&lt;br/&gt;
This is result 51 &lt;br/&gt;
DB connection success !!! &lt;br/&gt;
warning: system calls not available, see &lt;a href=&quot;https://github.com/gopherjs/gopherjs/blob/master/doc/syscalls.md&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/gopherjs/gopherjs/blob/master/doc/syscalls.md&lt;/a&gt; &lt;br/&gt;
2019/06/06 14:26:01 server selection error: server selection timeout &lt;br/&gt;
current topology: Type: Unknown &lt;br/&gt;
Servers: &lt;br/&gt;
Addr: ip:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : dial tcp ip:27017: socket: permission denied&lt;/p&gt;</description>
                <environment></environment>
        <key id="791471">GODRIVER-1115</key>
            <summary>Mongodb socket: permission denied in Golang_workspace                                                                                                                          </summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="13203">Gone away</resolution>
                                        <assignee username="connie.yu@mongodb.com">Run Tian Yu</assignee>
                                    <reporter username="anwar@spikecloud.com">anwar h</reporter>
                        <labels>
                    </labels>
                <created>Thu, 6 Jun 2019 14:45:55 +0000</created>
                <updated>Fri, 27 Oct 2023 20:01:24 +0000</updated>
                            <resolved>Mon, 1 Jul 2019 20:04:09 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2281314" author="connie.yu" created="Wed, 12 Jun 2019 15:43:37 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=anwar%40spikecloud.com&quot; class=&quot;user-hover&quot; rel=&quot;anwar@spikecloud.com&quot;&gt;anwar@spikecloud.com&lt;/a&gt;, are you able to make a&#160; connection to your server using net.Dial instead of the Go driver? Something similar to&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;   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;conn, err := net.Dial(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;tcp&quot;&lt;/span&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;, &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;localhost:27017&quot;&lt;/span&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;)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;Additionally, could you provide us with your file so we can reproduce the error ourselves?&lt;/p&gt;</comment>
                            <comment id="2280726" author="anwar@spikecloud.com" created="Wed, 12 Jun 2019 05:10:55 +0000"  >&lt;p&gt;Hi Connie,&lt;/p&gt;

&lt;p&gt;Please let us know,&lt;/p&gt;

&lt;p&gt;1) Whether you want to know the installation steps or error which we are getting while executing the goperjs run command.&lt;/p&gt;

&lt;p&gt;root@ip:#gopherjs run main.go&lt;br/&gt;
gophers: Source maps disabled. Install source-map-support module for nice stack traces. See &lt;a href=&quot;https://github.com/gopherjs/gopherjs#gopherjs-run-gopherjs-test&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/gopherjs/gopherjs#gopherjs-run-gopherjs-test&lt;/a&gt;.&lt;br/&gt;
Cancel !!!&lt;br/&gt;
This is result 51&lt;br/&gt;
DB connection success !!!&lt;br/&gt;
2019/06/11 06:43:05 server selection error: server selection timeout&lt;br/&gt;
current topology: Type: Unknown&lt;br/&gt;
Servers:&lt;br/&gt;
Addr: ip:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : dial tcp ip:27017: setsockopt: bad address&lt;/p&gt;

&lt;p&gt;2) Regarding the server connection outside of the Go driver, whether we need to open the Go driver port to the mongodb servers or you are telling about the mongodb port need to be opened to this godriver server.&lt;/p&gt;

&lt;p&gt;If mongodb means already we have opened mongodb port to this&#160; Go driver server&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="2280397" author="connie.yu" created="Tue, 11 Jun 2019 21:39:02 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=anwar%40spikecloud.com&quot; class=&quot;user-hover&quot; rel=&quot;anwar@spikecloud.com&quot;&gt;anwar@spikecloud.com&lt;/a&gt;, to further assist you with this issue could you:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;provide a reproduction of this error&lt;/li&gt;
	&lt;li&gt;ensure that you are able to make a server connection outside of the Go driver&lt;/li&gt;
&lt;/ol&gt;
</comment>
                            <comment id="2278964" author="anwar@spikecloud.com" created="Tue, 11 Jun 2019 06:48:59 +0000"  >&lt;p&gt;Hi Connie,&lt;/p&gt;

&lt;p&gt;On the server, we are using a node version: 10 only.&lt;/p&gt;

&lt;p&gt;root@ip:# node -v&lt;br/&gt;
v10.16.0&lt;/p&gt;

&lt;p&gt;Now we have installed system calls module, Post installing the system calls module, when we run the main.go application. we are getting the setsockopt: bad address error.&lt;/p&gt;

&lt;p&gt;root@ip:#gopherjs run main.go&lt;br/&gt;
gophers: Source maps disabled. Install source-map-support module for nice stack traces. See &lt;a href=&quot;https://github.com/gopherjs/gopherjs#gopherjs-run-gopherjs-test&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/gopherjs/gopherjs#gopherjs-run-gopherjs-test&lt;/a&gt;.&lt;br/&gt;
Cancel !!!&lt;br/&gt;
This is result 51&lt;br/&gt;
DB connection success !!!&lt;br/&gt;
2019/06/11 06:43:05 server selection error: server selection timeout&lt;br/&gt;
current topology: Type: Unknown&lt;br/&gt;
Servers:&lt;br/&gt;
Addr: ip:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : dial tcp ip:27017: setsockopt: bad address&lt;/p&gt;

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

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="2278140" author="connie.yu" created="Mon, 10 Jun 2019 18:04:17 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=anwar%40spikecloud.com&quot; class=&quot;user-hover&quot; rel=&quot;anwar@spikecloud.com&quot;&gt;anwar@spikecloud.com&lt;/a&gt;, the socket permission denied error is a result of syscalls not being available. Please ensure that you are running Node.js (v10.0.0 or newer) and have installed the system calls module, as mentioned&#160;[here|&lt;a href=&quot;https://github.com/gopherjs/gopherjs/blob/master/doc/syscalls.md&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/gopherjs/gopherjs/blob/master/doc/syscalls.md&lt;/a&gt;]. As a side note, we do not officially support GopherJS.&lt;/p&gt;</comment>
                            <comment id="2277234" author="anwar@spikecloud.com" created="Mon, 10 Jun 2019 04:19:34 +0000"  >&lt;p&gt;Hi Connie, Kindly provide a solution on permission denied error with MongoDB while connecting the DB from Golang_workspace.&lt;/p&gt;</comment>
                            <comment id="2275511" author="anwar@spikecloud.com" created="Fri, 7 Jun 2019 09:08:28 +0000"  >&lt;p&gt;Hi Connie, currently we are running this application in ubuntu 16 infra, whether we need to compile the syscalls for this application&lt;/p&gt;</comment>
                            <comment id="2275109" author="connie.yu" created="Thu, 6 Jun 2019 21:27:57 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=anwar%40spikecloud.com&quot; class=&quot;user-hover&quot; rel=&quot;anwar@spikecloud.com&quot;&gt;anwar@spikecloud.com&lt;/a&gt;, can you give us some more information about the environment this is running in? As per&#160;&lt;a href=&quot;https://github.com/gopherjs/gopherjs/blob/master/doc/syscalls.md&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/gopherjs/gopherjs/blob/master/doc/syscalls.md&lt;/a&gt;, syscalls are not available when running in browsers.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|husltj:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>