Netflix / dispatch-docker

Apache License 2.0
206 stars 87 forks source link

2400MB of Memory in Docker is not enough to run install.sh #121

Closed Keetmalin closed 3 years ago

Keetmalin commented 3 years ago

I have tried to run the install.sh with a memory of 2400MB, but I get the following error.

#13 116.2 -  Building for production...
#13 346.1 Killed
#13 346.3 npm ERR! code ELIFECYCLE
#13 346.3 npm ERR! errno 137
#13 346.4 npm ERR! dispatch@0.1.0 build: `vue-cli-service build`
#13 346.4 npm ERR! Exit status 137
#13 346.4 npm ERR! 
#13 346.4 npm ERR! Failed at the dispatch@0.1.0 build script.
#13 346.4 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#13 347.6 
#13 347.6 npm ERR! A complete log of this run can be found in:
#13 347.6 npm ERR!     /root/.npm/_logs/2021-08-23T06_26_29_090Z-debug.log
#13 354.0 events.js:291
#13 354.0       throw er; // Unhandled 'error' event
#13 354.0       ^
#13 354.0 
#13 354.0 Error: write EPIPE
#13 354.0     at process.target._send (internal/child_process.js:807:20)
#13 354.0     at process.target.send (internal/child_process.js:678:19)
#13 354.0     at callback (/usr/src/dispatch/src/dispatch/static/dispatch/node_modules/worker-farm/lib/child/index.js:32:17)
#13 354.0     at module.exports (/usr/src/dispatch/src/dispatch/static/dispatch/node_modules/terser-webpack-plugin/dist/worker.js:13:5)
#13 354.0     at handle (/usr/src/dispatch/src/dispatch/static/dispatch/node_modules/worker-farm/lib/child/index.js:44:8)
#13 354.0     at process.<anonymous> (/usr/src/dispatch/src/dispatch/static/dispatch/node_modules/worker-farm/lib/child/index.js:55:3)
#13 354.0     at process.emit (events.js:314:20)
#13 354.0     at emit (internal/child_process.js:877:12)
#13 354.0     at processTicksAndRejections (internal/process/task_queues.js:85:21)
#13 354.0 Emitted 'error' event on process instance at:
#13 354.0     at internal/child_process.js:811:39
#13 354.0     at processTicksAndRejections (internal/process/task_queues.js:79:11) {
#13 354.0   errno: 'EPIPE',
#13 354.0   code: 'EPIPE',
#13 354.0   syscall: 'write'
#13 354.0 }
#13 356.4 events.js:291
#13 356.4       throw er; // Unhandled 'error' event
#13 356.4       ^
#13 356.4 
#13 356.4 Error: write EPIPE
#13 356.4     at process.target._send (internal/child_process.js:807:20)
#13 356.4     at process.target.send (internal/child_process.js:678:19)
#13 356.4     at callback (/usr/src/dispatch/src/dispatch/static/dispatch/node_modules/worker-farm/lib/child/index.js:32:17)
#13 356.4     at module.exports (/usr/src/dispatch/src/dispatch/static/dispatch/node_modules/terser-webpack-plugin/dist/worker.js:13:5)
#13 356.4     at handle (/usr/src/dispatch/src/dispatch/static/dispatch/node_modules/worker-farm/lib/child/index.js:44:8)
#13 356.4     at process.<anonymous> (/usr/src/dispatch/src/dispatch/static/dispatch/node_modules/worker-farm/lib/child/index.js:55:3)
#13 356.4     at process.emit (events.js:314:20)
#13 356.4     at emit (internal/child_process.js:877:12)
#13 356.4     at processTicksAndRejections (internal/process/task_queues.js:85:21)
#13 356.4 Emitted 'error' event on process instance at:
#13 356.4     at internal/child_process.js:811:39
#13 356.4     at processTicksAndRejections (internal/process/task_queues.js:79:11) {
#13 356.4   errno: 'EPIPE',
#13 356.4   code: 'EPIPE',
#13 356.4   syscall: 'write'
#13 356.4 }
#13 401.5 command failed [npm run build --quiet] via [/usr/src/dispatch/src/dispatch/static/dispatch]
#13 401.8 Traceback (most recent call last):
#13 401.8   File "setup.py", line 382, in <module>
#13 401.8     setup(
#13 401.8   File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
#13 401.8     return distutils.core.setup(**attrs)
#13 401.8   File "/usr/local/lib/python3.8/distutils/core.py", line 148, in setup
#13 401.8     dist.run_commands()
#13 401.8   File "/usr/local/lib/python3.8/distutils/dist.py", line 966, in run_commands
#13 401.8     self.run_command(cmd)
#13 401.8   File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
#13 401.8     cmd_obj.run()
#13 401.8   File "/usr/local/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
#13 401.8     self.run_command('build')
#13 401.8   File "/usr/local/lib/python3.8/distutils/cmd.py", line 313, in run_command
#13 401.8     self.distribution.run_command(command)
#13 401.8   File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
#13 401.8     cmd_obj.run()
#13 401.8   File "setup.py", line 360, in run
#13 401.8     self.run_command("build_assets")
#13 401.8   File "/usr/local/lib/python3.8/distutils/cmd.py", line 313, in run_command
#13 401.8     self.distribution.run_command(command)
#13 401.8   File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
#13 401.8     cmd_obj.run()
#13 401.8   File "setup.py", line 192, in run
#13 401.8     self._setup_js_deps()
#13 401.8   File "setup.py", line 147, in _setup_js_deps
#13 401.8     self._run_npm_command(["run", "build", "--quiet"])
#13 401.8   File "setup.py", line 159, in _run_npm_command
#13 401.8     self._run_command(["npm"] + cmd, env=env)
#13 401.8   File "setup.py", line 153, in _run_command
#13 401.8     return check_output(cmd, cwd=self.work_path, env=env)
#13 401.8   File "/usr/local/lib/python3.8/subprocess.py", line 415, in check_output
#13 401.8     return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
#13 401.8   File "/usr/local/lib/python3.8/subprocess.py", line 516, in run
#13 401.8     raise CalledProcessError(retcode, process.args,
#13 401.8 subprocess.CalledProcessError: Command '['npm', 'run', 'build', '--quiet']' returned non-zero exit status 137.
------
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c export YARN_CACHE_FOLDER="$(mktemp -d)"     && cd /usr/src/dispatch     && python setup.py bdist_wheel     && rm -r "$YARN_CACHE_FOLDER"     && mv /usr/src/dispatch/dist /dist]: exit code: 1
Cleaning up...

But when I increase my memory to around 5000MB, the install.sh script runs well, and passes this hurdle.

github-actions[bot] commented 3 years ago

This issue is stale, because it has been open for 30 days with no activity. Remove the stale label or comment, or this will be closed in 5 days.

github-actions[bot] commented 3 years ago

This issue was closed, because it has been stalled for 5 days with no activity.