You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Upgrading to 19.7.0 means can't bind anymore #1480
I bumped the gunicorn version number back to 19.7.0, deployed to check the breakage was still there, it was indeed broken, applied the patch, restarted the server and the port bind now works again.
Thank you, will bumb to 19.7.1 when it will be available.
On 25 April 2017 at 11:10:52, Ismael Barros² ***@***.***) wrote:
19.7.1 is still broken for me:
***@***.***:/var/www/service# .venv/bin/gunicorn wsgi -c ../gunicorn.conf.py
[2017-04-25 08:56:45 +0000] [1234] [INFO] Starting gunicorn 19.7.1
Traceback (most recent call last):
File "/var/www/service/.venv/lib/python3.5/site-packages/gunicorn/sock.py", line 44, in set_options
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
OSError: [Errno 92] Protocol not available
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1480 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAA4opi2owK8jn0i6mSP4cEPMuUppM--ks5rzbicgaJpZM4MZsIC>
.
Activity
lee-pai-long commentedon Mar 13, 2017
Adding to @hartym comment using --log-level debug I get the following:
tilgovi commentedon Mar 13, 2017
It's very hard to imagine why this would be. Are you positive that nothing else was bound on the port at that time?
tilgovi commentedon Mar 13, 2017
Hmm. It does seem you're binding to 0.0.0.0 now, when you used to be using 127.0.0.1. Does this make a difference?
tilgovi commentedon Mar 13, 2017
Oh, I see. Both logs are from 19.7.0.
lee-pai-long commentedon Mar 14, 2017
@tilgovi For my part I double checked, on the VM and try on another "empty" VM and the result is the same, in both case using 19.6 worked perfectly.
tilgovi commentedon Mar 14, 2017
I suspect this is due to SO_REUSEPORT issues.
We probably need to make a change like this one in thriftpy: Thriftpy/thriftpy#264
tilgovi commentedon Mar 14, 2017
Any chance you can test this?
The change would be in
gunicorn/sock.pyin theset_optionsmethod ofBaseSocketclass.Catch errors setting SO_REUSEPORT
tilgovi commentedon Mar 14, 2017
I've pushed a branch for this.
Catch errors setting SO_REUSEPORT
Catch errors setting SO_REUSEPORT
benoitc commentedon Mar 16, 2017
@hartym @lee-pai-long can you test it ? If OK we will bump a 0.17.1 .
tilgovi commentedon Mar 17, 2017
@hartym @lee-pai-long branch for testing is over at #1483.
hartym commentedon Mar 20, 2017
Woops, sorry i did not see the thread before. I'm going to see if I can pull something quickly to test the suggested change.
hartym commentedon Mar 20, 2017
Works for me.
I bumped the gunicorn version number back to 19.7.0, deployed to check the breakage was still there, it was indeed broken, applied the patch, restarted the server and the port bind now works again.
Thank you, will bumb to 19.7.1 when it will be available.
tilgovi commentedon Mar 21, 2017
19.7.1 should be available now
RazZziel commentedon Apr 25, 2017
19.7.1 is still broken for me:
benoitc commentedon Apr 25, 2017
petermorlion commentedon May 12, 2017
I can verify the master works for me (while 19.7.1 doesn't).
Catch errors setting SO_REUSEPORT