smebberson / docker-alpine

Docker containers running Alpine Linux and s6 for process management. Solid, reliable containers.
MIT License
597 stars 186 forks source link

unable to connect to node rabbit@rabbitmq: nodedown #87

Open nikophil opened 7 years ago

nikophil commented 7 years ago

Hello,

i tried to use your container with docker-compose :

rabbitmq:
    image: smebberson/alpine-rabbitmq
    hostname: rabbitmq
    ports:
        - "5672:5672"
        - "15672:15672"
    environment:
        - RABBITMQ_ENABLE_MANAGEMENT_PLUGIN=true
        - RABBITMQ_USER=guest
        - RABBITMQ_PASS=guest
        - RABBITMQ_DEFAULT_VHOST=/

but whenever i'v found no way to connect to rabbitmq trhought php... and whenever i connect to the container, and try a "status", i got an error :

/ # rabbitmqctl status
Status of node rabbit@rabbitmq ...
Error: unable to connect to node rabbit@rabbitmq: nodedown

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

attempted to contact: [rabbit@rabbitmq]

rabbit@rabbitmq:
  * connected to epmd (port 4369) on rabbitmq
  * 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-cli-34@rabbitmq'
- home dir: /root
- cookie hash: ixo/2Fe1uNQ6Am3pfIxF+A==

thanks for your help

jinjin123 commented 7 years ago

@nikophil Guys, I have the same error ,did you find the way to fix it when we custom RABBITMQ_NODENAME issue

IvanAlekseevichPopov commented 3 years ago

Same issue

jinjin123 commented 3 years ago

@nikophil Guys, I have the same error ,did you find the way to fix it when we custom RABBITMQ_NODENAME issue

Oh... , 4 years ago, the best ways is map to hosts configure, that shlb be work? The NodeName doesnt important