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

500 error after installing tljh #164

Open
simonlindgren opened this Issue Aug 28, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@simonlindgren

simonlindgren commented Aug 28, 2018

After a successful install of tljh, I now ran into a 500 error when logging in in my browser. Any ideas?

@yuvipanda

This comment has been minimized.

Show comment
Hide comment
Member

yuvipanda commented Aug 28, 2018

@simonlindgren

This comment has been minimized.

Show comment
Hide comment
@simonlindgren

simonlindgren Aug 28, 2018

This is what I have:

Aug 28 20:57:16 digsum python3[2174]: [I 2018-08-28 20:57:16.614 JupyterHub proxy:301] Checking routes
Aug 28 21:02:16 digsum python3[2174]: [I 2018-08-28 21:02:16.614 JupyterHub proxy:301] Checking routes
Aug 28 21:07:16 digsum python3[2174]: [I 2018-08-28 21:07:16.577 JupyterHub proxy:301] Checking routes
Aug 28 21:07:41 digsum python3[2174]: [I 2018-08-28 21:07:41.440 JupyterHub log:158] 302 GET / -> /hub (@213.65.80.142) 1.64ms
Aug 28 21:12:16 digsum python3[2174]: [I 2018-08-28 21:12:16.614 JupyterHub proxy:301] Checking routes
Aug 28 21:16:05 digsum python3[2174]: [I 2018-08-28 21:16:05.554 JupyterHub log:158] 302 GET / -> /hub (@89.39.20.21) 1.40ms
Aug 28 21:17:16 digsum python3[2174]: [I 2018-08-28 21:17:16.579 JupyterHub proxy:301] Checking routes
Aug 28 21:19:47 digsum systemd[1]: /etc/systemd/system/jupyterhub.service:12: Failed to parse protect home value, ignoring: tmpfs
Aug 28 21:19:47 digsum systemd[1]: Stopping jupyterhub.service...
Aug 28 21:19:47 digsum python3[2174]: [C 2018-08-28 21:19:47.538 JupyterHub app:1923] Received SIGTERM, shutting down
Aug 28 21:19:47 digsum python3[2174]: Traceback (most recent call last):
Aug 28 21:19:47 digsum python3[2174]:   File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
Aug 28 21:19:47 digsum python3[2174]:     "__main__", mod_spec)
Aug 28 21:19:47 digsum python3[2174]:   File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
Aug 28 21:19:47 digsum python3[2174]:     exec(code, run_globals)
Aug 28 21:19:47 digsum python3[2174]:   File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/app.py", line 1973, in <module>
Aug 28 21:19:47 digsum python3[2174]:     main()
Aug 28 21:19:47 digsum python3[2174]:   File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/app.py", line 1962, in launch_instance
Aug 28 21:19:47 digsum python3[2174]:     loop.start()
Aug 28 21:19:47 digsum python3[2174]:   File "/opt/tljh/hub/lib/python3.6/site-packages/tornado/platform/asyncio.py", line 132, in start
Aug 28 21:19:47 digsum python3[2174]:     self.asyncio_loop.run_forever()
Aug 28 21:19:47 digsum python3[2174]:   File "/usr/lib/python3.6/asyncio/base_events.py", line 422, in run_forever
Aug 28 21:19:47 digsum python3[2174]:     self._run_once()
Aug 28 21:19:47 digsum python3[2174]:   File "/usr/lib/python3.6/asyncio/base_events.py", line 1396, in _run_once
Aug 28 21:19:47 digsum python3[2174]:     event_list = self._selector.select(timeout)
Aug 28 21:19:47 digsum python3[2174]:   File "/usr/lib/python3.6/selectors.py", line 445, in select
Aug 28 21:19:47 digsum python3[2174]:     fd_event_list = self._epoll.poll(timeout, max_ev)
Aug 28 21:19:47 digsum python3[2174]:   File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/app.py", line 1925, in sigterm
Aug 28 21:19:47 digsum python3[2174]:     self.atexit()
Aug 28 21:19:47 digsum python3[2174]:   File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/app.py", line 1938, in atexit
Aug 28 21:19:47 digsum python3[2174]:     loop.run_sync(self.cleanup)
Aug 28 21:19:47 digsum python3[2174]:   File "/opt/tljh/hub/lib/python3.6/site-packages/tornado/ioloop.py", line 571, in run_sync
Aug 28 21:19:47 digsum python3[2174]:     self.start()
Aug 28 21:19:47 digsum python3[2174]:   File "/opt/tljh/hub/lib/python3.6/site-packages/tornado/platform/asyncio.py", line 132, in start
Aug 28 21:19:47 digsum python3[2174]:     self.asyncio_loop.run_forever()
Aug 28 21:19:47 digsum python3[2174]:   File "/usr/lib/python3.6/asyncio/base_events.py", line 412, in run_forever
Aug 28 21:19:47 digsum python3[2174]:     'Cannot run the event loop while another loop is running')
Aug 28 21:19:47 digsum python3[2174]: RuntimeError: Cannot run the event loop while another loop is running
Aug 28 21:19:47 digsum systemd[1]: jupyterhub.service: Main process exited, code=exited, status=1/FAILURE
Aug 28 21:19:47 digsum systemd[1]: jupyterhub.service: Failed with result 'exit-code'.
Aug 28 21:19:47 digsum systemd[1]: Stopped jupyterhub.service.
Aug 28 21:19:47 digsum systemd[1]: Started jupyterhub.service.
Aug 28 21:19:47 digsum systemd[1]: Stopping jupyterhub.service...
Aug 28 21:19:47 digsum systemd[1]: Stopped jupyterhub.service.
Aug 28 21:19:47 digsum systemd[1]: Started jupyterhub.service.
Aug 28 21:19:47 digsum systemd[1]: /etc/systemd/system/jupyterhub.service:12: Failed to parse protect home value, ignoring: tmpfs
Aug 28 21:19:48 digsum python3[4675]: [I 2018-08-28 21:19:48.151 JupyterHub app:1667] Using Authenticator: firstuseauthenticator.firstuseauthenticator
Aug 28 21:19:48 digsum python3[4675]: [I 2018-08-28 21:19:48.151 JupyterHub app:1667] Using Spawner: builtins.CustomSpawner
Aug 28 21:19:48 digsum python3[4675]: [I 2018-08-28 21:19:48.152 JupyterHub app:1053] Writing cookie_secret to /opt/tljh/state/jupyterhub_cookie_secre
Aug 28 21:19:48 digsum python3[4675]: [I 2018-08-28 21:19:48.164 alembic.runtime.migration migration:117] Context impl SQLiteImpl.
Aug 28 21:19:48 digsum python3[4675]: [I 2018-08-28 21:19:48.165 alembic.runtime.migration migration:122] Will assume non-transactional DDL.
Aug 28 21:19:48 digsum systemd[1]: /etc/systemd/system/jupyterhub.service:12: Failed to parse protect home value, ignoring: tmpfs
Aug 28 21:19:48 digsum python3[4675]: [I 2018-08-28 21:19:48.255 alembic.runtime.migration migration:327] Running stamp_revision  -> 896818069c98
Aug 28 21:19:48 digsum systemd[1]: /etc/systemd/system/jupyterhub.service:12: Failed to parse protect home value, ignoring: tmpfs
Aug 28 21:21:00 digsum python3[4675]: Failed to start transient service unit: Unit jupyter-digsum.service already exists.

