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

User xyz requested server for qrs, which they don't own #20

Open
robnagler opened this issue Aug 26, 2020 · 1 comment
Open

User xyz requested server for qrs, which they don't own #20

robnagler opened this issue Aug 26, 2020 · 1 comment

Comments

@robnagler
Copy link
Member

robnagler commented Aug 26, 2020

Related to #19.

  1. User qrs tries to get at pre-allocated container, but fails because of removing the container is asynchronous and causes exceptions #19 and remove starts and slot N is freed.
  2. User xyz gets allocated slot N and starts differently named container (no conflict) "juptyer-xyz"
  3. JupyterLab tries to get a file via proxy, because routes are added right away (before container starts)
  4. Proxy forwards to jupyter-qrs container via slot N (port M statically assigned) and gets conflict
@e-carlin
Copy link
Member

e-carlin commented Sep 2, 2020

I can re-create this.

  1. Set min_activity_hours to 0.002
  2. Set servers_per_host to 1
  3. Login as user a
  4. Login in a new browser (or icognito window) as user b
  5. You should see the error. If not start a's server then try and start b's server do this a couple times and you will see it.

I'm running jupyterhub using container-jupyterhub/container-conf/test.sh.

Still not very clear what causes this issue. I've tried to implement polling in rsdockerspawner.remove_object to make sure the socket is closed but it seems remove_object isn't called.

@robnagler robnagler changed the title User xyz requested server for qrs, which they don't own 20220331 User xyz requested server for qrs, which they don't own Oct 14, 2022
@robnagler robnagler changed the title 20220331 User xyz requested server for qrs, which they don't own 20230331 User xyz requested server for qrs, which they don't own Oct 14, 2022
@robnagler robnagler changed the title 20230331 User xyz requested server for qrs, which they don't own User xyz requested server for qrs, which they don't own Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants