unable to upgrade to 12.7.4 (webpack?)
Summary
I'm trying to upgrade to 12.7.4, going by this walkthrough getting rake aborted...
Steps to reproduce
following the manual, ending up with the step: Update node dependencies and recompile assets
sudo -u git -H bundle exec rake yarn:install gitlab:assets:clean gitlab:assets:compile RAILS_ENV=production NODE_ENV=production NODE_OPTIONS="--max_old_space_size=4096"
Relevant logs and/or screenshots
yarn install v1.21.1
[1/4] Resolving packages...
warning Resolution field "ts-jest@24.0.0" is incompatible with requested version "ts-jest@^23.10.5"
success Already up-to-date.
$ node ./scripts/frontend/postinstall.js
success Dependency postinstall check passed.
Done in 1.90s.
yarn install v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "ts-jest@24.0.0" is incompatible with requested version "ts-jest@^23.10.5"
success Already up-to-date.
$ node ./scripts/frontend/postinstall.js
success Dependency postinstall check passed.
Done in 1.73s.
warning Resolution field "ts-jest@24.0.0" is incompatible with requested version "ts-jest@^23.10.5"
warning Resolution field "monaco-editor@0.18.1" is incompatible with requested version "monaco-editor-webpack-plugin#monaco-editor@^0.15.1"
`yarn:check` finished in 5.809692691 seconds
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/mn_MN
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/pt_BR
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/pt_PT
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/hr_HR
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/fil_PH
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/es
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/cy_GB
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/bg
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/el_GR
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/sr_SP
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/hi_IN
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/pl_PL
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/nb_NO
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/da_DK
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/pa_IN
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/fa_IR
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/he_IL
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/sr_CS
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/fr
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/sk_SK
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/en
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/ro_RO
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/hu_HU
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/et_EE
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/sq_AL
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/bn_BD
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/vi_VN
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/gl_ES
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/ru
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/bn_IN
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/ko
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/zh_CN
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/uk
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/de
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/zh_HK
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/ja
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/zh_TW
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/cs_CZ
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/sw_KE
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/nl_NL
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/ca_ES
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/tr_TR
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/sv_SE
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/ka_GE
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/eo
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/it
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/ar_SA
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/id_ID
All files created, make sure they are being added to your assets.
If they are not, you can add them with this line (configurable):
//= require_tree ./locale
//= require gettext/all
`gettext:po_to_json` finished in 19.427739655 seconds
`rake:assets:precompile` finished in 19.264465051 seconds
yarn run v1.21.1
$ NODE_OPTIONS="--max-old-space-size=3584" webpack --config config/webpack.vendor.config.js
Hash: cfb58cf0285a0f529d5e
Version: webpack 4.41.5
Time: 18384ms
Built at: 02/05/2020 8:55:42 AM
Asset Size Chunks Chunk Names
vendor.dll.bundle.js 18.6 MiB vendor [emitted] vendor
vendor.dll.bundle.js.map 17 MiB vendor [emitted] [dev] vendor
vendors~pdfjsWorker.dll.chunk.js 1.55 MiB vendors~pdfjsWorker [emitted] vendors~pdfjsWorker
vendors~pdfjsWorker.dll.chunk.js.map 1.87 MiB vendors~pdfjsWorker [emitted] [dev] vendors~pdfjsWorker
Entrypoint vendor = vendor.dll.bundle.js vendor.dll.bundle.js.map
[0] dll vendor 12 bytes {vendor} [built]
[1] zlib (ignored) 15 bytes {vendor} [built]
[2] fs (ignored) 15 bytes {vendor} [built]
[3] http (ignored) 15 bytes {vendor} [built]
[4] https (ignored) 15 bytes {vendor} [built]
[7] buffer (ignored) 15 bytes {vendor} [built]
[8] crypto (ignored) 15 bytes {vendor} [built]
[9] fs (ignored) 15 bytes {vendor} [built]
[10] readable-stream (ignored) 15 bytes {vendor} [built]
[11] supports-color (ignored) 15 bytes {vendor} [built]
[./node_modules/moment-mini/locale sync recursive ^\.\/.*$] ./node_modules/moment-mini/locale sync ^\.\/.*$ 189 bytes {vendor} [built]
[./node_modules/moment/locale sync recursive ^\.\/.*$] ./node_modules/moment/locale sync ^\.\/.*$ 3 KiB {vendor} [built]
[./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {vendor} [built]
[./node_modules/webpack/buildin/harmony-module.js] (webpack)/buildin/harmony-module.js 573 bytes {vendor} [built]
[./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {vendor} [built]
+ 2635 hidden modules
Done in 20.60s.
`gitlab:assets:vendor` finished in 20.925924687 seconds
/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/gitlab/task_helpers.rb:18:in `invoke_and_time_task'
/home/git/gitlab/lib/tasks/gitlab/assets.rake:14:in `each'
/home/git/gitlab/lib/tasks/gitlab/assets.rake:14: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)
events.js:200
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:676: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:223:5)
at emit (internal/child_process.js:876:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
Emitted 'error' event on process instance at:
at internal/child_process.js:810:39
at processTicksAndRejections (internal/process/task_queues.js:76:11) {
errno: 'EPIPE',
code: 'EPIPE',
syscall: 'write'
}
events.js:200
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:676: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:223:5)
at emit (internal/child_process.js:876:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
Emitted 'error' event on process instance at:
at internal/child_process.js:810:39
at processTicksAndRejections (internal/process/task_queues.js:76:11) {
errno: 'EPIPE',
code: 'EPIPE',
syscall: 'write'
}
events.js:200
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:676: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:223:5)
at emit (internal/child_process.js:876:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
Emitted 'error' event on process instance at:
at internal/child_process.js:810:39
at processTicksAndRejections (internal/process/task_queues.js:76:11) {
errno: 'EPIPE',
code: 'EPIPE',
syscall: 'write'
}
events.js:200
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:676: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:223:5)
at emit (internal/child_process.js:876:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
Emitted 'error' event on process instance at:
at internal/child_process.js:810:39
at processTicksAndRejections (internal/process/task_queues.js:76:11) {
errno: 'EPIPE',
code: 'EPIPE',
syscall: 'write'
}
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Debian 10 Current User: git Using RVM: no Ruby Version: 2.6.5p114 Gem Version: 3.0.3 Bundler Version:1.17.3 Rake Version: 12.3.3 Redis Version: 5.0.3 Git Version: 2.24.1 Sidekiq Version:5.2.7 Go Version: go1.13.5 linux/amd64 GitLab information Version: 12.7.4 Revision: 2c062854950 Directory: /home/git/gitlab DB Adapter: PostgreSQL DB Version: 11.5 URL: https://gitlab.alembiq.net HTTP Clone URL: https://gitlab.alembiq.net/some-group/some-project.git SSH Clone URL: git@gitlab.alembiq.net:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: bitbucket GitLab Shell Version: 11.0.0 Repository storage paths: - default: /home/git/repositories GitLab Shell path: /home/git/gitlab-shell Git: /usr/local/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ... Checking GitLab Shell ... GitLab Shell: ... GitLab Shell version >= 11.0.0 ? ... OK (11.0.0) Running /home/git/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful Checking GitLab Shell ... Finished Checking Gitaly ... Gitaly: ... default ... OK Checking Gitaly ... Finished Checking Sidekiq ... Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1 Checking Sidekiq ... Finished Checking Incoming Email ... Incoming Email: ... Reply by email is disabled in config/gitlab.yml Checking Incoming Email ... Finished Checking LDAP ... LDAP: ... LDAP is disabled in config/gitlab.yml Checking LDAP ... Finished Checking GitLab App ... Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... yes Init script up-to-date? ... yes Projects have namespace: ... 2/12 ... yes 2/13 ... yes 2/14 ... yes 2/15 ... yes 2/16 ... yes 2/17 ... yes 2/18 ... yes 2/19 ... yes 1/20 ... yes 8/22 ... yes 3/23 ... yes 3/24 ... yes 3/25 ... yes 3/26 ... yes 3/27 ... yes 6/28 ... yes 6/29 ... yes 6/30 ... yes 6/31 ... yes 6/32 ... yes 6/33 ... yes 6/34 ... yes 6/35 ... yes 6/36 ... yes 6/37 ... yes 6/38 ... yes 6/39 ... yes 6/40 ... yes 6/41 ... yes 6/42 ... yes 6/43 ... yes 6/44 ... yes 6/45 ... yes 6/46 ... yes 6/47 ... yes 6/48 ... yes 6/49 ... yes 6/50 ... yes 6/51 ... yes 6/52 ... yes 6/53 ... yes 6/54 ... yes 6/55 ... yes 6/56 ... yes 6/57 ... yes 6/58 ... yes 6/59 ... yes 6/60 ... yes 6/61 ... yes 6/62 ... yes 6/63 ... yes 6/64 ... yes 6/65 ... yes 6/66 ... yes 6/67 ... yes 6/68 ... yes 6/69 ... yes 6/70 ... yes 6/71 ... yes 6/72 ... yes 6/73 ... yes 6/74 ... yes 6/75 ... yes 6/76 ... yes 6/77 ... yes 6/78 ... yes 6/79 ... yes 6/80 ... yes 6/81 ... yes 6/82 ... yes 6/83 ... yes 6/84 ... yes 6/85 ... yes 6/86 ... yes 6/87 ... yes 6/88 ... yes 6/89 ... yes 6/90 ... yes 6/91 ... yes 6/92 ... yes 6/93 ... yes 6/94 ... yes 6/95 ... yes 6/96 ... yes 6/97 ... yes 6/98 ... yes 6/99 ... yes 6/100 ... yes 1/101 ... yes 1/102 ... yes 2/105 ... yes 1/113 ... yes 2/114 ... yes 17/115 ... yes 1/116 ... yes 6/117 ... yes 6/118 ... yes 1/121 ... yes 17/122 ... yes 17/123 ... yes 2/124 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.5.3 ? ... yes (2.6.5) Git version >= 2.22.0 ? ... yes (2.24.1) Git user has default SSH configuration? ... yes Active users: ... 3 Is authorized keys file accessible? ... yes Checking GitLab App ... Finished Checking GitLab subtasks ... Finished
Edited by Karel Kremel