10up / wp-local-docker-v2

ARCHIVED: A simple Docker based development environment for WordPress.
MIT License
484 stars 82 forks source link

cURL error 28: Resolving timed out #315

Open marlonamancio opened 2 years ago

marlonamancio commented 2 years ago

Troubleshooting

Describe the bug

Hey guys, hope you are doing well today :)

10updocker create is not working as expected. When it gets to the step of downloading WordPress it returns the error below:

Error : time="2022-09-15T18:09:30-03:00" level=warning msg="network wplocaldocker: network.external.name is deprecated in favor of network.name" time="2022-09-15T18:09:30-03:00" level=warning msg="volume wplocaldockerCache: volume.external.name is deprecated in favor of volume.name" Error: RuntimeException: Failed to get url 'https://api.wordpress.org/core/version-check/1.7/?locale=en_US': cURL error 28: Resolving timed out after 10000 milliseconds.

Steps to Reproduce

  1. 10updocker create
  2. Fill in the information as requested
  3. In the WordPress download step, the error occurs

Screenshots, screen recording, code snippet

Captura de tela 2022-09-15 181325

Environment information

Code of Conduct

tomalec commented 2 years ago

I faced the same issue on

What helped me move one step forward was running

npm i
npm run 10updocker create

from this branch https://github.com/10up/wp-local-docker-v2/pull/265

However, now I'm stuck on

⠋ Starting docker containers for test1-test...
 Error : Network test1-test_default  Creating
Network test1-test_default  Created
external volume "wplocaldockerCache" not found
marlonamancio commented 2 years ago

Hi @tomalec thank you for your insights.

I was able to get around this issue by changing my DNS provider to Google public DNS, after that the error no longer happens in curl when downloading wordpress, but now I'm stuck at DNS_PROBE_FINISHED_NXDOMAIN error in browser, I can't access the installation URL.

I think the 10updocker failed to change the hosts file. I had to change it manually.