-
Notifications
You must be signed in to change notification settings - Fork 339
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
login page stops working after a few days (error 500) #631
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
fund something in the logs tail -n 50 hub-log
Nov 10 21:02:49 abc-hub2 python3[26737]: File "/opt/tljh/hub/lib/python3.6/site-packages/jinja2/loaders.py", line 426, in load
Nov 10 21:02:49 abc-hub2 python3[26737]: return loader.load(environment, name, globals)
Nov 10 21:02:49 abc-hub2 python3[26737]: File "/opt/tljh/hub/lib/python3.6/site-packages/jinja2/loaders.py", line 426, in load
Nov 10 21:02:49 abc-hub2 python3[26737]: return loader.load(environment, name, globals)
Nov 10 21:02:49 abc-hub2 python3[26737]: File "/opt/tljh/hub/lib/python3.6/site-packages/jinja2/loaders.py", line 426, in load
Nov 10 21:02:49 abc-hub2 python3[26737]: return loader.load(environment, name, globals)
Nov 10 21:02:49 abc-hub2 python3[26737]: [Previous line repeated 980 more times]
Nov 10 21:02:49 abc-hub2 python3[26737]: RecursionError: maximum recursion depth exceeded
Nov 10 21:02:49 abc-hub2 python3[26737]:
Nov 10 21:02:49 abc-hub2 python3[26737]: [E 2020-11-10 21:02:49.412 JupyterHub web:1220] Uncaught exception in write_error
Nov 10 21:02:49 abc-hub2 python3[26737]: Traceback (most recent call last):
Nov 10 21:02:49 abc-hub2 python3[26737]: File "/opt/tljh/hub/lib/python3.6/site-packages/tornado/web.py", line 1218, in send_error
Nov 10 21:02:49 abc-hub2 python3[26737]: self.write_error(status_code, **kwargs)
Nov 10 21:02:49 abc-hub2 python3[26737]: File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/handlers/base.py", line 1195, in write_error
Nov 10 21:02:49 abc-hub2 python3[26737]: html = self.render_template('%s.html' % status_code, **ns)
Nov 10 21:02:49 abc-hub2 python3[26737]: File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/handlers/base.py", line 1119, in render_template
Nov 10 21:02:49 abc-hub2 python3[26737]: template = self.get_template(name)
Nov 10 21:02:49 abc-hub2 python3[26737]: File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/handlers/base.py", line 1113, in get_template
Nov 10 21:02:49 abc-hub2 python3[26737]: return self.settings['jinja2_env'].get_template(name)
Nov 10 21:02:49 abc-hub2 python3[26737]: File "/opt/tljh/hub/lib/python3.6/site-packages/jinja2/environment.py", line 883, in get_template
Nov 10 21:02:49 abc-hub2 python3[26737]: return self._load_template(name, self.make_globals(globals))
Nov 10 21:02:49 abc-hub2 python3[26737]: File "/opt/tljh/hub/lib/python3.6/site-packages/jinja2/environment.py", line 857, in _load_template
Nov 10 21:02:49 abc-hub2 python3[26737]: template = self.loader.load(self, name, globals)
Nov 10 21:02:49 abc-hub2 python3[26737]: File "/opt/tljh/hub/lib/python3.6/site-packages/jinja2/loaders.py", line 426, in load
Nov 10 21:02:49 abc-hub2 python3[26737]: return loader.load(environment, name, globals)
Nov 10 21:02:49 abc-hub2 python3[26737]: File "/opt/tljh/hub/lib/python3.6/site-packages/jinja2/loaders.py", line 426, in load
Nov 10 21:02:49 abc-hub2 python3[26737]: return loader.load(environment, name, globals)
Nov 10 21:02:49 abc-hub2 python3[26737]: File "/opt/tljh/hub/lib/python3.6/site-packages/jinja2/loaders.py", line 426, in load
Nov 10 21:02:49 abc-hub2 python3[26737]: return loader.load(environment, name, globals)
Nov 10 21:02:49 abc-hub2 python3[26737]: [Previous line repeated 975 more times]
Nov 10 21:02:49 abc-hub2 python3[26737]: RecursionError: maximum recursion depth exceeded
Nov 10 21:02:49 abc-hub2 python3[26737]:
Nov 10 21:02:49 abc-hub2 python3[26737]: [E 2020-11-10 21:02:49.423 JupyterHub log:166] {
Nov 10 21:02:49 abc-hub2 python3[26737]: "Host": "abc-hub.mydomain.com",
Nov 10 21:02:49 abc-hub2 python3[26737]: "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0",
Nov 10 21:02:49 abc-hub2 python3[26737]: "Accept": "application/json, text/javascript, */*; q=0.01",
Nov 10 21:02:49 abc-hub2 python3[26737]: "Accept-Encoding": "gzip, deflate, br",
Nov 10 21:02:49 abc-hub2 python3[26737]: "Accept-Language": "de,en-US;q=0.7,en;q=0.3",
Nov 10 21:02:49 abc-hub2 python3[26737]: "Cookie": "_xsrf=[secret]; jupyterhub-session-id=[secret]",
Nov 10 21:02:49 abc-hub2 python3[26737]: "Referer": "https://abc-hub.mydomain.com/user/user.name@xxx.abc.de/notebooks/ets-vorbereitung.ipynb",
Nov 10 21:02:49 abc-hub2 python3[26737]: "Te": "trailers",
Nov 10 21:02:49 abc-hub2 python3[26737]: "X-Forwarded-For": "79.209.48.248",
Nov 10 21:02:49 abc-hub2 python3[26737]: "X-Forwarded-Host": "abc-hub.mydomain.com",
Nov 10 21:02:49 abc-hub2 python3[26737]: "X-Forwarded-Port": "443",
Nov 10 21:02:49 abc-hub2 python3[26737]: "X-Forwarded-Proto": "https",
Nov 10 21:02:49 abc-hub2 python3[26737]: "X-Forwarded-Server": "abc-hub2",
Nov 10 21:02:49 abc-hub2 python3[26737]: "X-Real-Ip": "79.209.48.248",
Nov 10 21:02:49 abc-hub2 python3[26737]: "X-Requested-With": "XMLHttpRequest"
Nov 10 21:02:49 abc-hub2 python3[26737]: }
Nov 10 21:02:49 ihk-hub2 python3[26737]: [E 2020-11-10 21:02:49.423 JupyterHub log:174] 500 GET /hub/login?next=%2Fhub%2Fuser%2Fruser.namek%40city.aaa.de%2Fmetrics (@79.209.48.248) 20.78ms |
Removing auth:
type: nativeauthenticator.NativeAuthenticator
NativeAuthenticator:
minimum_password_length: 6
check_common_password: true
allowed_failed_logins: 3
seconds_before_next_try: 120 from the config seemed to resolve the issue. I'm not sure why this is the case. |
From a glance, that looks like nativeauthenticator/#114 which was closed two weeks ago by nativeauthenticator/#115. I don't think it's related to nativeauthenticator/#105, that something entirely different. Are you using the current master version of NativeAuthenticator or an older version? |
@lambdaTotoro thanks for the feedback, I'm using the latest version on pypi. jsonschema==3.2.0
jupyter-telemetry==0.1.0
jupyterhub==1.1.0
jupyterhub-dummyauthenticator==0.3.1
jupyterhub-firstuseauthenticator==0.14.1
jupyterhub-idle-culler==1.0
jupyterhub-ldapauthenticator==1.3.0
**jupyterhub-nativeauthenticator==0.0.5**
jupyterhub-systemdspawner==0.14
jupyterhub-tmpauthenticator==0.6
jupyterhub-traefik-proxy==0.1.6 |
Yeah, the current pypi version doesn't have the fix yet. I recommend to switch to git or wait until the next version releases. We currently have an issue that talks about that. |
@lambdaTotoro Ok I'll wait till the next release but please note that this issue is really severe if it affects all recent pip installs. What makes this so tricky is that the issue only starts delayed and it's really hard to know where the problem comes from even when locking at logs etc. I only realized that Closing since this is not caused by tljh. |
Addendum: we have since released a new version of |
Hello, I've recently updated tljh, but it seems I've this exactly issue: [E 2021-04-23 08:26:26.267 JupyterHub web:1220] Uncaught exception in write_error |
Can you confirm which version of |
@lambdaTotoro unfortunately I wasn't able to check the version. I installed last version of tljh got by curl, while pip -list gives me: jupyter-client 6.1.12 How can I check it? |
It seems like the current version of TLJH requires exactly nativeauthenticator 0.0.5 for some reason. That is a version before the bug got fixed. I recommend upgrading your nativeauthenticator package. |
Either this has changed or I was wrong before:
Obviously it's very unfortunate if its pinned to a buggy version. Do you see a downside to bumping the pinned dep version? |
@lambdaTotoro I can't see nativeauthenticator among installed packages... |
@ibayer @toccalenuvole73 |
@lambdaTotoro nothing... |
@toccalenuvole73 |
find . -name nativeauthenticator what should I do? thank you |
I can't tell you, @toccalenuvole73, I have never deployed tljh. If you don't know, open another issue at an appropriate place, don't keep commenting here. |
This issue has been mentioned on Jupyter Community Forum. There might be relevant details there: https://discourse.jupyter.org/t/upgrade-nativeauthenticator-in-tljh/8901/1 |
Bug description
After a few days without issues https://xxx.com/hub/login returns a blank page.
GET: https://xxx.com/hub/login returns 500 Internal Server Error
Response Headers
warning in browser terminal
Note 1
still works for logged in user https://xxx.com/user/my-user/tree?
Note 2
The issue can be temporally fixed by restarting traefik
sudo tljh-config reload proxy
Expected behaviour
jupyterhub stays available
Actual behaviour
jupyterhub stops serving the login page after a few days
How to reproduce
I don't know how to reproduce this. I checked the logs but couldn't find something telling.
Please let me know what other infos I can provide.
Your personal set up
Ubuntu 18.04.5 LTS
not sure how to check version but it should be a very recent one
The text was updated successfully, but these errors were encountered: