You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I start the jupyterhub server with the following config file:
import os
import sys
import tempfile
bin_dir = os.path.split(sys.executable)[0]
spawner = os.path.join(bin_dir, 'sudospawner')
database = os.path.join(tempfile.gettempdir(), "jupyterhub", "jupyterhub.sqlite")
if not os.path.isdir(os.path.dirname(database)):
os.makedirs(os.path.dirname(database))
# Keep some environment variables if needed:
for var in ("PYTHONHOME", "PYTHONPATH"):
if var in os.environ:
c.SudoSpawner.env_keep.append(var)
# Use the sudo spawner for launching the server under a user name different than root
c.JupyterHub.spawner_class = 'sudospawner.SudoSpawner'
c.JupyterHub.ip = '0.0.0.0'
c.JupyterHub.db_url = database
c.SudoSpawner.sudospawner_path = spawner
c.Authenticator.admin_users = {"pellegrini"}
c.Spawner.default_url = "/lab"
c.Spawner.cmd = ['jupyter-labhub']
when starting my jupyterhub server, I get the following error when logging under pellegrini
sh: 1: cannot create /run/motd.dynamic.new: Permission denied
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
[W 2019-05-06 16:37:03.423 JupyterHub auth:642] Failed to open PAM session for pellegrini: [PAM Error 14] Cannot make/remove an entry for the specified session
[W 2019-05-06 16:37:03.423 JupyterHub auth:643] Disabling PAM sessions from now on.
[D 2019-05-06 16:37:03.442 JupyterHub spawner:63] Spawning ['sudo', '-u', 'pellegrini', '-nH', '/home/jupyter-admin/miniconda3/envs/visa-jupyter/bin/sudospawner']
Strictly speaking this is not a true error in the sense that I can eventually login but I would like to be sure that I did not set something wrong.
I read some related issue (e.g. #51) and tried the proposed recipe but it did not help.
Would you have any ideas ?
thanks in advance
Eric
The text was updated successfully, but these errors were encountered:
Dear all,
I try to setup jupyterhub using a sudospawer and the default PAM authenticator in the context of multiple conda environment (using
nb_conda_kernels
).To do so:
jupyter-admin
-->/home/jupyter-admin
/home/jupyter-admin
I create and activate a new conda environmentnotebook-env
using the following conda envionment file:/etc/sudoers
filewhen starting my jupyterhub server, I get the following error when logging under
pellegrini
Strictly speaking this is not a true error in the sense that I can eventually login but I would like to be sure that I did not set something wrong.
I read some related issue (e.g. #51) and tried the proposed recipe but it did not help.
Would you have any ideas ?
thanks in advance
Eric
The text was updated successfully, but these errors were encountered: