Also -- very important -- the default passenger instance registry directory is /var/run/passenger-instreg which is blown away after reboot. If passenger can't create that directory, it can't run. There might be something messed up about permissions for my installation, but setting this directory to /tmp solved my problems.
So here's what I had to do:
Edit /etc/nginx/conf.d/mod-http-passenger.conf to revise the directive to passenger_instance_registry_dir /tmp;
Tell Capistrano about this change in deploy.rb with set :passenger_environment_variables, { 'PASSENGER_INSTANCE_REGISTRY_DIR' => '/tmp' }
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Also -- very important -- the default passenger instance registry directory is
/var/run/passenger-instregwhich is blown away after reboot. If passenger can't create that directory, it can't run. There might be something messed up about permissions for my installation, but setting this directory to/tmpsolved my problems.So here's what I had to do:
/etc/nginx/conf.d/mod-http-passenger.confto revise the directive topassenger_instance_registry_dir /tmp;deploy.rbwithset :passenger_environment_variables, { 'PASSENGER_INSTANCE_REGISTRY_DIR' => '/tmp' }