Closed Mannilie closed 2 months ago
Hey guys,
After doing some digging, I now understand the root cause of this issue - at least for me. I decided to do some tests on Docker to see if I can directly connect to the Unity licensing Servers and alas! It fails to connect when running a session on a Windows runner using Docker. The problem seems to be due to DNS resolution issues within Windows containers.
Solution:
You need to explicitly set the DNS servers in Docker Desktop's configuration to fix this:
Add the "dns" configuration to the JSON settings:
{
"dns": ["8.8.8.8", "8.8.4.4"]
}
Note: If there are existing settings, ensure you maintain valid JSON syntax by adding commas where necessary.
After restarting, the containers should correctly resolve DNS queries, allowing Unity to connect to the licensing servers and proceed with the build! 😄
Bug description
When attempting to run a session on a windows runner, the license server fails to connect for some reason.
How to reproduce
--workDir
argument in the docker command forgame-ci/builder
(please see my PR here: https://github.com/game-ci/unity-builder/pull/668)Expected behavior
Unity should connect and authenticate to the licensing servers and continue with the build.
Additional details
There are some potentially related issues to this here: