jupyterhub / the-littlest-jupyterhub

Simple JupyterHub distribution for 1-100 users on a single server
https://tljh.jupyter.org
BSD 3-Clause "New" or "Revised" License
1.04k stars 341 forks source link

Restart TLJH Docker Container - no Web-Interface #702

Closed cablesky closed 3 years ago

cablesky commented 3 years ago

If i restart the TLJH-Docker-Container, i have no Access to the Web Interface. If i try the command python3 /srv/src/bootstrap/bootstrap.py --admin admin

i get the following error message. Setting up JupyterHub... Failed to connect to bus: No such file or directory Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/installer.py", line 442, in <module> main() File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/installer.py", line 431, in main ensure_jupyterhub_service(HUB_ENV_PREFIX) File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/installer.py", line 73, in ensure_jupyterhub_service systemd.reload_daemon() File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/systemd.py", line 19, in reload_daemon ], check=True) File "/usr/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['systemctl', 'daemon-reload']' returned non-zero exit status 1.

How can i restart TLJH, without deleting the Docker-Container?

welcome[bot] commented 3 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

jonasjancarik commented 3 years ago

Same issue here. Also there are no journal logs - maybe because the startup fails too early for any logs to be produced.

consideRatio commented 3 years ago

Is it correct that you attempt to run a TLJH installation within a docker container? You would need to make sure everything is mounted that is changed by TLJH.

We have opted to not yet support this, so I'll mark this as a wontfix issue for now. This relates to #684 though, as a clarification on this lack of support would be useful.