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.Dns.<>c.b__33_0(Object s, Int64 startingTimestamp) at 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 ---
32 Replies
a year ago
is rabbitmq in the same project as your app?
a year ago
just checked, it is not.
a year ago
you need to deploy rabbitmq into the same project
a year ago
we do not support docker-compose
a year ago
but for things that need to be accessed by one another, put them in the same railway project
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
a year ago
i think it would be helpful to check out these docs -
a year ago
for your reference, the lines are drawn when you use reference variables
a year ago
how so?
a year ago
ah yes, you would want to use ref vars, that way your variables can self sync
I set the correct values in my env variables, and specified the internal domain of rabbit mq, and it worked fine!
a year ago
you are using the rabbitmq template from sixfalls right?
a year ago
ah but you arent using the template, without the template you will lose the data in rabbitmq with a redeploy
a year ago
just deploy the template, click the + create button in the top right

a year ago
awesome
a year ago
!s
Status changed to Solved brody • about 1 year ago
