ml-tooling / ml-workspace

šŸ›  All-in-one web-based IDE specialized for machine learning and data science.
https://mltooling.org/ml-workspace
Apache License 2.0
3.45k stars 452 forks source link

Jupyterlab not accessible after update to image version 0.13.0 #95

Closed allenzhao closed 3 years ago

allenzhao commented 3 years ago

Describe the bug:

Jupyterlab not accessible after update to image version 0.13.0, and shows 404

Expected behaviour:

Steps to reproduce the issue:

I also tried to run the jupyter lab command but it gives the following error:

/opt/conda/lib/python3.8/site-packages/jupyter_server/transutils.py:13: FutureWarning: The alias `_()` will be deprecated. Use `_i18n()` instead.
  warnings.warn(warn_msg, FutureWarning)
[I 2021-06-29 06:18:42.748 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2021-06-29 06:18:42.748 ServerApp] jupyter_resource_usage | extension was successfully linked.
[I 2021-06-29 06:18:42.758 ServerApp] jupyter_server_mathjax | extension was successfully linked.
[I 2021-06-29 06:18:42.758 ServerApp] jupyter_server_proxy | extension was successfully linked.
[I 2021-06-29 06:18:42.795 ServerApp] jupyterlab | extension was successfully linked.
[I 2021-06-29 06:18:42.796 ServerApp] jupyterlab_code_formatter | extension was successfully linked.
[I 2021-06-29 06:18:42.796 ServerApp] jupyterlab_git | extension was successfully linked.
[I 2021-06-29 06:18:42.796 ServerApp] jupytext | extension was successfully linked.
[W 2021-06-29 06:18:42.798 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 2021-06-29 06:18:42.799 NotebookApp] 'notebook_dir' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-06-29 06:18:42.799 NotebookApp] 'notebook_dir' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-06-29 06:18:42.799 NotebookApp] 'allow_root' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-06-29 06:18:42.799 NotebookApp] 'iopub_msg_rate_limit' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-06-29 06:18:42.799 NotebookApp] 'iopub_data_rate_limit' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-06-29 06:18:42.799 NotebookApp] 'port_retries' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-06-29 06:18:42.799 NotebookApp] 'quit_button' was found in both NotebookApp and ServerApp. This is likely a recent change. This config will only be set in NotebookApp. Please check if you should also config these traits in ServerApp for your purpose.
[W 2021-06-29 06:18:42.799 NotebookApp] 'allow_remote_access' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-06-29 06:18:42.799 NotebookApp] 'disable_check_xsrf' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-06-29 06:18:42.799 NotebookApp] 'allow_origin' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-06-29 06:18:42.799 NotebookApp] 'trust_xheaders' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-06-29 06:18:42.799 NotebookApp] 'trust_xheaders' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-06-29 06:18:42.799 NotebookApp] 'base_url' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-06-29 06:18:42.799 NotebookApp] 'allow_password_change' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-06-29 06:18:42.799 NotebookApp] 'token' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[W 2021-06-29 06:18:42.799 NotebookApp] 'token' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release.
[C 2021-06-29 06:18:42.799 NotebookApp] Bad config encountered during initialization: Trait, server_extensions, not found.

Technical details:

Possible Fix:

Additional context:

lukasmasuch commented 3 years ago

@allenzhao thanks for reporting the issue! I will investigate.

lukasmasuch commented 3 years ago

I have two questions that might help solve the issue: 1) Do you use the default flavor: mltooling/ml-workspace:0.13.0? 2) Did you mount a folder into the /workspace folder?

allenzhao commented 3 years ago

Iā€™m using the GPU flavor and I also tried the default flavor. Both gave the same 404 error.

I mounted the home folder of the user running docker in host machine as the workspace folder

lukasmasuch commented 3 years ago

@allenzhao Alright, I think there might be some configurations incompatible with the newest version backed up in the /workspace/.workspace/backup folder. Deleting the/workspace/.workspace/backup/.jupyter and /workspace/.workspace/backup/.config folders and restarting the new workspace might solve this problem.

allenzhao commented 3 years ago

Thanks, deleting the config files worked!