Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-748

Unexpected log line format errors when connecting to local MongoDB instance

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • 0.13.1
    • Affects Version/s: None
    • Component/s: Embedded Shell
    • None
    • Not Needed

      Problem Description

      When I use the new shell to connect to my local testing instance of MongoDB on my laptop, it displays some error messages about an unexpected log line format.

      Steps to Reproduce

      Run mongod --dbpath <some-path> --port <some-port> and then connect to it by running mongosh --port <some-port>.

      Expected Results

      The output from the old shell is as follows:

      The server generated these startup warnings when booting:
      2021-05-04T11:08:21.308-0400 I  CONTROL  [initandlisten]
      2021-05-04T11:08:21.308-0400 I  CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
      2021-05-04T11:08:21.308-0400 I  CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
      2021-05-04T11:08:21.309-0400 I  CONTROL  [initandlisten]
      2021-05-04T11:08:21.309-0400 I  CONTROL  [initandlisten] ** WARNING: This server is bound to localhost.
      2021-05-04T11:08:21.309-0400 I  CONTROL  [initandlisten] **          Remote systems will be unable to connect to this server.
      2021-05-04T11:08:21.309-0400 I  CONTROL  [initandlisten] **          Start the server with --bind_ip <address> to specify which IP
      2021-05-04T11:08:21.309-0400 I  CONTROL  [initandlisten] **          addresses it should serve responses from, or with --bind_ip_all to
      2021-05-04T11:08:21.310-0400 I  CONTROL  [initandlisten] **          bind to all interfaces. If this behavior is desired, start the
      2021-05-04T11:08:21.310-0400 I  CONTROL  [initandlisten] **          server with --bind_ip 127.0.0.1 to disable this warning.
      2021-05-04T11:08:21.310-0400 I  CONTROL  [initandlisten]
      

      Actual Results

         The server generated these startup warnings when booting:
         Unexpected log line format: 2021-05-04T11:08:21.308-0400 I  CONTROL  [initandlisten]
         Unexpected log line format: 2021-05-04T11:08:21.308-0400 I  CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
         Unexpected log line format: 2021-05-04T11:08:21.308-0400 I  CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
         Unexpected log line format: 2021-05-04T11:08:21.309-0400 I  CONTROL  [initandlisten]
         Unexpected log line format: 2021-05-04T11:08:21.309-0400 I  CONTROL  [initandlisten] ** WARNING: This server is bound to localhost.
         Unexpected log line format: 2021-05-04T11:08:21.309-0400 I  CONTROL  [initandlisten] **          Remote systems will be unable to connect to this server.
         Unexpected log line format: 2021-05-04T11:08:21.309-0400 I  CONTROL  [initandlisten] **          Start the server with --bind_ip <address> to specify which IP
         Unexpected log line format: 2021-05-04T11:08:21.309-0400 I  CONTROL  [initandlisten] **          addresses it should serve responses from, or with --bind_ip_all to
         Unexpected log line format: 2021-05-04T11:08:21.310-0400 I  CONTROL  [initandlisten] **          bind to all interfaces. If this behavior is desired, start the
         Unexpected log line format: 2021-05-04T11:08:21.310-0400 I  CONTROL  [initandlisten] **          server with --bind_ip 127.0.0.1 to disable this warning.
         Unexpected log line format: 2021-05-04T11:08:21.310-0400 I  CONTROL  [initandlisten]
      

      Additional Notes

            Assignee:
            Unassigned Unassigned
            Reporter:
            david.golub@mongodb.com David Golub
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: