Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retry on checksum differ #56

Open
koppor opened this issue Jan 14, 2025 · 0 comments
Open

Add retry on checksum differ #56

koppor opened this issue Jan 14, 2025 · 0 comments

Comments

@koppor
Copy link
Contributor

koppor commented Jan 14, 2025

If a mirror returns a bad checksum, the installation should be retried (in the hope, another mirror is randomly chosen).

(This is a relaxed version of #53).

selected mirror https://us.mirrors.cicku.me/ctan/systems/texlive/tlnet/ (TeX Live 2024, rev. 72535)
Trying to restore with key texlive-linux-x86_64-0-fe02ead6bae6cd02a7a29ce9f9e828aca4d70c58f5dab1f989f0bc1beaf258fe-2025-01-14
/tmp/install-texlive/install-tl --repository=https://us.mirrors.cicku.me/ctan/systems/texlive/tlnet/ --profile=/tmp/texlive.profile
Automated TeX Live installation using profile: /tmp/texlive.profile
Loading https://us.mirrors.cicku.me/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb
Installing TeX Live 2024 from: https://us.mirrors.cicku.me/ctan/systems/texlive/tlnet (verified)
Platform: x86_64-linux => 'GNU/Linux on x86_64'
Distribution: net  (downloading)
Using URL: https://us.mirrors.cicku.me/ctan/systems/texlive/tlnet
Directory for temporary files: /tmp/paAezgpXMr
Installing to: /home/runner/texlive
Installing [1/4, time/total: ??:??/??:??]: hyphen-base [23k]
Installing [2/4, time/total: 00:00/00:00]: kpathsea [33k]
Installing [3/4, time/total: 00:00/00:00]: texlive-scripts [1[12](https://github.com/latextemplates/generator-latex-template/actions/runs/12765702077/job/35580491581?pr=317#step:85:13)k]
TeXLive::TLUtils::check_file_and_remove: checksums differ for /tmp/paAezgpXMr/fZN6Fz3P4w/texlive-scripts.tar.xz:
TeXLive::TLUtils::check_file_and_remove:   tlchecksum=2e03d73ed7fe08a46a4c7fdc4f2f3ad923e21cef2687b3d4e80ee7402c7edf7c[13](https://github.com/latextemplates/generator-latex-template/actions/runs/12765702077/job/35580491581?pr=317#step:85:14)27872f02a9ed42aec6c6d963fafa9dbaf8cee2f1e962c7062abcae11580e9e, arg=dc213b9577443649192ac667a615a998fb6403b10d8d415b51d4ca0f6be3b2f4d4c647fbc8bae3210c4c11dea88dcd083fc6ed9254ba0d2da3f8c154c1592402
TeXLive::TLUtils::check_file_and_remove: backtrace:
 -> /tmp/install-texlive/tlpkg/TeXLive/TLUtils.pm:2768: TeXLive::TLUtils::check_file_and_remove
 -> /tmp/install-texlive/tlpkg/TeXLive/TLPDB.pm:1989: TeXLive::TLUtils::unpack
 -> /tmp/install-texlive/tlpkg/TeXLive/TLPDB.pm:1806: TeXLive::TLPDB::_install_data
 -> /tmp/install-texlive/tlpkg/TeXLive/TLPDB.pm:1722: TeXLive::TLPDB::not_virtual_install_package
 -> /tmp/install-texlive/tlpkg/TeXLive/TLUtils.pm:1895: TeXLive::TLPDB::install_package
 -> /tmp/install-texlive/install-tl:2383: TeXLive::TLUtils::install_packages
 -> /tmp/install-texInstalling [4/4, time/total: 00:00/00:00]: texlive.infra [357k]
live/install-tl:1110: main::do_install_packages
 -> /tmp/install-texlive/install-tl:770: main::do_installation
TeXLive::TLUtils::check_file_and_remove:   removing /tmp/paAezgpXMr/fZN6Fz3P4w/texlive-scripts.tar.xz, but saving copy in /tmp/DhX6vO5JNy
TLPDB::_install_data: downloading did not succeed (check_file_and_remove failed) for https://us.mirrors.cicku.me/ctan/systems/texlive/tlnet/archive/texlive-scripts.tar.xz
TLUtils::install_packages: Failed to install texlive-scripts
                           texlive-scripts will be retried later.
Retrying to install: texlive-scripts [112k]
TeXLive::TLUtils::check_file_and_remove: checksums differ for /tmp/paAezgpXMr/IR36m1BRSH/texlive-scripts.tar.xz:
TeXLive::TLUtils::check_file_and_remove:   tlchecksum=2e03d73ed7fe08a46a4c7fdc4f2f3ad923e21cef2687b3d4e80ee7402c7edf7c1327872f02a9ed42aec6c6d963fafa9dbaf8cee2f1e962c7062abcae1[15](https://github.com/latextemplates/generator-latex-template/actions/runs/12765702077/job/35580491581?pr=317#step:85:16)80e9e, arg=dc213b9577443649192ac667a615a998fb6403b10d8d415b51d4ca0f6be3b2f4d4c647fbc8bae3210c4c11dea88dcd083fc6ed9254ba0d2da3f8c154c1592402
TeXLive::TLUtils::check_file_and_remove: backtrace:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant