TLJH does not automatically create home directories for new users on Ubuntu Server 18.10
See original GitHub issueOnce tljh was up and running (after I changed the installer locally to use a newer node version), I couldn’t start any notebooks, because the spawner process would time out. I have looked into the logging and came upon the following:
sudo journalctl -u jupyter-testuser:
Nov 22 12:09:20 blockchainlab systemd[1]: Started /bin/bash -c cd /home/jupyter-testuser && exec jupyterhub-singleuser --port=36531.
Nov 22 12:09:20 blockchainlab systemd[20897]: jupyter-testuser.service: Changing to the requested working directory failed: No such file or directory
Nov 22 12:09:20 blockchainlab systemd[20897]: jupyter-testuser.service: Failed at step CHDIR spawning /bin/bash: No such file or directory
Nov 22 12:09:20 blockchainlab systemd[1]: jupyter-testuser.service: Main process exited, code=exited, status=200/CHDIR
Nov 22 12:09:20 blockchainlab systemd[1]: jupyter-testuser.service: Failed with result 'exit-code'.
I have manually created a home directory for the user, assigned the proper permissions and then restarted the service. After doing so I was able to launch a Python 3 notebook.
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (4 by maintainers)
Top Results From Across the Web
Home directory not being created - Ask Ubuntu
-d, --home HOME_DIR The new user will be created using HOME_DIR as the value for the user's login directory. The default is to...
Read more >Why is the home directory not created when I create a new user?
Finally I found how to do this myself: useradd -m -d /home/testuser/ -s /bin/bash -G sudo testuser. -m creates the home directory if...
Read more >Can I setup JupyterHub (TLJH) to use preexisting Linux user ...
The issue I'm having now is that after setting up TLJH on the same server, I can't login as test_user by default! If...
Read more >The littlest jupyterhub file storage question
I've installed TLJH on a server with multiple drives; TLJH was installed on the system drive. How do I arrange things so that...
Read more >jupyterhub (多用户平台)安装配置、安装问题解决 - CSDN博客
If this many user servers are active, users will not be able to launch ... JupyterHub will automatically create the necessary certificate ...
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
/etc/systemd/system/jupyterhub.service
defines:Comment that out. The wisdom of that setting and the requirement for users to be created will need to be resolved by developers with more experience of jupyter than I though!
closed by #435