GitLab Source Install : first install : gitlab:assets:compile => webpack:compile failed
Summary
Hi,
I almost installed GLCE from source (it's working) but only one cmd don't run, to complete install : sh sudo -u git -H bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production
Steps to reproduce
run sh sudo -u git -H bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production in sh /home/git/gitlab
What is the current bug behavior?
assets was not compiled so my web front is ... ugly, none css or js is used
What is the expected correct behavior?
assets compiled successfully
Relevant logs and/or screenshots
$ > sudo -u git -H bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production --trace
** Invoke gitlab:assets:compile (first_time)
** Invoke yarn:check (first_time)
** Invoke yarn:available (first_time)
** Execute yarn:available
** Execute yarn:check
warning Skipping preferred cache folder "/var/opt/gitlab/.cache/yarn" because it is not writable.
warning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-1001".
** Invoke gettext:po_to_json (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gettext:po_to_json
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/bg
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/he_IL
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/et_EE
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/es
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/hu_HU
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/fil_PH
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/pl_PL
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/ru
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/eo
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/sq_AL
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/nb_NO
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/sr_SP
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/da_DK
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/id_ID
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/ko
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/ca_ES
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/el_GR
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/sk_SK
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/ja
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/en
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/cy_GB
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/fr
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/gl_ES
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/sr_CS
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/zh_HK
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/pt_PT
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/pt_BR
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/mn_MN
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/ro_RO
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/tr_TR
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/zh_CN
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/cs_CZ
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/nl_NL
Created app.js in /home/git/gitlab/app/assets/javascripts/locale/zh_TW
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
** Invoke assets:precompile (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment
** Execute assets:precompile
** Invoke webpack:compile (first_time)
** Invoke environment
** Execute webpack:compile
/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.5.0/gems/rake-12.3.1/lib/rake/file_utils.rb:67:in `block in create_shell_runner'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/file_utils.rb:57:in `sh'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/webpack-rails-0.9.11/lib/tasks/webpack.rake:17:in `block (2 levels) in <top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `execute'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:213:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:193:in `invoke_with_call_chain'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:237:in `block in invoke_prerequisites'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:235:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:235:in `invoke_prerequisites'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:212:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:193:in `invoke_with_call_chain'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:182:in `invoke'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:160:in `invoke_task'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `block in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:125:in `run_with_threads'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:110:in `top_level'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:83:in `block in run'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:80:in `run'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/bin/rake:23:in `load'
/home/git/gitlab/vendor/bundle/ruby/2.5.0/bin/rake:23:in `<top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/cli/exec.rb:74:in `load'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/cli/exec.rb:74:in `kernel_load'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/cli/exec.rb:28:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/cli.rb:463:in `exec'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/cli.rb:27:in `dispatch'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/cli.rb:18:in `start'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.2/exe/bundle:30:in `block in <top (required)>'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.2/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.17.2/exe/bundle:22:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => gitlab:assets:compile => webpack:compile
Results of GitLab environment info
$ > sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
System information
System: Debian 9.6
Current User: git
Using RVM: no
Ruby Version: 2.5.3p105
Gem Version: 2.7.6
Bundler Version:1.17.2
Rake Version: 12.3.1
Redis Version: 3.2.6
Git Version: 2.18.0
Sidekiq Version:5.2.3
Go Version: go1.10.3 linux/amd64
GitLab information
Version: 11.6.0-rc9
Revision: f9d582d9fbe
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://git.mydomain.tld
HTTP Clone URL: http://git.mydomain.tld/some-group/some-project.git
SSH Clone URL: git@git.mydomain.tld:some-group/some-project.git
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 8.4.3
Repository storage paths:
- default: /home/git/repositories
Hooks: /home/git/gitlab-shell/hooks
Git: /usr/local/bin/git
Results of GitLab application Check
$ > sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 8.4.3 ? ... OK (8.4.3)
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: 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? ... skipped (no tmp uploads folder yet)
Init script exists? ... yes
Init script up-to-date? ... yes
Projects have namespace: ... can't check, you have no projects
Redis version >= 2.8.0? ... yes
Ruby version >= 2.3.5 ? ... yes (2.5.3)
Git version >= 2.18.0 ? ... yes (2.18.0)
Git user has default SSH configuration? ... yes
Active users: ... 1 (me ... to test)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Thanks for your help :)