Project

General

Profile

Redmine on Redhat issues

Added by Willem Botha over 12 years ago

Greetings all,

after a new kernel boot this morning my redmine is refusing to work again with this errors
(Linux 2.6.32-131.12.1.el6.x86_64 #1 SMP Sun Jul 31 16:44:56 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux) - Redhat 6

[Mon Sep 12 13:06:51 2011] [error] [client 192.168.1.20] /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/dispatcher.rb:24: warning: already initialized constant Dispatcher
[Mon Sep 12 13:06:51 2011] [error] [client 192.168.1.20] /var/www/redmine/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:22:in `__send__': undefined method `env_table' for nil:NilClass (NoMethodError)
[Mon Sep 12 13:06:51 2011] [error] [client 192.168.1.20] \tfrom /var/www/redmine/vendor/rails/actionpack/lib/action_controller/cgi_process.rb:22:in `dispatch_cgi'
[Mon Sep 12 13:06:51 2011] [error] [client 192.168.1.20] \tfrom /var/www/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:101:in `dispatch_cgi'
[Mon Sep 12 13:06:51 2011] [error] [client 192.168.1.20] \tfrom /var/www/redmine/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:27:in `dispatch'
[Mon Sep 12 13:06:51 2011] [error] [client 192.168.1.20] \tfrom /var/www/redmine/public/dispatch.cgi:11
[Mon Sep 12 13:06:51 2011] [error] [client 192.168.1.20] Premature end of script headers: dispatch.cgi

My environment

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.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          /var/www/redmine
Environment               production
Database adapter          mysql
Database schema version   20110511000000

About your Redmine plugins
Redmine2mite   1.2.1

Does anybody have any suggestions ?


Replies (4)

RE: Redmine on Redhat issues - Added by Willem Botha over 12 years ago

OK, more info, I have removed all the gems ... reinstalled them again, tried the rehat config again as on the site, now fionally I get a new error in passenger... This is progress :)

Could not find mysql-2.7 in any of the sources (Bundler::GemNotFound)

yet gem is not happy with the new updated system,

gem install mysql --version 2.7
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
        ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/bin/ruby
        --with-mysql-config
        --without-mysql-config
        --with-mysql-dir
        --without-mysql-dir
        --with-mysql-include
        --without-mysql-include=${mysql-dir}/include
        --with-mysql-lib
        --without-mysql-lib=${mysql-dir}/lib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-mlib
        --without-mlib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-zlib
        --without-zlib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-socketlib
        --without-socketlib
        --with-mysqlclientlib
        --without-mysqlclientlib
        --with-nsllib
        --without-nsllib
        --with-mysqlclientlib
        --without-mysqlclientlib

Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out

The struggle goes on ... :/

RE: Redmine on Redhat issues - Added by Willem Botha over 12 years ago

I removed the mysql 2.8.1 and the broken install directory from the 2.7, then I used the command:

mysql --version 2.7 -- --with-mysql-lib=/usr/lib64/mysql/

Now Passenger is is happy with mysql, but the next error is

An error occurred while trying to access '/var/www/redmine/public/redmine': Cannot resolve possible symlink '/var/www/redmine/public/redmine': No such file or directory (2)

The struggle goes on ... :/

RE: Redmine on Redhat issues - Added by Willem Botha over 12 years ago

Removed this line in config/envoiroment.rb
config.action_controller.relative_url_root = '/redmine'

Finally it works again ..

Maybe a howto for Redhat 6 would be a good idea...

This is really everything but easy .. but it finally works. Just a pity the community is a little dead

Maybe next time someone can help me .. :)

Hope my pain and suffering helps someone out there

Have fun ... :)

RE: Redmine on Redhat issues - Added by Ivan Cenov over 12 years ago

Willem Botha wrote:

Removed this line in config/envoiroment.rb
config.action_controller.relative_url_root = '/redmine'

Finally it works again ..

Hi,

I am curious about relative_url_root.
There is no config.action_controller.relative_url_root in my config/environment.rb file. Instead, there is Redmine::Utils::relative_url_root, that I set to "" :

Redmine::Utils::relative_url_root = "" 
I use Redmine as virtual host (Apache+mongrel).

What is the version of your Redmine?

Ivan

    (1-4/4)