l...@gnu.org (Ludovic Courtès) skribis: > l...@gnu.org (Ludovic Courtès) skribis: > >> l...@gnu.org (Ludovic Courtès) skribis: >> >>> As a followup to <https://bugs.gnu.org/28664>, Ricardo upgraded to the >>> latest Guix on berlin, and I’ve now removed old .narinfos corresponding >>> to tarballs for which we potentially lacked the corresponding nar: >>> >>> sudo find /var/cache/guix/publish/none -mtime +7 -exec rm -v {} \; >> >> This missed ~100 of them, so I’ve run the following command, which is >> more accurate: >> >> root@berlin /var/cache/guix/publish/none# rm -v $(for i in *.narinfo ; do >> [ -f `echo $i | sed -es/narinfo/nar/g` ] || echo $i ; done) > > I just did the same on hydra.gnu.org, which was starting to have 404 for > these substitutes.
With narinfo caching people were starting to get 404s for mirror.hydra.gnu.org/guix/nar/xyz. Based on an incomplete log of the command above, I’ve repopulated /var/cache/guix/publish/none on hydra.gnu.org in a pretty crude way: for i in $(sed -es/'^removed `\([^-]\+\)-.*/\1/g' < /tmp/file-list ); do wget -q -O /dev/null http://localhost:9999/$i.narinfo || echo $i ; done That’s 1,135 tarballs back in /var/cache/guix/publish/none. The remaining missing items will come back eventually as narinfo requests hit ‘guix publish’ itself (i.e., when narinfo caches on user machines and in nginx have expired). Ludo’.