Closed fdion closed 3 years ago
I commented out --progressive, it now complains about --presentation-path=... as unrecognized arguments.
I don't see anything else in the logs
It shouldn't be running jupyterhub-singleuser
at all. The dashboard servers should be running jhsingle_native_proxy (the default command is python3 -m jhsingle_native_proxy.main
) instead:
Are you sure there isn't some other configuration that's somehow overriding that?
Having said that, sudospawner isn't something I've come across often - it's possible that something is wrong even with the default setup, maybe depending on other aspects of your JupyterHub.
Definitely, your comments about --progressive etc won't be relevant since these arguments aren't being passed to the right command anyway!
jupyterhub-singleuser should be run for regular Jupyter servers; the 'variable spawners' should override to use jhsingle_native_proxy for dashboard servers.
I hope this helps you debug a bit further...
Yes, it is a bit strange. I've been using sudospawner for quite a while, on different sites. I set things up with ansible, so I don't forget steps. Basically, I just replaced spawner_class from sudospawner.SudoSpawner
to cdsdashboards.hubextension.spawners.variablesudospawner.VariableSudoSpawner
and it definitely runs that code. But why it doesn't set the right default_presentation_cmd
, not sure yet. I was hoping it was a "oh yeah, we see this all the time and you have to..." situation. Guess it's time to step through the code...
VariableSudoSpawner runs sudospawner start
, and that calls spawner.do. The spawner executable is set here:
This is set to whatever sudospawner is in the path (/usr/bin/sudospawner)
This will run mediator.main
which will call jupyterhub-singleuser:
Trying to understand how this should work... It doesn't look like there is a way to do this due to mediator... Has anybody had success with the sudospawner
to date?
Unlike sudospawner, the systemd spawner does look at self.cmd, so I can see how that would work:
@danlester I've found that without significant changes to sudospawner, the instructions at: https://cdsdashboards.readthedocs.io/en/stable/chapters/setup/otherspawners.html#sudospawner cannot work. I've played around modifying the kwargs payload to the mediator process in sudospawner
, but it is too complicated / brittle at this point, so I'm moving on to a different approach for right now. FYI, @minrk, @willingc, @parente
Describe the bug Trying to save a dashboard with voila and the call to
voila
is not quite right.python3
should be full path tojupyterhub
environment, and --progressive needs an argument, it appears.To Reproduce This was set up as a sudospawner jupyterhub install and conda environments. Everything works as expected, in use for months on this particular server. Added cdsdashboards to the jupyterhub environment and cdsdashboards[user] to each conda data science environments (registered through ipykernel).
Screenshots
Log shows:
Configuration