TCPServer Error: Address already in use ????
I succeeded to install all prerequisites but I get these errors when I try to start the server:
[root@bidassoa redmine]# ruby script/server -e production
=> Booting WEBrick...
=> Rails 2.1.2 application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2008-12-30 12:31:33] INFO WEBrick 1.3.1
[2008-12-30 12:31:33] INFO ruby 1.8.5 (2006-08-25) [x86_64-linux]
[2008-12-30 12:31:33] WARN TCPServer Error: Address already in use - bind(2)
/usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `new'
from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `create_listeners'
from /usr/lib/ruby/1.8/webrick/utils.rb:70:in `each'
from /usr/lib/ruby/1.8/webrick/utils.rb:70:in `create_listeners'
from /usr/lib/ruby/1.8/webrick/server.rb:75:in `listen'
from /usr/lib/ruby/1.8/webrick/server.rb:63:in `initialize'
from /usr/lib/ruby/1.8/webrick/httpserver.rb:24:in `initialize'
from /usr/lib64/ruby/gems/1.8/gems/rails-2.1.2/lib/webrick_server.rb:58:in `new'
... 7 levels...
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
An idea what's wrong ? I don't have any process running on port 3000 on that server so I don't understand the problem :(
Thanks for your help
Something is already listening on port 3000. Maybe another Rails app.
Try to use the -p option to use another port. Eg:
ruby script/server -e production -p 3001
and go to http://yourhost:3001
Thanks for the info, works great that way but how to start redmine as a service and not in commandline as I want to get it running all time :)
Thanks a lot