Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42229

Unable to start service when binding private ip address

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Works as Designed
    • Affects Version/s: 3.6.12
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Hi Team,

      I am trying to enable remote connection to Mongodb server from internal network ip address. I was able to reach server when binding with 0.0.0.0, but unable to start when adding private ip address.

      Config file - 
      net:
      port: 27017
      bindIp:10.10.x.x, 10.10.x.x

      Logs -

      2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] allocator: tcmalloc
      2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] modules: none
      2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] build environment:
      2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] distmod: ubuntu1604
      2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] distarch: x86_64
      2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] target_arch: x86_64
      2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] options: { config: "/etc/mongod.conf", net:

      { bindIp: "10.10.102.70,10.10.100.123", port: 27017 }

      , operationProfiling: { slowOpThresholdMs: 10000 }, processManagement: { timeZoneInfo: "/usr/share/zoneinfo" }, storage: { dbPath: "/data/mongodb", journal:

      { enabled: true }

      }, systemLog: { destination: "file", logAppend: true, path: "/var/log/mongodb/mongod.log", quiet: true } }
      2019-07-14T16:48:16.750+0400 E STORAGE [initandlisten] Failed to set up listener: SocketException: Cannot assign requested address
      2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] now exiting
      2019-07-14T16:48:16.750+0400 I CONTROL [initandlisten] shutting down with code:48

       

       

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: