We have a pipeline that starts two services (mssql and postgres) and normal steps. Very often the service does not start. Sleeping is not a solution, as it does not start at all in these circumstances.
I noticed that when this happens, this error is recorded in the windows application log:
Resolver Setup/Start failed for container drone-qyuUtNPN5z0UlKGo8fss, “error in opening name server socket listen udp 172.22.48.1:53: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.”
I have the impression things are better if I restart docker, but it reappears quite fast.
Is this a known problem and is there a workaround?
Resolver Setup/Start failed for container drone-VBtSn062E24X6b8P9k8T, "error in opening name server socket listen udp 172.21.32.1:53: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted."
No other containers are running on this host except the drone runner. We are correctly using the windows version: about 2/3 of the time the pipeline runs successfully, but it fails in 1/3 times.
When MSSQL start succesfully: we see in the mssql service
VERBOSE: Starting SQL Server
VERBOSE: Changing SA login credentials
VERBOSE: Started SQL Server.
TimeGenerated EntryType Message
------------- --------- -------
6/3/2021 3:30:52 PM Information Parallel redo is shutdown for database 'CTMS...
6/3/2021 3:30:52 PM Information Parallel redo is started for database 'CTMSd...
6/3/2021 3:30:52 PM Information Starting up database 'CTMSdatabase'.
6/3/2021 3:30:52 PM Information Parallel redo is shutdown for database 'CTMS...
6/3/2021 3:30:52 PM Information Parallel redo is started for database 'CTMSd...
6/3/2021 3:30:52 PM Information Starting up database 'CTMSdatabase'.
6/3/2021 3:32:42 PM Information Parallel redo is shutdown for database 'CTMS...
6/3/2021 3:32:42 PM Information Parallel redo is started for database 'CTMSd...
6/3/2021 3:32:42 PM Information Starting up database 'CTMSdatabase'.
However if it fails (and the error appears in the system log) we only see:
VERBOSE: Starting SQL Server
VERBOSE: Changing SA login credentials
VERBOSE: Started SQL Server.
In that case, the main script in the pipeline will not able to reach the service, and the job will stop after 30 tries.