Dispatch result : `__send__': undefined method `env_table' for nil:NilClass

Added by Yecine Yecine almost 8 years ago

Hi,

I'm struggling to install redmine on my server ...

When i'm trying to launch the dispatch.rb i have the following result :

/home/.sites/28/site1/vhosts/redmine/htdocs/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:22:in `__send__': undefined method `env_table' for nil:NilClass (NoMethodError)
from /home/.sites/28/site1/vhosts/redmine/htdocs/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:22:in `dispatch_cgi'
from /home/.sites/28/site1/vhosts/redmine/htdocs/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:101:in `dispatch_cgi'
from /home/.sites/28/site1/vhosts/redmine/htdocs/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:27:in `dispatch'
from ./public/dispatch.cgi:12

When i try to load the web page i have a blank page

Here is my environement

RAILS_ENV=production script/about
About your application's environment
Ruby version 1.8.7 (i686-linux)
RubyGems version 1.4.0
Rack version 1.1.1
Rails version 2.3.11
Active Record version 2.3.11
Active Resource version 2.3.11
Action Mailer version 2.3.11
Active Support version 2.3.11
Edge Rails revision unknown
Application root /home/.sites/28/site1/vhosts/redmine/htdocs
Environment production
Database adapter mysql
Database schema version 20110511000000

In my subdomain.conf i have added the following lines :

LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.9/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.9
PassengerRuby /usr/local/bin/ruby

Here is the all conf file

<VirtualHost xxxxxxx:80>
ServerName xxxxxx
ServerAdmin admin
DocumentRoot /home/.sites/28/site1/vhosts/redmine/htdocs/public
<Directory /home/.sites/28/site1/vhosts/redmine/htdocs/public>
AllowOverride all
Options -MultiViews
</Directory>
  1. BEGIN WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
  2. created by subdomain-new.pl
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .php5
    php_admin_flag register_globals Off
    php_admin_flag allow_url_fopen Off
    php_admin_flag allow_url_include Off
    php_admin_value open_basedir /tmp/:/var/lib/php/session/:/home/.sites/28/site1/
    php_admin_value post_max_size 8M
    php_admin_value upload_max_filesize 2M
    php_admin_value max_execution_time 30
    php_admin_value max_input_time 60
    php_admin_value memory_limit 128M
    AddHandler server-parsed .shtml
    AddType text/html .shtml
    AddHandler cgi-wrapper .pl
    AddHandler cgi-wrapper .cgi
    ScriptAlias /cgi-bin/ /usr/local/blueonyx/cgiwrap/cgiwrap/
    Action cgi-wrapper /cgi-bin
  1. END WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
    </VirtualHost>

On some other thread they said that the solution is to use passenger, but how am i supposed to do that ? I tried by removing the .htaccess file but this hasn't changed anything ...

I don't know what to do to have it work ...

Thanks for your help

Replies (10)

RE: Dispatch result : `__send__': undefined method `env_table' for nil:NilClass - Added by Yecine Yecine almost 8 years ago

I'm new to the ruby world ...

A lot of topic says to use passenger but how am i supposed to do that ? i have installed passenger and after what should i do ?

Thanks

RE: Dispatch result : `__send__': undefined method `env_table' for nil:NilClass - Added by Yecine Yecine almost 8 years ago

I tried to lauch the following command on a terminal

ruby script/server webrick -e production

=> Booting WEBrick
=> Rails 2.3.11 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-11-15 05:26:19] INFO WEBrick 1.3.1
[2011-11-15 05:26:19] INFO ruby 1.8.7 (2011-06-30) [i686-linux]
[2011-11-15 05:26:19] INFO WEBrick::HTTPServer#start: pid=7166 port=3000

But after when i go to my redmine mydomain:3000 i have a blank page ....

RE: Dispatch result : `__send__': undefined method `env_table' for nil:NilClass - Added by Yecine Yecine almost 8 years ago

the file is empty

i only have

  1. Logfile created on Sat Nov 05 10:53:49 -0400 2011

RE: Dispatch result : `__send__': undefined method `env_table' for nil:NilClass - Added by Yecine Yecine almost 8 years ago

I'm out of ideas to fix this ...

I really need your help ...

(1-10/10)