Edit report at https://bugs.php.net/bug.php?id=81056&edit=1
ID: 81056 User updated by: fred5 at originsystems dot co dot za Reported by: fred5 at originsystems dot co dot za Summary: wget no longer works to download a PHP version. Status: Open Type: Bug Package: Website problem PHP Version: 8.0.6 Block user comment: N Private report: N New Comment: curl works a treat - thank you! For info, curl verbose output follows.... curl --verbose -O https://www.php.net/distributions/php-8.0.6.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to www.php.net port 443 (#0) * Trying 185.85.0.29... * Connected to www.php.net (185.85.0.29) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 * Server certificate: * subject: CN=*.php.net * start date: May 18 10:04:38 2021 GMT * expire date: May 18 10:04:38 2022 GMT * common name: *.php.net * issuer: CN=Certum Domain Validation CA SHA2,OU=Certum Certification Authority,O=Unizeto Technologies S.A.,C=PL > GET /distributions/php-8.0.6.tar.gz HTTP/1.1 > User-Agent: curl/7.29.0 > Host: www.php.net > Accept: */* > 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0< HTTP/1.1 200 OK < Server: myracloud < Date: Thu, 20 May 2021 17:56:31 GMT < Content-Type: application/octet-stream < Content-Length: 17184903 < Connection: keep-alive < Last-Modified: Tue, 04 May 2021 18:00:08 GMT < ETag: "60918ba8-1063887" < X-CDN: 1 < Accept-Ranges: bytes < { [data not shown] 100 16.3M 100 16.3M 0 0 698k 0 0:00:24 0:00:24 --:--:-- 796k * Connection #0 to host www.php.net left intact Previous Comments: ------------------------------------------------------------------------ [2021-05-19 20:14:22] [email protected] As a short term workaround, you can try pulling from github: https://github.com/php/web-php-distributions/ ) which will present a different CDN stack and may work around your issue (which, noticing your .za address, feels more likely to be CDN related). Cloning the entire repo would be a bit much, but you can grab individual. E.g. for 8.0.6, you should be able to wget from: https://github.com/php/web-php-distributions/raw/master/php-8.0.6.tar.gz In the longer term, I would like to figure out what's going on so that the more generalized path to downloading images can be fixed. If you wouldn't mind sharing that curl verbose output, it might point to something. ------------------------------------------------------------------------ [2021-05-19 20:02:11] [email protected] Oh, and to your first item: Yes, the mirrors have all been retired. There IS a CDN in front of the main php.net server, so the effect is much the same, and it's possible the 503 errors you're getting are from them (which will make diagnosis more tricky). ------------------------------------------------------------------------ [2021-05-19 19:52:54] [email protected] Just tried my local system and it worked fine, so there's something else up. $ wget --verbose https://www.php.net/distributions/php-8.0.6.tar.gz --2021-05-19 19:47:43-- https://www.php.net/distributions/php-8.0.6.tar.gz Resolving www.php.net (www.php.net)... 185.85.0.29, 2a02:cb40:200::1ad Connecting to www.php.net (www.php.net)|185.85.0.29|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 17184903 (16M) [application/octet-stream] Saving to: âphp-8.0.6.tar.gzâ php-8.0.6.tar.gz 100%[===============================================================================>] 16.39M 5.53MB/s in 3.0s 2021-05-19 19:47:51 (5.53 MB/s) - âphp-8.0.6.tar.gzâ saved [17184903/17184903] Sadly, `wget --verbose` doesn't seem to give a lot of detail. I wonder if using curl works. If not, maybe looking at the output of `curl --verbose` would provide more insight. curl --verbose -O https://www.php.net/distributions/php-8.0.6.tar.gz ------------------------------------------------------------------------ [2021-05-19 19:46:24] fred5 at originsystems dot co dot za This bug was raised in 2015 but closed. In those days there were mirrors which worked so it was much less of a problem for people with automated builds. That no longer applies so I believe it is an issue for which re-assessment would be beneficial. ------------------------------------------------------------------------ [2021-05-19 19:41:22] fred5 at originsystems dot co dot za Description: ------------ We have been downloading PHP via wget in an automated fashion from mirror sites for years. "suddenly" 2 things have happened: 1. mirror sites have disappeared, leaving only php.net 2. wget fails against php.net as follows: # wget https://www.php.net/distributions/php-8.0.6.tar.gz --2021-05-19 21:36:02-- https://www.php.net/distributions/php-8.0.6.tar.gz Resolving www.php.net (www.php.net)... 185.85.0.29, 2a02:cb40:200::1ad Connecting to www.php.net (www.php.net)|185.85.0.29|:443... connected. HTTP request sent, awaiting response... 503 Service Temporarily Unavailable 2021-05-19 21:36:03 ERROR 503: Service Temporarily Unavailable. I know this is specific to wget because clicking on the download link via the browser downloads the file perfectly. I am raising this as it causes significant issues for our automated build - and I'm sure for anyone else who has an automated build. Any help would be greatly appreciated. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81056&edit=1 -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
