Skip to content

Superset 4.1.4 and gevent error #34901

@thegareth

Description

@thegareth

Bug description

We deploy the release version superset, and this morning we’d had an outage: Web interface was running but wouldn’t query anything.

The logs included reference to:

  File "/home/ec2-user/venv/lib64/python3.9/site-packages/urllib3/connectionpool.py", line 206, in __init__
    self.pool = self.QueueCls(maxsize)
  File "src/gevent/queue.py", line 513, in gevent._gevent_cqueue.Queue.__init__
  File "src/gevent/queue.py", line 193, in gevent._gevent_cqueue.SimpleQueue.__init__
  File "/home/ec2-user/venv/lib64/python3.9/site-packages/urllib3/util/queue.py", line 13, in _init
    self.queue = collections.deque()
AttributeError: attribute 'queue' of 'gevent._gevent_cqueue.SimpleQueue' objects is not writable

This led me to finding: miguelgrinberg/python-engineio#403

And I fixed it by by adding to the system.d service file:

Environment=GEVENT_MONKEY_DISABLE_QUEUE_QUEUE=true

Dunno if it’s strictly a Superset issue, but wanted to share in case anyone else encounters it.

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

  File "/home/ec2-user/venv/lib64/python3.9/site-packages/urllib3/connectionpool.py", line 206, in __init__
    self.pool = self.QueueCls(maxsize)
  File "src/gevent/queue.py", line 513, in gevent._gevent_cqueue.Queue.__init__
  File "src/gevent/queue.py", line 193, in gevent._gevent_cqueue.SimpleQueue.__init__
  File "/home/ec2-user/venv/lib64/python3.9/site-packages/urllib3/util/queue.py", line 13, in _init
    self.queue = collections.deque()
AttributeError: attribute 'queue' of 'gevent._gevent_cqueue.SimpleQueue' objects is not writable

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

Labels

infraNamespace | Anything related to infrastructure

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions