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

ZTJH presentation path defaults to jovyan when using Voila #110

Open
nmearl opened this issue Oct 25, 2022 · 0 comments
Open

ZTJH presentation path defaults to jovyan when using Voila #110

nmearl opened this issue Oct 25, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nmearl
Copy link

nmearl commented Oct 25, 2022

Describe the bug
When setting up ContainDS with a Kubernetes cluster and a Voila presentation, the presentation_path variable uses /home/jovyan instead of the user-specific path. Related issue: #43.

To Reproduce
Follow instructions to install ContainDS Kubernetes. Edit the configuration file to include

...
    cds-kube: |
      c.JupyterHub.spawner_class = 'cdsdashboards.hubextension.spawners.variablekube.VariableKubeSpawner'
      c.CDSDashboardsConfig.builder_class = 'cdsdashboards.builder.kubebuilder.KubeBuilder'
      c.VariableMixin.default_presentation_cmd = ['start.sh', 'python3', '-m', 'jhsingle_native_proxy.main']
      c.VariableMixin.extra_presentation_launchers = {
        'voila': {
          'args': [
            '--destport=0', 'python', '{-}m','voila', '{presentation_path}',
            '{--}port={port}',
            '{--}no-browser',
            '{--}Voila.base_url={base_url}/',
            '{--}Voila.server_url=/',
            '{--}Voila.ip=0.0.0.0',
            ....
          ]
        }
      }
...

Create a new dashboard using a defined notebook. Upon visiting the dashboard, note 400 Bad Request error message in browser and the following error in the log:

ERROR:tornado.application:b'WARNING:tornado.general:400 GET / (127.0.0.1): Unreadable Notebook: /home/jovyan/HubbleDS.ipynb TypeError("__init__() got an unexpected keyword argument \'capture_validation_error\'")\n'
WARNING:tornado.access:400 GET /user/admin/dash-hubbleds/ (::ffff:192.168.126.246) 1352.61ms

Screenshots

Configuration

hub:
  config:
    Authenticator:
      admin_users:
        - admin
  allowNamedServers: true
  image:
    name: ideonate/cdsdashboards-jupyter-k8s-hub
    tag: 1.2.0-0.6.3
  extraConfig:
    cds-handlers: |
      from cdsdashboards.hubextension import cds_extra_handlers
      c.JupyterHub.extra_handlers = cds_extra_handlers
    cds-templates: |
      from cdsdashboards.app import CDS_TEMPLATE_PATHS
      c.JupyterHub.template_paths = CDS_TEMPLATE_PATHS
    cds-kube: |
      c.JupyterHub.spawner_class = 'cdsdashboards.hubextension.spawners.variablekube.VariableKubeSpawner'
      c.CDSDashboardsConfig.builder_class = 'cdsdashboards.builder.kubebuilder.KubeBuilder'
      c.VariableMixin.extra_presentation_launchers = {
        'voila': {
          'args': [
            '--destport=0', 'python', '{-}m','voila', '{presentation_path}',
            '{--}port={port}',
            '{--}no-browser',
            '{--}Voila.base_url={base_url}/',
            '{--}Voila.server_url=/',
            '{--}Voila.ip=0.0.0.0',
            '--ready-check-path=/voila/static/',
          ]
        }
      }
singleuser:
  image:
    name: ideonate/containds-allr-datascience
    tag: 0.6.3
  storage:
    type: dynamic
    capacity: 10Gi
    dynamic:
      pvcNameTemplate: claim-{username}
      volumeNameTemplate: volume-{username}
      storageAccessModes: [ReadWriteMany]
@nmearl nmearl added the bug Something isn't working label Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants