-
Notifications
You must be signed in to change notification settings - Fork 340
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
TLJH Bootstrap depends on umask set to 022 for successful install #946
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
Did you install on your own server or in 'the cloud'? |
I installed on an EC2 instance with a Ubuntu 22.04 image. |
Could you look at the logs https://tljh.jupyter.org/en/latest/troubleshooting/logs.html#jupyterhub-logs ? Does that give you any clues? |
It seems to me that permission on the /opt/tljh/user directory is not correct. I am attaching the install log, journal for services, and the transient service for the xadministrator. I am interested in the services extra lines "EnvironmentFile" and "Exec". journal.jupyterhub.txt |
I did a fresh install again today using "https://tljh.jupyter.org/bootstrap.py" to install. Again the juypter-singleuser will not spawn a server for any users. I did a chown -R root:jupyterhub-user /opt/tljh and it works (i.e., spawns servers). This is almost certainly not the correct/final solution. But maybe helps identify the root cause. |
I think I saw the same thing last week. I think the problem is the umask. In /etc/login.defs, there is:
which I believe is the culprit. I didn't try reinstalling with a umask of 022, but I bet that would fix this problem. Instead, I did;
Perhaps the installer could explicitly set the umask before it puts files in place? |
I can verify our umask is 027 in the /etc/login.defs. |
I am using CIS Ubuntu Linux 22.04 LTS Benchmark - Level 1 version 1.0.0.13 of the OS provided by the Center for Internet Security on an AWS EC2 instance. The umask is 027 by default instead of a common configuration of 022. It appears bootstrap.py depends on the umask to not be the more restrictive 027. I wrapped the bootstrap in a script setting the umask to 022 before calling bootstrap and the install is successful. For example, umask 022 I suspect a better solution is to modify bootstrap.py to set the umask to 022 since it has a dependency on it to install properly. |
Bug description
On a fresh install of tljh the server will not start for the admin (first user).
How to reproduce
Expected behaviour
Expected server to start for user.
Actual behaviour
Attempt to launch server times out.
Your personal set up
the-littlest-jupyterhub
Full environment
Configuration
Logs
The text was updated successfully, but these errors were encountered: