Install gitlab 13-0 stable-ee from source failed in webpack compile
Summary
Installing 13-0-stable-ee to my raspberry pi 4, failed in Compile Assets part in command sudo -u git -H bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production
.
Steps to reproduce
Follow the instruction tile here, failed in command sudo -u git -H bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production
, change it to sudo -u git -H bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production NODE_OPTIONS="--max_old_space_size=4096"
didn't help.
Relevant logs and/or screenshots
In multiple reruns find the error starts after rake:assets:precompile
, so trimmed the previous part.
More precisely, the error occurred in running /home/git/gitlab/node_modules/.bin/webpack --config /home/git/gitlab/config/webpack.config.js --bail
`rake:assets:precompile` finished in 48.292008903 seconds
Generating the MD5 hash for 5644 Webpack-related assets...
=> MD5 generated in 2.699631258: 44a1e9e5dc2192f9b0afec0d90f36427
Webpack assets MD5 for `master`: 44a1e9e5dc2192f9b0afec0d90f36427
Webpack assets MD5 for `HEAD`: 44a1e9e5dc2192f9b0afec0d90f36427
/home/git/gitlab/node_modules/.bin/webpack --config /home/git/gitlab/config/webpack.config.js --bail
rake aborted!
Command failed with status (): [/home/git/gitlab/node_modules/.bin/webpack...]
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/webpack-rails-0.9.11/lib/tasks/webpack.rake:17:in `block (2 levels) in <top (required)>'
/home/git/gitlab/lib/tasks/gitlab/assets.rake:83:in `block (3 levels) in <top (required)>'
/home/git/gitlab/lib/gitlab/task_helpers.rb:18:in `invoke_and_time_task'
/home/git/gitlab/lib/tasks/gitlab/assets.rake:58:in `each'
/home/git/gitlab/lib/tasks/gitlab/assets.rake:58:in `block (3 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => webpack:compile
(See full trace by running task with --trace)
ubuntu@RPIServer:/home/git/gitlab$ events.js:287
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at process.target._send (internal/child_process.js:806:20)
at process.target.send (internal/child_process.js:677:19)
at callback (/home/git/gitlab/node_modules/worker-farm/lib/child/index.js:32:17)
at module.exports (/home/git/gitlab/node_modules/terser-webpack-plugin/dist/worker.js:13:5)
at handle (/home/git/gitlab/node_modules/worker-farm/lib/child/index.js:44:8)
at process.<anonymous> (/home/git/gitlab/node_modules/worker-farm/lib/child/index.js:55:3)
at process.emit (events.js:310:20)
at emit (internal/child_process.js:876:12)
at processTicksAndRejections (internal/process/task_queues.js:85:21)
Emitted 'error' event on process instance at:
at internal/child_process.js:810:39
at processTicksAndRejections (internal/process/task_queues.js:79:11) {
errno: 'EPIPE',
code: 'EPIPE',
syscall: 'write'
}