• Diese Seite verwendet Cookies. Indem du diese Website weiterhin nutzt, erklärst du dich mit der Verwendung von Cookies einverstanden. Erfahre mehr

GitLab-CE: Webpack fehlt?

Themenstarter #1
Moin Zusammen,
nach Gitea und Jekins wollte ich mich mal mit GitLab auseinandersetzen. Zum Üben habe ich versucht in einer VM in VirtualBox mit FreeBSD 12.1 das Package zu installieren.

Frische Installation vom FreeBSD 12.1 RELEASE, dann /etc/pkg/FreeBSD.conf auf „latest“ umgestellt und der Anleitung gefolgt:
- https://gitlab.fechner.net/mfechner/Gitlab-docu/blob/master/install/12.5-freebsd.md
- In „config/gitlab.yaml“ ausschließlich „host:“ auf den Hostname geändert.

Leider erhalte ich einen Fehler 500, "Whoops, something went wrong on our end." beim initialen Öffnen der Website.
Dem Log entnehme ich ein Fehler vom "Webpack":

Code:
root@VM-BSD-GitLab:~ # less /usr/local/www/gitlab-ce/log/production.log
Started GET "/users/sign_in" for 192.168.254.10 at 2019-12-23 08:40:13 +0000
Processing by SessionsController#new as HTML
Completed 500 Internal Server Error in 58ms (ActiveRecord: 4.1ms | Elasticsearch: 0.0ms)

ActionView::Template::Error (Could not load compiled manifest from /usr/local/www/gitlab-ce/public/assets/webpack/manifest.json - have you run `rake webpack:compile`? (original error No such file or directory @ rb_sysopen - /usr/local/www/gitlab-ce/public/assets/webpack/manifest.json)):
    59:   = javascript_include_tag locale_path unless I18n.locale == :en
    60:   = webpack_bundle_tag "sentry" if Gitlab.config.sentry.enabled
    61:
    62:   - if content_for?(:page_specific_javascripts)
    63:     = yield :page_specific_javascripts
    64:
    65:   = webpack_controller_bundle_tags

Auch nach mehreren Versuchen die Installation erneut durchzuführen, erhalte ich immer diesen Fehler.
Der Empfehlung zu folgen und „webpack:compile“ auszuführen brachte keine Verbesserung:

Code:
root@VM-BSD-GitLab:~ # su -l git -c "cd /usr/local/www/gitlab-ce && rake webpack:compile RAILS_ENV=production NODE_ENV=production NODE_OPTIONS='--max_old_space_size=4096'"

Aber auch danach befindet sich unter /usr/local/www/gitlab-ce/public/assets/ kein Verzeichnis „webpack“.
Die Packages sind unter anderem:

Code:
root@VM-BSD-GitLab:/usr/local/www/gitlab-ce # pkg info
git-2.24.1                     Distributed source code management tool
gitaly-1.72.1                  Smart reverse proxy for GitLab
gitlab-ce-12.5.5               Web GUI for managing git repositories
gitlab-pages-1.12.0            Official GitLab Pages daemon
gitlab-shell-10.2.0            GitLab Shell handles git commands for GitLab
gitlab-workhorse-8.14.1        Smart reverse proxy for GitLab
nginx-1.16.1_7,2               Robust and small WWW server
redis-5.0.7_2                  Persistent key-value database with built-in net interface
ruby-2.6.5,1                   Object-oriented interpreted scripting language
postgresql11-client-11.6       PostgreSQL database (client)
postgresql11-contrib-11.6      The contrib utilities from the PostgreSQL distribution
postgresql11-server-11.6       PostgreSQL is the most advanced open-source database available anywhere

Danke schonmal für Feedback, Neals
 
Themenstarter #2
Hier noch der trace vom "webpack:compile":
Code:
root@VM-BSD-GitLab:/usr/local/www/gitlab-ce # su -l git -c "cd /usr/local/www/gitlab-ce && rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production NODE_OPTIONS='--max_old_space_size=4096' --trace"
...
** Execute webpack:compile
/usr/local/www/gitlab-ce/node_modules/.bin/webpack --config /usr/local/www/gitlab-ce/config/webpack.config.js --bail
rake aborted!
Command failed with status (): [/usr/local/www/gitlab-ce/node_modules/.bin...]
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/file_utils.rb:67:in `block in create_shell_runner'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/file_utils.rb:57:in `sh'
/usr/local/lib/ruby/gems/2.6/gems/webpack-rails-0.9.11/lib/tasks/webpack.rake:17:in `block (2 levels) in <top (required)>'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/task.rb:273:in `block in execute'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/task.rb:273:in `each'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/task.rb:273:in `execute'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/task.rb:214:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/2.6/monitor.rb:235:in `mon_synchronize'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/task.rb:194:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/task.rb:183:in `invoke'
/usr/local/www/gitlab-ce/lib/gitlab/task_helpers.rb:18:in `invoke_and_time_task'
/usr/local/www/gitlab-ce/lib/tasks/gitlab/assets.rake:13:in `each'
/usr/local/www/gitlab-ce/lib/tasks/gitlab/assets.rake:13:in `block (3 levels) in <top (required)>'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/task.rb:273:in `block in execute'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/task.rb:273:in `each'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/task.rb:273:in `execute'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/task.rb:214:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/2.6/monitor.rb:235:in `mon_synchronize'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/task.rb:194:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/task.rb:183:in `invoke'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/application.rb:160:in `invoke_task'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/application.rb:116:in `each'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/application.rb:116:in `block in top_level'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/application.rb:125:in `run_with_threads'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/application.rb:110:in `top_level'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/application.rb:83:in `block in run'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/application.rb:186:in `standard_exception_handling'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/lib/rake/application.rb:80:in `run'
/usr/local/lib/ruby/gems/2.6/gems/rake-12.3.3/exe/rake:27:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'
Tasks: TOP => webpack:compile