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

Local connection fails when there is no internet connection

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 1.6.4, 1.7.0
    • Affects Version/s: 1.6.0
    • Component/s: Shell
    • None
    • Environment:
      Ubuntu 10.04 x86_64
    • Linux

      I often do some work while on the train home, and I have noticed that 1.6.0 won't let me connect from the command line when I have no network connection.

      When online:

      matt@matt-laptop:~$ ./mongodb-linux-x86_64-1.4.4/bin/mongo webgenius
      MongoDB shell version: 1.4.4
      url: webgenius
      connecting to: webgenius

      matt@matt-laptop:~$ ./mongodb-linux-x86_64-1.6.0/bin/mongo webgenius
      MongoDB shell version: 1.6.0
      connecting to: webgenius

      When offline:

      matt@matt-laptop:~$ ./mongodb-linux-x86_64-1.4.4/bin/mongo webgenius
      MongoDB shell version: 1.4.4
      url: webgenius
      connecting to: webgenius

      matt@matt-laptop:~$ ./mongodb-linux-x86_64-1.6.0/bin/mongo webgenius
      Fri Aug 6 19:07:58 getaddrinfo("0.0.0.0") failed: Name or service not known
      MongoDB shell version: 1.6.0
      connecting to: webgenius
      Fri Aug 6 19:07:58 getaddrinfo("127.0.0.1") failed: Name or service not known
      Fri Aug 6 19:07:58 Error (anon):1137
      exception: connect failed

      Cheers,

      Matt Parlane

            Assignee:
            mathias@mongodb.com Mathias Stearn
            Reporter:
            mattparlane Matt Parlane
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: