Replies: 1 comment
-
Carefully compare what you are doing to my working project here: https://github.com/lukebakken/docker-rabbitmq-cluster/tree/tls After cloning, run The following command will start a cluster with inter-node TLS using
You need to provide all of the information about how your environment is being configured. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Community Support Policy
RabbitMQ version used
4.0.5
Erlang version used
27.2.x
Operating system (distribution) used
Linux (Kubernetes)
How is RabbitMQ deployed?
Community Docker image
rabbitmq-diagnostics status output
Error: unable to perform an operation on node '[email protected]'. Please see diagnostics information and suggestions below.
Most common reasons for this are:
In addition to the diagnostics info below:
DIAGNOSTICS
attempted to contact: ['[email protected]']
[email protected]:
Current node details:
Logs from node 1 (with sensitive values edited out)
�[38;5;246m2025-02-28 11:18:19.931963+00:00 [debug] <0.238.0> Peer discovery: backend returned the following configuration:�[0m
�[38;5;246m2025-02-28 11:18:19.931963+00:00 [debug] <0.238.0> {ok,{['[email protected]',�[0m
�[38;5;246m2025-02-28 11:18:19.931963+00:00 [debug] <0.238.0> '[email protected]',�[0m
�[38;5;246m2025-02-28 11:18:19.931963+00:00 [debug] <0.238.0> '[email protected]',�[0m
�[38;5;246m2025-02-28 11:18:19.931963+00:00 [debug] <0.238.0> '[email protected]',�[0m
�[38;5;246m2025-02-28 11:18:19.931963+00:00 [debug] <0.238.0> '[email protected]'],�[0m
�[38;5;246m2025-02-28 11:18:19.931963+00:00 [debug] <0.238.0> disc}}�[0m
�[38;5;246m2025-02-28 11:18:19.932187+00:00 [debug] <0.238.0> Peer discovery: peer node arguments: #{args =>�[0m
�[38;5;246m2025-02-28 11:18:19.932187+00:00 [debug] <0.238.0> ["-ssl_dist_optfile",�[0m
�[38;5;246m2025-02-28 11:18:19.932187+00:00 [debug] <0.238.0> "/etc/rabbitmq/inter_node_tls.config",�[0m
�[38;5;246m2025-02-28 11:18:19.932187+00:00 [debug] <0.238.0> "-proto_dist","inet_tls","-pa",�[0m
�[38;5;246m2025-02-28 11:18:19.932187+00:00 [debug] <0.238.0> "/opt/erlang/lib/erlang/lib/ssl-11.2.8/ebin",�[0m
�[38;5;246m2025-02-28 11:18:19.932187+00:00 [debug] <0.238.0> "-boot","start_sasl","-hidden"],�[0m
�[38;5;246m2025-02-28 11:18:19.932187+00:00 [debug] <0.238.0> name => "rabbit-773-11",�[0m
�[38;5;246m2025-02-28 11:18:19.932187+00:00 [debug] <0.238.0> host =>�[0m
�[38;5;246m2025-02-28 11:18:19.932187+00:00 [debug] <0.238.0> "rmq-cluster-server-4.rmq-cluster-nodes.rmq",�[0m
�[38;5;246m2025-02-28 11:18:19.932187+00:00 [debug] <0.238.0> connection => standard_io,�[0m
�[38;5;246m2025-02-28 11:18:19.932187+00:00 [debug] <0.238.0> wait_boot => infinity,�[0m
�[38;5;246m2025-02-28 11:18:19.932187+00:00 [debug] <0.238.0> longnames => true}�[0m
�[38;5;246m2025-02-28 11:18:20.166467+00:00 [debug] <0.238.0> Peer discovery: using temporary hidden node '[email protected]' to query discovered peers properties�[0m
=PROGRESS REPORT==== 28-Feb-2025::11:18:20.171309 ===
supervisor: {local,inet_gethost_native_sup}
started: [{pid,<0.106.0>},{mfa,{inet_gethost_native,init,[[]]}}]
=PROGRESS REPORT==== 28-Feb-2025::11:18:20.176411 ===
supervisor: {local,kernel_safe_sup}
started: [{pid,<0.105.0>},
{id,inet_gethost_native_sup},
{mfargs,{inet_gethost_native,start_link,[]}},
{restart_type,temporary},
{significant,false},
{shutdown,1000},
{child_type,worker}]
Logs from node 2 (if applicable, with sensitive values edited out)
See https://www.rabbitmq.com/docs/logging to learn how to collect logs
Logs from node 3 (if applicable, with sensitive values edited out)
See https://www.rabbitmq.com/docs/logging to learn how to collect logs
rabbitmq.conf
See https://www.rabbitmq.com/docs/configure#config-location to learn how to find rabbitmq.conf file location
Steps to deploy RabbitMQ cluster
Following this guide: https://www.rabbitmq.com/docs/clustering-ssl#linux-strategy-two
Definition of the rabbitmq-env file and mounting the SSL files and inter node tls config in operator. Operator starts cluster and in each pod the error will be thrown
Steps to reproduce the behavior in question
https://www.rabbitmq.com/docs/clustering-ssl#linux-strategy-two
advanced.config
See https://www.rabbitmq.com/docs/configure#config-location to learn how to find advanced.config file location
Application code
# PASTE CODE HERE, BETWEEN BACKTICKS
Kubernetes deployment file
What problem are you trying to solve?
I'm attempting to implement TLS for inter-node communication within my RabbitMQ cluster to ensure secure communication between nodes. To achieve this, I've defined the rabbitmq_env.conf file in the RabbitMQ operator and mounted the necessary SSL files along with the inter_node_tls.config file. However, I'm encountering an error on all 5 nodes, indicating that they are using a temporary hidden node and are unable to form a cluster.
In my inter_node_cluster.config file, I've only defined the server configuration section, as my primary goal is to encrypt the communication between nodes. I'm also trying to avoid explicitly defining the specific nodes in my rabbitmq.conf file to form the cluster.
Beta Was this translation helpful? Give feedback.
All reactions