Platoniq / decidim-install

A step-by-step guide to install Decidim on a production site
https://platoniq.github.io/decidim-install/
GNU Affero General Public License v3.0
54 stars 35 forks source link

"no Phusion Passenger-served applications running" error #4

Open robertgarrigos opened 6 years ago

robertgarrigos commented 6 years ago

Following your install and config instruction I found this error when running the command sudo passenger-config restart-app ~/decidim-app:

There are no Phusion Passenger-served applications running whose paths begin with '/home/decidim/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?

microstudi commented 6 years ago

can you post the content of the /etc/nginx/sites-enabled/decidim.conf?

robertgarrigos commented 6 years ago

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

microstudi commented 6 years ago

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

robertgarrigos commented 6 years ago
$ 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
microstudi commented 6 years ago

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

robertgarrigos commented 6 years ago

yep, that fixed the problem 👍 thanks!

microstudi commented 6 years ago

great I've updated the guide. Thanks!

S-Developer commented 3 years ago

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... ✓

microstudi commented 3 years ago

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.

S-Developer commented 3 years ago

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 /

microstudi commented 3 years ago

then youpve missed some configuration path, please do double check