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
I think we've faced some strange behavior somewhere in Hue web server internals:
After couple of users logs in (the number is somewhere near 10), Hue server stops to respond on any request, until gunicorn master thread restart worker threads by timeout (configured by gunicorn_worker_timeout option).
I spend some time debugging this issue, and I wasn't be able to find any root cause here. What I've found is that it seems like something cause gunicorn connections to hang, but the problem here is that I don't see any exception that might cause this.
I observed this on Hue 4.11 with a default configuration. The only thing that I've changed is configured it to use PAM authentication, and got the reproduce with both MySQL and PostgreSQL databases.
Also, I've just reproduced the same problem on Hue build from the master branch from the bdeccbd commit.
And I changed gunicorn_worker_timeout value to 120 seconds to be able to reproduce this problem more quickly.
I will continue to investigate this, but it would be helpful to have some clues or directions if possible.
One small note to add: on Hue 4.11 this problem appears only on Python 3 build. On Python 2 build everything is fine.
Steps To Reproduce
Build Hue from master.
Configure Hue to use PAM auth and to use MySQL/PostgreSQL database to store its data (I'm not sure if those steps are required, but this is what I have on my setup).
Set gunicorn_worker_timeout to smaller value, like 120 seconds, to be able to reproduce this faster.
Open Hue in a browser anonymous window and log in, than repeat this step ~10 times.
I've created the following selenium script to automate this process:
Than I wait for those pages to load, maybe wait one more minute or try to create 2 new sessions, and after that I'm not able to open login page or anything at all until I see the following message in an error.log:
This issue is stale because it has been open 30 days with no activity and is not labeled "Prevent stale". Remove "stale" label or comment or this will be closed in 10 days.
It's strange that no one except me has faced this issue, as I got it on different Hue builds on different operating systems and different Hue configurations.
Is there an existing issue for this?
Description
I think we've faced some strange behavior somewhere in Hue web server internals:
After couple of users logs in (the number is somewhere near 10), Hue server stops to respond on any request, until gunicorn master thread restart worker threads by timeout (configured by
gunicorn_worker_timeout
option).I spend some time debugging this issue, and I wasn't be able to find any root cause here. What I've found is that it seems like something cause gunicorn connections to hang, but the problem here is that I don't see any exception that might cause this.
I observed this on Hue 4.11 with a default configuration. The only thing that I've changed is configured it to use PAM authentication, and got the reproduce with both MySQL and PostgreSQL databases.
Also, I've just reproduced the same problem on Hue build from the master branch from the bdeccbd commit.
And I changed
gunicorn_worker_timeout
value to 120 seconds to be able to reproduce this problem more quickly.I will continue to investigate this, but it would be helpful to have some clues or directions if possible.
One small note to add: on Hue 4.11 this problem appears only on Python 3 build. On Python 2 build everything is fine.
Steps To Reproduce
gunicorn_worker_timeout
to smaller value, like 120 seconds, to be able to reproduce this faster.I've created the following selenium script to automate this process:
Than Hue becomes ok, until 10 more users logs in.
Logs
No response
Hue version
4.11, master, bdeccbd
The text was updated successfully, but these errors were encountered: