-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
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
- duplicates
-
MONGOSH-743 Shell does not parse pre-4.4 startup warnings format
- Closed