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
/etc/hosts can prevent puma from starting #1022
Comments
Downgrading to 3.4.0 works as charm |
Oh geez. Ok, I’ll fix this asap and have 3.5.1 out. On Wed, Jul 20, 2016 at 2:46 AM Alexandr Kovtunov notifications@github.com
|
@AKovtunov i'm curious, what does your |
After that I was wondering the same too and cleared a bit my hosts file. But the error is still here, here is my basic hosts that were installed by ubuntu
|
Please reopen, the bugfix in 84fdc1b does not work if the addresses for localhost are To reproduce, put the following lines into your
|
Getting this error in 3.6.2, while running in Rails & Docker via
/etc/hosts:
Running with |
If you have both 127.0.0.0 and ::1 pointing to localhost, puma will try to bind to both and then fail. I'm not sure this is really a bug, it's doing exactly what it's supposed to do. Pointing ::1 to localhost is user error IMO, you should just not do that. LMK if there's some reason why you have to/must do this, otherwise I'm closing. |
@nateberkopec Just an FYI, that |
Oh alright. I'll reopen until I get a repro. I'm looking at this in #1318. |
If you'd like to reproduce the hosts file state via Docker, you can do that via |
Fixed in #1318 |
You have to modify /etc/hosts and remove localhost from the ipv6 line. |
@gcaracausi @nateberkopec Indeed, puma binding works when you remove the localhost entry from the ::1 line. Can easily be done with a dockerfile such as this:
|
After some coding got this error on running
rails s
:My environment is:
I've tried:
lsof -wni tcp:3000
returns me nothingpuma
instead ofrails s
- problem solvedRAILS_ENV=production bundle exec rails s
- problem solvedrails s -p 3001
- same problem, for other ports tooMonkey-patched https://github.com/puma/puma/blob/master/lib/puma/binder.rb and added pry.
Found that TCPServer.new is called few times with 127.0.0.1:3000
I think this commit broke something for my machine 9b1de10#diff-4fd9276d9f86d7f4827e6ca4ab6b82b8
And I think this is related to the #782
The text was updated successfully, but these errors were encountered: