Hi, Made some progress. But still the script is giving issue in the rabbitmq. Posting the log msg for the reference. I looked into the issue and come to know that .erlang.cookie is the file that may cause the issue. So I tried to change the cookie value in file: /var/lib/rabbitmq/.erlang.cookie
Helpful links: 1. http://www.rabbitmq.com/clustering.html 2. https://stackoverflow.com/questions/9673172/rabbitmq-erlang-how-to-make-sure-the-erlang-cookies-are-the-same 3. https://groups.google.com/forum/#!topic/rabbitmq-users/a6sqrAUX_Fg but still it gives the following error log message. ***** fatal: [149.165.170.53]: FAILED! => { "changed": false, "cmd": "/usr/sbin/rabbitmqctl -q -n rabbit list_vhosts name tracing", "failed": true, "invocation": { "module_args": { "name": "master", "node": "rabbit", "state": "present", "tracing": false }, "module_name": "rabbitmq_vhost" }, "msg": "Error:********@js-170-53'\n- home dir: /var/lib/rabbitmq\n- cookie hash: JrqxAaCp6S1u6jBGyTapBQ==", "rc": 69, "stderr": "Error: unable to connect to node 'rabbit@js-170-53': nodedown\n\nDIAGNOSTICS\n===========\n\nattempted to contact: ['rabbit@js-170-53']\n\nrabbit@js-170-53:\n * connected to epmd (port 4369) on js-170-53\n * epmd reports node 'rabbit' running on port 25672\n * TCP connection succeeded but Erlang distribution failed\n * suggestion: hostname mismatch?\n * suggestion: is the cookie set correctly?\n * suggestion: is the Erlang distribution using TLS?\n\ncurrent node details:\n- node name: 'rabbitmq-cli-62@js-170-53'\n- home dir: /var/lib/rabbitmq\n- cookie hash: JrqxAaCp6S1u6jBGyTapBQ==\n\n", "stdout": "", "stdout_lines": [] } to retry, use: --limit @/home/prashant/Desktop/airavata/dev-tools/ansible/airavata.retry ***** Please let me know, if you need any other information to debug the issue. Any help will be appreciated. Thanks, Prashant ________________________________________ From: Modak, Prashant Kumar Sent: Monday, October 22, 2018 7:59 AM To: [email protected] Subject: issue facing with ansible playbook, Unable to start service rabbitmq-server: Job for rabbitmq-server.service failed because the control process exited with error code Hi, facing issue while trying to run the command: ansible-playbook -i inventories/standalone airavata.yml TASK [rabbitmq : Start Rabbitmq server] **************************************** task path: /home/prashant/Desktop/airavata/dev-tools/ansible/roles/rabbitmq/tasks/main.yml:45 Running systemd Using module file /home/prashant/Desktop/airavata/dev-tools/ansible/ENV/lib/python3.6/site-packages/ansible/modules/core/system/systemd.py <149.165.170.53> ESTABLISH SSH CONNECTION FOR USER: xseduser <149.165.170.53> SSH: EXEC sshpass -d11 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=xseduser -o ConnectTimeout=10 -o ControlPath=/home/prashant/.ansible/cp/ansible-ssh-%h-%p-%r 149.165.170.53 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1540212128.0684566-111171913185023 `" && echo ansible-tmp-1540212128.0684566-111171913185023="` echo ~/.ansible/tmp/ansible-tmp-1540212128.0684566-111171913185023 `" ) && sleep 0'"'"'' <149.165.170.53> PUT /tmp/tmpzjiqtzqo TO /home/xseduser/.ansible/tmp/ansible-tmp-1540212128.0684566-111171913185023/systemd.py <149.165.170.53> SSH: EXEC sshpass -d11 sftp -o BatchMode=no -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=xseduser -o ConnectTimeout=10 -o ControlPath=/home/prashant/.ansible/cp/ansible-ssh-%h-%p-%r '[149.165.170.53]' <149.165.170.53> ESTABLISH SSH CONNECTION FOR USER: xseduser <149.165.170.53> SSH: EXEC sshpass -d11 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=xseduser -o ConnectTimeout=10 -o ControlPath=/home/prashant/.ansible/cp/ansible-ssh-%h-%p-%r 149.165.170.53 '/bin/sh -c '"'"'chmod u+x /home/xseduser/.ansible/tmp/ansible-tmp-1540212128.0684566-111171913185023/ /home/xseduser/.ansible/tmp/ansible-tmp-1540212128.0684566-111171913185023/systemd.py && sleep 0'"'"'' <149.165.170.53> ESTABLISH SSH CONNECTION FOR USER: xseduser <149.165.170.53> SSH: EXEC sshpass -d11 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o User=xseduser -o ConnectTimeout=10 -o ControlPath=/home/prashant/.ansible/cp/ansible-ssh-%h-%p-%r -tt 149.165.170.53 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-awcdfhymkxxxdorkzyypwdlqzkaytyqx; /usr/bin/python /home/xseduser/.ansible/tmp/ansible-tmp-1540212128.0684566-111171913185023/systemd.py; rm -rf "/home/xseduser/.ansible/tmp/ansible-tmp-1540212128.0684566-111171913185023/" > /dev/null 2>&1'"'"'"'"'"'"'"'"' && sleep 0'"'"'' fatal: [149.165.170.53]: FAILED! => { "changed": false, "failed": true, "invocation": { "module_args": { "daemon_reload": false, "enabled": true, "masked": null, "name": "rabbitmq-server", "state": "started", "user": false } }, "msg": "Unable to start service rabbitmq-server: Job for rabbitmq-server.service failed because the control process exited with error code. See \"systemctl status rabbitmq-server.service\" and \"journalctl -xe\" for details.\n" } to retry, use: --limit @/home/prashant/Desktop/airavata/dev-tools/ansible/airavata.retry PLAY RECAP ********************************************************************* 149.165.170.53 : ok=27 changed=1 unreachable=0 failed=1 Thanks. Prashant
