Issue with webpack:compile during upgrade from gitlab v10.2.5 to v10.3.0 (from source) -- update of instructions possibly needed
Hi,
I was following https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/update/10.2-to-10.3.md when during the last but one command in step 12
# 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
I experienced the following issue:
rake aborted!
Command failed with status (2): [/home/git/gitlab/node_modules/.bin/webpack...]
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/webpack-rails-0.9.10/lib/tasks/webpack.rake:17:in `block (2 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:22:in `load'
/usr/local/bin/bundle:22:in `<main>'
Tasks: TOP => gitlab:assets:compile => webpack:compile
(See full trace by running task with --trace)
My installed versions of nodejs was v4.8.4 (default for Debian testing). When I noticed that the latest LTS version of nodejs on nodejs.org is v8.9.3, I followed the instructions at https://nodejs.org/en/download/ for Debian/Ubuntu systems to install it. It also upgraded npm to 5.5.1. After this upgrade of nodejs, I reran the recompilation of the assets bundle command and it worked. Also all thorough final checks (step 14) were fine now.
I am posting this, as the intructions for the 10.2 to 10.3 upgrade tell in step 4 that the minimum version of node is v4.3.0. Given that I experienced issues with node v4.8.4 you may want to check this statement and possibly upgrade the requirement stated in this point of the instructions. Or you may check what breaks the compatibility of gitlab CE 10.3 with node v4.8.4.
Best wishes,
w.w.
System/gitlab installation information on my system:
System information System: Debian testing Current User: git Using RVM: no Ruby Version: 2.3.5p376 Gem Version: 2.5.2.1 Bundler Version:1.16.0 Rake Version: 12.3.0 Redis Version: 3.0.6 Git Version: 2.13.2 Sidekiq Version:5.0.4 Go Version: go1.8.3 linux/amd64
GitLab information
Version: 10.3.0
Revision: fd9dd4c4
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: https://git.hep.physik.uni-siegen.XXX.de
HTTP Clone URL: https://git.hep.physik.uni-siegen.XXX.de/some-group/some-project.git
SSH Clone URL: ssh://git@git.hep.physik.uni-siegen.XXX.de/some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 5.10.2
Repository storage paths:
- default: /home/git/repositories
Hooks: /home/git/gitlab-shell/hooks
Git: /usr/bin/git