[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#28664: Old narinfos of tarballs purged on berlin
From: |
Ludovic Courtès |
Subject: |
bug#28664: Old narinfos of tarballs purged on berlin |
Date: |
Wed, 08 Nov 2017 21:29:06 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
address@hidden (Ludovic Courtès) skribis:
> address@hidden (Ludovic Courtès) skribis:
>
>> address@hidden (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:
>>
>> address@hidden /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’.