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

net.bindIpAll with net.ipv6 fails with "listen: Address already in use, terminating"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 3.6.2
    • Fix Version/s: 3.6.3, 3.7.2
    • Component/s: Networking
    • Labels:
      None
    • Environment:
      Debian Jessie
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.6
    • Steps To Reproduce:
      Hide

      1. Create a temporary empty data directory for the database: mkdir /tmp/delete-me-test-mongodb-bindall
      2. Try to start MongoDB with the --ipv6 and bind_ip_all options: mongod --port 35723 --ipv6 --bind_ip_all --dbpath /tmp/delete-me-test-mongodb-bindall/

      Show
      1. Create a temporary empty data directory for the database: mkdir /tmp/delete-me-test-mongodb-bindall 2. Try to start MongoDB with the --ipv6 and bind_ip_all  options: mongod --port 35723 --ipv6 --bind_ip_all --dbpath /tmp/delete-me-test-mongodb-bindall/

      Description

      Enabling both net.bindIpAll (--bind_ip_all) and net.ipv6 (--ipv6) results in the server failing to start with the following error message:

      exception in initAndListen std::exception: listen: Address already in use, terminating
      

      The same thing occurs if specifying --bind_ip 0.0.0.0,:: with the --ipv6 option.

      A workaround for this issue is to specify --bind_ip with all IPv4 & IPv6 addresses of the server.

      The log output is attached as mongodb-ipv6-bindall-log.txt.

        Attachments

          Activity

            People

            Assignee:
            sara.golemon Sara Golemon
            Reporter:
            olavmrk Olav Morken
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: