Open allister-beamable opened 1 month ago
I think another Beamable employee found that perhaps the local docker dns named has changed?
In the GetLocalConnectionString
method, we have a hardcoded default host
value as "gateway.docker.internal"
. Perhaps that has changed?
In Unity 1.19.x, check the MicroserviceReflectionCache.GetConnectionString
method; it also has the same reference to gateway.docker.internal
to actually fix this, we'll likely need to introduce a version number check for docker, or, find a way to read the host from somewhere
There has gotta be a way to implement dynamic discovery. When services are run with Docker Compose, they magically get hostname entries in the network with which the containers are launched.
Describe the Bug
After having upgraded Docker Desktop, whenever my C#MS invokes
Storage
stuff, there is a timeout error. First the client/service call times out at 10 seconds, then there is an error in the C#MS log after 30 seconds.The MongoDB database is still reachable by tools like
mongosh
and MongoDB Compass, by pointing atmongodb://<username>:<password>@localhost:12101
; the only problem seems to be the connection from C#MS to Storage.To Reproduce
Storage
in the C#MS.Expected Behavior
Actual Behavior
Metadata
Additional Context
Customers are able to work around this by avoiding local storage in favor of remotely-deployed Micro Storage.