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.

TLJH does not automatically create home directories for new users on Ubuntu Server 18.10

See original GitHub issue

Once 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:closed
  • Created 5 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Mar 20, 2019

/etc/systemd/system/jupyterhub.service defines:

# jupyterhub process should have no access to home directories
ProtectHome=tmpfs

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!

0reactions
minrkcommented, Sep 19, 2019

closed by #435

Read more comments on GitHub >

github_iconTop 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 >

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