crates.io icon indicating copy to clipboard operation
crates.io copied to clipboard

Bad gateway error when wanting to remove access for a team

Open est31 opened this issue 8 years ago • 4 comments

I was trying to remove access for a team, then I got an error:

$ cargo owner --remove github:rustaudio:owners
    Updating registry `https://github.com/rust-lang/crates.io-index`
       Owner removing ["github:rustaudio:owners"] from crate deepspeech-sys
error: failed to remove owners from crate deepspeech-sys: failed to get a 200 OK response, got 502
headers:
    HTTP/1.1 100 Continue

    

    HTTP/1.1 502 Bad Gateway

    Connection: keep-alive

    Server: nginx

    Date: Fri, 15 Dec 2017 04:48:51 GMT

    Content-Type: text/html

    Content-Length: 166

    Strict-Transport-Security: max-age=31536000

    Via: 1.1 vegur

    

body:
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>

I'm both member of the team as well as owner of the crate.

est31 avatar Dec 15 '17 04:12 est31

Strange. Because this is coming from nginx, I don't think the request is even getting to crates.io's logic around teams/members/owners.

I'm not able to reproduce. I see several 502s in the logs for deepspeech and deepspeeech-sys around when you posted this issue. I'm suspecting a transient network error, are you still able to reproduce consistently?

carols10cents avatar Dec 15 '17 17:12 carols10cents

@carols10cents I was changing the team name from owners to cratesio-push and adding the cratesio-push team worked, but removing the owners team gave an error. Just now I've tried again and I'm still able to reproduce, so the error is consistent.

est31 avatar Dec 15 '17 19:12 est31

It seems the issue is not concentrated to removing access. Apparently yanking is affected as well! @centril just tried to yank something and got a 502 Bad Gateway too. The cratename is proptest-quickcheck-interop if you want to troubleshoot it in the logs.

est31 avatar Dec 16 '17 21:12 est31

Yup, I got:

D:\programming\proptest\proptest-quickcheck-interop (master)
λ cargo yank --vers 1.0.0
    Updating registry `https://github.com/rust-lang/crates.io-index`
        Yank proptest-quickcheck-interop:1.0.0
error: failed to yank: failed to get a 200 OK response, got 502
headers:
    HTTP/1.1 502 Bad Gateway

    Connection: keep-alive

    Server: nginx

    Date: Sat, 16 Dec 2017 20:44:44 GMT

    Content-Type: text/html

    Content-Length: 166

    Strict-Transport-Security: max-age=31536000

    Via: 1.1 vegur



body:
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>

Centril avatar Dec 16 '17 21:12 Centril