Project

General

Profile

Problem installing Redmine

Added by Espen Helle over 12 years ago

Hi,
I am trying to set up Redmine.
Following the recipe at
http://www.redmine.org/projects/redmine/wiki/RedmineInstall
Controlled versions on libraries and got no errors while doing it.

When arrived at the point where one should test it with webbrick,
I used telnet to port 3000 and get the following error messages included below.
Any sugestions how to correct it?

System parameters:
Redmine 1.2.2
RHEL 6.1 x86_64

[root@myserver redmine]# RAILS_ENV=production script/about
About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.6.2
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 /var/www/html/redmine
Environment production
Database adapter mysql
Database schema version 20110511000000

  • LOCAL GEMS ***

actionmailer (2.3.11)
actionpack (2.3.11)
activerecord (2.3.11)
activeresource (2.3.11)
activesupport (2.3.11)
edavis10-object_daddy (0.4.3)
i18n (0.4.2)
metaclass (0.0.1)
rack (1.1.1)
rails (2.3.11)
rake (0.8.3)
rubygems-update (1.6.2)
shoulda (2.11.3, 2.10.3)

[root@myserver redmine]# telnet localhost 3000
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
get /index.html
[2011-11-30 11:45:10] ERROR NoMethodError: undefined method `each' for nil:NilClass
/usr/lib/ruby/1.8/webrick/httprequest.rb:153:in `each'
/usr/lib/ruby/1.8/webrick/httprequest.rb:210:in `meta_vars'
/usr/lib64/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/handler/webrick.rb:23:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/lib64/ruby/gems/1.8/gems/rack-1.1.1/lib/rack/handler/webrick.rb:14:in `run'
/var/www/html/redmine/vendor/rails/railties/lib/commands/server.rb:111
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
script/server:3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD><TITLE>Internal Server Error</TITLE></HEAD>
<BODY>
<H1>Internal Server Error</H1>
undefined method `each' for nil:NilClass
<HR>
<ADDRESS>
WEBrick/1.3.1 (Ruby/1.8.7/2010-06-23) at
localhost:3000
</ADDRESS>
</BODY>
</HTML>
Connection closed by foreign host.


Replies (5)

RE: Problem installing Redmine - Added by Mischa The Evil over 12 years ago

Espen Helle wrote:

When arrived at the point where one should test it with webbrick,
I used telnet to port 3000 and get the following error messages included below.
Any sugestions how to correct it?

Can you correctly browse Redmine pages served by WEBrick (as started in step 8 on RedmineInstall)?

RE: Problem installing Redmine - Added by Espen Helle over 12 years ago

No. As you see at the bottom of the combined telnet HTML-printout and prinout of point 8,
I got a "Internal server Error" if I use telnet as an webbrowser.

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<HTML>
<HEAD><TITLE>Internal Server Error</TITLE></HEAD>
<BODY>
<H1>Internal Server Error</H1>
undefined method `each' for nil:NilClass
<HR>
<ADDRESS>
WEBrick/1.3.1 (Ruby/1.8.7/2010-06-23) at
localhost:3000
</ADDRESS>
</BODY>
</HTML>

RE: Problem installing Redmine - Added by Christopher Lindsey about 12 years ago

Has there been any resolution for this? I have the exact same problem.

RE: Problem installing Redmine - Added by Espen Helle about 12 years ago

Yes, I was fooling myself due to old outdated knowledge of http.
You can not use telnet as a webbrowser, it transmits extra information.
Therefore it actually worked.
Install lynx and use it for the test, not telnet.

Espen

RE: Problem installing Redmine - Added by Christopher Lindsey about 12 years ago

Thanks. Whole other set of problems for me, but...

I think I'm going back to 1.1.3. That one worked. :)

    (1-5/5)