Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when deploy Centos boxes #15

Open
rubendob opened this issue Jun 30, 2015 · 1 comment
Open

Issue when deploy Centos boxes #15

rubendob opened this issue Jun 30, 2015 · 1 comment

Comments

@rubendob
Copy link

Hi!

I've deployed 3 vbox with vagrant with centos 6.5 boxes and it fails in the last step!

playbook.yml

  • hosts: local
    user: vagrant
    sudo: true
    pre_tasks:
    roles:
    • common
    • role: mongo
      mongod_datadir_prefix: "/data/"
      mongod_replication: true
      mongod_port: 2701
      mongod_repl_servers: ['primary', 'secondary', 'arbiter' ]
      mongod_repl_master: primary
      mongod_replset_name: rs0

output error

TASK: [mongo | Start the mongodb service for redhat variants] *****************
failed: [secondary] => {"changed": true, "cmd": ["/etc/init.d/mongod-2701", "start"], "delta": "0:00:00.066766", "end": "2015-06-30 15:53:30.072400", "rc": 1, "start": "2015-06-30 15:53:30.005634"}
stdout: Starting mongod: about to fork child process, waiting until server is ready for connections.
forked process: 3739
ERROR: child process failed, exited with error number 1

If tried to debug but no success.

Any ideas?

Thanks!

@rubendob
Copy link
Author

Just more output :S Is like mongo-2701 can't write into /data path:

root@primary vagrant]# ls -ls /data/
mongo-2701/ secret
[root@primary vagrant]# ls -ls /data/mongo-2701/
total 0
[root@primary vagrant]# /etc/init.d/mongod start
Starting mongod: [ OK ]
[root@primary vagrant]# ls -ls /var/lib/mongo/
total 81932
4 drwxr-xr-x 2 mongod mongod 4096 jun 30 16:13 journal
65536 -rw------- 1 mongod mongod 67108864 jun 30 16:13 local.0
16384 -rw------- 1 mongod mongod 16777216 jun 30 16:13 local.ns
4 -rwxr-xr-x 1 mongod mongod 5 jun 30 16:13 mongod.lock
4 drwxr-xr-x 2 mongod mongod 4096 jun 30 16:13 _tmp
[root@primary vagrant]# /etc/init.d/mongod-2701 start
Starting mongod: about to fork child process, waiting until server is ready for connections.
forked process: 3713
ERROR: child process failed, exited with error number 1
[FALLÓ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant