Open davidedelvento opened 6 years ago
A naive workaround of setting environmental variable export JUPYTERHUB_CLIENT_ID=abc123
apparently solved this issue. I say "apparently" because I encountered other issues, and my setting is not working, so I am not sure this is the correct way to proceed, or instead it is just kicking the can down the road (causing the issues I am experiencing now).
Are you by any chance setting req_keepvars
?
If one uses req_keepvars
, it removes all previous variables that JH says should be kept. In #99 I added a new variable req_keepvars_extra
which adds to, instead of removing, any previous variables.
Come to think of it, #99 was not ambitious enough. req_keepvars implies it is the main point to use, and shouldn't go overriding things by default. I will roughly switch the meaning of them for the next release (if accepted). If comments, please comment in #99 or the new PR I will do soon.
It is not clear to my how one should use req_keepvars
or req_keepvars_extra
, but I don't have either in my jupyterhub_config.py
. Are you suggesting that I should use req_keepvars_extra
?
I'm sorry for the confusion - this is all new and not very well documented.
I would just recommend using req_keepvars_extra only in most cases. Soon, I hope that the meaning of these switch so that req_keepvars
is the only thing to modify. I will notify in this issue when things change in master.
Was this solved enough to be closed now?
Perhaps in future the keepvars stuff will be improved so that it is more usable...
Not sure if it is solved, because we put this on hiatus. @vanderwb and I will need to work on it in the coming weeks, so we could provide feedback at that time. Up to you if you prefer to close it for now and we'll reopen if we find troubles, or if you prefer to leave it open (stalled) and we will close it when confirmed. We are fine with either approach.
I'm using batchspawner as described by @zonca but I am having troubles making it to work. The first issue is with the
JUPYTERHUB_API_TOKEN
environmental variable which is not set. I solved it in the same way @zonca did in https://github.com/zonca/batchspawner/commit/a7449e388e06ae6c0b487d7fef29e53c0eefb305 (as described in https://github.com/jupyterhub/jupyterhub/issues/1081)However it is now failing with
All google knows about that error is either:
jupyterhub-singleuser
runjupyterhub
instead (doh!) which of course is not the case in this contextv0.9.0
)Any ideas on what may be wrong here?