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

cache.zw3rk.com status? #1804

Closed
dhess opened this issue Dec 5, 2022 · 11 comments
Closed

cache.zw3rk.com status? #1804

dhess opened this issue Dec 5, 2022 · 11 comments

Comments

@dhess
Copy link
Contributor

dhess commented Dec 5, 2022

As far as I know, cache.zw3rk.com is only semi-official, but it's been down for the past 3 days or so:

warning: error: unable to download 'https://cache.zw3rk.com/48l8knzjvx78z3g21n2bjrsz14aiksbr.narinfo': HTTP error 502

       response body:

       <html>
       <head><title>502 Bad Gateway</title></head>
       <body>
       <center><h1>502 Bad Gateway</h1></center>
       <hr><center>nginx</center>
       </body>
       </html>; retrying in 258 ms

Is it coming back, or has it been retired?

@amy-keibler
Copy link

amy-keibler commented Dec 5, 2022

I created a flake using the documentation and I'm currently experiencing the error

warning: error: unable to download 'https://hydra.iohk.io/hblxd27ml6q08m9rv43drzn6cp0wfana.narinfo': Timeout was reached (28); retrying in 526 ms
[0/1 built] querying haskell-project-plan-to-nix-pkgs on https://hydra.iohk.io

which might be related? Apologies if not, I'm not super familiar with that cache, but my suspicion is that the cache is 502-ing because the main site is down.

Looks like the substituters value changed in the documentation to https://cache.iog.io and I missed that from the last time I'd used this project. It might be related to the 502 you're experiencing, but updating my nix.conf fixed the issue for me.

@ocharles
Copy link
Contributor

ocharles commented Dec 5, 2022

@amy-keibler Use https://cache.iog.io instead

@dhess
Copy link
Contributor Author

dhess commented Dec 5, 2022

Yeah, we've been using cache.iog.io since August, but as far as I know, it doesn't include aarch64-darwin derivations, which cache.zw3rk.com does.

@angerman
Copy link
Collaborator

angerman commented Dec 6, 2022

@dhess yea, that one query is in fact busted :(

Dec 06 05:01:25 nix-serve-start[2622]: 127.0.0.1 - - [06/Dec/2022:05:01:25 +0000] "GET /48l8knzjvx78z3g21n2bjrsz14aiksbr.narinfo HTTP/1.0" 200 27572 "" "curl/7.86.0"
Dec 06 05:01:25 nix-serve-start[2622]: toBufIOWith: BufferFull: minSize
Dec 06 05:01:25 nix-serve-start[2622]: CallStack (from HasCallStack):
Dec 06 05:01:25 nix-serve-start[2622]:   error, called at ./Network/Wai/Handler/Warp/IO.hs:23:36 in warp-3.3.21-Fi06NMufirnA6UXRcnfV9n:Network.Wai.Handler.Warp.IO

this one on the other hand does work

curl https://cache.zw3rk.com/ynhsaac6jyibp0drvanfq975314nx4gq.narinfo                                                          ~
StorePath: /nix/store/ynhsaac6jyibp0drvanfq975314nx4gq-HUnit-lib-HUnit-1.6.2.0-data
URL: nar/ynhsaac6jyibp0drvanfq975314nx4gq-0ns9i6ys3ym3rxfkspnx5lr99jxdbm7x916dzfxp3m4xqilvikkb.nar
Compression: none
NarHash: sha256:0ns9i6ys3ym3rxfkspnx5lr99jxdbm7x916dzfxp3m4xqilvikkb
NarSize: 2672
Deriver: kxasrw9yyn0lgc8pkaqsmrcngzanvqp5-HUnit-lib-HUnit-1.6.2.0.drv
Sig: loony-tools:S5X6C3qf3Two74bSLxdqJ3dRdPokgyFAp9LTldgrE4uWbvpDKPMx6D8ujy27xiyWgjvsKY64ztweaE66u1R7AQ==

I'll try to figure out what's going on there :-/ And yes it's the unofficial cache. It's populated from ci.zw3rk.com which has aarch64-darwin and aarch64-linux runners.

@angerman
Copy link
Collaborator

angerman commented Dec 6, 2022

I think it's this one; aristanetworks/nix-serve-ng#19

@dhess
Copy link
Contributor Author

dhess commented Dec 6, 2022

@angerman Thanks, I'm glad it's just the one query (as far as we know), and not the cache having gone away :) It's very useful for us and I thank you for maintaining it.

I will close this issue as it's not really relevant to the project.

@dhess dhess closed this as completed Dec 6, 2022
@angerman
Copy link
Collaborator

angerman commented Dec 7, 2022

@dhess happy to help. I'll try to see if I can figure out what's broken with nix-serve-ng in this instance. It's already a massive improvement over the stock nix-serve (which kept timing out all the time with target stores 😱).

@angerman
Copy link
Collaborator

angerman commented Dec 7, 2022

Should be fixed.

@dhess
Copy link
Contributor Author

dhess commented Dec 7, 2022

Looks good on my end, thank you!

@angerman
Copy link
Collaborator

angerman commented Dec 8, 2022

Great! Thanks for pointing this out and putting pressure on fixing it!

@cumber
Copy link

cumber commented Mar 2, 2023

Possibly something similar happening again? The cache itself seems to be up, but some queries fail:

error: unable to download 'https://cache.zw3rk.com/8pjwr1y6pyqlkw7ws3hjgbg7576z5b9d.narinfo': HTTP error 502

       response body:

       <html>
       <head><title>502 Bad Gateway</title></head>
       <body>
       <center><h1>502 Bad Gateway</h1></center>
       <hr><center>nginx</center>
       </body>
       </html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants