RabbitMQ deployment issue
jrairuf
HOBBYOP

a year 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

32 Replies

brody
EMPLOYEE

a year ago

is rabbitmq in the same project as your app?


brody
EMPLOYEE

a year ago

just checked, it is not.


brody
EMPLOYEE

a year ago

you need to deploy rabbitmq into the same project


jrairuf
HOBBYOP

a year ago

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


jrairuf
HOBBYOP

a year ago

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


brody
EMPLOYEE

a year ago

we do not support docker-compose


brody
EMPLOYEE

a year ago

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


jrairuf
HOBBYOP

a year 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
HOBBYOP

a year ago

(together with api project and a postgres database)…


jrairuf
HOBBYOP

a year ago

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


brody
EMPLOYEE

a year ago

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


jrairuf
HOBBYOP

a year ago

Sure! Thank you again!


brody
EMPLOYEE

a year ago

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


jrairuf
HOBBYOP

a year ago

Okay, i didn't knew that…


jrairuf
HOBBYOP

a year ago

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


brody
EMPLOYEE

a year ago

how so?


jrairuf
HOBBYOP

a year ago

Creating variables with same name in both services


jrairuf
HOBBYOP

a year ago

<:mildpanic:804271964587819059>


jrairuf
HOBBYOP

a year ago

Instead of referencing them


jrairuf
HOBBYOP

a year ago

If this is the case, you gave the golden tip


brody
EMPLOYEE

a year ago

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


jrairuf
HOBBYOP

a year ago

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


jrairuf
HOBBYOP

a year ago

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


brody
EMPLOYEE

a year ago

you are using the rabbitmq template from sixfalls right?


jrairuf
HOBBYOP

a year ago

It's currently inside my 'Pepi' project


brody
EMPLOYEE

a year ago

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


jrairuf
HOBBYOP

a year ago

Oh… Could you fill me in please?


jrairuf
HOBBYOP

a year ago

A doc link would be amazing


brody
EMPLOYEE

a year ago

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

1331083983685025800


jrairuf
HOBBYOP

a year ago

It worked fine!!

1331201593651106000


brody
EMPLOYEE

a year ago

awesome


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...