[Catalog-sig] Replacement client for pep381client

Christian Theune ct at gocept.com
Thu Mar 21 18:18:15 CET 2013


On Mar 21, 2013, at 3:28 AM, holger krekel <holger at merlinux.eu> wrote:

> On Wed, Mar 20, 2013 at 19:27 -0700, Christian Theune wrote:
>> On 2013-03-20 23:59:21 +0000, Christian Theune said:
>>> 
>>> I'm currently re-initializing my own mirror. This basically can be
>>> run in-place by just removing the existing state data and calling
>>> my sync script (bsn-mirror) instead of pep381run with the same
>>> parameters.
>> 
>> This worked nicely for me - I'm running my mirror on bandersnatch now.
> 
> I got so far 3 errors like this one::
> 
>    2013-03-21 14:23:19,759 bandersnatch.package INFO: Downloading: https://pypi.python.org/packages/source/C/Clay/Clay-0.13.tar.gz
>    2013-03-21 14:23:20,384 bandersnatch.package ERROR: Error syncing package: Coopr
>    Traceback (most recent call last):
>      File "/home/hpk/bandersnatch/src/bandersnatch/package.py", line 50, in sync
>        self.sync_release_files()
>      File "/home/hpk/bandersnatch/src/bandersnatch/package.py", line 68, in sync_release_files
>        self.download_file(release_file['url'], release_file['md5_digest'])
>      File "/home/hpk/bandersnatch/src/bandersnatch/package.py", line 144, in download_file
>        url, existing_hash, md5sum))
>    ValueError: https://pypi.python.org/packages/source/C/Coopr/Coopr-1.1.zip has hash 97cb7ae47656df10d243533c4f0c63c1 instead of 7ed6916702b2afccd254b423450ac4af
> 
> and the command terminates.  I can restart fine, though.  Will continue
> to do continue and see how far i get.  Seems to perform quickly, btw :)

This is an interesting case: the data was downloaded from PyPI but didn't actually fit the md5sum that was announced. This kind of "should never happen" - but a subsequent run will retry gracefully.

Good to hear that it feels fast. :)

Christian

-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · Forsterstraße 29 · 06112 Halle (Saale) · Germany
http://gocept.com · Tel +49 345 1229889-7
Python, Pyramid, Plone, Zope · consulting, development, hosting, operations

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4334 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/catalog-sig/attachments/20130321/66790336/attachment.bin>


More information about the Catalog-SIG mailing list