jupyterlab / jupyterlab

JupyterLab computational environment.
https://jupyterlab.readthedocs.io/
Other
14.12k stars 3.35k forks source link

WebpackOptions not found #10652

Open dboaretti opened 3 years ago

dboaretti commented 3 years ago

Description

I was trying to update a fedora machine from JupyterLab 2.2.4 to JupyterLab 3.0.14. This operation was successful on 2 other similar machines, but not on this one. We have a problem loading the welcome page after successfully logging in. This is the output from journalctl:

Jul 19 14:34:29 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [I 2021-07-19 14:34:29.382 SingleUserLabApp log:174] 302 GET /user/bdaniele/ -> /user/bdaniele/lab? (@127.0.0.1) 0.70ms
Jul 19 14:34:30 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [I 2021-07-19 14:34:30.662 SingleUserLabApp log:174] 302 GET /user/bdaniele/lab? -> /hub/api/oauth2/authorize?client_id=jupyterhub-user-bdaniele&re>
Jul 19 14:34:31 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [I 2021-07-19 14:34:31.528 SingleUserLabApp auth:981] Logged-in user {'kind': 'user', 'name': 'bdaniele', 'admin': False, 'groups': [], 'server': '>
Jul 19 14:34:31 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [I 2021-07-19 14:34:31.529 SingleUserLabApp log:174] 302 GET /user/bdaniele/oauth_callback?code=[secret]&state=[secret] -> /user/bdaniele/lab? (@10>
Jul 19 14:34:32 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [I 2021-07-19 14:34:32.107 SingleUserLabApp log:174] 200 GET /user/bdaniele/lab? (bdaniele@10.249.112.8) 7.31ms
Jul 19 14:34:40 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [I 2021-07-19 14:34:40.078 SingleUserLabApp log:174] 200 GET /user/bdaniele/api/terminals?1626698078737 (bdaniele@10.249.112.8) 12.37ms
Jul 19 14:34:40 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [I 2021-07-19 14:34:40.500 SingleUserLabApp log:174] 200 GET /user/bdaniele/api/kernelspecs?1626698078664 (bdaniele@10.249.112.8) 5.61ms
Jul 19 14:34:40 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [W 2021-07-19 14:34:40.595 SingleUserLabApp web:1787] 404 GET /user/bdaniele/lab/api/settings?1626698078713 (10.249.112.8): Schema not found: /usr/local/share/jupyter/lab/schemas/WebpackOptions.json
Jul 19 14:34:40 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [W 2021-07-19 14:34:40.595 LabApp] Schema not found: /usr/local/share/jupyter/lab/schemas/WebpackOptions.json
Jul 19 14:34:40 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [W 2021-07-19 14:34:40.596 SingleUserLabApp log:174] 404 GET /user/bdaniele/lab/api/settings?1626698078713 (bdaniele@10.249.112.8) 95.44ms
Jul 19 14:34:40 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [I 2021-07-19 14:34:40.599 SingleUserLabApp log:174] 200 GET /user/bdaniele/api/kernels?1626698078725 (bdaniele@10.249.112.8) 1.92ms
Jul 19 14:34:40 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [I 2021-07-19 14:34:40.600 SingleUserLabApp log:174] 200 GET /user/bdaniele/api/sessions?1626698078731 (bdaniele@10.249.112.8) 2.09ms
Jul 19 14:34:40 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [I 2021-07-19 14:34:40.790 SingleUserLabApp log:174] 200 GET /user/bdaniele/api/kernelspecs?1626698080618 (bdaniele@10.249.112.8) 2.86ms
Jul 19 14:34:51 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [I 2021-07-19 14:34:51.201 SingleUserLabApp log:174] 200 GET /user/bdaniele/api/kernels?1626698090964 (bdaniele@10.249.112.8) 1.37ms
Jul 19 14:34:51 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [I 2021-07-19 14:34:51.442 SingleUserLabApp log:174] 200 GET /user/bdaniele/api/sessions?1626698090967 (bdaniele@10.249.112.8) 1.42ms
Jul 19 14:34:51 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [I 2021-07-19 14:34:51.709 SingleUserLabApp log:174] 200 GET /user/bdaniele/api/terminals?1626698090473 (bdaniele@10.249.112.8) 1.25ms
Jul 19 14:35:14 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [I 2021-07-1

the lines which break are here:

Jul 19 14:34:40 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [W 2021-07-19 14:34:40.595 SingleUserLabApp web:1787] 404 GET /user/bdaniele/lab/api/settings?1626698078713 (10.249.112.8): Schema not found: /usr/local/share/jupyter/lab/schemas/WebpackOptions.json Jul 19 14:34:40 g-wst-lbb-jupyter2.ethz.ch jupyterhub[27243]: [W 2021-07-19 14:34:40.595 LabApp] Schema not found: /usr/local/share/jupyter/lab/schemas/WebpackOptions.json

These lines do not show up when logging in to the other updated machines I mentioned. I am wondering where it could come from. The console output has many of these errors (here the pic is cropped): image

It would be great to receive your help. Thank you! 😄

fcollonval commented 3 years ago

Hey I would clean the machine of JupyterLab - in particular remove the folder /usr/local/share/jupyter/lab. Then install JupyterLab 3.

fcollonval commented 3 years ago

You should try first without installing any extensions if you were using some. Then if JupyterLab works, install extensions again (as the error may be introduced by one of them).

dboaretti commented 3 years ago

Thanks! This is a shared machine in our group. Cleaning and updating the machine is a bit more difficult than normal. I reverted JupyterLab to version 2.3.1 which is working as expected. I hope to get back to it by the end of September, and maybe I will be luckier.

dboaretti commented 3 years ago

I tried to install it from a Python 3.9 environment that does not have jupyterlab but the problem persists. Is it possible that jupyterlab_server parses the path somehow in a wrong way? Webpack is a node module and I have noticed that there is some information for the migration from Jupyterlab 1 to 2 https://jupyterlab.readthedocs.io/en/2.2.x/developer/extension_migration.html?highlight=node_modules#updating-former-jupyterlab-coreutils-imports , maybe it's connected to this issue even if here the migration is different?

fcollonval commented 3 years ago

Are you using some extensions?

dboaretti commented 3 years ago

There were no extensions installed.

fcollonval commented 3 years ago

Would you mind reporting the content of /usr/local/share/jupyter/lab/schemas/ ?