simonlindgren commented Aug 28, 2018

This is what I have:

Aug 28 20:57:16 digsum python3[2174]: [I 2018-08-28 20:57:16.614 JupyterHub proxy:301] Checking routes
Aug 28 21:02:16 digsum python3[2174]: [I 2018-08-28 21:02:16.614 JupyterHub proxy:301] Checking routes
Aug 28 21:07:16 digsum python3[2174]: [I 2018-08-28 21:07:16.577 JupyterHub proxy:301] Checking routes
Aug 28 21:07:41 digsum python3[2174]: [I 2018-08-28 21:07:41.440 JupyterHub log:158] 302 GET / -> /hub (@213.65.80.142) 1.64ms
Aug 28 21:12:16 digsum python3[2174]: [I 2018-08-28 21:12:16.614 JupyterHub proxy:301] Checking routes
Aug 28 21:16:05 digsum python3[2174]: [I 2018-08-28 21:16:05.554 JupyterHub log:158] 302 GET / -> /hub (@89.39.20.21) 1.40ms
Aug 28 21:17:16 digsum python3[2174]: [I 2018-08-28 21:17:16.579 JupyterHub proxy:301] Checking routes
Aug 28 21:19:47 digsum systemd[1]: /etc/systemd/system/jupyterhub.service:12: Failed to parse protect home value, ignoring: tmpfs
Aug 28 21:19:47 digsum systemd[1]: Stopping jupyterhub.service...
Aug 28 21:19:47 digsum python3[2174]: [C 2018-08-28 21:19:47.538 JupyterHub app:1923] Received SIGTERM, shutting down
Aug 28 21:19:47 digsum python3[2174]: Traceback (most recent call last):
Aug 28 21:19:47 digsum python3[2174]:   File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
Aug 28 21:19:47 digsum python3[2174]:     "__main__", mod_spec)
Aug 28 21:19:47 digsum python3[2174]:   File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
Aug 28 21:19:47 digsum python3[2174]:     exec(code, run_globals)
Aug 28 21:19:47 digsum python3[2174]:   File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/app.py", line 1973, in <module>
Aug 28 21:19:47 digsum python3[2174]:     main()
Aug 28 21:19:47 digsum python3[2174]:   File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/app.py", line 1962, in launch_instance
Aug 28 21:19:47 digsum python3[2174]:     loop.start()
Aug 28 21:19:47 digsum python3[2174]:   File "/opt/tljh/hub/lib/python3.6/site-packages/tornado/platform/asyncio.py", line 132, in start
Aug 28 21:19:47 digsum python3[2174]:     self.asyncio_loop.run_forever()
Aug 28 21:19:47 digsum python3[2174]:   File "/usr/lib/python3.6/asyncio/base_events.py", line 422, in run_forever
Aug 28 21:19:47 digsum python3[2174]:     self._run_once()
Aug 28 21:19:47 digsum python3[2174]:   File "/usr/lib/python3.6/asyncio/base_events.py", line 1396, in _run_once
Aug 28 21:19:47 digsum python3[2174]:     event_list = self._selector.select(timeout)
Aug 28 21:19:47 digsum python3[2174]:   File "/usr/lib/python3.6/selectors.py", line 445, in select
Aug 28 21:19:47 digsum python3[2174]:     fd_event_list = self._epoll.poll(timeout, max_ev)
Aug 28 21:19:47 digsum python3[2174]:   File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/app.py", line 1925, in sigterm
Aug 28 21:19:47 digsum python3[2174]:     self.atexit()
Aug 28 21:19:47 digsum python3[2174]:   File "/opt/tljh/hub/lib/python3.6/site-packages/jupyterhub/app.py", line 1938, in atexit
Aug 28 21:19:47 digsum python3[2174]:     loop.run_sync(self.cleanup)
Aug 28 21:19:47 digsum python3[2174]:   File "/opt/tljh/hub/lib/python3.6/site-packages/tornado/ioloop.py", line 571, in run_sync
Aug 28 21:19:47 digsum python3[2174]:     self.start()
Aug 28 21:19:47 digsum python3[2174]:   File "/opt/tljh/hub/lib/python3.6/site-packages/tornado/platform/asyncio.py", line 132, in start
Aug 28 21:19:47 digsum python3[2174]:     self.asyncio_loop.run_forever()
Aug 28 21:19:47 digsum python3[2174]:   File "/usr/lib/python3.6/asyncio/base_events.py", line 412, in run_forever
Aug 28 21:19:47 digsum python3[2174]:     'Cannot run the event loop while another loop is running')
Aug 28 21:19:47 digsum python3[2174]: RuntimeError: Cannot run the event loop while another loop is running
Aug 28 21:19:47 digsum systemd[1]: jupyterhub.service: Main process exited, code=exited, status=1/FAILURE
Aug 28 21:19:47 digsum systemd[1]: jupyterhub.service: Failed with result 'exit-code'.
Aug 28 21:19:47 digsum systemd[1]: Stopped jupyterhub.service.
Aug 28 21:19:47 digsum systemd[1]: Started jupyterhub.service.
Aug 28 21:19:47 digsum systemd[1]: Stopping jupyterhub.service...
Aug 28 21:19:47 digsum systemd[1]: Stopped jupyterhub.service.
Aug 28 21:19:47 digsum systemd[1]: Started jupyterhub.service.
Aug 28 21:19:47 digsum systemd[1]: /etc/systemd/system/jupyterhub.service:12: Failed to parse protect home value, ignoring: tmpfs
Aug 28 21:19:48 digsum python3[4675]: [I 2018-08-28 21:19:48.151 JupyterHub app:1667] Using Authenticator: firstuseauthenticator.firstuseauthenticator
Aug 28 21:19:48 digsum python3[4675]: [I 2018-08-28 21:19:48.151 JupyterHub app:1667] Using Spawner: builtins.CustomSpawner
Aug 28 21:19:48 digsum python3[4675]: [I 2018-08-28 21:19:48.152 JupyterHub app:1053] Writing cookie_secret to /opt/tljh/state/jupyterhub_cookie_secre
Aug 28 21:19:48 digsum python3[4675]: [I 2018-08-28 21:19:48.164 alembic.runtime.migration migration:117] Context impl SQLiteImpl.
Aug 28 21:19:48 digsum python3[4675]: [I 2018-08-28 21:19:48.165 alembic.runtime.migration migration:122] Will assume non-transactional DDL.
Aug 28 21:19:48 digsum systemd[1]: /etc/systemd/system/jupyterhub.service:12: Failed to parse protect home value, ignoring: tmpfs
Aug 28 21:19:48 digsum python3[4675]: [I 2018-08-28 21:19:48.255 alembic.runtime.migration migration:327] Running stamp_revision  -> 896818069c98
Aug 28 21:19:48 digsum systemd[1]: /etc/systemd/system/jupyterhub.service:12: Failed to parse protect home value, ignoring: tmpfs
Aug 28 21:21:00 digsum python3[4675]: Failed to start transient service unit: Unit jupyter-digsum.service already exists.
@yuvipanda

This comment has been minimized.

Show comment
Hide comment
@yuvipanda

yuvipanda Sep 5, 2018

Member

The last line there seems to imply the notebook service couldn't start. Can you find the logs of the user digsum (with sudo journalctl -u jupyter -digsum --no-pager) and show that here?

Apologies for the late response, recovering from JupyterCon :)

Member

yuvipanda commented Sep 5, 2018

The last line there seems to imply the notebook service couldn't start. Can you find the logs of the user digsum (with sudo journalctl -u jupyter -digsum --no-pager) and show that here?

Apologies for the late response, recovering from JupyterCon :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment