Hello,
I am trying to start a local Renku session with the instructions provided in Use the Docker Images built on RenkuLab.
I run into the following issue. However, I haven’t opened a Github issue as I am not sure if it is truly a bug or whether I am doing something wrong…
$ docker run --rm -ti -v ${PWD}:/work/${repoName} --workdir /work/${repoName} -p 8888:8888 ${imageName} jupyter lab --ip=0.0.0.0
Ahhhhhhhh! You have found a bug. 🐞
1. Open an issue by typing "open";
2. Print human-readable information by typing "print";
3. See the full traceback without submitting details (default: "ignore").
Please select an action by typing its name (open, print, ignore) [ignore]: print
## Describe the bug
A clear and concise description.
## Details
*Please verify and redact the details.*
**Renku version:** 2.3.2
**OS:** Linux (#1 SMP PREEMPT_DYNAMIC Thu Mar 23 20:08:28 EDT 2023)
**Python:** 3.9.12
### Traceback
Traceback (most recent call last):
  File "[...]/renku/ui/cli/exception_handler.py", line 133, in main
    return super().main(*args, **kwargs)
  File "[...]/renku/ui/cli/exception_handler.py", line 92, in main
    return super().main(*args, **kwargs)
  File "[...]/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "[...]/click/core.py", line 1654, in invoke
    super().invoke(ctx)
  File "[...]/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "[...]/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "[...]/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "[...]/renku/ui/cli/__init__.py", line 238, in cli
    is_renku_project = _is_renku_project(path)
  File "[...]/renku/ui/cli/__init__.py", line 163, in _is_renku_project
    return old_metadata.exists() or new_metadata.exists()
  File "[...]/pathlib.py", line 1424, in exists
    self.stat()
  File "[...]/pathlib.py", line 1232, in stat
    return self._accessor.stat(self)
PermissionError: [Errno 13] Permission denied: '/work/dash-example/.renku/metadata.yml'
## Additional context
Add any other context about the problem.
[I 2023-04-21 16:20:06.718 ServerApp] jupyter_resource_usage | extension was successfully linked.
[I 2023-04-21 16:20:06.721 ServerApp] jupyter_server_mathjax | extension was successfully linked.
[I 2023-04-21 16:20:06.722 ServerApp] jupyter_server_proxy | extension was successfully linked.
[I 2023-04-21 16:20:06.725 ServerApp] jupyterlab | extension was successfully linked.
[I 2023-04-21 16:20:06.725 ServerApp] jupyterlab_git | extension was successfully linked.
[W 2023-04-21 16:20:06.727 NotebookApp] 'ip' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2023-04-21 16:20:06.727 NotebookApp] 'port' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2023-04-21 16:20:06.727 NotebookApp] 'port' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[I 2023-04-21 16:20:06.730 ServerApp] nbclassic | extension was successfully linked.
[I 2023-04-21 16:20:06.730 ServerApp] nbdime | extension was successfully linked.
[I 2023-04-21 16:20:06.731 ServerApp] Writing Jupyter server cookie secret to /home/jovyan/.local/share/jupyter/runtime/jupyter_cookie_secret
[I 2023-04-21 16:20:06.931 ServerApp] notebook_shim | extension was successfully linked.
[I 2023-04-21 16:20:06.951 ServerApp] notebook_shim | extension was successfully loaded.
[I 2023-04-21 16:20:06.952 ServerApp] jupyter_resource_usage | extension was successfully loaded.
[I 2023-04-21 16:20:06.953 ServerApp] jupyter_server_mathjax | extension was successfully loaded.
[I 2023-04-21 16:20:06.963 ServerApp] jupyter_server_proxy | extension was successfully loaded.
[I 2023-04-21 16:20:06.963 LabApp] JupyterLab extension loaded from /opt/conda/lib/python3.9/site-packages/jupyterlab
[I 2023-04-21 16:20:06.963 LabApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 2023-04-21 16:20:06.966 ServerApp] jupyterlab | extension was successfully loaded.
[I 2023-04-21 16:20:06.970 ServerApp] jupyterlab_git | extension was successfully loaded.
[I 2023-04-21 16:20:06.973 ServerApp] nbclassic | extension was successfully loaded.
[I 2023-04-21 16:20:07.025 ServerApp] nbdime | extension was successfully loaded.
[I 2023-04-21 16:20:07.026 ServerApp] Serving notebooks from local directory: /work/dash-example
[I 2023-04-21 16:20:07.026 ServerApp] Jupyter Server 1.23.5 is running at:
[I 2023-04-21 16:20:07.026 ServerApp] http://221977fcdf22:8888/lab?token=62ad3b7b73d3d1b3c55a60fd4f0fd4eefdd99f34995331f0
[I 2023-04-21 16:20:07.026 ServerApp]  or http://127.0.0.1:8888/lab?token=62ad3b7b73d3d1b3c55a60fd4f0fd4eefdd99f34995331f0
[I 2023-04-21 16:20:07.026 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-04-21 16:20:07.029 ServerApp] 
The Jupyter server starts and I can connect to it on port 8888 but I do not see any directories mounted
Instead I get the following error which keeps repeating itself on the command line
[E 2023-04-21 16:22:42.224 ServerApp] Uncaught exception GET /api/contents?content=1&1682094162152 (10.0.2.100)
    HTTPServerRequest(protocol='http', host='svx-uo7635resibase.unifr.ch:8888', method='GET', uri='/api/contents?content=1&1682094162152', version='HTTP/1.1', remote_ip='10.0.2.100')
    Traceback (most recent call last):
      File "/opt/conda/lib/python3.9/site-packages/tornado/web.py", line 1713, in _execute
        result = await result
      File "/opt/conda/lib/python3.9/site-packages/jupyter_server/services/contents/handlers.py", line 116, in get
        self.contents_manager.get(
      File "/opt/conda/lib/python3.9/site-packages/jupyter_server/services/contents/filemanager.py", line 422, in get
        model = self._dir_model(path, content=content)
      File "/opt/conda/lib/python3.9/site-packages/jupyter_server/services/contents/filemanager.py", line 286, in _dir_model
        for name in os.listdir(os_dir):
    PermissionError: [Errno 13] Permission denied: '/work/dash-example'
Finally :
- the Renku project that I am trying to reproduce on my local machine - Dash Example
 - the “
imageName” isregistry.renkulab.io/champak.beeravolureddy/dash-example:e420c6e - the “
repoName” isdash-example(which corresponds to a freshly git cloned folder from which I am running thedocker runcommand) - is this related to Wrong user permissions in local renku sessions · Issue #2873 · SwissDataScienceCenter/renku-python · GitHub ?
 
Thanks !
