Mongodb socket: permission denied in Golang_workspace

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hi,

      We are facing an permission denied error with mongodb while connecting the db from Golang_workspace.

      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,  any Go lang package compatability is casuing this issue.

      Please find the error below:

      root@ip:#gopherjs run main.go
      gopherjs: Source maps disabled. Install source-map-support module for nice stack traces. See https://github.com/gopherjs/gopherjs#gopherjs-run-gopherj
      s-test. |
      Cancel !!! |
      This is result 51
      DB connection success !!!
      warning: system calls not available, see https://github.com/gopherjs/gopherjs/blob/master/doc/syscalls.md
      2019/06/06 14:26:01 server selection error: server selection timeout
      current topology: Type: Unknown
      Servers:
      Addr: ip:27017, Type: Unknown, State: Connected, Average RTT: 0, Last error: connection() : dial tcp ip:27017: socket: permission denied

            Assignee:
            Run Tian Yu (Inactive)
            Reporter:
            anwar h
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: