question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

login page stops working after a few days (error 500)

See original GitHub issue

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

HTTP/2 500 Internal Server Error
access-control-allow-headers: accept, content-type, authorization
content-security-policy: frame-ancestors 'self'; report-uri /hub/security/csp-report
content-type: text/html
date: Fri, 06 Nov 2020 09:02:59 GMT
server: TornadoServer/6.0.4
x-jupyterhub-version: 1.1.0
content-length: 0
X-Firefox-Spdy: h2

warning in browser terminal

The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. login

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

  • OS: Ubuntu 18.04.5 LTS
  • Version:

not sure how to check version but it should be a very recent one

2020-10-29 07:54:02,411 Checking if TLJH is already installed...
2020-10-29 07:54:02,412 TLJH already installed, upgrading...
2020-10-29 07:54:02,412 Upgrading TLJH installer...
2020-10-29 07:54:04,432 Upgraded pip
2020-10-29 07:54:07,848 Setup tljh package
2020-10-29 07:54:07,848 Starting TLJH installer...
2020-10-29 07:54:08,261 Setting up admin users
2020-10-29 07:54:08,275 Granting passwordless sudo to JupyterHub admins...
2020-10-29 07:54:08,275 Setting up user environment...
2020-10-29 07:54:37,971 Setting up JupyterHub...
2020-10-29 07:55:26,008 Waiting for JupyterHub to come up (1/20 tries)
2020-10-29 07:55:27,013 Waiting for JupyterHub to come up (2/20 tries)
  • Configuration:
sudo tljh-config show
users:
  admin:
  - xxx
auth:
  type: nativeauthenticator.NativeAuthenticator
  NativeAuthenticator:
    minimum_password_length: 6
    check_common_password: true
    allowed_failed_logins: 3
    seconds_before_next_try: 120
https:
  enabled: true
  letsencrypt:
    email: admin+jupyterhub@xxx.io
    domains:
    - xxx.com

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
lambdaTotorocommented, Apr 24, 2021

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.

1reaction
lambdaTotorocommented, Nov 18, 2020

Addendum: we have since released a new version of nativeauthenticator, this issue should trouble users no longer.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a 500 Internal Server Error? - Allconnect.com
A 500 Internal Server Error is an umbrella term for several issues often involving the server of the website you're trying to reach....
Read more >
How to Fix a 500 Internal Server Error - Lifewire
Clear your browser's cache. If there's a problem with the cached version of the page you're viewing, it could be causing HTTP 500...
Read more >
How to Fix a 500 Internal Server Error on Your WordPress Site
The most common issue is that your database login credentials are incorrect. Your WordPress site uses separate login information to connect to ...
Read more >
What Is a 500 Error & How to Fix It | Sucuri Blog
1. This is a good troubleshooting step. This is done before looking for more debugging on your site to confirm that the issue...
Read more >
How to Fix the 500 Internal Server Error on Your WordPress Site
Sometimes, even reloading the page can knock the internal server error away, so why not try the simplest solution first? A server can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found