danielfrg / s3contents

Jupyter Notebooks in S3 - Jupyter Contents Manager implementation
Apache License 2.0
248 stars 88 forks source link

Unable to use JupyterLab extensions after mounting S3 buckets #115

Open Harshit-9398 opened 3 years ago

Harshit-9398 commented 3 years ago

Hello, I am working on a use case where I am running Jupyter as a pod in OpenShift, and I want to leverage several JupyterLab extensions such as JupyterLab-git and Elyra. I am using Rook-Ceph as an S3 API compatible storage, and I am able to mount the bucket of a user in their JupyterHub pod. I am using the following code in the jupyter_notebook_config.py to mount S3 buckets:
jupyter_notebook_config.txt

The issue I am facing while using both the extensions is when,

  1. I try to initialize a git repo using GUI in the home directory /opt/app-root/src of the user(in the persistent volume), I get the following error:
    jupyterlab-git-error

  2. I try to run a pipeline using Elyra in the same path as described above, I get the following path related error:
    elyra-extension-error

As far as I was able to figure out in this issue, when I am trying to initialize a git repository in the /opt/app-root/src folder, it is trying to initialize the repo in the / folder due to which it shows permission error.

I also checked the same situations in another environment (where S3 buckets were not mounted in the pod), and in that case, both these extensions are working fine, e.g. when we initialize a git repo in /opt/app-root/src, it initializes the git repo in the correct folder instead of initializing it in / folder, and similar is the case with Elyra extension.

I am unable to figure out as to why this is happening, so can you please help me out with this?

Harshit-9398 commented 3 years ago

Hey,
Is there any update on this?
I am stuck in this and unable to figure out anything, can you please help in resolving this issue?