pyenv / pyenv-installer

This tool is used to install `pyenv` and friends.
MIT License
3.96k stars 428 forks source link

pyenv.run Connection Refused, direct link works #152

Closed hyperknot closed 9 months ago

hyperknot commented 9 months ago

I just wanted to report that I repeatedly get Connection Refused for pyenv.run.

Going into this repo and reading that it's equivalent to:

curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

saved the day, as it works 100% reliably.

I recommend removing that wrapper and using the direct link both here and in the pyenv repo. It saves a few characters but introduces random downtimes.

robnagler commented 9 months ago

@hyperknot Thanks for reporting. Do you have a date/time when this occurred? The server is not overloaded, and there are enough connections so it shouldn't be refusing connections.

hyperknot commented 9 months ago

Right now. I'm quite sure it's some rate limit or similar, but I only had 2 trials:

That 30 seconds seems to have triggered a full IP ban for me. But it works now, even if I refresh it a few times.

robnagler commented 9 months ago

Thanks. That's great to know. Connection refused would be unusual from our server. pyenv.run's server doesn't rate limit https. It's serving only, small static files so it's not busy at all. The only reason for a connection refused would be a service/server restart, which hasn't happened in days.

From your description, I would guess this was some rate limiting on your server (or CI?).

I'm going to close this for now, but let us know if you see other problems. Again, thanks for reporting.

hyperknot commented 9 months ago

No, it was a local virtual machine where I was testing, and I only run the command 2-3 times, not more.