Skip to content

Hackage doesn't show latest uploads #573

Closed

Activity

  1. sjakobi commented on Mar 1, 2017

    @sjakobi
    MemberAuthor

    tasty-stats-0.2.0.2 also isn't listed in the recent uploads although https://www.stackage.org/diff/nightly-2017-02-28/nightly-2017-03-01 indicates that it has been uploaded on 2017-02-28.

    bildschirmfoto_2017-03-01_05-08-49

  2. bitemyapp commented on Mar 1, 2017

    @bitemyapp
    Contributor

    At a guess, CDN. Newer results than that is a little confusing though.

  3. gbaz commented on Mar 1, 2017

    @gbaz
    Contributor

    sadly, not cdn. munging the url doesn't change the results. There may have been a brief window while drives were being swapped where uploads were missed, although the procedure for the swap was developed to avoid this eventuality.

    Checking the docbuilder, I see that between slack-web and mediabus, packages uploaded and which don't appear in the above listing were

    intro-0.1.0.9
    tasty-stats-0.2.0.2
    tasty-jenkins-xml-0.1.0.0
    general-games-1.0.0
    git-annex-6.20170228

    We should probably contact the authors of those packages and warn them that they will need to upload again.

  4. gbaz commented on Mar 1, 2017

    @gbaz
    Contributor
  5. sjakobi commented on Mar 1, 2017

    @sjakobi
    MemberAuthor

    I don't understand how tasty-stats-0.2.0.2 made it into Stackage. cc @snoyberg.

  6. gbaz commented on Mar 1, 2017

    @gbaz
    Contributor

    Same way it made it into the docbuilder so I could see it in the logs... it was uploaded properly to the "old" hackage and processed, and somehow the snapshot that the "new" hackage was set up with wasn't fully up-to-date. :-/

    I hope there are no ramifications with hackage security for this, in terms of the induced rollback and rebranch of the signing. cc: @edsko and @dcoutts ...

  7. snoyberg commented on Mar 1, 2017

    @snoyberg
    Contributor

    The package made it into all-cabal-hashes, which is how it's included in Stackage right now: https://github.com/commercialhaskell/all-cabal-hashes/tree/hackage/tasty-stats/0.2.0.2.

    The next version of Stack (and the Stackage build tool) will be using Hackage Security for getting the package list instead of all-cabal-hashes. That should mean better compatibility with any upstream issues going on with Hackage in the future. I'm not sure if "bug for bug compatibility" is a good thing or a bad thing here, simply stating the facts :)

  8. liskin commented on Mar 1, 2017

    @liskin

    Haha. They say you can't delete packages uploaded to Hackage and here I am, not uploading tasty-jenkins-xml again, pretending it never happened. :-)

    (the full story is that in between writing the code and publishing on Hackage, a better solution appeared and my package is not necessary/useful any more)

  9. minad commented on Mar 1, 2017

    @minad

    Thx for looking into this! I re-uploaded the package versions again.

  10. snoyberg commented on Mar 1, 2017

    @snoyberg
    Contributor

    I just discovered that our all-cabal-hashes mirror is no longer updating, due to mismatched hashes:

    ERROR: Received an unexpected exception while updating repositories: Mismatched hashes between S3 and Hackage: ("intro-0.1.0.9",(fromList [("MD5","aac49faf1c1657353926fbd9cd9167aa"),("SHA1","a36512c427da78f0262ce224ac143faa1bc92030"),("SHA256","963620591271c3a8e39cfc6b222b4ea9266da0121887298de7e6e59962d422ae"),("SHA512","7417b5bfc33286e6c3d5dcf75322e175d97953f24e3da59a15467c33fb4dcc59708be250046b6f15b1855b8e9a37b2089fd534432ce30c16a8b6226fd09368e9"),("Skein512_512","9997794dcf9564dfca22b203d82980842669ee409306b8f4015d3c05ad96ab929df5bc1cedac1763e762424290d8b24a73a68c4f63c03a3fd8958332dbc7ed3f")],11646),(fromList [("MD5","31b00b9e3327c58aa85c0d0421f0588e"),("SHA1","d5f6f18bde2954da93cf14f936ae68b627ed2818"),("SHA256","f714191d5e7f342c0504a77e7d9276a89ad585c0d9529a62b27c17a5901ecafb"),("SHA512","c5f1f29441fb69fb04c160f42522f438a7fce669961fc9e28b4f250d1708839c7fa8e001a7b84373a476a6ed5559914c1dbf468c8105dc52da597120519d45f1"),("Skein512_512","235482196c81457b1d22d8b8d881a3dd498383c6c2204ba104022fc53c8aa646ede98088394884cc0251c9c7710c79489abeba651f7963849b3ecf71745fb6c5")],11646))
    

    This is becoming more worrying for me, as Hackage has reported two different versions of the same packages to the Hackage mirror tool. (Pinging @hvr, who may be affected as well.) I'm not really sure what the right thing to do here is. It seems like the simplest is to delete the tarball from the S3 mirror and hope everything rights itself.

  11. minad commented on Mar 1, 2017

    @minad

    @snoyberg Ups, sorry! Maybe I should have waited a little longer or just have skipped this version.

  12. snoyberg commented on Mar 1, 2017

    @snoyberg
    Contributor

    @minad Were there actually differences in the two tarballs you uploaded?

  13. minad commented on Mar 1, 2017

    @minad

    I don't think so. I used "stack upload ." both times. Will this create different hashes each time? Maybe because of timestamps?

  14. snoyberg commented on Mar 1, 2017

    @snoyberg
    Contributor

    Yeah, it's probably timestamps. I'll confirm shortly...

  15. minad commented on Mar 1, 2017

    @minad

    Cool, thank you!

  16. 3 remaining items

  17. snoyberg commented on Mar 1, 2017

    @snoyberg
    Contributor

    Thanks @dcoutts, I can confirm that using hackage-origin solves the mismatched hash info (I must have gotten "original" and "new" confused in my previous comments). I've manually uploaded the correct version to our S3 mirror, hopefully that will suffice for the all-cabal-tool job to be satisfied.

  18. alanz commented on Mar 1, 2017

    @alanz

    The hackage move happened in the middle of the S3 outage, maybe that is where the CDN corruption came in

  19. snoyberg commented on Mar 1, 2017

    @snoyberg
    Contributor

    @alanz My understanding of things is that the CDN is caching the original version of the intro package, which was uploaded to the old server and not synced to the new server. When the new server came online, it had no record of that intro release, so a new release was accepted. That new release had a different checksum. As @dcoutts now demonstrated, Hackage is serving a matching 01-index.tar file and intro-0.1.0.9.tar.gz file (contrary to my claim above). My demonstration of mismatched checksums are due to the CDN holding onto the original intro-0.1.0.9.tar.gz file.

    tl;dr: I don't think the S3 outage has anything to do with this. The CDN isn't corrupt, it's just serving older content.

  20. joeyh commented on Mar 1, 2017

    @joeyh
  21. cgorski commented on Mar 1, 2017

    @cgorski

    Re-uploaded general-games under new minor version number 1.0.1

  22. dcoutts commented on Mar 1, 2017

    @dcoutts
    Contributor

    Ok, so:

    • intro-0.1.0.9 currently a mismatch between CDN and origin server, but origin server reports correct content
    • tasty-stats-0.2.0.2 still present with the expected content hashes
    • tasty-jenkins-xml-0.1.0.0 still missing
    • general-games-1.0.0 was missing, now uploaded under a new version number
    • git-annex-6.20170228 was missing, now uploaded under a new version number

    On the intro-0.1.0.9 mismatch issue, it is interesting to note that service for end users using hackage-security has not been affected because it automatically selects another mirror (you can see this with cabal fetch -v3). Obviously this does not help for the mirrors themselves, but these should be using the hackage-origin DNS name to bypass the CDN.

  23. sjakobi commented on Mar 2, 2017

    @sjakobi
    MemberAuthor

    Would you mind writing a post-mortem once the investigation is complete? I'm mostly interested in precisely how this went wrong and how you'll try to prevent it from happening again.

  24. cgorski commented on Mar 2, 2017

    @cgorski
  25. gbaz commented on Mar 2, 2017

    @gbaz
    Contributor

    From hvr's more complete list, also missing from that window was machines-amazonka. I'll make sure to inform the author (who doesn't seem to be on github). And that should cover it. Eeesh :-)

  26. theunixman commented on Mar 2, 2017

    @theunixman

    I'm reuploading machines-amazonka now, and I've got a GH account but rarely use it. Thanks!

  27. sjakobi commented on Mar 2, 2017

    @sjakobi
    MemberAuthor

    @gbaz

    From hvr's more complete list

    What are referring to here?

  28. gbaz commented on Mar 2, 2017

    @gbaz
    Contributor

    He had logs from matrix.hackage that included a single further package, and forwarded them to me offthread.

  29. sjakobi commented on Mar 2, 2017

    @sjakobi
    MemberAuthor

    He had logs from matrix.hackage that included a single further package, and forwarded them to me offthread.

    Ah, nice! Good to hear that hvr is active, I'd been wondering where he'd been.

  30. gbaz commented on Jul 14, 2017

    @gbaz
    Contributor

    The incident with this particular transition I think was resolved by the end of this thread. Going to close this ticket as part of cleaning things up.

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

Metadata

Metadata

Assignees

No one assigned

    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