RabbitMQ deployment issue

jrairuf
HOBBY

6 months ago

PROJECT ID: 0db7fccb-339d-42da-8c03-163881ba8a97

I'm probably doing something wrong while configuring my rabbitmq container. But i don't know what.
My .net application works fine locally, but crashes in homolog environment.
Here is a bit of the logs:

warn: MassTransit[0]
Connection Failed: rabbitmq://pepi-mq/
RabbitMQ.Client.Exceptions.BrokerUnreachableException: None of the specified endpoints were reachable
---> System.AggregateException: One or more errors occurred. (Name or service not known)
---> System.Net.Sockets.SocketException (00000005, 0xFFFDFFFF): Name or service not known
at System.Net.Dns.GetHostEntryOrAddressesCore(String hostName, Boolean justAddresses, AddressFamily addressFamily, Nullable1 startingTimestamp) at [System.Net](System.Net).Dns.<>c.b__33_0(Object s, Int64 startingTimestamp) at [System.Net](System.Net).Dns.<>c__DisplayClass39_01.b__0(Task , Object )
at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---

Solved

0 Replies

6 months ago

is rabbitmq in the same project as your app?


6 months ago

just checked, it is not.


6 months ago

you need to deploy rabbitmq into the same project


jrairuf
HOBBY

6 months ago

Okay. I'm gonna check this out! Thank you!


jrairuf
HOBBY

6 months ago

Should i put all these services in the same network in docker compose?


6 months ago

we do not support docker-compose


6 months ago

but for things that need to be accessed by one another, put them in the same railway project


jrairuf
HOBBY

6 months ago

I'm not getting the point… When i run railway link, and chose the project that i've specified, the rabbitmq service appears as one of the other components of the project


jrairuf
HOBBY

6 months ago

(together with api project and a postgres database)…


jrairuf
HOBBY

6 months ago

There's no traced line between my api project and rabbitmq although…


6 months ago

i think it would be helpful to check out these docs -


jrairuf
HOBBY

6 months ago

Sure! Thank you again!


6 months ago

for your reference, the lines are drawn when you use reference variables


jrairuf
HOBBY

6 months ago

Okay, i didn't knew that…


jrairuf
HOBBY

6 months ago

And now i just realized that i maybe created isolated environment variables


6 months ago

how so?


jrairuf
HOBBY

6 months ago

Creating variables with same name in both services


jrairuf
HOBBY

6 months ago

<:mildpanic:804271964587819059>


jrairuf
HOBBY

6 months ago

Instead of referencing them


jrairuf
HOBBY

6 months ago

If this is the case, you gave the golden tip


6 months ago

ah yes, you would want to use ref vars, that way your variables can self sync


jrairuf
HOBBY

6 months ago

Hi there! The solution had somethings to do with our talk from before…


jrairuf
HOBBY

6 months ago

I set the correct values in my env variables, and specified the internal domain of rabbit mq, and it worked fine!


6 months ago

you are using the rabbitmq template from sixfalls right?


jrairuf
HOBBY

6 months ago

It's currently inside my 'Pepi' project


6 months ago

ah but you arent using the template, without the template you will lose the data in rabbitmq with a redeploy


jrairuf
HOBBY

6 months ago

Oh… Could you fill me in please?


jrairuf
HOBBY

6 months ago

A doc link would be amazing


6 months ago

just deploy the template, click the + create button in the top right

1331083983685025800


jrairuf
HOBBY

6 months ago

It worked fine!!

1331201593651106000


6 months ago

awesome


6 months ago

!s


Status changed to Solved brody 6 months ago


RabbitMQ deployment issue - Railway Help Station