Deploying a Rails app using Capistrano to an Ubuntu VM running Apache with Passenger enabled.
I followed this tutorial: https://www.phusionpassenger.com/library/install/apache/install/oss/trusty/ with a few changes given that I'm on 17.04, not 14.04 LTS.
passenger-config validate-install
says everything looks fine with both Passenger and Apache. passenger-memory-stats
shows both Passenger and Apache processes.
I have sudo apache2ctl restart
ed several times, with no warnings. But passenger-status
, and therefore the passenger-config restart-app
that Capistrano runs, reports that Passenger "doesn't seem to be running." So my deploy stops.
There's only one Ruby on the machine, ruby-2.4.1 installed using ruby-install. I have apt-get update
and upgrade
d in case of version mismatches.
Apache logs don't show any errors, certainly none related to Passenger.
Why would Passenger internally disagree, saying that it's both configured properly and there are processes running, but then later saying that it's not running?
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
. Nothing in there specifically related to Passenger (like customizing the instance registry directory). Let me know if any other ENV values would help you. – Ghat$TMPDIR
the same in both envs? – Garth$TMPDIR
is not set. Locally (OSX) it's/var/folders/50/m8x23f6s7lg6pb2sxpx_47g4m2j3m8/T/
. – Ghat$TMPDIR
is unset. ThePATH
I gave you was remote as well. – GhatPassengerInstanceRegistryDir
? If so then your CLI tools need thePASSENGER_INSTANCE_REGISTRY_DIR
env var set to the same value. – Garthpassenger.randomstring
dir in/tmp
? – Garth