You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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.
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.
@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)?
@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.
@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.
Reacted by Taylor Fausak, Matt Parsons, Shea Levy, Sibi Prabakaran and Gleb Peregud
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!
Reacted by Edsko de Vries, Mikhail Glushenkov, Taylor Fausak and Peter Simons
@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!
@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!
Activity
edsko commentedon Aug 19, 2016
Note that
glue-ekghas two versions after 0.4.4 (by April 15).edsko commentedon Aug 19, 2016
Dates of these releases don't seem be related to April 15:
amazonka-codedeploy/1.4.0released Mar 21 07:11:54 UTC 2016, prev Dec 19 06:28:25 UTC 2015, next May 9 19:13:50 UTC 2016amazonka-config/1.3.5released Oct 28 05:09:42 UTC 2015, prev Oct 25 19:03:48 UTC 2015, next Nov 21 10:44:40 UTC 2015...
gbaz commentedon Feb 16, 2017
@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.
gbaz commentedon Sep 22, 2017
what problems downstream (if any) does this cause? Also, can we "patch up" the tarball to add them in later?
peti commentedon Sep 24, 2017
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.hvr commentedon Sep 25, 2017
@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)?
peti commentedon Oct 17, 2017
@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.
hvr commentedon Oct 17, 2017
@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.
peti commentedon Oct 18, 2017
@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.
hvr commentedon Dec 18, 2017
Thanks to the extended debug output (c.f. 4af31a5) being in place when the
llvm-hs-5.1.1.tar.gztarball 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!tentative fix for #488
peti commentedon Dec 27, 2017
@hvr, thank you very much for the effort you've put into finding and fixing this issue!
hvr commentedon Dec 27, 2017
@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!
hvr commentedon Jan 1, 2018
I just deployed the fix and forced the package.json entries to be recreated; iow, it should be fixed now on the central instance.
gridaphobe commentedon Jan 29, 2018
@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!