Passenger Not Calling Rails - OSX 10.10.5 (Yosemite)

40 views
Skip to first unread message

Walt

unread,
Jan 9, 2017, 11:18:49 AM1/9/17
to Phusion Passenger Discussions
I have installed passenger (to support Ruby ver 2.3.0, on Rails ver 5) on my mac mini running Yosemite. I did the download and installation using brew and the installation appears to be correct based on what I received below:


What would you like to validate?
Use <space> to select.
If the menu doesn't display correctly, press '!'

   ⬢  Passenger itself
 ‣ ⬢  Apache

-------------------------------------------------------------------------

Checking whether there are multiple Apache installations...
Only a single installation detected. This is good.

-------------------------------------------------------------------------

 * Checking whether this Passenger install is in PATH... ✓
 * Checking whether there are no other Passenger installations... ✓
 * Checking whether Apache is installed... ✓
 * Checking whether the Passenger module is correctly configured in Apache... ✓

Everything looks good. :-)
 
Version: 5.1.1
Date   : 2017-01-08 11:07:30 -0800

----------- Apache processes -----------
PID    PPID   VMSize     Resident  Name
----------------------------------------
90619  1      2425.1 MB  10.9 MB   /usr/sbin/httpd -D FOREGROUND
90648  90619  2433.1 MB  2.1 MB    /usr/sbin/httpd -D FOREGROUND
90654  90619  2425.1 MB  2.1 MB    /usr/sbin/httpd -D FOREGROUND


-------- Nginx processes ---------



------ Passenger processes ------
PID    VMSize     Resident  Name
---------------------------------
90638  2406.4 MB  3.7 MB    Passenger watchdog
90640  2487.5 MB  9.9 MB    Passenger core
90642  2407.1 MB  3.4 MB    Passenger ust-router

However, when I try and access the web site, I get:

Forbidden

You don't have permission to access / on this server.


If I place a working (plain HTML)) index file at the default document directory for the web site and access the web site (same access as that which generates the previously shown forbidden message) the index file is displayed properly. The rails sub directories (along with all of the application files) are all at the default document directory for the web site. The application runs properly using the Rails server. Checking the Apache2 error_log, I see:



