Skip to content

01-index entries missing package.json #488

Closed

Description

@hvr

The following entries have a .cabal but no package.json file in 01-index:

aivika-transformers/5.3.1/aivika-transformers-5.3.1.tar.gz
amazonka-codedeploy/1.4.0/amazonka-codedeploy-1.4.0.tar.gz
amazonka-config/1.3.5/amazonka-config-1.3.5.tar.gz
amazonka-importexport/1.3.7/amazonka-importexport-1.3.7.tar.gz
amazonka-importexport/1.4.0/amazonka-importexport-1.4.0.tar.gz
amazonka-s3/1.3.6/amazonka-s3-1.3.6.tar.gz
amazonka-sdb/1.4.0/amazonka-sdb-1.4.0.tar.gz
eventloop/0.5.0.0/eventloop-0.5.0.0.tar.gz
gi-gdkpixbuf/0.2.31.12/gi-gdkpixbuf-0.2.31.12.tar.gz
gi-gio/0.2.46.13/gi-gio-0.2.46.13.tar.gz
gi-girepository/0.1.44.12/gi-girepository-0.1.44.12.tar.gz
glue-ekg/0.4.4/glue-ekg-0.4.4.tar.gz
gnuidn/0.2.2/gnuidn-0.2.2.tar.gz
gogol-admin-reports/0.2.0/gogol-admin-reports-0.2.0.tar.gz
gogol-autoscaler/0.0.1/gogol-autoscaler-0.0.1.tar.gz
hops/0.4.0/hops-0.4.0.tar.gz
hprotoc/2.1.11/hprotoc-2.1.11.tar.gz
hzaif/0.1.0.0/hzaif-0.1.0.0.tar.gz
llvm-hs/llvm-hs-5.1.1/llvm-hs-5.1.1.tar.gz
repa-io/3.4.0.2/repa-io-3.4.0.2.tar.gz
wai-middleware-prometheus/0.2.0/wai-middleware-prometheus-0.2.0.tar.gz

EDIT: I believe to have figured out why this occurs (and to confirm that theory I'm quite confdident in, I've put in place additional logging as per 4af31a5), and after consulting with Duncan the suggested plan forward is to refactor hackage's hook interface to allow to write package.json + .cabal file in a single transaction.


EDIT2: This issue is resolved at last

Activity

  1. edsko commented on Aug 19, 2016

    @edsko
    Contributor

    Note that glue-ekg has two versions after 0.4.4 (by April 15).

  2. edsko commented on Aug 19, 2016

    @edsko
    Contributor

    Dates of these releases don't seem be related to April 15:

    • amazonka-codedeploy/1.4.0 released Mar 21 07:11:54 UTC 2016, prev Dec 19 06:28:25 UTC 2015, next May 9 19:13:50 UTC 2016
    • amazonka-config/1.3.5 released Oct 28 05:09:42 UTC 2015, prev Oct 25 19:03:48 UTC 2015, next Nov 21 10:44:40 UTC 2015

    ...

  3. gbaz commented on Feb 16, 2017

    @gbaz
    Contributor

    @edsko it would be good to review the hackage-security code (I guess?) to see what could cause this. I can take a swing myself, but any hints or suggestions as to potential trouble spots from someone more familiar would be quite welcome.

  4. gbaz commented on Sep 22, 2017

    @gbaz
    Contributor

    what problems downstream (if any) does this cause? Also, can we "patch up" the tarball to add them in later?

  5. peti commented on Sep 24, 2017

    @peti
    Contributor

    What problems downstream (if any) does this cause?

    The tool that generates the Haskell package set for Nix was written with the assumption that all tarball hashes can be retrieved from 01-index.tar, so when I actually ran that tool for the first time it fell apart because that assumption turns out to be wrong.

  6. hvr commented on Sep 25, 2017

    @hvr
    MemberAuthor

    @peti can't you just treat all entries w/o a package.json entry as if they didn't exist (or as if they were corrupt or non-retrievable -- that's actually something the tool will have to cope with anyway)?

  7. peti commented on Oct 17, 2017

    @peti
    Contributor

    @hvr, yes, I could do that.

    That policy will raise some questions, though, because Hackage itself happily advertises the existence of releases like http://hackage.haskell.org/package/gnuidn-0.2.2 and allows users to download them. So it feels odd for my tool to say "this release does not exist". It would be nice if those corrupt and non-retrievable releases were recognizable as such on hackage.haskell.org, too.

  8. hvr commented on Oct 17, 2017

    @hvr
    MemberAuthor

    @peti well, to be fair, hackage's internal database is corrupted insofar as it's missing the checksums; that's going to be fixed -- this isn't a normal state that hackage's UI needs to be able to reflect.

  9. peti commented on Oct 18, 2017

    @peti
    Contributor

    @hvr, I would like to respectfully disagree. The state of corruption in Hackage's database has existed for well over 18 months by now. That is not exactly a temporary glitch which disappears faster than anyone can put up a warning sign. For everyone who's using cabal-install 2.x, these packages are broken and cannot be fetched, yet Hackage gives no indication why that might be so. I believe it would be a very good idea to reflect that state in the UI. The current state is a little confusing --- even to relatively experienced users like myself.

  10. hvr commented on Dec 18, 2017

    @hvr
    MemberAuthor

    Thanks to the extended debug output (c.f. 4af31a5) being in place when the llvm-hs-5.1.1.tar.gz tarball was uploaded I was finally able to confirm and pinpoint the codepath responsible for this very hard to reproduce bug which seemed to occur only on the live deployed Hackage instance and also very infrequently (it took over a month since 4af31a5 was deployed to manifest itself again). We'll try to get this fixed for good asap!

  11. added a commit that references this issue on Dec 19, 2017
  12. peti commented on Dec 27, 2017

    @peti
    Contributor

    @hvr, thank you very much for the effort you've put into finding and fixing this issue!

  13. hvr commented on Dec 27, 2017

    @hvr
    MemberAuthor

    @peti note that the real fix (which will include reifying the lost entries) will only be visible once I redeploy hackage later this week; credits also go to @gbaz for actually implementing the fix in #644!

  14. hvr commented on Jan 1, 2018

    @hvr
    MemberAuthor

    I just deployed the fix and forced the package.json entries to be recreated; iow, it should be fixed now on the central instance.

  15. gridaphobe commented on Jan 29, 2018

    @gridaphobe

    @hvr I'm running a local hackage mirror and am having this same issue. Could you explain how you forced the recreation of the package.json entries? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions