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

Unable to view deployed app #370

Open
pavithraes opened this issue Jul 5, 2024 · 1 comment
Open

Unable to view deployed app #370

pavithraes opened this issue Jul 5, 2024 · 1 comment
Labels
type: bug 🐛 Something isn't working

Comments

@pavithraes
Copy link
Member

Context

I have a Streamlit App, deployed with JHub Apps with the following options:

  • The file is in my personal file system
  • Environment is in a shared (analyst) namespace
  • Shared with users in the same analyst group

Users in the group can see the app in the Homescreen, but get the following error on opening it:

Traceback (most recent call last):
  File "/opt/conda/envs/default/lib/python3.11/site-packages/tornado/web.py", line 1790, in _execute
    result = await result
             ^^^^^^^^^^^^
  File "/opt/conda/envs/default/lib/python3.11/site-packages/jhsingle_native_proxy/websocket.py", line 102, in get
    return await self.http_get(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/default/lib/python3.11/site-packages/jhsingle_native_proxy/proxyhandlers.py", line 849, in http_get
    return await self.proxy(self.port, path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/default/lib/python3.11/site-packages/jhsingle_native_proxy/proxyhandlers.py", line 843, in proxy
    return await self.oauth_proxy(port, path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/default/lib/python3.11/site-packages/tornado/web.py", line 3298, in wrapper
    self.redirect(url)
  File "/opt/conda/envs/default/lib/python3.11/site-packages/jupyterhub/services/auth.py", line 1508, in raise_on_redirect
    raise HTTPError(
tornado.web.HTTPError: HTTP 403: Forbidden (user [email protected] is not allowed.)

Value and/or benefit

Bug-fix

Anything else?

I'm using JHub Apps on a deployed Nebari instance v2024.6.1

@pavithraes pavithraes added needs: triage 🚦 Someone needs to have a look at this issue and triage type: bug 🐛 Something isn't working and removed needs: triage 🚦 Someone needs to have a look at this issue and triage labels Jul 5, 2024
@aktech
Copy link
Member

aktech commented Jul 11, 2024

This was due to lack of permissions for the user. The required permissions to share with a group is:

# can omit "read:users:name" if not sharing with user
shares,read:users:name,read:groups:name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants