๊ฐœ๋ฐœ.log/rabbitMQ

[RabbitMQ] Error: unable to perform an operation on node 'rabbit@xxxx'. Please see diagnostics information and suggestions below. / rabbitMQ node ์—๋Ÿฌ / Erlang cookie

๊ฐœ๋ฐœํ•˜๋Š” ์ฃผ๋””์”จ 2023. 4. 18. 15:27

 

Error: unable to perform an operation on node 'rabbit@xxxx'. 
Please see diagnostics information and suggestions below.

 

 

Error: unable to perform an operation on node 'rabbitmqcli-13048-rabbit@xxxxxxx@localhost'. Please see diagnostics information and suggestions below.

Most common reasons for this are:

 * Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
 * CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
 * Target node is not running

In addition to the diagnostics info below:

 * See the CLI, clustering and networking guides on https://rabbitmq.com/documentation.html to learn more
 * Consult server logs on node rabbitmqcli-13048-rabbit@xxxxxxxxx@localhost
 * If target node is configured to use long node names, don't forget to use --longnames with CLI tools

DIAGNOSTICS
===========

attempted to contact: ['rabbitmqcli-13048-rabbit@xxxxxxxx@localhost']

rabbitmqcli-13048-rabbit@xxxxxxxx@localhost:
  * unable to connect to epmd (port 4369) on xxxxxxxxx@localhost: nxdomain (non-existing domain)


Current node details:
 * node name: 'rabbitmqcli-9940-rabbit@xxxxxxxxx'
 * effective user's home directory: C:\Users\Judy
 * Erlang cookie hash: ๊ฐ์ž ํ•ด์‹œ๊ฐ’

 

 

์ด ์˜ค๋ฅ˜๋Š” RabbitMQ ๋…ธ๋“œ์—์„œ ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•˜์ง€ ๋ชปํ•  ๋•Œ ๋ฐœ์ƒํ•œ๋‹ค. ์ด ๋ฉ”์‹œ์ง€๋Š” ๋Œ€๊ฐœ ๋…ธ๋“œ ์ด๋ฆ„์ด ์ž˜๋ชป๋˜์—ˆ๊ฑฐ๋‚˜ Erlang ํ™˜๊ฒฝ์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์„ค์ •๋˜์ง€ ์•Š์•˜์„ ๋•Œ ๋ฐœ์ƒํ•˜๋Š”๋ฐ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.

 

  • RabbitMQ ๋…ธ๋“œ ์ด๋ฆ„์ด ์˜ฌ๋ฐ”๋ฅธ์ง€ ํ™•์ธํ•ด์•ผ ํ•œ๋‹ค. rabbitmqctl ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋…ธ๋“œ ์ด๋ฆ„์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค.
RabbitMQ ๋…ธ๋“œ ์ด๋ฆ„์€ ๊ธฐ๋ณธ์ ์œผ๋กœ 'rabbit@[ํ˜ธ์ŠคํŠธ๋ช…]' ํ˜•์‹์œผ๋กœ ์ž๋™์œผ๋กœ ์„ค์ •๋œ๋‹ค. 
๋งŒ์•ฝ ๋ช…์‹œ์ ์œผ๋กœ ๋…ธ๋“œ ์ด๋ฆ„์„ ์ง€์ •ํ•˜์ง€ ์•Š์•˜๋‹ค๋ฉด, 'rabbit@[ํ˜ธ์ŠคํŠธ๋ช…]' ํ˜•์‹์˜ ๊ธฐ๋ณธ๊ฐ’์œผ๋กœ ์„ค์ •๋œ๋‹ค. ์ด๋Ÿฌํ•œ ๊ฒฝ์šฐ์—๋Š” ํ˜ธ์ŠคํŠธ๋ช… ๋’ค์— ์‹๋ณ„์ž๊ฐ€ ๋ถ™์ง€ ์•Š์€ 'rabbit@[ํ˜ธ์ŠคํŠธ๋ช…]' ํ˜•์‹์˜ ๋…ธ๋“œ ์ด๋ฆ„์œผ๋กœ ์„ค์ •๋ฉ๋‹ˆ๋‹ค.
  • Erlang ํ™˜๊ฒฝ์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์„ค์น˜๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•œ๋‹ค. RabbitMQ๋Š” Erlang VM ์œ„์—์„œ ์‹คํ–‰๋˜๋ฏ€๋กœ Erlang VM์ด ์‹œ์Šคํ…œ์— ์„ค์น˜๋˜์–ด ์žˆ์–ด์•ผ ํ•œ๋‹ค.
  • RabbitMQ ๊ตฌ์„ฑ ํŒŒ์ผ์„ ๋‹ค์‹œ ํ™•์ธํ•œ๋‹ค. ๊ตฌ์„ฑ ํŒŒ์ผ์—์„œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด RabbitMQ๊ฐ€ ์‹œ์ž‘๋˜์ง€ ์•Š์„ ์ˆ˜ ์žˆ๋‹ค.
  • RabbitMQ ํฌํŠธ ๋ฐฉํ™”๋ฒฝ์ด ์ฐจ๋‹จ๋˜์–ด์žˆ๋Š”์ง€ ํ™•์ธํ•ด ๋ณธ๋‹ค.
  • Erlang cookie๊ฐ€ Server์— ๊ตฌ์„ฑ ํŒŒ์ผ๋กœ ์žกํ˜€์žˆ๋Š”์ง€ ํ™•์ธ.

 

erlang.cookie ํŒŒ์ผ์—๋Š” ๋ž˜๋น—์— ํ ์„œ๋ฒ„์™€ ํด๋ผ์ด์–ธํŠธ ๊ฐ„์˜ ์ธ์ฆ์— ์‚ฌ์šฉ๋˜๋Š” ์ฟ ํ‚ค ๊ฐ’์ด ๋“ค์–ด ์žˆ๋‹ค. ๋‘ ์ฟ ํ‚ค ๊ฐ’์ด ์ผ์น˜ํ•˜์ง€ ์•Š์œผ๋ฉด ํด๋ผ์ด์–ธํŠธ์—์„œ ์„œ๋ฒ„๋กœ์˜ ์ ‘์†์ด ์‹คํŒจํ•œ๋‹ค. ์ฟ ํ‚ค ๊ฐ’์€ ๋ฌด์ž‘์œ„๋กœ ์ƒ์„ฑ๋œ ๋ฌธ์ž์—ด๋กœ, 32๋ฐ”์ดํŠธ ๊ธธ์ด์˜ ๋žœ๋ค ํ•œ ๋ฐ”์ด๋„ˆ๋ฆฌ ๊ฐ’์ด๋‹ค. 

์ฟ ํ‚ค๋Š” ์ผ๋ฐ˜์ ์œผ๋กœ ๋…ธ๋“œ๊ฐ€ ์ฒ˜์Œ ์‹œ์ž‘๋  ๋•Œ ๋ฌด์ž‘์œ„๋กœ ์ƒ์„ฑ๋˜๋ฉฐ, ์ดํ›„์—๋Š” ๋ณ€๊ฒฝ๋˜์ง€ ์•Š๋Š”๋‹ค. ์ฆ‰, ๋…ธ๋“œ๋ฅผ ์žฌ์‹œ์ž‘ํ•˜๋ฉด ๋™์ผํ•œ ์ฟ ํ‚ค ๊ฐ’์ด ์ƒ์„ฑ๋œ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ๋…ธ๋“œ๊ฐ€ ์—ฌ๋Ÿฌ ๋Œ€์ธ ๊ฒฝ์šฐ์—๋Š” ๊ฐ ๋…ธ๋“œ๊ฐ€ ๊ณต์œ ํ•  ์ˆ˜ ์žˆ๋„๋ก ๋™์ผํ•œ Erlang ์ฟ ํ‚ค ๊ฐ’์„ ์‚ฌ์šฉํ•ด์•ผ ํ•œ๋‹ค. ๋”ฐ๋ผ์„œ ์ƒˆ๋กœ์šด ๋…ธ๋“œ๋ฅผ ์ถ”๊ฐ€ํ•˜๊ฑฐ๋‚˜ ์ƒˆ๋กœ์šด ํด๋Ÿฌ์Šคํ„ฐ๋ฅผ ๋งŒ๋“œ๋Š” ๊ฒฝ์šฐ ์ƒˆ๋กœ์šด ์ฟ ํ‚ค๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ๋ชจ๋“  ๋…ธ๋“œ์— ๋ฐฐํฌํ•ด์•ผ ํ•œ๋‹ค.

 

Erlang cookie์— ๋Œ€ํ•ด ๊ฒฝํ—˜ํ•˜๋Š” ์ข‹์€ ์‹œ๋„์˜€์œผ๋‚˜ Erlang๊ณผ rabbitMq ๋ฒ„์ „์ด ๋งž์ง€ ์•Š์•„ ๋ฐœ์ƒํ–ˆ๋˜ ๋ฌธ์ œ๋กœ ๋‘˜ ๋‹ค ๋ฒ„์ „์„ ๋งž์ถ”์–ด ์žฌ์„ค์น˜ํ•˜์—ฌ ํ•ด๊ฒฐํ•˜์˜€๋‹ค;; Springboot๋กœ ๊ฐœ๋ฐœํ•œ ์ดํ›„ ๋ฒ„์ „๊ด€๋ฆฌ์— ์†Œํ™€ํ–ˆ๋”๋‹ˆ ๊ฝค ๋งŽ์€ ์‹œ๊ฐ„์„ ์†Œ์š”ํ•˜๋ฉฐ ์‚ฝ์งˆํ–ˆ๋‹ค.

Spring์œผ๋กœ ๊ฐœ๋ฐœํ–ˆ์„ ๋• ๋ฒ„์ „๊ด€๋ฆฌ์— ์˜ˆ๋ฏผํ•˜๊ฒŒ ๋ฐ˜์‘ํ–ˆ์—ˆ๋Š”๋ฐ.. ์ด๋ž˜์„œ ์ž๋™ํ™”๋˜๋Š” ๊ฒƒ์ด ๋ฌด์กฐ๊ฑด ์ข‹์€ ์ผ๋งŒ์€ ์•„๋‹Œ ๊ฒƒ ๊ฐ™๋‹ค :)