Installation / startup error
Added by Marcus Lorenz almost 11 years ago
Hello together,
i'm trying to install redmine 2.5.1 on my linux centos 6.5 system with nginx. The server ist starting with:
# ruby script/rails server webrick -e production => Booting WEBrick => Rails 3.2.17 application starting in production on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2014-06-05 20:10:23] INFO WEBrick 1.3.1 [2014-06-05 20:10:23] INFO ruby 2.1.0 (2013-12-25) [x86_64-linux] [2014-06-05 20:10:23] INFO WEBrick::HTTPServer#start: pid=3735 port=3000
The database server (mysql 5.5) is up and running and filled with the redmine database.
When i now open the browser and type in the url to the installation i receive the following output on the console:
[2014-06-05 20:10:34] ERROR NoMethodError: undefined method `info' for nil:NilClass /usr/local/rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/rack/logger.rb:31:in `call_app' /usr/local/rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/rack/logger.rb:18:in `call' /usr/local/rvm/gems/ruby-2.1.0/gems/actionpack-3.2.17/lib/action_dispatch/middleware/request_id.rb:22:in `call' /usr/local/rvm/gems/ruby-2.1.0/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call' /usr/local/rvm/gems/ruby-2.1.0/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call' /usr/local/rvm/gems/ruby-2.1.0/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call' /usr/local/rvm/gems/ruby-2.1.0/gems/actionpack-3.2.17/lib/action_dispatch/middleware/static.rb:63:in `call' /usr/local/rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/engine.rb:484:in `call' /usr/local/rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/application.rb:231:in `call' /usr/local/rvm/gems/ruby-2.1.0/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call' /usr/local/rvm/gems/ruby-2.1.0/gems/railties-3.2.17/lib/rails/rack/log_tailer.rb:17:in `call' /usr/local/rvm/gems/ruby-2.1.0/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service' /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
The browser returns an internal server error.
I have googled for that error but i can't find any hints. I have no clue about ruby programming at all, but to me it looks like that there is no logger instance. There are a lot of informations about logging in redmine and how to set this up, but nothing worked so far. Maybe i searched for the wrong thing... Does anybody has some hints how to solve that?
Thanks in advance,
Marcus
Replies (4)
RE: Installation / startup error
-
Added by Martin Denizet (redmine.org team member) almost 11 years ago
Hello Marcus,
As of 2.5.1, ruby 2.1.x is NOT supported.
You should which to 2.0.x
Cheers,
RE: Installation / startup error
-
Added by Marcus Lorenz almost 11 years ago
Hi Martin,
i have modified it to use Ruby 2.0.0., but i still get the same error:
=> Booting WEBrick => Rails 3.2.17 application starting in production on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2014-06-06 20:22:47] INFO WEBrick 1.3.1 [2014-06-06 20:22:47] INFO ruby 2.0.0 (2014-05-08) [x86_64-linux] [2014-06-06 20:22:47] INFO WEBrick::HTTPServer#start: pid=11483 port=3000 [2014-06-06 20:22:53] ERROR NoMethodError: undefined method `info' for nil:NilClass /usr/local/rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.17/lib/rails/rack/logger.rb:31:in `call_app' /usr/local/rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.17/lib/rails/rack/logger.rb:18:in `call' /usr/local/rvm/gems/ruby-2.0.0-p481/gems/actionpack-3.2.17/lib/action_dispatch/middleware/request_id.rb:22:in `call' /usr/local/rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call' /usr/local/rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call' /usr/local/rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call' /usr/local/rvm/gems/ruby-2.0.0-p481/gems/actionpack-3.2.17/lib/action_dispatch/middleware/static.rb:63:in `call' /usr/local/rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.17/lib/rails/engine.rb:484:in `call' /usr/local/rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.17/lib/rails/application.rb:231:in `call' /usr/local/rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call' /usr/local/rvm/gems/ruby-2.0.0-p481/gems/railties-3.2.17/lib/rails/rack/log_tailer.rb:17:in `call' /usr/local/rvm/gems/ruby-2.0.0-p481/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service' /usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /usr/local/rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Any other suggestions?
RE: Installation / startup error
-
Added by Martin Denizet (redmine.org team member) almost 11 years ago
The error seems to be with the logger.
Did you modify any configuration in that regard?
Are the permissions correct in ./log ?
Cheers,
RE: Installation / startup error
-
Added by Marcus Lorenz almost 11 years ago
Hi Martin,
thanks for your support. Yes, i have modified the config files for that issue. But nothing helped and the error has not changed. Anyway i have chosen to reinstall redmine from scratch.
Using a subdomain and following the same installation guide i have followed before. What should i say. It works now and i have absolutely no clue why or why it was not working before.
So the issue is fixed by reinstallation.
Regards,
Marcus