Skip to content
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

Spawner failed to start on PBS cluster #1081

Closed
krak3nnn opened this issue Apr 14, 2017 · 5 comments
Closed

Spawner failed to start on PBS cluster #1081

krak3nnn opened this issue Apr 14, 2017 · 5 comments

Comments

@krak3nnn
Copy link

How to reproduce the issue
Install the batchspawner plug-in and specify the Torque class.

What you expected to happen
After authentication, submit a single user notebook to the cluster and relay back the hub.

What actually happens
Job gets submitted and job id is seen in qstat but Jupyterhub returns this error:
"JUPYTERHUB_API_TOKEN env is required to run jupyterhub-singleuser. Did you launch it manually?"

Share what version of JupyterHub you are using
Jupyterhub 0.7.2
batchspawner 0.0.1.dev0

@minrk
Copy link
Member

minrk commented Apr 19, 2017

cc @mbmilligan @zonca any idea for a cause for batchspawner to be failing to set env variables?

@mbmilligan
Copy link
Member

It would be helpful if we could see the configuration file as well and let us know the Torque version being used. My guess is that either you customized the submit script (as most sites will) and omitted the keepvars line, or else your version of Torque uses a different option for passing environment variables into the job environment.

@zonca
Copy link
Contributor

zonca commented Apr 20, 2017

@minrk actually I have the same problem on Comet, I fixed it with this commit:

zonca/batchspawner@a7449e3

I thought it was something wrong with my environment but it looks like it might be a larger issue.

@krak3nnn
Copy link
Author

@mbmilligan You pointed me in the right direction. I was missing the PBS -V option.

@zonca I was going through your commits and did run into this. Fortunately, I cloned your git well after that commit date.

At this point in time, the issue as been resolved. Thank you everyone for your help!

@pg2455
Copy link

pg2455 commented Apr 30, 2018

@krak3nnn
I am having the same issue. Can you tell me where did you use PBS -V option?
This is what I have been using:

/anaconda/envs/py35/bin/python /anaconda/envs/py35/bin/jupyterhub-singleuser --port=50387 --notebook-dir="~/notebooks" --config=/etc/jupyterhub/default_jupyterhub_config.py
I get the same error as yours:
"JUPYTERHUB_API_TOKEN env is required to run jupyterhub-singleuser. Did you launch it manually?"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants