[SERVER-67793] `log_progress_msg` in init.d does not print message Created: 05/Jul/22  Updated: 29/Oct/23  Resolved: 28/Sep/22

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 5.0.9
Fix Version/s: 4.4.18, 5.0.14, 6.0.3, 6.2.0-rc0

Type: Bug Priority: Minor - P4
Reporter: XD Yang Assignee: Ryan Egesdahl (Inactive)
Resolution: Fixed Votes: 0
Labels: Bug
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:
  • Windows 10
  • WSL2
  • Ubuntu 20.04.4 LTS
  • `mongod --version`:
    ```
    db version v5.0.9
    Build Info: {
    "version": "5.0.9",
    "gitVersion": "6f7dae919422dcd7f4892c10ff20cdc721ad00e6",
    "openSSLVersion": "OpenSSL 1.1.1f 31 Mar 2020",
    "modules": [],
    "allocator": "tcmalloc",
    "environment": { "distmod": "ubuntu2004", "distarch": "x86_64", "target_arch": "x86_64" }

    }
    ```


Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0, v5.0, v4.4
Steps To Reproduce:
  • install WSL in windows 10
  • install Ubuntu 20.04.4 LTS in WSL
  • install mongodb from instructions in https://docs.microsoft.com/en-us/windows/wsl/tutorials/wsl-database
  • type `sudo service mongodb status`
    • the output is
      • ```
      •  * Checking status of database mongod     [fail]
      • ```
    • but expected
      • ```
      •  * Checking status of database mongod
      •  * apparently not running                         [fail]
      • ```
Participants:

 Description   

log_progress_msg does not print any message in Ubuntu-20.04.4 LTS in WSL. In file /lib/lsb/init-functions.d/50-ubuntu-logging (Ubuntu 20.04.4 LTS in WSL), the function log_progress_msg () { : }}} does nothing. To show the message, {{log_success_msg and log_failure_msg could be good alternatives.



 Comments   
Comment by Githook User [ 03/Oct/22 ]

Author:

{'name': 'xudyang1', 'email': '61672396+xudyang1@users.noreply.github.com', 'username': 'xudyang1'}

Message: SERVER-67793 Change log_progress_msg to show output in Ubuntu

`log_progress_msg` does not print any message in Ubuntu-20.04.4 LTS in WSL. In file `/lib/lsb/init-functions.d/50-ubuntu-logging`, the function `log_progress_msg () { : }` does nothing. To show the output, `log_success_msg` and `log_failure_msg` could be good alternatives.

Closes https://github.com/mongodb/mongo/pull/1474

Signed-off-by: Ryan Egesdahl <ryan.egesdahl@mongodb.com>
(cherry picked from commit cad54eb5ebdff24ecec53b56788cd151d8d64272)
(cherry picked from commit 7cef34d8a1488b37fcf4cd80eb79ae2bf3f9eac4)
(cherry picked from commit 03fa8f1500fb3ea72a66f2bed4333210b8947fac)
Branch: v4.4
https://github.com/mongodb/mongo/commit/5e95574d1e47973620e45a3906000df9864b1f74

Comment by Githook User [ 03/Oct/22 ]

Author:

{'name': 'xudyang1', 'email': '61672396+xudyang1@users.noreply.github.com', 'username': 'xudyang1'}

Message: SERVER-67793 Change log_progress_msg to show output in Ubuntu

`log_progress_msg` does not print any message in Ubuntu-20.04.4 LTS in WSL. In file `/lib/lsb/init-functions.d/50-ubuntu-logging`, the function `log_progress_msg () { : }` does nothing. To show the output, `log_success_msg` and `log_failure_msg` could be good alternatives.

Closes https://github.com/mongodb/mongo/pull/1474

Signed-off-by: Ryan Egesdahl <ryan.egesdahl@mongodb.com>
(cherry picked from commit cad54eb5ebdff24ecec53b56788cd151d8d64272)
(cherry picked from commit 7cef34d8a1488b37fcf4cd80eb79ae2bf3f9eac4)
Branch: v5.0
https://github.com/mongodb/mongo/commit/03fa8f1500fb3ea72a66f2bed4333210b8947fac

Comment by Githook User [ 03/Oct/22 ]

Author:

{'name': 'xudyang1', 'email': '61672396+xudyang1@users.noreply.github.com', 'username': 'xudyang1'}

Message: SERVER-67793 Change log_progress_msg to show output in Ubuntu

`log_progress_msg` does not print any message in Ubuntu-20.04.4 LTS in WSL. In file `/lib/lsb/init-functions.d/50-ubuntu-logging`, the function `log_progress_msg () { : }` does nothing. To show the output, `log_success_msg` and `log_failure_msg` could be good alternatives.

Closes https://github.com/mongodb/mongo/pull/1474

Signed-off-by: Ryan Egesdahl <ryan.egesdahl@mongodb.com>
(cherry picked from commit cad54eb5ebdff24ecec53b56788cd151d8d64272)
Branch: v6.0
https://github.com/mongodb/mongo/commit/7cef34d8a1488b37fcf4cd80eb79ae2bf3f9eac4

Comment by Githook User [ 23/Sep/22 ]

Author:

{'name': 'xudyang1', 'email': '61672396+xudyang1@users.noreply.github.com', 'username': 'xudyang1'}

Message: SERVER-67793 Change log_progress_msg to show output in Ubuntu

`log_progress_msg` does not print any message in Ubuntu-20.04.4 LTS in WSL. In file `/lib/lsb/init-functions.d/50-ubuntu-logging`, the function `log_progress_msg () { : }` does nothing. To show the output, `log_success_msg` and `log_failure_msg` could be good alternatives.

Closes https://github.com/mongodb/mongo/pull/1474

Signed-off-by: Ryan Egesdahl <ryan.egesdahl@mongodb.com>
Branch: master
https://github.com/mongodb/mongo/commit/cad54eb5ebdff24ecec53b56788cd151d8d64272

Comment by Ryan Egesdahl (Inactive) [ 22/Sep/22 ]

PR URL: https://github.com/mongodb/mongo/pull/1474

Generated at Thu Feb 08 06:09:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.