Content
Nginx installation - error while trying to load the gem 'autoprefixer-rails'
Added by Alexander Belokon almost 9 years ago
Hey, I’m trying to set up OpenProject on Ubuntu 14.04 LTS with nginx. So I followed the manual installation guide until the point where apache and passenger should be installed.
Then I installed passenger this way (nginx was already installed at this point): [[https://www.phusionpassenger.com/library/install/nginx/install/oss/trusty/]]
Finally I created my vhost in nginx with a subdomain (openproject.domain.de).
But if I now try to access the page it tells me: “We’re sorry, but something went wrong.”
The error log tells me this:
[ 2016-01-11 02:22:52.0195 5719/7fb0607f8700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /home/openproject/openproject: An error occurr$
Error ID: 8f3de94c
Error details saved to: /tmp/passenger-error-8V9Zru.html
Message from application: There was an error while trying to load the gem ‘autoprefixer-rails’. (Bundler::GemRequireError)
/home/openproject/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require’
/home/openproject/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require’
/home/openproject/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each’
/home/openproject/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require’
/home/openproject/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each’
/home/openproject/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require’
/home/openproject/.rvm/gems/ruby-2.1.4/gems/bundler-1.11.2/lib/bundler.rb:99:in `require’
/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.4/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval’
/home/openproject/.rvm/gems/ruby-2.1.4/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize’
config.ru:1:in `new’
config.ru:1:in `
’
/usr/share/passenger/helper-scripts/rack-preloader.rb:110:in `eval’
/usr/share/passenger/helper-scripts/rack-preloader.rb:110:in `preload_app’
/usr/share/passenger/helper-scripts/rack-preloader.rb:156:in `module:App’
/usr/share/passenger/helper-scripts/rack-preloader.rb:30:in `module:PhusionPassenger’
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in `
’
So I tried ‘gem install autoprefixer-rails’ - but this didnt help. Maybe someone here has an idea what this could be? :-)
Replies (2)
Hi Alexander,
I had the same Problem just yesterday, but only found your post.
Now I got it fixed and thought I might leave some information for people experiencing the same problem..
This error is related to a missing javascript runtime.
Easiest way will be to install nodejs (“apt-get install nodejs” on ubuntu).
Hello,
I had a similar situation with the Classroom setup inside a Docker container. When I ran script setup, I got a message that the gem autoprefixer-rails can't be loaded. I found out that I didn't have a Javascript runtime dependency. So nodejs fixed this for me.
https://community.openproject.com/topics/9699