Note that there are some explanatory texts on larger screens.

plurals
  1. POPassenger/mod_rails fails to initialize in Fedora 12 when starting Apache
    text
    copied!<p>I am in the process of setting up a server to run a Ruby on Rails application on Fedora 12, using Passenger.</p> <p>I am at the stage where I've installed Passenger, set it up as prescribed, but get the following errors when I restart Apache:</p> <pre><code>[Wed Jan 13 15:41:38 2010] [notice] caught SIGTERM, shutting down [Wed Jan 13 15:41:40 2010] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0 [Wed Jan 13 15:41:40 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Jan 13 15:41:40 2010] [error] *** Passenger could not be initialized because of this error: Cannot create FIFO file /tmp/passenger.25235/.guard: Permission denied (13) [Wed Jan 13 15:41:40 2010] [notice] Digest: generating secret for digest authentication ... [Wed Jan 13 15:41:40 2010] [notice] Digest: done [Wed Jan 13 15:41:40 2010] [error] *** Passenger could not be initialized because of this error: Cannot create FIFO file /tmp/passenger.25235/.guard: Permission denied (13) [Wed Jan 13 15:41:40 2010] [error] python_init: Python version mismatch, expected '2.6', found '2.6.2'. [Wed Jan 13 15:41:40 2010] [error] python_init: Python executable found '/usr/bin/python'. [Wed Jan 13 15:41:40 2010] [error] python_init: Python path being used '/usr/lib/python26.zip:/usr/lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-tk:/usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-dynload'. [Wed Jan 13 15:41:40 2010] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Wed Jan 13 15:41:40 2010] [notice] mod_python: using mutex_directory /tmp [Wed Jan 13 15:41:40 2010] [notice] Apache/2.2.14 (Unix) DAV/2 Phusion_Passenger/2.2.9 PHP/5.3.0 mod_python/3.3.1 Python/2.6.2 mod_ssl/2.2.14 OpenSSL/1.0.0-fips-beta3 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations </code></pre> <p>As you can see, there is a permissions problem when Passenger is trying to initialize:</p> <pre><code>[Wed Jan 13 15:41:40 2010] [error] *** Passenger could not be initialized because of this error: Cannot create FIFO file /tmp/passenger.25235/.guard: Permission denied (13) </code></pre> <p>When Apache is starts, it does create a file in /tmp:</p> <pre><code>d-ws--x--x. 2 root root 4096 2010-01-13 16:04 passenger.26117 </code></pre> <p>If instead I run the app by firing up <em>mongrel</em> directly with <code>mongrel_rails start -e production</code>, I see the following:</p> <pre><code>ActiveRecord::StatementInvalid (Mysql::Error: Can't create/write to file '/tmp/#sql_5d3_0.MYI' (Errcode: 13): SHOW FIELDS FROM `users`): </code></pre> <p>Again the error points to permission issues with the <em>/tmp</em> directory.</p> <p>I am at a loss as to what the solution is. I'm not sure if it is related to simply directory permissions or Fedora's SELinux security.</p> <p>Any help would be appreciated. Thanks.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload