Open robertgarrigos opened 6 years ago
can you post the content of the /etc/nginx/sites-enabled/decidim.conf
?
this is it:
server {
listen 80;
listen [::]:80 ipv6only=on;
server_name decidim.garrigos.cat;
client_max_body_size 32M;
passenger_enabled on;
passenger_ruby /home/decidim/.rbenv/shims/ruby;
rails_env production;
root /home/decidim/decidim-app/public;
}
BTW, I could reload the app by using bundle exec passenger-config restart-app
I guess then that this is caused indeed by #2 .
Can you post the content of this files?
/etc/nginx/conf.d/mod-http-passenger.conf
/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
$ sudo cat /etc/nginx/conf.d/mod-http-passenger.conf
### Begin automatically installed Phusion Passenger config snippet ###
passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
passenger_ruby /usr/bin/passenger_free_ruby;
### End automatically installed Phusion Passenger config snippet ###
$ sudo cat /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
[locations]
packaging_method=deb
bin_dir=/usr/bin
support_binaries_dir=/usr/lib/passenger/support-binaries
lib_dir=/usr/lib/passenger
helper_scripts_dir=/usr/share/passenger/helper-scripts
resources_dir=/usr/share/passenger
include_dir=/usr/share/passenger/include
doc_dir=/usr/share/doc/passenger
ruby_libdir=/usr/lib/ruby/vendor_ruby
node_libdir=/usr/share/passenger/node
apache2_module_path=/usr/lib/apache2/modules/mod_passenger.so
ruby_extension_source_dir=/usr/share/passenger/ruby_extension_source
nginx_module_source_dir=/usr/share/passenger/ngx_http_passenger_module
Ok, I think I found the error, There's one step missing,
the line passenger_ruby
in the file /etc/nginx/conf.d/mod-http-passenger.conf
should be:
passenger_ruby /home/decidim/.rbenv/shims/ruby;
Let me know if then you can perform the command sudo passenger-config restart-app ~/decidim-app
yep, that fixed the problem 👍 thanks!
great I've updated the guide. Thanks!
Help! Please!
already modify the file /etc/nginx/conf.d/mod-http-passenger.conf
and run the command sudo passenger-config restart-app ~/decidim-app
but, it still keeps giving me an error
*** Checking whether this Passenger install is in PATH... ✓
Checking whether there are no other Passenger installations... (!)
You are currently validating against Phusion Passenger 6.0.7, located in:
/home/decidim/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/passenger-6.0.7/bin/passenger
Besides this Passenger installation, the following other Passenger installations have also been detected:
/usr/bin/passenger
Please uninstall these other Passenger installations to avoid confusion or conflicts.**
this is just a warning, it shouldn't affect it. If it really bothers you try to remove passenger
from the official deb packages. sudo apt remove passenger
Also, if you follow the guide, sudo
shouldn't be necessary.
when I run the command sudo passenger-config restart-app ~ / decidim-app
it shows There are no Phusion Passenger-server applications running whose paths with / home / decidim / decidim-app /
then youpve missed some configuration path, please do double check
Following your install and config instruction I found this error when running the command
sudo passenger-config restart-app ~/decidim-app
:and my paths are the same as those in the docs, so it should work. Coudl this be related to #2 ??
In any case I run
sudo services nginx restart
which should have the same effect, isn't?