Skip to content

Instantly share code, notes, and snippets.

@a1git
Created December 19, 2020 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a1git/e9eec7c21cf19b13b50c045c4ca72f94 to your computer and use it in GitHub Desktop.
Save a1git/e9eec7c21cf19b13b50c045c4ca72f94 to your computer and use it in GitHub Desktop.
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 242628
debug3: mux_client_request_session: session request sent
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
fatal: [c2_rabbit_mq_container-fff6b12e]: FAILED! => {
"attempts": 5,
"changed": true,
"cmd": [
"rabbitmqctl",
"join_cluster",
"rabbit@c1-rabbit-mq-container-e1d2ff91"
],
"delta": "0:01:12.752306",
"end": "2020-12-19 13:42:02.243771",
"invocation": {
"module_args": {
"_raw_params": "rabbitmqctl join_cluster \"rabbit@c1-rabbit-mq-container-e1d2ff91\"\n",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": true
}
},
"msg": "non-zero return code",
"rc": 69,
"start": "2020-12-19 13:40:49.491465",
"stderr": "Error:\n{:failed_to_cluster_with, [:\"rabbit@c1-rabbit-mq-container-e1d2ff91\"], 'Mnesia could not connect to any nodes.'}",
"stderr_lines": [
"Error:",
"{:failed_to_cluster_with, [:\"rabbit@c1-rabbit-mq-container-e1d2ff91\"], 'Mnesia could not connect to any nodes.'}"
],
"stdout": "Clustering node rabbit@c2-rabbit-mq-container-fff6b12e with rabbit@c1-rabbit-mq-container-e1d2ff91",
"stdout_lines": [
"Clustering node rabbit@c2-rabbit-mq-container-fff6b12e with rabbit@c1-rabbit-mq-container-e1d2ff91"
]
}
@a1git
Copy link
Author

a1git commented Dec 19, 2020

on 2nd run

TASK [rabbitmq_server : Add automatic restart on failure] **************************************************************************************************************
task path: /etc/ansible/roles/rabbitmq_server/tasks/rabbitmq_post_install.yml:48
<c2_rabbit_mq_container-fff6b12e> The "physical_host" variable of "c2" has been found to have a corresponding host entry in inventory.
<c2_rabbit_mq_container-fff6b12e> The "physical_host" variable of "c2" terminates at "172.29.236.12" using the host variable "ansible_host".
ok: [c2_rabbit_mq_container-fff6b12e] => {"changed": false, "checksum": "85310c7ff55ce2f0d25ae9dcc76e5782d2b37b91", "dest": "/etc/systemd/system/rabbitmq-server.service.d/systemd-restart-on-failure.conf", "gid": 0, "group": "root", "mode": "0644", "owner": "root", "path": "/etc/systemd/system/rabbitmq-server.service.d/systemd-restart-on-failure.conf", "size": 60, "state": "file", "uid": 0}

TASK [rabbitmq_server : Reload the systemd daemon] *********************************************************************************************************************
task path: /etc/ansible/roles/rabbitmq_server/tasks/rabbitmq_post_install.yml:56
<c2_rabbit_mq_container-fff6b12e> Task "Reload the systemd daemon" has been omitted from the job because the conditional "['rabbit_resource_limit is changed', 'rabbit_restart_on_failure is changed']" was evaluated as "False"

TASK [rabbitmq_server : Configure rabbitmq plugins] ********************************************************************************************************************
task path: /etc/ansible/roles/rabbitmq_server/tasks/rabbitmq_post_install.yml:67
<c2_rabbit_mq_container-fff6b12e> The "physical_host" variable of "c2" has been found to have a corresponding host entry in inventory.
<c2_rabbit_mq_container-fff6b12e> The "physical_host" variable of "c2" terminates at "172.29.236.12" using the host variable "ansible_host".
ok: [c2_rabbit_mq_container-fff6b12e] => (item={'name': 'rabbitmq_management', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "disabled": [], "enabled": [], "item": {"name": "rabbitmq_management", "state": "enabled"}}

TASK [rabbitmq_server : include_tasks] *********************************************************************************************************************************
task path: /etc/ansible/roles/rabbitmq_server/tasks/rabbitmq_post_install.yml:76
<c2_rabbit_mq_container-fff6b12e> Task "" has been omitted from the job because the conditional "['rabbit_config is changed or rabbitmq_plugin is changed or cookie_set is changed or rabbitmq_upgrade | bool']" was evaluated as "False"

TASK [rabbitmq_server : Apply rabbitmq policies] ***********************************************************************************************************************
task path: /etc/ansible/roles/rabbitmq_server/tasks/rabbitmq_post_install.yml:79
<c2_rabbit_mq_container-fff6b12e> The "physical_host" variable of "c2" has been found to have a corresponding host entry in inventory.
<c2_rabbit_mq_container-fff6b12e> The "physical_host" variable of "c2" terminates at "172.29.236.12" using the host variable "ansible_host".
failed: [c2_rabbit_mq_container-fff6b12e] (item={'name': 'HA', 'pattern': '^(?!(amq\\.)|(.*_fanout_)|(reply_)).*', 'priority': 0, 'tags': 'ha-mode=all'}) => {"ansible_loop_var": "item", "changed": false, "cmd": "/usr/sbin/rabbitmqctl -q -n '' status", "item": {"name": "HA", "pattern": "^(?!(amq\\.)|(.*_fanout_)|(reply_)).*", "priority": 0, "tags": "ha-mode=all"}, "msg": "Error:********@c2-rabbit-mq-container-fff6b12e status\n\n\u001b[1mUsage\u001b[0m\n\nrabbitmqctl [--node <node>] [--longnames] [--quiet] status [--unit <unit>] [--timeout <timeout>]", "rc": 64, "stderr": "Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.\nArguments given:\n\t-q -n rabbit@c2-rabbit-mq-container-fff6b12e status\n\n\u001b[1mUsage\u001b[0m\n\nrabbitmqctl [--node <node>] [--longnames] [--quiet] status [--unit <unit>] [--timeout <timeout>]\n", "stderr_lines": ["Error: this command requires the 'rabbit' app to be running on the target node. Start it with 'rabbitmqctl start_app'.", "Arguments given:", "\t-q -n rabbit@c2-rabbit-mq-container-fff6b12e status", "", "\u001b[1mUsage\u001b[0m", "", "rabbitmqctl [--node <node>] [--longnames] [--quiet] status [--unit <unit>] [--timeout <timeout>]"], "stdout": "", "stdout_lines": []}

PLAY RECAP *************************************************************************************************************************************************************
c1_rabbit_mq_container-e1d2ff91 : ok=47   changed=0    unreachable=0    failed=0    skipped=9    rescued=0    ignored=0   
c2_rabbit_mq_container-fff6b12e : ok=40   changed=0    unreachable=0    failed=1    skipped=9    rescued=0    ignored=0   
c3_rabbit_mq_container-6054ec3e : ok=7    changed=0    unreachable=0    failed=0    skipped=4    rescued=0    ignored=0   



EXIT NOTICE [Playbook execution failure] **************************************

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment