Project

General

Profile

undefined method `env_table' for nil:NilClass On a VPS(centos+plesk)

Added by motoko motoko about 12 years ago

My enviroment:
About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.4.2
Rack version 1.1
Rails version 2.3.14
Active Record version 2.3.14
Active Resource version 2.3.14
Action Mailer version 2.3.14
Active Support version 2.3.14
Edge Rails revision unknown
Application root /var/www/vhosts/**********.com/redmine
Environment production
Database adapter mysql
Database schema version 20110902000000

Hi,

I followed this [[http://www.redmine.org/projects/redmine/wiki/Redmine_on_CentOS_installation_HOWTO]] step by step, first i had some problems with users and groups. Plesk has its own users, different from 'apache' so i had to modify it according to them.

That took me a step further, but I'm again stuck. I googled for the problem, found this:
http://www.redmine.org/issues/4610

I allready tried to:
- Disable all cgi options for the subdomain (using plesk cp)
- Removing .htaccess from public folder (if I do this trying to access the web returns a forbidden error)
- changing mod_cgi.c to mod_cgid.c (this launches a different error, but i suspect i'm going back not forward)

In my browser i get the following msg:
Application error
Rails application failed to start properly
In the error_log file i get:
[Wed Jul 04 14:04:14 2012] [error] [client .*..*] /var/www/vhosts/*.com/redmine/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:22:in `__send__'
[Wed Jul 04 14:04:14 2012] [error] [client .*..*] :
[Wed Jul 04 14:04:14 2012] [error] [client .*..*] undefined method `env_table' for nil:NilClass
[Wed Jul 04 14:04:14 2012] [error] [client .*..*] (
[Wed Jul 04 14:04:14 2012] [error] [client .*..*] NoMethodError
[Wed Jul 04 14:04:14 2012] [error] [client .*..*] )
[Wed Jul 04 14:04:14 2012] [error] [client .*..*] \tfrom /var/www/vhosts/*.com/redmine/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:22:in `dispatch_cgi'
[Wed Jul 04 14:04:14 2012] [error] [client .*..*] \tfrom /var/www/vhosts/*.com/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:101:in `dispatch_cgi'
[Wed Jul 04 14:04:14 2012] [error] [client .*..*] \tfrom /var/www/vhosts/*.com/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:27:in `dispatch'
[Wed Jul 04 14:04:14 2012] [error] [client .*..*] \tfrom dispatch.cgi:10
[Wed Jul 04 14:04:14 2012] [error] [client .*..*] Premature end of script headers: dispatch.cgi

¿Any clue what i shuold do?