/tmp is full of passenger-error*.html files.

927 views
Skip to first unread message

Miguel Angel Gonzalez

unread,
Aug 19, 2015, 9:01:58 AM8/19/15
to Phusion Passenger Discussions
Hi,

I'm novice with passenger. I have a server with the /tmp full of passenger-error*html files. The log is the below:
# mkdir -p /opt/passenger/buildout/ruby/ruby-2.0.0-x86_64-linux
# cd /opt/passenger/buildout/ruby/ruby-2.0.0-x86_64-linux
# /opt/rubies/ruby-2.0.0-p594/bin/ruby /opt/passenger/ext/ruby/extconf.rb
/opt/rubies/ruby-2.0.0-p594/bin/ruby: No such file or directory -- /opt/passenger/ext/ruby/extconf.rb (LoadError)

As far as I know I could fix this problem if I would install ruby-dev, but that's a production box and I don't want to install dev packages. 

I have tried to turn down passenger log verbosity (PassengerLogLevel 0), but I still have the issue. Also I would like to know how to configure the log folder location for passenger to another partition. It's currently going to /tmp and I would like to /var/log/passenger for example.

I would appreciate any help

Thanks,
Miguel 

Daniel Knoppel

unread,
Aug 19, 2015, 10:50:42 AM8/19/15
to Phusion Passenger Discussions
Have a look at the logging and debugging options: https://www.phusionpassenger.com/library/config/reference/

- Daniel

Miguel Angel Gonzalez

unread,
Aug 19, 2015, 11:06:15 AM8/19/15
to Phusion Passenger Discussions
Hi Daniek,

Yes I did, I setup PassengerLogLevel:

LoadModule passenger_module /opt/apache/modules/mod_passenger.so

<IfModule mod_passenger.c>

  PassengerRoot /opt/passenger

  PassengerDefaultRuby /opt/rubies/ruby-2.0.0-p594/bin/ruby

  PassengerFriendlyErrorPages off

  SetEnv GEM_HOME /etc/gems

  SetEnv PassengerLogLevel 1

  SetEnv PassengerLogFile /var/log/httpd/passenger

</IfModule>


However the issue is still 

Daniel Knoppel

unread,
Aug 19, 2015, 11:18:33 AM8/19/15
to Phusion Passenger Discussions
Hi Miguel,

Sorry, I think there is some confusion:
* PassengerLogFile is for the "regular" logging and should work. I don't know if /var/log/httpd/passenger is a folder or a file, but it should be a file to make it work.

* "passenger-error-xxxx" is something other than the regular logging, and it is hardcoded to go to /tmp.

- Daniel

Miguel Angel Gonzalez

unread,
Aug 20, 2015, 5:52:12 AM8/20/15
to Phusion Passenger Discussions
Hi Daniel,

Thank you for your answer.

I setup PassengerLogFile and its working now.However I still the issue with  "passenger-error-xxxx". As far as I know Passenger creates such a file every time it fails to spawn a process. However I would like to disable html report or move this logs to another folder.

Thanks,
Miguel 

Daniel Knoppel

unread,
Aug 20, 2015, 11:19:26 PM8/20/15
to Phusion Passenger Discussions
In the current implementation the location of the passenger-error-xxx is hardcoded, not configurable (nor can it be disabled).

I'm not sure why you think you need some kind of dev package to fix the error though. For one, if the spawner can't find Ruby then the app won't start. If you don't need the app you can just remove it from the config.

Or if you do want the app you can install ruby and make sure the configured path to it is correct.

- Daniel
Reply all
Reply to author
Forward
0 new messages