Content
Could not find a Javascript runtime
Added by Stefano Nardo over 9 years ago
I upgraded OP from 4.0.9 to 4.1.1 following the guide. I installed Node.js too. This is the log:
[ 2015-06-07 21:00:56.3787 4490/7f4779453700 App/Implementation.cpp:287 ]: Could
not spawn process for application /home/openproject/openproject: An error occur
ed while starting up the preloader.
Error ID: a431ead8
Error details saved to: /tmp/passenger-error-zFcJj0.html
Message from application: Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
/home/openproject/.rvm/gems/ruby-2.1.5/gems/execjs-2.4.0/lib/execjs/runtimes.rb:45:in `autodetect’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/execjs-2.4.0/lib/execjs.rb:5:in `module:ExecJS’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/execjs-2.4.0/lib/execjs.rb:4:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `block in require’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:236:in `load_dependency’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/autoprefixer-rails-5.1.5/lib/autoprefixer-rails/processor.rb:2:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/autoprefixer-rails-5.1.5/lib/autoprefixer-rails.rb:29:in `require_relative’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/autoprefixer-rails-5.1.5/lib/autoprefixer-rails.rb:29:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/bundler-1.10.3/lib/bundler/runtime.rb:76:in `require’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/bundler-1.10.3/lib/bundler/runtime.rb:76:in `block (2 levels) in require’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/bundler-1.10.3/lib/bundler/runtime.rb:72:in `each’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/bundler-1.10.3/lib/bundler/runtime.rb:72:in `block in require’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/bundler-1.10.3/lib/bundler/runtime.rb:61:in `each’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/bundler-1.10.3/lib/bundler/runtime.rb:61:in `require’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/bundler-1.10.3/lib/bundler.rb:134:in `require’
/home/openproject/openproject/config/application.rb:67:in `block in <top (required)>’
/home/openproject/openproject/config/application.rb:43:in `block in bench’
/home/openproject/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/benchmark.rb:279:in `measure’
/home/openproject/openproject/config/application.rb:42:in `bench’
/home/openproject/openproject/config/application.rb:66:in `<top (required)>’
/home/openproject/openproject/config/environment.rb:31:in `require’
/home/openproject/openproject/config/environment.rb:31:in `<top (required)>’
config.ru:32:in `require’
config.ru:32:in `block in
’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize’
config.ru:1:in `new’
config.ru:1:in `
’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/passenger-5.0.9/helper-scripts/rack-preloader.rb:107:in `eval’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/passenger-5.0.9/helper-scripts/rack-preloader.rb:107:in `preload_app’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/passenger-5.0.9/helper-scripts/rack-preloader.rb:153:in `module:App’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/passenger-5.0.9/helper-scripts/rack-preloader.rb:29:in `module:PhusionPassenger’
/home/openproject/.rvm/gems/ruby-2.1.5/gems/passenger-5.0.9/helper-scripts/rack-preloader.rb:28:in `
’
Replies (3)
I solved installing nodejs on root user too with apt-get. You should update the guide.
Hi Stefano,
could you please be more precise? You followed which guide?
Cheers,
Karsten
This: https://www.openproject.org/open-source/manual-installation/latest-upgrade-guide/
Nodejs must be installed on the system to use a virtual environment like nodeenv