Closed nifuki closed 6 years ago
I think I figured it out: it is due to -format "\n" true
on this line, removing it jobs now get monitored.
Still struggling with making it work: the job is submitted now, but the server fails to start. Here is the command which is executed on the node: /bin/sh -c exec' '/usr/share/miniconda3/bin/batchspawner-singleuser' '--ip="0.0.0.0"
And in .jupyterhub.condor.err I only see:
JUPYTERHUB_API_TOKEN env is required to run jupyterhub-singleuser. Did you launch it manually?
Maybe the environment is not set properly, but I can't figure out how to set this up.
Any help appreciated.
Thanks.
Found the problem: sudo wasn't passing the environment variables. I changed the exec_prefix to sudo -E -u {username}
and it now works. So, I'm closing the issue.
Ok, thanks for the followup. Quick question: had you changed the exec_prefix
in your configuration file? sudo -E
is supposed to be in the default prefix, so it would be helpful to know if that default setting is getting broken somehow.
Thanks!
I know I'm a bit late to this party but I'm having a very similar issue
I'm trying to run a centralized JupyterHub server for all users so I'm executing it as root. Our environment very carefully set environment variables on login. If those variables are changed jobs do not run properly.
So I'm stuck because using -E passes the JUPYTERHUB_API_TOKEN env properly, but nothing will run (including batchspawner-singleuser will not run) because the commands to load needed packages and modules is broken with the overridden env.
If I use -i The packages and modules load properly, however the JUPYTERHUB_API_TOKEN env is no longer passed and the compute node fails to connect or be registered by jupyterhub.
Advice would be greatly appreciated
The same issue with me. How did you solve this problem?
Hi,
I'm trying to make batchspawner work with HTCondor but I'm stuck with the following error:
The condor_q command succeeds if ran manually:
I'm using the latest batchspawner (from the master):
And the spawner configuration:
What can be the cause of this error?
Thanks