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
Address already in use error when attempting to bind to local SSL cert for 3.12.1 #1785
Comments
A bunch of things have collided here to cause this issue. Let's take a closer look at the output 🕵 Puma 3.12.0
And Puma 3.12.1
It turns out that the use of # Define the TCP port to bind to. Use +bind+ for more advanced options.
#
def port(port, host=nil)
host ||= default_host
bind "tcp://#{host}:#{port}"
end So your use of In #1699 Puma was changed to use the So on
So how do you fix this? You’ve a decent set of choices:
|
hmmm... I wonder if this is a Good Thing? I'm sure that's tripped up others too. |
Thanks @dannyfallon for the information. I'll give it go but it won't be for a while because puma is not critical to the success of the project in which we're using it. We're using puma only for local development purposes, and, so, 3.12.0 fits our needs. |
Yep, I was surprised by this. It's a bit spooky that |
You just have to kill the puma process that is using the port. |
This code will automate the process of fixing it for you https://github.com/pailoro/rails_server_killer |
Steps to reproduce
Upgrade puma gem from
3.12.0
to3.12.1
Run
rails server
Receive error:
Expected behavior
I expected to see the following output, as I do with
3.12.0
(well, with the correct version text):Actual behavior
However, with
3.12.1
I get a stack trace:System configuration
Ruby version: 2.5.3
Rails version: 5.2.3
Puma version: 3.12.1
config/puma.rb
The text was updated successfully, but these errors were encountered: