I am trying to install git extension (jupyterlab/git) for my EC2 (t2.micro) JupyterLab . In the process when I run jupyter lab build it hangs for a long time and eventually fails .
Versions :
[root@ip-10-0-0-86 Jupyter]# jupyter-lab --version
2.2.8
[root@ip-10-0-0-86 Jupyter]# node --version
v14.11.0
Error in log :
$ ensure-max-old-space webpack --config webpack.prod.minimize.config.js child_process.js:637 throw err; ^ Error: Command failed: /root/anaconda3/share/jupyter/lab/staging/node_modules/.bin/webpack --config webpack.prod.minimize.config.js
Entire log :
Building jupyterlab assets (build:prod:minimize)
An error occured.
RuntimeError: JupyterLab failed to build
See the log file for details: /tmp/jupyterlab-debug-ea1w2u3r.log
[LabBuildApp] Node v14.11.0
[LabBuildApp] Yarn configuration loaded.
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
[LabBuildApp] > node /root/anaconda3/lib/python3.6/site-packages/jupyterlab/staging/yarn.js install --non-interactive
[LabBuildApp] yarn install v1.21.1
[1/5] Validating package.json…
[2/5] Resolving packages…
success Already up-to-date.
Done in 1.14s.
[LabBuildApp] > node /root/anaconda3/lib/python3.6/site-packages/jupyterlab/staging/yarn.js run build:prod:minimize
[LabBuildApp] yarn run v1.21.1
$ ensure-max-old-space webpack --config webpack.prod.minimize.config.js
child_process.js:637
throw err;
^
Error: Command failed: /root/anaconda3/share/jupyter/lab/staging/node_modules/.bin/webpack --config webpack.prod.minimize.config.js
at checkExecSyncError (child_process.js:616:11)
at Object.execFileSync (child_process.js:634:15)
at Object. (/root/anaconda3/share/jupyter/lab/staging/node_modules/@jupyterlab/buildutils/lib/ensure-max-old-space.js:38:17)
at Module._compile (internal/modules/cjs/loader.js:1076:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:941:32)
at Function.Module._load (internal/modules/cjs/loader.js:782:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
status: null,
signal: ‘SIGKILL’,
output: [ null, null, null ],
pid: 25531,
stdout: null,
stderr: null
}
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.
[LabBuildApp] JupyterLab failed to build
[LabBuildApp] Traceback (most recent call last):
[LabBuildApp] File “/root/anaconda3/lib/python3.6/site-packages/jupyterlab/debuglog.py”, line 47, in debug_logging
yield
I tried setting export NODE_OPTIONS=“–max-old-space-size=2048” , --dev-build=False --minimize=True etc as suggested in some other threads . But nothing seem to help. Any pointers would be really helpful.
Thanks
Thomas