I'm trying to set up for the first time with Rubber onto EC2 (complete_passenger_nginx_postgresql). I changed a bunch of settings in the config files to make it work with a different AMI (Ubuntu 12.04.3 LTS - ami-a73264ce (64-bit)), Ruby 2.1.0, Passenger 4.0.29, and Nginx 1.4.4. I almost got it to work, but it failed when starting Nginx with the following error:
nginx: [emerg] invalid number of arguments in "passenger_root" directive in /etc/nginx/nginx.conf:45
rubber-passenger_nginx.yml has the following code for "passenger_root":
passenger_lib: "#{passenger_root}/ext/nginx"
Any idea what I should change to make it work?
In My case, I have missed to mention ;
at the end of the root directory declaration
Error:
root "/directory/with double quotes/will work"
Solution:
root "/directory/with double quotes/will work";
You have an error in your /etc/nginx/nginx.conf file.
Change the lines:
passenger_root /usr/local/rubies/2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/passenger-4.0.29
/usr/local/rubies/2.1.0/lib/ruby/gems/2.1.0/gems/passenger-4.0.29;
passenger_ruby /usr/local/rubies/2.1.0/bin/ruby;
into:
passenger_root /usr/local/rubies/2.1.0/lib/ruby/gems/2.1.0/gems/passenger-4.0.29;
passenger_ruby /usr/local/rubies/2.1.0/bin/ruby;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With