[ 2017-01-08 14:28:51.7679 93408/0x7fff7c74c300 age/Wat/WatchdogMain.cpp:1281 ]: Starting Passenger watchdog...
[ 2017-01-08 14:28:51.7863 93410/0x7fff7c74c300 age/Cor/CoreMain.cpp:1070 ]: Starting Passenger core...
[ 2017-01-08 14:28:51.7873 93410/0x7fff7c74c300 age/Cor/CoreMain.cpp:245 ]: Passenger core running in multi-application mode.
[ 2017-01-08 14:28:51.7941 93410/0x7fff7c74c300 age/Cor/CoreMain.cpp:820 ]: Passenger core online, PID 93410
[ 2017-01-08 14:28:51.8036 93412/0x7fff7c74c300 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
[ 2017-01-08 14:28:51.8056 93412/0x7fff7c74c300 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 93412


[ 2017-01-08 14:28:51.8199 93412/0x10df42000 age/Ust/UstRouterMain.cpp:422 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ 2017-01-08 14:28:51.8199 93410/0x10a894000 age/Cor/CoreMain.cpp:585 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ 2017-01-08 14:28:51.8199 93412/0x7fff7c74c300 age/Ust/UstRouterMain.cpp:492 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ 2017-01-08 14:28:51.8200 93410/0x7fff7c74c300 age/Cor/CoreMain.cpp:989 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ 2017-01-08 14:28:51.8201 93412/0x10df42000 Ser/Server.h:464 ]: [UstRouter] Shutdown finished
[ 2017-01-08 14:28:51.8201 93412/0x10e048000 Ser/Server.h:816 ]: [UstRouterApiServer] Freed 0 spare client objects
[ 2017-01-08 14:28:51.8202 93412/0x10e048000 Ser/Server.h:464 ]: [UstRouterApiServer] Shutdown finished
[ 2017-01-08 14:28:51.8204 93410/0x10adb2000 Ser/Server.h:816 ]: [ServerThr.6] Freed 128 spare client objects
[ 2017-01-08 14:28:51.8204 93410/0x10a894000 Ser/Server.h:816 ]: [ServerThr.1] Freed 128 spare client objects
[ 2017-01-08 14:28:51.8204 93410/0x10aba6000 Ser/Server.h:816 ]: [ServerThr.4] Freed 128 spare client objects
[ 2017-01-08 14:28:51.8204 93410/0x10aaa0000 Ser/Server.h:816 ]: [ServerThr.3] Freed 128 spare client objects
[ 2017-01-08 14:28:51.8205 93410/0x10adb2000 Ser/Server.h:464 ]: [ServerThr.6] Shutdown finished
[ 2017-01-08 14:28:51.8205 93410/0x10a894000 Ser/Server.h:464 ]: [ServerThr.1] Shutdown finished
[ 2017-01-08 14:28:51.8205 93410/0x10aaa0000 Ser/Server.h:464 ]: [ServerThr.3] Shutdown finished
[ 2017-01-08 14:28:51.8204 93410/0x10a99a000 Ser/Server.h:816 ]: [ServerThr.2] Freed 128 spare client objects
[ 2017-01-08 14:28:51.8205 93410/0x10aba6000 Ser/Server.h:464 ]: [ServerThr.4] Shutdown finished
[ 2017-01-08 14:28:51.8204 93410/0x10acac000 Ser/Server.h:816 ]: [ServerThr.5] Freed 128 spare client objects
[ 2017-01-08 14:28:51.8206 93410/0x10a99a000 Ser/Server.h:464 ]: [ServerThr.2] Shutdown finished
[ 2017-01-08 14:28:51.8206 93410/0x10afbe000 Ser/Server.h:816 ]: [ServerThr.8] Freed 128 spare client objects
[ 2017-01-08 14:28:51.8206 93410/0x10acac000 Ser/Server.h:464 ]: [ServerThr.5] Shutdown finished
[ 2017-01-08 14:28:51.8206 93410/0x10aeb8000 Ser/Server.h:816 ]: [ServerThr.7] Freed 128 spare client objects
[ 2017-01-08 14:28:51.8206 93410/0x10afbe000 Ser/Server.h:464 ]: [ServerThr.8] Shutdown finished
[ 2017-01-08 14:28:51.8206 93410/0x10aeb8000 Ser/Server.h:464 ]: [ServerThr.7] Shutdown finished
[ 2017-01-08 14:28:51.8206 93410/0x10b0c4000 Ser/Server.h:816 ]: [ApiServer] Freed 0 spare client objects
[ 2017-01-08 14:28:51.8207 93410/0x10b0c4000 Ser/Server.h:464 ]: [ApiServer] Shutdown finished
[ 2017-01-08 14:28:51.8210 93412/0x7fff7c74c300 age/Ust/UstRouterMain.cpp:523 ]: Passenger UstRouter shutdown finished
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using Walters-Mac-mini.local. Set the 'ServerName' directive globally to suppress this message
[ 2017-01-08 14:28:51.8644 93415/0x7fff7c74c300 age/Wat/WatchdogMain.cpp:1281 ]: Starting Passenger watchdog...
[ 2017-01-08 14:28:51.8890 93417/0x7fff7c74c300 age/Cor/CoreMain.cpp:1070 ]: Starting Passenger core...
[ 2017-01-08 14:28:51.8896 93417/0x7fff7c74c300 age/Cor/CoreMain.cpp:245 ]: Passenger core running in multi-application mode.
[ 2017-01-08 14:28:51.8970 93417/0x7fff7c74c300 age/Cor/CoreMain.cpp:820 ]: Passenger core online, PID 93417
[ 2017-01-08 14:28:51.9052 93419/0x7fff7c74c300 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
[ 2017-01-08 14:28:51.9063 93419/0x7fff7c74c300 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 93419
[ 2017-01-08 14:28:51.9337 93410/0x7fff7c74c300 age/Cor/CoreMain.cpp:1055 ]: Passenger core shutdown finished
[Sun Jan 08 14:28:52.042777 2017] [mpm_prefork:notice] [pid 93399] AH00163: Apache/2.4.16 (Unix) Phusion_Passenger/5.1.1 PHP/5.5.36 configured -- resuming normal operations
[Sun Jan 08 14:28:52.042853 2017] [core:notice] [pid 93399] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[ 2017-01-08 14:28:57.1105 93417/0x105204000 age/Cor/SecurityUpdateChecker.h:350 ]: Security update check: no update found (next check in 24 hours)
[ 2017-01-08 14:28:57.1348 93417/0x105204000 Crypto.cpp:974 ]: Removing Passenger Cert from keychain failed: An invalid record was encountered. Please remove the private key from the certificate labeled Phusion Passenger Open Source in your keychain.

Any suggestions?

Thanks
Walt

Daniel Knoppel

unread,
Jan 9, 2017, 12:17:03 PM1/9/17
to Phusion Passenger Discussions
Passenger looks OK, so check if your app is configured correctly in the Apache config.

- Daniel

Walter Kagel

unread,
Jan 10, 2017, 4:25:53 AM1/10/17
to phusion-...@googlegroups.com

Howdy,

I have the following in /etc/apache2/other/passenger.conf (I had checked earlier, but didn't include this in the original submission):

 # activate passenger for Ruby and Ruby on rails handling
  LoadModule passenger_module /usr/local/opt/passenger/libexec/buildout/apache2/mod_passenger.so
  PassengerRoot /usr/local/opt/passenger/libexec/src/ruby_supportlib/phusion_passenger/locations.ini
  PassengerDefaultRuby /usr/bin/ruby

I checked and the files being pointed to exist. When I did the install I didn't see any additional configuration suggestions. Can you provide a bit more direction on what configuration I might be looking for?

I appreciate the help, thank you.

Walt

--
You received this message because you are subscribed to a topic in the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/phusion-passenger/VplIo8j922c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to phusion-passen...@googlegroups.com.
To post to this group, send email to phusion-...@googlegroups.com.
Visit this group at https://groups.google.com/group/phusion-passenger.
To view this discussion on the web visit https://groups.google.com/d/msgid/phusion-passenger/81821a1f-9ddc-48d8-a94f-095aa4a8f30f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Knoppel

unread,
Jan 10, 2017, 4:28:58 AM1/10/17
to Phusion Passenger Discussions
This is the configuration for installing Passenger, but I was referring to the configuration for your App.

See also:

- Daniel
To unsubscribe from this group and all its topics, send an email to phusion-passenger+unsubscribe@googlegroups.com.
To post to this group, send email to phusion-passenger@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages