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

Indexing fails on perl tarball download. #26

Open
jeremy-clerc opened this issue Nov 26, 2014 · 5 comments
Open

Indexing fails on perl tarball download. #26

jeremy-clerc opened this issue Nov 26, 2014 · 5 comments

Comments

@jeremy-clerc
Copy link

{UNKNOWN}: Could not fetch file at http://pinto.in.weborama.fr/authors/id/F/FA/FAKE/perl-5.12.2.tar.gz: 404 Not Found at lib/ThisPAN/Indexing.pm line 254. at lib/ThisPAN/Indexing.pm line 260

Fails on not found tarball and so stop indexing and so fails.

Cheers!

@fgabolde
Copy link
Member

Can you tell me if your package index has entries for the perl tarball, and for which distribution is it trying to fetch perl as a dependency?

@jeremy-clerc
Copy link
Author

App::Cpan 1.5701 F/FA/FAKE/perl-5.12.2.tar.gz

@jeremy-clerc
Copy link
Author

Might be a pinto bug

@fgabolde
Copy link
Member

fgabolde commented Dec 5, 2014

Given the contents of your SQLite DB and state.storable, the issue is that thispan-indexer still believes the Perl tarball is J/JE/JESSE/perl-5.12.2.tar.bz2. Presumably Pinto changed their idea of how to handle core dependencies in the package index.

To work around this (until a more permanent fix is available), you can either remove your state file and DB and restart the indexing from scratch; or, you can edit the state file and DB to change the indexer's notion of perl_tarball.

For the DB: find the "perl" distribution and set its tarball_path field to the right value.

UPDATE distribution SET tarball_path = "http://.../authors/id/F/FA/FAKE/perl-5.12.2.tar.gz" WHERE name = "perl";

For the Storable save file, it's a little more involved:

# write the new save file
perl -MStorable -E 'my $save = retrieve(q{state.storable}); $save->{perl_tarball} = q{F/FA/FAKE/perl-5.12.2.tar.gz}; nstore($save, q{state.storable.2})'

If no exceptions appear, mv state.storable.2 state.storable, cross your fingers, and run the indexer as usual.

@jeremy-clerc
Copy link
Author

As seen with you this does not work.

fgabolde added a commit that referenced this issue Dec 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants