Skip to content
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

OSError: [Errno 92] Protocol not available #3002

Closed
toncek87 opened this issue Jun 20, 2017 · 4 comments · Fixed by #4906
Closed

OSError: [Errno 92] Protocol not available #3002

toncek87 opened this issue Jun 20, 2017 · 4 comments · Fixed by #4906

Comments

@toncek87
Copy link

Maybe it is dummy question, but If i run: superset runserver without parameter -d there is error

`Starting server with command: gunicorn -w 2 --timeout 60 -b 0.0.0.0:8088 --limit-request-line 0 --limit-request-field_size 0 superset:app
[2017-06-20 15:00:03 +0200] [7258] [INFO] Starting gunicorn 19.7.1
Traceback (most recent call last):
File "/virtual/superset-test/lib/python3.4/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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/virtual/superset-test/bin/gunicorn", line 11, in
sys.exit(run())
File "/virtual/superset-test/lib/python3.4/site-packages/gunicorn/app/wsgiapp.py", line 74, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File "/virtual/superset-test/lib/python3.4/site-packages/gunicorn/app/base.py", line 203, in run
super(Application, self).run()
File "/virtual/superset-test/lib/python3.4/site-packages/gunicorn/app/base.py", line 72, in run
Arbiter(self).run()
File "/virtual/superset-test/lib/python3.4/site-packages/gunicorn/arbiter.py", line 198, in run
self.start()
File "/virtual/superset-test/lib/python3.4/site-packages/gunicorn/arbiter.py", line 157, in start
self.LISTENERS = sock.create_sockets(self.cfg, self.log, fds)
File "/virtual/superset-test/lib/python3.4/site-packages/gunicorn/sock.py", line 180, in create_sockets
sock = sock_type(addr, conf, log)
File "/virtual/superset-test/lib/python3.4/site-packages/gunicorn/sock.py", line 32, in init
self.sock = self.set_options(sock, bound=bound)
File "/virtual/superset-test/lib/python3.4/site-packages/gunicorn/sock.py", line 89, in set_options
return super(TCPSocket, self).set_options(sock, bound=bound)
File "/virtual/superset-test/lib/python3.4/site-packages/gunicorn/sock.py", line 46, in set_options
if err[0] not in (errno.ENOPROTOOPT, errno.EINVAL):
TypeError: 'OSError' object is not subscriptable`

If i run: superset runserver -d superset works... what is wrong?

@xrmx
Copy link
Contributor

xrmx commented Jun 20, 2017

What operating system / environment is this?

@xrmx
Copy link
Contributor

xrmx commented Jun 20, 2017

Anyway this looks like benoitc/gunicorn#1501

@toncek87
Copy link
Author

benoitc/gunicorn#1501 - it works

@xrmx
Copy link
Contributor

xrmx commented Jun 21, 2017

Closing then

@xrmx xrmx closed this as completed Jun 21, 2017
xrmx added a commit to xrmx/superset that referenced this issue Apr 29, 2018
michellethomas pushed a commit to michellethomas/panoramix that referenced this issue May 24, 2018
timifasubaa pushed a commit to timifasubaa/incubator-superset that referenced this issue May 31, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this issue Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants