Skip to content

about to fork child process, waiting until server is ready for connections. #9

Open
@asobeeh

Description

i used this playbook to install MongoDB replica set
but I cannot start the service with the below error

May 03 20:12:50 ansible systemd[1]: Starting MongoDB Database Server...
May 03 20:12:50 ansible systemd[1]: Started MongoDB Database Server.
May 03 20:12:50 ansible mongod[6482]: about to fork child process, waiting until server is ready for connections.
May 03 20:12:50 ansible mongod[6482]: forked process: 6489
May 03 20:12:50 ansible mongod[6482]: ERROR: child process failed, exited with 1
May 03 20:12:50 ansible mongod[6482]: To see additional information in this output, start without the "--fork" option.
May 03 20:12:50 ansible systemd[1]: mongod.service: Main process exited, code=exited, status=1/FAILURE
May 03 20:12:50 ansible systemd[1]: mongod.service: Failed with result 'exit-code'.

the vars like the below

---
# defaults file for mongodb

# MongoDB Version
mongodb_install_version_major: 4
mongodb_install_version_minor: 4
mongodb_install_version_patch: "*"

# CentOS
mongodb_enable_yum_repository: true
mongodb_install_package_lock: true

# Ubuntu
mongodb_enable_apt_repository: true

# SELinux Configuration (only on CentOS)
configure_selinux: false

# MongoDB Configuration
mongodb_conf_file: /etc/mongod.conf
mongodb_conf_db_dir: /var/lib/mongdb
mongodb_conf_log_dir: /var/log/mongodb
mongodb_conf_dbEngine: wiredTiger
mongodb_conf_auth: false
mongodb_conf_bindIp: "0.0.0.0"
mongodb_conf_journal: true
mongodb_conf_maxConns: 1000
mongodb_conf_port: 27017
mongodb_conf_oplogSize: 1024
mongodb_conf_cloudmonitoring: "off"

# Systemd Units
mongodb_daemon_unitfile: /etc/systemd/system/mongod.service

# Replicset configuration
mongodb_replication_enabled: true
mongodb_replication_key_file: /etc/repl.key
mongodb_replication_set_name: rs01

# PyMongo Configuration
mongodb_pymongo_pip_version: 3.7.1

# Account configuration
mongodb_root_account: "root"
mongodb_root_password: "p@ssw0rd"

mongodb_admin_account: "dbadmin"
mongodb_admin_password: "p@ssw0rd"

mongodb_backup_account: "backupadmin"
mongodb_backup_password: "p@ssw0rd"

i want to use this playbook to install mognodb replica set without auth with minimal config
can you please help me with it

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions