rabbitmq - Socket closed abruptly during opening handshake (from n8n)

lsxaustralia
PRO

2 months ago

  • Description of the issue you're facing:
    I just installed installed RabbitMQ using a template. I can access the web UI but I can't seem to connect using my credentials (I created a new user and added access to \ ).

  • IDs (Project ID, Service Name/ID, Deployment ID, etc.)
    Project ID: 49c4316f-40cb-45b1-8a1c-6dfe50884ba8

  • Railway environment of your service/deployment
    production

  • Error messages and descriptions:
    Couldn’t connect with these settings  Retry

    Socket closed abruptly during opening handshake

  • Logs (build and/or deploy)
    2025-05-02 06:20:58.966899+00:00 [info] <0.1134.0> accepting AMQP connection 100.64.0.6:54246 -> 10.250.11.136:5672

    May 02 16:21:02

    RabbitMQ

    2025-05-02T06:21:02.232252+00:00 error: FORMATTER CRASH: {"closing AMQP connection ~tp (~ts):~nfailed to negotiate connection parameters: ~ts",[<0.1134.0>,<<"100.64.0.6:54246 -> 10.250.11.136:5672">>,"3s","negotiated frame_max = 4096 is lower than the minimum allowed value (8192)"]}

    dial tcp [fd12:ca43:429:0:a000:15:de77:f0d1]:15672: connect: connection refused

    May 02 16:15:44

    handled request

$10 Bounty

21 Replies

2 months ago

Hello,

Please see AMQP's release notes on this topic -

https://github.com/rabbitmq/rabbitmq-server/blob/main/release-notes/4.1.0.md#initial-amqp-0-9-1-maximum-frame-size

This error is unfortunately not something we can help with.

Best,
Brody


Status changed to Awaiting User Response railway[bot] about 2 months ago


lsxaustralia
PRO

2 months ago

Thanks for the prompt reply.
If i put RabbitMQ in the same project as my n8n, and use the internal railway URL, would it work? I only need to use it within my n8n, I don't need external access.


Status changed to Awaiting Railway Response railway[bot] about 2 months ago


2 months ago

Yes it would work, but you still need to follow what was outlined in the doc I have linked.


Status changed to Awaiting User Response railway[bot] about 2 months ago


lsxaustralia
PRO

2 months ago

It's still not working. I'm getting a different error now.
Not sure what i need to change, could u please help?


Status changed to Awaiting Railway Response railway[bot] about 2 months ago


2 months ago

I'm really sorry but we cannot provide support for 3rd party software here, these forums are for Railway platform or product support.

Perhaps there is a forum you could ask about RabbitMQ on?


Status changed to Awaiting User Response railway[bot] about 2 months ago


lsxaustralia
PRO

2 months ago

Seems like it's not working because of railway's proxy! Else it should be fine in the first place...


Status changed to Awaiting Railway Response railway[bot] about 2 months ago


lsxaustralia
PRO

2 months ago

here

Attachments


2 months ago

We do not expose anything on port 5672, please use the domain and 5 digit port as shown in the public networking section.


Status changed to Awaiting User Response railway[bot] about 2 months ago


lsxaustralia
PRO

2 months ago

I did, still not working. What else should i change please? see screenshot

Attachments


Status changed to Awaiting Railway Response railway[bot] about 2 months ago


lsxaustralia
PRO

2 months ago

I'm on RabbitMQ 4.1.0 Erlang 27.3.3


lsxaustralia
PRO

2 months ago

I need the newer amqp-node version


2 months ago

Yes you do need the newer amqp version.

It seems they made a breaking change.


Status changed to Awaiting User Response railway[bot] about 2 months ago


lsxaustralia
PRO

2 months ago

When i installed the RabbitMQ, I used the template.
Could you please tell me how I would go about updating it within railway?
Appreciate your help in advance.


Status changed to Awaiting Railway Response railway[bot] about 2 months ago


lsxaustralia
PRO

2 months ago

Just following up on my previous message regarding updating RabbitMQ within Railway. I installed it using the template, and I’m trying to figure out the best way to apply updates or make changes to the current setup.

Would really appreciate any guidance when you get a moment.


2 months ago

I'm really sorry but we cannot provide support for 3rd party software, please direct questions about RabbitMQ to their forum.


Status changed to Awaiting User Response railway[bot] about 2 months ago


lsxaustralia
PRO

2 months ago

Well, I did. AND they anticipated it would happen... - see attached.
PLEASE help me with this. If the proxy wasn't blocking the ports we wouldn't be having this discussion. So helping me to fix this is the least you can do.

I love railway, just want to make this work!

Attachments


Status changed to Awaiting Railway Response railway[bot] about 2 months ago


lsxaustralia
PRO

2 months ago

I'm currently using https://customer.cloudamqp.com/ and it's working correctly. Unsure how this isn't working for me when using it locally. Can you explain?


2 months ago

As the user in your screenshot mentioned, you need to update to a newer version of amqp-node. This isn't something we control; keeping your dependencies up-to-date is your responsibility.


Status changed to Awaiting User Response railway[bot] about 2 months ago


lsxaustralia
PRO

2 months ago

Brody, help me out here.
What needs to receive the newer version of amqp-node? Is it n8n?
I ask this because my n8n is working well with cloudAMQP (from railway) but the same version or instance won't work with RabbitMQ.
So, is it an issue with RabbitMQ, N8N or the limitations of railway cuz of the proxy? I'm honestly confused and stuck mate.


Status changed to Awaiting Railway Response railway[bot] about 2 months ago


2 months ago

I'm sorry but we do not offer support for 3rd party software, if you need help using n8n, RabbitMQ, etc, you would need to ask their respective communities.

Though I do want to clarify, the issues you are experiencing do not have any relation to the Proxy, or the platform in general, thus why we are not able to provide support.

Going to open this to our community bounty program so that a community member may help you, but feel free to open another thread if you have any railway-specific questions.


Status changed to Open chandrika about 2 months ago


yigitkonur
PRO

a month ago

for those having same issue may use cloudamqp as their api is compatible.

using railway for everything btw, just for free api up to 20k (lemin it is 20k and same api)

plz delete if it is not allowed on forum but wanna help people stuck with that issue on n8n


rabbitmq - Socket closed abruptly during opening handshake (from n8n) - Railway Help Station