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"

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.6.3, 3.7.2
    • Affects Version/s: 3.6.2
    • Component/s: Networking
    • None
    • Environment:
      Debian Jessie
    • Fully Compatible
    • ALL
    • v3.6
    • 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/

      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.

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

              Created:
              Updated:
              Resolved: