I'm Getting a 500 Internal Server Error When Trying to Access My Applications (Open Source 5.0.26)

470 views
Skip to first unread message

LightBe Corp

unread,
Mar 30, 2016, 3:03:52 PM3/30/16
to Phusion Passenger Discussions

I recently a clean install of El Capitan on my Mac Mini Server. I also did a RVM implode command because of multiple types of errors when installing gems, including an issue with RubyGems 2.5.1 which I upgraded to 2.6.2. I'm in the process of reinstalling my gems and deploying them on my development server. Before the clean install I used the open source version 5.0.26 with Ruby 2.3.0 successfully. According to the messages passenger installed successfully as before in my gemset. I looked in the folder and saw the folder as before. However the first time I did a passenger-config restart-app . command I get a warning along with a message stating that the application is restarting. Now when I execute the command it does not restart. Here is an example.


[myrailsapp (master)]$ rake assets:clean && rake assets:precompile RAILS_ENV=production && passenger-config restart-app .

*** Cleaning stale instance directory /tmp/passenger.bhqjeUe

    Warning: Operation not permitted @ rb_file_chown - /tmp/passenger.bhqjeUe/.

There are no Phusion Passenger-served applications running whose paths begin with '/Users/myuserid/Sites/myrailsapp'.


Here is my virtual host configuration. This configuration worked before.


<VirtualHost *:80>

  ServerName www.mydomain.com

  ServerAlias mydomain.com

  PassengerAppRoot /Users/myuserid/Sites/myrailsapp/

  PassengerRuby /Users/myuserid/.rvm/gems/ruby-2.3.0@mygemset/wrappers/ruby

  DocumentRoot /Users/myuserid/Sites/myrailsapp/public

  <Directory /Users/myuserid/Sites/myrailsapp/public>

     AllowOverride all

     Options -MultiViews

     # Uncomment this if you're on Apache >= 2.4:

     Require all granted

  </Directory>

</VirtualHost>



Here is my apache2


# Phusion Passenger

LoadModule passenger_module /Users/myuserid/.rvm/gems/ruby-2.3.0@ mygemset/gems/passenger-5.0.26/buildout/apache2/mod_passenger.so

<IfModule mod_passenger.c>

  PassengerRoot /Users/myuserid/.rvm/gems/ruby-2.3.0@ mygemset/gems/passenger-5.0.26

  PassengerDefaultRuby /Users/myuserid/.rvm/gems/ruby-2.3.0@mygemset/wrappers/ruby

</IfModule>

PassengerDebugLogFile /var/log/apache2/passenger_error_log



# Virtual hosts

Include /private/etc/apache2/extra/httpd-vhosts.conf


When I attempt to display the domains I get a 500 Internal Server Error. This is happening on all of my apps.


I have attached a section of my passenger log file. There is an error message saying that gbd is not installed and that I have to either install Xcode or the command line tools. I have already done that. When I try to install them again it tells me they are installed and to check Software Update.

passengererror-2016-03-30.rtf

Daniel Knoppel

unread,
Mar 31, 2016, 7:34:51 AM3/31/16
to Phusion Passenger Discussions
Judging from your log, the error 500 is the result of a Passenger crash. I've seen something similar in the GitHub issue list: https://github.com/phusion/passenger/issues/1780

Did you by any chance update to XCode 7.3 before the crashing started? The other two people experiencing what looks like a similar issue are also using that XCode.

- Daniel

Bernard & Pamela Dreyer

unread,
Mar 31, 2016, 11:41:22 AM3/31/16
to phusion-...@googlegroups.com
Daniel,

I’m using Xcode 7.3. However I’m not sure if the problems started immediately after that upgrade or not. They probably did though since I installed Xcode 7.3 on 3/21. It appears that Passenger is using an old version of my virtual host file. That maybe happening because Apache is not working properly. I will try to restore the previous version of Xcode from my Time Machine backup and see if I continue to have the problem.
-- 
You received this message because you are subscribed to the Google Groups "Phusion Passenger Discussions" group.
To unsubscribe from this group and stop receiving emails from it, 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/009cd5c5-f738-47f9-adb3-15e2ae4ce4c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Knoppel

unread,
Apr 1, 2016, 6:20:10 AM4/1/16
to Phusion Passenger Discussions
Just as a heads-up, in the github issue link I posted there is now a workaround available. Can you try that to see if it helps you too? For you I think only step 3 (reinstalling Passenger) would be different.

- Daniel


On Thursday, March 31, 2016 at 5:41:22 PM UTC+2, LightBe Corp wrote:
Daniel,

I’m using Xcode 7.3. However I’m not sure if the problems started immediately after that upgrade or not. They probably did though since I installed Xcode 7.3 on 3/21. It appears that Passenger is using an old version of my virtual host file. That maybe happening because Apache is not working properly. I will try to restore the previous version of Xcode from my Time Machine backup and see if I continue to have the problem.

LightBe Corp

unread,
Apr 1, 2016, 11:55:19 AM4/1/16
to Phusion Passenger Discussions
Daniel,

After reading about the issue on GitHub I uninstalled Xcode 7.3 and the command tools folder using the information on this link from Stack Overflow. Passenger is working again. However I still have the issue with Apache pointing to an older version of my virtual host file. I will contact Apple about that problem. 

Thanks so much!

Pamela (LightBe Corp)

Daniel Knoppel

unread,
Apr 21, 2016, 7:23:17 AM4/21/16
to Phusion Passenger Discussions
FYI: Apple released XCode 7.3.1 GM, which no longer crashes Passenger like 7.3.0 did. 

It's still a beta release so I don't know if you can get it yet, but this makes us hopeful that the 7.3.1 final will also contain the fix and you no longer have to use the workaround (you can monitor the GitHub issue for any new information).

- Daniel
Reply all
Reply to author
Forward
0 new messages