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_0
1.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 ---
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
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
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
6 months ago
i think it would be helpful to check out these docs -
6 months ago
for your reference, the lines are drawn when you use reference variables
6 months ago
how so?
6 months 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!
6 months ago
you are using the rabbitmq template from sixfalls right?
6 months ago
ah but you arent using the template, without the template you will lose the data in rabbitmq with a redeploy
6 months ago
just deploy the template, click the + create
button in the top right
6 months ago
awesome
6 months ago
!s
Status changed to Solved brody • 6 months ago