lincolnfrog-macbookpro:scripts lincolnfrog$ sudo ./rabbitmqctl join_cluster <server node name here>
Clustering node 'rabbit@lincolnfrog-macbookpro' with '<server node name here>' ...
Error: unable to connect to nodes ['<server node name here>']: nodedown
DIAGNOSTICS
===========
attempted to contact: ['<server node name here>']
<node name here>:
* connected to epmd (port 4369) on <server name here>
* epmd reports node 'rabbitmq' running on port 25672
* TCP connection succeeded but Erlang distribution failed
* suggestion: hostname mismatch?
* suggestion: is the cookie set correctly?
* suggestion: is the Erlang distribution using TLS?
current node details:
- node name: 'rabbitmq-cli-29511@lincolnfrog-macbookpro'
- home dir: /var/root
- cookie hash: bHfp6OfD8JUupTUV2kDNXg==
lincolnfrog-macbookpro:rabbitmq_server-3.5.6 lincolnfrog$ sbin/rabbitmqctl join_cluster rabbit@myles
Clustering node 'rab...@lincolnfrog-macbookpro.roam.corp.google.com' with rabbit@myles ...
Error: unable to connect to nodes [rabbit@myles]: nodedown
DIAGNOSTICS
===========
attempted to contact: [rabbit@myles]
rabbit@myles:
* connected to epmd (port 4369) on myles
* epmd reports node 'rabbit' running on port 25672
* TCP connection succeeded but Erlang distribution failed
* suggestion: hostname mismatch?
* suggestion: is the cookie set correctly?
* suggestion: is the Erlang distribution using TLS?
current node details:
- node name: 'rabbitmq-...@lincolnfrog-macbookpro.roam.corp.google.com'
- home dir: /Users/lincolnfrog
- cookie hash: bHfp6OfD8JUupTUV2kDNXg==
After this, I ran stop_app on the server and ran join_cluster a@b just to generate the cookie hash output so you can see that it is the same:
lincolnfrog@rabbitmq-1:~/stack/rabbitmq_server-3.5.6$ sudo sbin/rabbitmqctl join_cluster a@b
Clustering node 'rabbit@rabbitmq-1' with a@b ...
Error: unable to connect to nodes [a@b]: nodedown
DIAGNOSTICS
===========
attempted to contact: [a@b]
a@b:
* unable to connect to epmd (port 4369) on b: nxdomain (non-existing domain)
current node details:
- node name: 'rabbitmq-cli-22796@rabbitmq-1'
- home dir: /root
- cookie hash: bHfp6OfD8JUupTUV2kDNXg==
lincolnfrog-macbookpro:rabbitmq_server-3.5.6 lincolnfrog$ sbin/rabbitmqctl status
Status of node 'rab...@lincolnfrog-macbookpro.roam.corp.google.com' ...
[{pid,34765},
{running_applications,[{rabbit,"RabbitMQ","3.5.6"},
{mnesia,"MNESIA CXC 138 12","4.12.4"},
{os_mon,"CPO CXC 138 46","2.3"},
{xmerl,"XML parser","1.3.7"},
{sasl,"SASL CXC 138 11","2.4.1"},
{stdlib,"ERTS CXC 138 10","2.3"},
{kernel,"ERTS CXC 138 10","3.1"}]},
{os,{unix,darwin}},
{erlang_version,"Erlang/OTP 17 [erts-6.3] [source-f9282c6] [64-bit] [smp:8:8] [async-threads:64] [hipe] [kernel-poll:true]\n"},
{memory,[{total,38014488},
{connection_readers,0},
{connection_writers,0},
{connection_channels,0},
{connection_other,2808},
{queue_procs,2808},
{queue_slave_procs,0},
{plugins,0},
{other_proc,14188992},
{mnesia,62208},
{mgmt_db,0},
{msg_index,47480},
{other_ets,826208},
{binary,16488},
{code,16685819},
{atom,654217},
{other_system,5527460}]},
{alarms,[]},
{listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,4744903065},
{disk_free_limit,50000000},
{disk_free,268190482432},
{file_descriptors,[{total_limit,156},
{total_used,3},
{sockets_limit,138},
{sockets_used,1}]},
{processes,[{limit,1048576},{used,130}]},
{run_queue,0},
{uptime,6}]
### Server ###
lincolnfrog@rabbitmq-1:~/stack/rabbitmq_server-3.5.6$ sudo sbin/rabbitmqctl status
Status of node 'rabbit@rabbitmq-1' ...
[{pid,21713},
{running_applications,[{rabbit,"RabbitMQ","3.5.6"},
{os_mon,"CPO CXC 138 46","2.3"},
{xmerl,"XML parser","1.3.7"},
{mnesia,"MNESIA CXC 138 12","4.12.4"},
{sasl,"SASL CXC 138 11","2.4.1"},
{stdlib,"ERTS CXC 138 10","2.3"},
{kernel,"ERTS CXC 138 10","3.1"}]},
{os,{unix,linux}},
{erlang_version,"Erlang/OTP 17 [erts-6.3] [source] [64-bit] [async-threads:64] [hipe] [kernel-poll:true]\n"},
{memory,[{total,35969688},
{connection_readers,0},
{connection_writers,0},
{connection_channels,0},
{connection_other,2728},
{queue_procs,2728},
{queue_slave_procs,0},
{plugins,0},
{other_proc,13685816},
{mnesia,58928},
{mgmt_db,0},
{msg_index,39048},
{other_ets,798008},
{binary,14056},
{code,16695484},
{atom,654217},
{other_system,4018675}]},
{alarms,[]},
{listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,249239961},
{disk_free_limit,50000000},
{disk_free,8063016960},
{file_descriptors,[{total_limit,924},
{total_used,3},
{sockets_limit,829},
{sockets_used,1}]},
{processes,[{limit,1048576},{used,123}]},
{run_queue,0},
{uptime,27}]
lincolnfrog-macbookpro:rabbitmq_server-3.5.6 lincolnfrog$ hostname
lincolnfrog-macbookpro.roam.corp.google.com
lincolnfrog-macbookpro:rabbitmq_server-3.5.6 lincolnfrog$ hostname -f
lincolnfrog-macbookpro.roam.corp.google.com
How do I change what the second half of the @ is set to?
- node name: 'rabbitmq-...@lincolnfrog-macbookpro.roam.corp.google.com'