10updocker create Error on Wordpress download
Troubleshooting
- [X] I have attempted to troubleshoot this already
Describe the bug
10updocker create is failing on downloading Wordpress.
I'm trying to get 10updocker working on Windows WSL2.
Went through all the prerequisites (using nvm, tried node versions LTS 16 and 12, Docker, Python, Visual Studio...)
I'm not sure how to further troubleshoot this issue. I am able to ping api.wordpress.org from within WSL2 / Ubuntu.
Any help would be greatly appreciated.
Steps to Reproduce
$ 10updocker --version
3.0.2
$ 10updocker create
? What is the primary hostname for your site? (Ex: docker.test) docker4.test
? Are there additional domains the site should respond to? No
? What version of PHP would you like to use? 7.4
? Do you want to install WordPress? Yes
? Select a WordPress installation type: Single Site
? Site Name docker4.test
? Admin Username admin
? Admin Password password
? Admin Email [email protected]
? Do you want to remove the default content? No
? Do you want to set a proxy for media assets? (i.e. Serving /uploads/ directory assets from a production site) No
? Do you need Elasticsearch No
✔ Environment directories have been created...
✔ Certificates are generated...
✔ Docker-compose configuration is created...
✔ Configuration files are copied...
✔ Global services are running...
✔ MariaDB has started...
✔ Database is created...
✔ docker4-test is started...
Error : time="2022-05-04T00:31:36-07:00" level=warning msg="network wplocaldocker: network.external.name is deprecated in favor of network.name"
time="2022-05-04T00:31:36-07: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.
Screenshots, screen recording, code snippet
No response
Environment information
- Device: PC
- OS: Windows 10 using WSL2
- Docker Desktop 4.7.1
- Docker Compose version v2.4.1
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Hello @nhterry I've had this same issue. It turned out (in my case) to be an issue with WP server. I've resolved it by using VPN to another country (UK) and it would work as it should. I've experienced this couple of months ago, but in the meantime issue stopped happening for me after update to newest 10updocker. What helped me figure out the issue was trying to wget the same package from WP server and it would fail in that case too, so it was not just the 10updocker but everything in WSL2.