GitLab Upgrade to 11.4.4
Added by astuffedtiger on 2018-11-02 20:32:59
[root@server1.rootbin.co /home/git/gitlab]# sudo -u git -H bundle exec rake gettext:pack RAILS_ENV=production
module.js:529
    throw err;
    ^

Error: Cannot find module 'gettext-extractor'
    at Function.Module._resolveFilename (module.js:527:15)
    at Function.Module._load (module.js:476:23)
    at Module.require (module.js:568:17)
    at require (internal/module.js:11:18)
    at Object. (/home/git/gitlab/scripts/frontend/extract_gettext_all.js:3:44)
    at Module._compile (module.js:624:30)
    at Object.Module._extensions..js (module.js:635:10)
    at Module.load (module.js:545:32)
    at tryModuleLoad (module.js:508:12)
    at Function.Module._load (module.js:500:3)
Error parsing app/assets/javascripts/terminal/index.js
rake aborted!
JSON::ParserError: A JSON text must at least contain two octets!
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/json-1.8.6/lib/json/common.rb:155:in `initialize'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/json-1.8.6/lib/json/common.rb:155:in `new'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/json-1.8.6/lib/json/common.rb:155:in `parse'
/home/git/gitlab/config/initializers/gettext_rails_i18n_patch.rb:48:in `gettext_messages_by_file'
/home/git/gitlab/config/initializers/gettext_rails_i18n_patch.rb:42:in `collect_for'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gettext_i18n_rails_js-1.3.0/lib/gettext_i18n_rails_js/parser/base.rb:74:in `parse'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:365:in `block in parse_path'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:360:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:360:in `parse_path'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:168:in `block in parse'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:166:in `each'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:166:in `parse'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:217:in `generate_pot'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:151:in `run'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gettext-3.2.9/lib/gettext/tools/xgettext.rb:34:in `run'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gettext-3.2.9/lib/gettext/tools/task.rb:330:in `xgettext'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gettext-3.2.9/lib/gettext/tools/task.rb:314:in `create_pot'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gettext-3.2.9/lib/gettext/tools/task.rb:306:in `block in define_pot_file_task'
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/gettext_i18n_rails-1.8.0/lib/gettext_i18n_rails/tasks.rb:60:in `block (2 levels) in '
/home/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/exe/rake:27:in `'
/usr/local/bin/bundle:22:in `load'
/usr/local/bin/bundle:22:in `
' Tasks: TOP => gettext:mo:update => gettext:mo:gl_ES:update => /home/git/gitlab/locale/gl_ES/LC_MESSAGES/gitlab.mo => /home/git/gitlab/locale/gl_ES/gitlab.po => /home/git/gitlab/locale/gl_ES/gitlab.edit.po => /home/git/gitlab/locale/gitlab.pot (See full trace by running task with --trace) [root@server1.rootbin.co /home/git/gitlab]# sudo -u git -H yarn add gettext-extractor yarn add v1.2.1 [1/4] Resolving packages... [2/4] Fetching packages... error compression-webpack-plugin@2.0.0: The engine "node" is incompatible with this module. Expected version ">= 6.9.0 <7.0.0 || >= 8.9.0". error Found incompatible module info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. [root@server1.rootbin.co /home/git/gitlab]# node -v v8.7.0 [root@server1.rootbin.co /home/git/gitlab]# yarn -V 0.27.5