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

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • 3.6.2
    • 3.6.3, 3.7.2
    • Networking
    • None
    • 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/

    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

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

            Dates

              Created:
              Updated:
              Resolved: