Sprockets::FileNotFound: couldn't find file 'vue' with type 'application/javascript
Unable to precompile assets with bundle exec rake assets:precompile RAILS_ENV=production
This GitLab installation is done on a Slackware64 14.2 Linux system.
While installing GitLab from source following official installation doc at https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md the command
sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production
fails with 'Sprockets::FileNotFound: couldn't find file 'vue' with type 'application/javascript''
Steps to reproduce
Follow step by step the documentation found at https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install
Expected behavior
You tell me :) I suppose a success message with fancy colors and pre-compiled assets installed in corresponding directories.
Actual behavior
The command aborted with error listed above.
Relevant logs and/or screenshots
git@jimmy:~/gitlab$ bundle exec rake assets:precompile RAILS_ENV=production
rake aborted!
Sprockets::FileNotFound: couldn't find file 'vue' with type 'application/javascript'
Checked in these paths:
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/babel-source-5.8.35/lib
/home/git/gitlab/app/assets/images
/home/git/gitlab/app/assets/javascripts
/home/git/gitlab/app/assets/stylesheets
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/select2-rails-3.5.9.3/vendor/assets/images
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/select2-rails-3.5.9.3/vendor/assets/javascripts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/select2-rails-3.5.9.3/vendor/assets/stylesheets
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/jquery-ui-rails-5.0.5/app/assets/images
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/jquery-ui-rails-5.0.5/app/assets/javascripts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/jquery-ui-rails-5.0.5/app/assets/stylesheets
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/jquery-rails-4.1.1/vendor/assets/javascripts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/jquery-atwho-rails-1.3.2/lib/assets/javascripts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/jquery-atwho-rails-1.3.2/lib/assets/stylesheets
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/font-awesome-rails-4.6.1.0/app/assets/fonts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/font-awesome-rails-4.6.1.0/app/assets/stylesheets
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/jquery-turbolinks-2.1.0/vendor/assets/javascripts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/turbolinks-2.5.3/lib/assets/javascripts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/coffee-rails-4.1.1/lib/assets/javascripts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/mousetrap-rails-1.4.6/app/assets/stylesheets
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/mousetrap-rails-1.4.6/vendor/assets/javascripts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/ace-rails-ap-4.1.0/vendor/assets/javascripts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/underscore-rails-1.8.3/vendor/assets/javascripts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/d3_rails-3.5.11/app/assets/javascripts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/d3_rails-3.5.11/app/assets/stylesheets
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/dropzonejs-rails-0.7.2/app/assets/javascripts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/dropzonejs-rails-0.7.2/app/assets/stylesheets
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/doorkeeper-4.2.0/app/assets/stylesheets
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/doorkeeper-4.2.0/vendor/assets/stylesheets
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/gemojione-3.0.1/assets/png
/home/git/gitlab/vendor/assets/fonts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/deckar01-task_list-1.0.6/app/assets/stylesheets
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/deckar01-task_list-1.0.6/app/assets/javascripts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/bootstrap-sass-3.3.6/assets/stylesheets
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/bootstrap-sass-3.3.6/assets/javascripts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/bootstrap-sass-3.3.6/assets/fonts
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/bootstrap-sass-3.3.6/assets/images
/home/git/gitlab/app/assets/javascripts/diff_notes/diff_notes_bundle.js.es6:5
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/resolve.rb:65:in `resolve!'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:399:in `resolve'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:207:in `process_require_directive'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:180:in `block in process_directives'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:178:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:178:in `process_directives'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:83:in `_call'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/directive_processor.rb:68:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:in `call_processor'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in `call_processors'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:in `block in load'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:in `load'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in `yield'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in `load'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/bundle.rb:23:in `block in call'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/utils.rb:196:in `dfs'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/bundle.rb:24:in `call'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:75:in `call_processor'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/processor_utils.rb:56:in `call_processors'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:60:in `block in load'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/loader.rb:44:in `load'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in `yield'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/cached_environment.rb:47:in `load'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:66:in `find_asset'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:134:in `block in find'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:133:in `find'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/sprockets/manifest.rb:185:in `compile'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-3.1.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-3.7.0/lib/rake/sprocketstask.rb:147:in `with_logger'
/home/git/gitlab/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-3.1.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
/usr/bin/bundle:23:in `load'
/usr/bin/bundle:23:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
Output of checks
This bug happens on GitLab.com
Results of GitLab application Check
git@jimmy:~/gitlab$ bundle exec rake gitlab:env:info RAILS_ENV=production
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.2.5p319
Gem Version: 2.4.5.1
Bundler Version:1.13.6
Rake Version: 10.5.0
Sidekiq Version:4.2.7
GitLab information
Version: 8.15.1
Revision: 1119c1f
Directory: /home/git/gitlab
DB Adapter: postgresql
URL: http://git.tetalab.org
HTTP Clone URL: http://git.tetalab.org/some-group/some-project.git
SSH Clone URL: git@tetalab.org:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 4.1.1
Repository storage paths:
- default: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
This system uses a BSD-style init system. The init scripts used to start this installation are unmodified from those provided by GitLab.com but they are not stored at the expected place.
git@jimmy:~/gitlab$ bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true [18/1958]
Checking GitLab Shell ...
GitLab Shell version >= 4.1.1 ? ... OK (4.1.1)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ... can't check, you have no projects
Running /home/git/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /home/git/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... skipped (no tmp uploads folder yet)
Init script exists? ... no
Try fixing it:
Install the init script
For more information see:
doc/install/installation.md in section "Install Init Script"
Please fix the error above and rerun the checks.
Init script up-to-date? ... can't check because of previous errors
projects have namespace: ... can't check, you have no projects
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.2.5)
Your git bin path is "/usr/bin/git"
Git version >= 2.7.3 ? ... yes (2.9.0)
Active users: 1
Checking GitLab ... Finished
Possible fixes
No idea :-(