ExecJS::RuntimeError in 13-5-stable
Running:
bundle exec rake yarn:install gitlab:assets:clean gitlab:assets:compile RAILS_ENV=production NODE_ENV=production NODE_OPTIONS="--max_old_space_size=4096" --trace
On 13-5-stable
produces the below error. Tried node
10 and 12. Everything worked fine previously on 13-3-stable
.
Error snippet:
** Execute assets:precompile
rake aborted!
ExecJS::RuntimeError: /tmp/execjs20201125-10012-6uf9vrjs:443
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("source-map")):"function"==typeof define&&define.amd?define(["exports","source-map"],t):t((e=e||self).Terser={},e.sourceMap)}(this,(function(e,t){"use strict";function n(e){return e.split("")}function i(e,t){return t.includes(e)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;class r extends Error{constructor(e,t){super(),this.name="DefaultsError",this.message=e,this.defs=t}}function o(e,t,n){!0===e&&(e={});const i=e||{};if(n)for(const e in i)if(D(i,e)&&!D(t,e))throw new r("`"+e+"` is not a supported option",t);for(const n in t)if(D(t,n))if(e&&D(e,n))if("ecma"===n){let t=0|e[n];t>5&&t<2015&&(t+=2009),i[n]=t}else i[n]=e&&D(e,n)?e[n]:t[n];else i[n]=t[n];return i}function a(){}function s(){return!1}function u(){return!0}function c(){return this}function l(){return null}var f=function(){function e(e,o,a){var s,u=[],c=[];function l(){var l=o(e[s],s),f=l instanceof r;retu
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:140:18)
at node.js:1043:3
(execjs):443
Full log:
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
gettext:po_to_json
finished in 39.073102426 seconds
** Invoke assets:precompile (first_time)
** Invoke assets:environment
** Invoke yarn:install
** Execute assets:precompile
rake aborted!
ExecJS::RuntimeError: /tmp/execjs20201125-10012-6uf9vrjs:443
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("source-map")):"function"==typeof define&&define.amd?define(["exports","source-map"],t):t((e=e||self).Terser={},e.sourceMap)}(this,(function(e,t){"use strict";function n(e){return e.split("")}function i(e,t){return t.includes(e)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;class r extends Error{constructor(e,t){super(),this.name="DefaultsError",this.message=e,this.defs=t}}function o(e,t,n){!0===e&&(e={});const i=e||{};if(n)for(const e in i)if(D(i,e)&&!D(t,e))throw new r(""+e+"
is not a supported option",t);for(const n in t)if(D(t,n))if(e&&D(e,n))if("ecma"===n){let t=0|e[n];t>5&&t<2015&&(t+=2009),i[n]=t}else i[n]=e&&D(e,n)?e[n]:t[n];else i[n]=t[n];return i}function a(){}function s(){return!1}function u(){return!0}function c(){return this}function l(){return null}var f=function(){function e(e,o,a){var s,u=[],c=[];function l(){var l=o(e[s],s),f=l instanceof r;retu
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:140:18)
at node.js:1043:3
(execjs):443
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:219:in exec_runtime' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:39:in
exec'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/execjs-2.7.0/lib/execjs/external_runtime.rb:14:in initialize' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/execjs-2.7.0/lib/execjs/runtime.rb:57:in
new'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/execjs-2.7.0/lib/execjs/runtime.rb:57:in compile' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/execjs-2.7.0/lib/execjs/module.rb:27:in
compile'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/terser-1.0.2/lib/terser.rb:183:in context' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/terser-1.0.2/lib/terser.rb:223:in
run_terserjs'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/terser-1.0.2/lib/terser.rb:164:in compile' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/terser-1.0.2/lib/terser/compressor.rb:45:in
call'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/terser-1.0.2/lib/terser/compressor.rb:23:in call' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in
call_processor'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in block in call_processors' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in
reverse_each'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in call_processors' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in
load_from_unloaded'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in block in load' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in
fetch_asset_from_dependency_cache'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in load' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in
block in initialize'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in load' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/context.rb:99:in
load'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/context.rb:129:in depend_on_asset' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/context.rb:160:in
link_asset'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/context.rb:27:in compute_asset_path' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/actionview-6.0.3.3/lib/action_view/helpers/asset_url_helper.rb:201:in
asset_path'
/home/git/gitlab/app/assets/javascripts/lib/ace/ace_config_paths.js.erb:22:in block in _evaluate_template' /home/git/gitlab/app/assets/javascripts/lib/ace/ace_config_paths.js.erb:21:in
each'
/home/git/gitlab/app/assets/javascripts/lib/ace/ace_config_paths.js.erb:21:in _evaluate_template' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/erb_processor.rb:26:in
call'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/erb_processor.rb:13:in call' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in
call_processor'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in block in call_processors' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in
reverse_each'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in call_processors' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in
load_from_unloaded'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in block in load' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in
fetch_asset_from_dependency_cache'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in load' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in
block in initialize'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in load' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/bundle.rb:23:in
block in call'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/utils.rb:200:in dfs' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/bundle.rb:24:in
call'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in call_processor' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in
block in call_processors'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in reverse_each' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in
call_processors'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in load_from_unloaded' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in
block in load'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in fetch_asset_from_dependency_cache' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in
load'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in block in initialize' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in
load'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in find_asset' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in
find_all_linked_assets'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:134:in block in find' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:133:in
each'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:133:in find' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in
compile'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/task.rb:67:in block (3 levels) in define' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in
with_logger'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/sprockets-rails-3.2.2/lib/sprockets/rails/task.rb:66:in block (2 levels) in define' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:273:in
block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:273:in each' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:273:in
execute'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:214:in block in invoke_with_call_chain' /usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/monitor.rb:235:in
mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:194:in invoke_with_call_chain' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:183:in
invoke'
/home/git/gitlab/lib/gitlab/task_helpers.rb:18:in invoke_and_time_task' /home/git/gitlab/lib/tasks/gitlab/assets.rake:59:in
each'
/home/git/gitlab/lib/tasks/gitlab/assets.rake:59:in block (3 levels) in <top (required)>' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:273:in
block in execute'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:273:in each' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:273:in
execute'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:214:in block in invoke_with_call_chain' /usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/2.6.0/monitor.rb:235:in
mon_synchronize'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:194:in invoke_with_call_chain' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/task.rb:183:in
invoke'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:160:in invoke_task' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:116:in
block (2 levels) in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:116:in each' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:116:in
block in top_level'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:125:in run_with_threads' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:110:in
top_level'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:83:in block in run' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:186:in
standard_exception_handling'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/lib/rake/application.rb:80:in run' /home/git/gitlab/vendor/bundle/ruby/2.6.0/gems/rake-12.3.3/exe/rake:27:in
<top (required)>'
/home/git/gitlab/vendor/bundle/ruby/2.6.0/bin/rake:23:in load' /home/git/gitlab/vendor/bundle/ruby/2.6.0/bin/rake:23:in
<top (required)>'
/usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/bundler/cli/exec.rb:74:in load' /usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/bundler/cli/exec.rb:74:in
kernel_load'
/usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/bundler/cli/exec.rb:28:in run' /usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/bundler/cli.rb:463:in
exec'
/usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/bundler/vendor/thor/lib/thor/command.rb:27:in run' /usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/bundler/vendor/thor/lib/thor/invocation.rb:126:in
invoke_command'
/usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/bundler/vendor/thor/lib/thor.rb:387:in dispatch' /usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/bundler/cli.rb:27:in
dispatch'
/usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/bundler/vendor/thor/lib/thor/base.rb:466:in start' /usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/bundler/cli.rb:18:in
start'
/usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/exe/bundle:30:in block in <top (required)>' /usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0/bundler/friendly_errors.rb:124:in
with_friendly_errors'
/usr/local/rvm/rubies/ruby-2.6.6/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/exe/bundle:22:in <top (required)>' /usr/local/rvm/rubies/ruby-2.6.6/bin/bundle:23:in
load'
/usr/local/rvm/rubies/ruby-2.6.6/bin/bundle:23:in `'
Tasks: TOP => assets:precompile
</details>