Error 500 after authentication
See original GitHub issueHi, I configured the LDAP auth and that seems to be ok but after login I’ve got a crash:
[I 2018-04-04 08:02:58.321 JupyterHub log:122] 200 GET /hub/login (@172.29.0.1) 27.27ms
[I 2018-04-04 08:03:08.584 JupyterHub base:346] User logged in: pafer
[E 2018-04-04 08:03:08.642 JupyterHub user:427] Unhandled error starting pafer's server: 'getpwnam(): name not found: pafer'
[E 2018-04-04 08:03:08.664 JupyterHub web:1621] Uncaught exception POST /hub/login?next= (172.29.0.1)
HTTPServerRequest(protocol='http', host='172.29.0.2:8000', method='POST', uri='/hub/login?next=', version='HTTP/1.1', remote_ip='172.29.0.1')
Traceback (most recent call last):
File "/opt/workdir/.venv/lib64/python3.6/site-packages/tornado/web.py", line 1543, in _execute
result = yield result
File "/opt/workdir/.venv/lib64/python3.6/site-packages/jupyterhub/handlers/login.py", line 94, in post
yield self.spawn_single_user(user)
File "/opt/workdir/.venv/lib64/python3.6/site-packages/jupyterhub/handlers/base.py", line 475, in spawn_single_user
yield gen.with_timeout(timedelta(seconds=self.slow_spawn_timeout), finish_spawn_future)
File "/opt/workdir/.venv/lib64/python3.6/site-packages/jupyterhub/handlers/base.py", line 445, in finish_user_spawn
yield spawn_future
File "/opt/workdir/.venv/lib64/python3.6/site-packages/jupyterhub/user.py", line 439, in spawn
raise e
File "/opt/workdir/.venv/lib64/python3.6/site-packages/jupyterhub/user.py", line 378, in spawn
ip_port = yield gen.with_timeout(timedelta(seconds=spawner.start_timeout), f)
File "/usr/lib64/python3.6/types.py", line 248, in wrapped
coro = func(*args, **kwargs)
File "/opt/workdir/.venv/lib64/python3.6/site-packages/jupyterhub/spawner.py", line 968, in start
env = self.get_env()
File "/opt/workdir/.venv/lib64/python3.6/site-packages/jupyterhub/spawner.py", line 960, in get_env
env = self.user_env(env)
File "/opt/workdir/.venv/lib64/python3.6/site-packages/jupyterhub/spawner.py", line 947, in user_env
home = pwd.getpwnam(self.user.name).pw_dir
KeyError: 'getpwnam(): name not found: pafer'
Any explanation to help me to fix this ?
Thanks a lot !
Issue Analytics
- State:
- Created 5 years ago
- Comments:11
Top Results From Across the Web
apache - basic authentication error 500 - Stack Overflow
Then you're looking in the wrong log or something is misconfigured. A 500 error must create a log entry somewhere. (The error is...
Read more >How to Fix HTTP ERROR 500 in ECP/EAC after Login
Summary: HTTP ERROR 500 in Exchange is displayed when the server rejects the request to establish a connection with the Exchange Server.
Read more >HTTP 500 Internal Server Error: What It Means & How to Fix It
A 500 internal server error is, as the name implies, a general problem with the website's server. More than likely, this means there's...
Read more >500 Internal Server Error - HTTP - MDN Web Docs - Mozilla
This error response is a generic "catch-all" response. Usually, this indicates the server cannot find a better 5xx error code to response.
Read more >500 Internal Server Error [Complete Guide on How to Fix It]
How to fix HTTP error 500 if you are a website user? · Reload the webpage. The 500 Server mistake can be a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yep, that was the missing conf. Now I get a new error, but it’s not ldap. Thank’s @dhirschfeld
I see the same thing - but with a different error. Python 3.6, CentOS 7.5, up to date. Note that prompt-toolkit is not up to date because I’m seeing the same issue everyone else is - prompt-toolkit v 2 is broken.
My config looks like:
and