Open tinlyx opened 5 years ago
Same issue here...
Still an issue. This does not work:
vagrant init ubuntu/bionic64
vagrant up
vagrant ssh
sudo su -
apt install python3 python3-dev git curl
curl https://raw.githubusercontent.com/jupyterhub/the-littlest-jupyterhub/master/bootstrap/bootstrap.py | sudo -E python3 - --admin vagrant
My problem was the umask was set incorrectly. The above instructions do work.
@robnagler #554 worked for me.
Steps to resolve the issue:
curl https://raw.githubusercontent.com/jupyterhub/the-littlest-jupyterhub/master/bootstrap/bootstrap.py -O
os.umask(0o022)
as shown in the pull requestsudo -E python3 boostrap.py --admin <adminuser>
This issue can perhaps be resolved by a one-liner: https://github.com/jupyterhub/the-littlest-jupyterhub/pull/554#issuecomment-951044312
When TLJH automatically installs some packages, it subsequently runs fix_permissions(prefix)
. This was implemented in #268 where @minrk wrote:
conda and pip may not guarantee installed files are not world-writeable
Shouldn't we do something to ensure a normal user that does a sudo -E pip install ...
also applies fix_permissions(prefix)
? Wouldn't the users otherwise run into issues like we resolved for the times when TLJH itself installs packages?
Is that something to apply a 0o022 umask?
@minrk @yuvipanda this is beyond my knowledge domain. I've never considered umask
before and would love to have some experienced input about this.
sudo -E pip install ...
if so. Well, I'm out of my depth reasoning about this. Any help greatly appreciated.
I just installed TLJH on a Ubuntu server 18.04, falling the steps in http://tljh.jupyter.org/en/latest/install/custom-server.html. Note that this is a Ubuntu Server (not Desktop) probably without X-windows etc.
I was able to see the login interface and login to create the first admin user. But after that, the server always gives a
Spawn failed: Timeout
error. Detailed logs are at the bottom. It seems the error is:I tried to edit
/etc/systemd/system/jupyterhub.service
and add the/opt/tljh/user/bin
to the PATH, to no avail.I did the same on a LUbuntu 18.04 Desktop VM, and everything was fine.
I was wondering if the installation instructions should be any different for Ubuntu server? And how should this error be fixed?
Thanks,
systemd logs: