Experience with DockerSwarm and NFS
Does anyone has succeeded in spawning notebooks via DockerSwarm and using NFS using docker ‘bind’ ?
I have a NFS directory mounted on the docker node
I have setup all the stuff for setuid, setgid, username to map the NFS username (chambon in my test) and bind NFS local directory to container HOME directory
When I launch the notebook with a ‘clean NFS area’ (clean means none of those directories exist : .local/ .ipython/ .ipynb_checkpoints/ .jupyter/ .cache/ .config/ )
It’ OK. I can address the NFS area from within the notebooks, cool.
After that, some of the mentioned above directories are created with 0755 permission as I work with notebook. ok.
But if I stop and start a new notebook, spawn will fail with a message from jupyterhub logs : ‘ERROR:asyncio:Task exception was never retrieved’
As workaround I increase the file permissions to 0777 for those directories (.local/ .ipython/ .ipynb_checkpoints/ .jupyter/ .cache/ .config/ ) and after that it ok. All of the following attempts spawning notebook work. But this wararound can be deployed in production.
Has anyone encountered the same failure ? Any clue ?