olevchyk commented on PR #17: URL: https://github.com/apache/solr-docker/pull/17#issuecomment-1906932751
> Curious, how did you notice this? Won't the Dockerfile simply fallback to using SOLR_DIST_URL and SOLR_ARCHIVE_URL and it still works? attaching a part of the build log ``` 0.248 + [ -n ] 0.249 + [ -f /opt/solr-8.11.2.tgz ] 0.249 + echo downloading http://www.apache.org/dyn/closer.lua?filename=lucene/solr/8.11.2/solr-8.11.2.tgz&action=download 0.249 + wget -t 10 --max-redirect 1 --retry-connrefused -nv http://www.apache.org/dyn/closer.lua?filename=lucene/solr/8.11.2/solr-8.11.2.tgz&action=download -O /opt/solr-8.11.2.tgz 0.249 downloading http://www.apache.org/dyn/closer.lua?filename=lucene/solr/8.11.2/solr-8.11.2.tgz&action=download 0.506 1 redirections exceeded. 0.515 + rm -f /opt/solr-8.11.2.tgz 0.517 + [ -f /opt/solr-8.11.2.tgz ] 0.517 + echo downloading https://www.apache.org/dist/lucene/solr/8.11.2/solr-8.11.2.tgz 0.517 + wget -t 10 --max-redirect 1 --retry-connrefused -nv https://www.apache.org/dist/lucene/solr/8.11.2/solr-8.11.2.tgz -O /opt/solr-8.11.2.tgz 0.517 downloading https://www.apache.org/dist/lucene/solr/8.11.2/solr-8.11.2.tgz 0.864 2024-01-23 20:58:16 URL:https://downloads.apache.org/ [28487] -> "/opt/solr-8.11.2.tgz" [1] 0.866 + break 0.866 + [ ! -f /opt/solr-8.11.2.tgz ] 0.866 + [ -z ] 0.866 + echo downloading https://archive.apache.org/dist/lucene/solr/8.11.2/solr-8.11.2.tgz.asc 0.866 + wget -nv https://archive.apache.org/dist/lucene/solr/8.11.2/solr-8.11.2.tgz.asc -O /opt/solr-8.11.2.tgz.asc 0.866 downloading https://archive.apache.org/dist/lucene/solr/8.11.2/solr-8.11.2.tgz.asc 1.055 2024-01-23 20:58:16 URL:https://archive.apache.org/dist/lucene/solr/8.11.2/solr-8.11.2.tgz.asc [833/833] -> "/opt/solr-8.11.2.tgz.asc" [1] 1.057 + echo 22fedcc0090eda72c3c5a5ea769c93adaf7d92c5c4479993f009ef0b9d42de5bd2ed1e0565ca01f3428587d8a3836286aa3017aab157050f2bd5bc3482fdebaa */opt/solr-8.11.2.tgz 1.057 + sha512sum -c - 1.058 /opt/solr-8.11.2.tgz: FAILED 1.058 sha512sum: WARNING: 1 computed checksum did NOT match ``` you're right, the first one fails and then the 2nd wget successfully downloads `Index of ` from SOLR_DIST_URL instead of the actual package https://www.apache.org/dist/lucene/solr/xxx which later fails sha512sum the right URL seems to be https://downloads.apache.org/lucene/solr/xxx for 8.11.2 release and https://downloads.apache.org/solr/solr/xxx for 9.x releases. ideally this redirect shouldn't cut the request path , but I guess it's also fine as long as it works for the latest releases ``` curl -Il "https://www.apache.org/dist/lucene/solr/8.11.2/solr-8.11.2.tgz" HTTP/2 301 server: Apache location: https://downloads.apache.org/ ``` Im updating a few other references of https://www.apache.org/dist/l -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
