While I am running the bitbucket pipeline, randomly pipelines get failed with the error of bitbucket DNS name resolution failure, this is very random and frequent. Please provide a permanent fix for it. Runners are hosted on premises. Below are the screenshots for the errors:
Hello @sheshansh and welcome to the Community!
As you are using self-hosted runners, could you please confirm if the runner's host is behind a firewall? If yes, it's important to make sure that the IP addresses listed in the following documentation are allowed in the firewall, so the runners can connect to Bitbucket's infrastructure :
If after allowing the IP addresses you are still facing the issue, you can also try forcing the DNS resolution through a different nameserver, such as Google DNS (8.8.8.8) by adding the following command in your pipeline step's script :
echo "nameserver 8.8.8.8" > /etc/resolv.conf
This should be added before the command that is failing with DNS resolution.
Hope that helps! Should you have any questions, feel free to ask!
Thank you, @sheshansh !
Patrik S
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.