You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to create a docker image for JupyterHub containing jupyter_conda, I'm getting the following error in the terminal:
Fail to load available packages from cache [Errno 2] No such file or directory: '/tmp/jupyter_conda_packages.json
After a few moments, this error does seem to resolve as /tmp/jupyter_conda_packages.json is created by the notebook server.
I have two questions regarding this behaviour:
Why is the file only showing up later? Is there a way to get this file loaded before? (Currently it is giving an error in the UI as well, together with the terminal error, which is worrying our users needlessly.)
The jupyter_conda_packages.json file is being writting to /tmp/jupyter_conda_packages.json, and is being owned by the user who first spawned his/her notebook. Will this work in a multi-user setup?
Retrieving the list of available packages is slow - especially because the package description is not available in the package info. So the purpose of the file /tmp/jupyter_conda_packages.json is to serve as cache file for the available package list:
It could be taken from a previously run container (or personal installation) to init the cache file.
Retrieving the available package list with their description could definitely be improved. If you get some idea, I will be happy to discuss them.
Currently it is giving an error in the UI as well, together with the terminal error, which is worrying our users needlessly.
This one is not related to the warning, you are seeing in the terminal. Could you look at the web browser console to see the error being reported to the user in the frontend?
The jupyter_conda_packages.json file is being writting to /tmp/jupyter_conda_packages.json, and is being owned by the user who first spawned his/her notebook. Will this work in a multi-user setup?
Thanks for pointing this. You are totally right. And this should be corrected. As that file is doing caching, it would make sense to get it readable/writable by anyone (possible fix using os.open
If you want, I will be more than happy to include contribution to improve package list retrieval.
Description
When trying to create a docker image for JupyterHub containing jupyter_conda, I'm getting the following error in the terminal:
Fail to load available packages from cache [Errno 2] No such file or directory: '/tmp/jupyter_conda_packages.json
After a few moments, this error does seem to resolve as /tmp/jupyter_conda_packages.json is created by the notebook server.
I have two questions regarding this behaviour:
Reproduce
I'm creating a docker image using:
I then start the server using:
docker run --rm -p 8000:8000 jupyterhub:latest --ip 0.0.0.0
and login using user
joyvan
with passwordjoyvan
.Expected behavior
Context
Conda info:
The text was updated successfully, but these errors were encountered: