Closed matuskosut closed 2 years ago
Hi @matuskosut We are working on it, and will update this space with any updates we might have.
Thank you for reporting this!
@prabhakk-mw no problem. Thanks for all the good work so far! There was a lot of improvement in the recent versions.
This has been fixed by https://github.com/mathworks/matlab-proxy/commit/8d2bccd01b9a60b3349bef70d6cdc14cdb8e7a48
Please re-install the following packages:
$ python -m pip install matlab-proxy --upgrade $ python -m pip install jupyter-matlab-proxy --upgrade
Docker setup - Jupyterhub + DockerSpawner + Jupyterlab
current port check: https://github.com/mathworks/jupyter-matlab-proxy/blob/main/jupyter_matlab_proxy/app_state.py#L339
Main issue: If TMPDIR is shared between users, but each user environment is spawn in separate container, MATLAB will go ahead and assign same port to each of them. Only the first one owning the tmp directory will be able to write to tmp directory. Other users will fail to start MATLAB.
Potentially if setting separate TMPDIR per user we manage to avoid the main problem. But user can spawn multiple containers (Jupyterhub feature) so I expect each container will end up having the same port 31511, could this cause issues if all instances of the user are using same temporary directory (
/tmp/MWI/31511/connector.securePort
)?