MongoDB
Service overview
| Software owner | MongoDB, Inc. |
|---|---|
| Version | 3.2.4 |
| Management | wfmanager (start | stop | restart | status) mongodb_db |
| Log files | ${install_dir}/supervisord/log/mongodb_db.err.log ${install_dir}/supervisord/log/mongodb_db.out.log |
| Installation directories | binaries: ${install_dir}/mongodb_db/bin/ data: ${install_dir}/mongodb_db/data/ |
| Configuration files | ${install_dir}/mongodb_db/etc/mongodb.conf |
| Default Ports | tcp 27016 |
Troubleshooting
Check if TCP port 27106 is available. A port may be custom.
netstat command output
$ netstat -lntp | grep mongod tcp 0 0 0.0.0.0:27106 0.0.0.0:* LISTEN 5655/mongodss command output
$ ss -ltn | egrep '27016' LISTEN 0 128 *:27016 *:*lsof command output
$ lsof -P -n -i :27016 | grep LISTEN mongod 5655 wfuser 6u IPv4 39040 0t0 TCP *:27016 (LISTEN)Check the default main log files:
${install_dir}/supervisord/log/mongodb_db.out.log${install_dir}/supervisord/log/mongodb_db.err.log${install_dir}/mongodb_db/log/mongodb.log
$ tail -f ${install_dir}/supervisord/log/mongodb_db.err.log ${install_dir}/supervisord/log/mongodb_db.out.logThe Wfmanager util can be used to check mongodb out log.
wfmanager tail mongodb_dbEnable debug information.
Add the appropriate log level to
${install_dir}/mongodb_db/etc/mongodb.conf(default is 0) using the verbosity option and restart mongodb_db service:${install_dir}/mongodb_db/etc/mongodb.confsystemLog: destination: file path: /opt/workfusion/mongodb_db/log/mongodb.log logAppend: true verbosity: 4The verbosity level can range from
0to5:0is the MongoDB’s default log verbosity level to include informational messages.1to5increases the verbosity level to include debug messages.
wfmanager restart mongodb_db