Project

General

Profile

Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. & Rake Aborted Issue

Added by Ankit Shah over 13 years ago

[root@vi65 redmine]# ruby script/server webrick -e production
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
/usr/lib64/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-10-16 14:38:04] INFO WEBrick 1.3.1
[2010-10-16 14:38:04] INFO ruby 1.8.6 (2010-02-05) [x86_64-linux]
[2010-10-16 14:38:04] WARN TCPServer Error: Address already in use - bind(2)
Exiting
/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/rack-1.0.1/lib/rack/handler/webrick.rb:10:in `new'
from /usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb:10:in `run'
from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:111
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'
from script/server:3

To solve this issue i'm doing below
[root@vi65 redmine]# rake db:migrate
(in /var/www/html/redmine)
rake aborted!
Access denied for user 'root'@'localhost' (using password: NO)

(See full trace by running task with --trace)

I'm getting this error my database.yml looks

  1. MySQL (default setup).

production:
adapter: mysql
database: redmine
host: localhost
username: root
password: admin12
encoding: utf8

so where is the issue?

I'm not able to start application


Replies (2)

RE: Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. & Rake Aborted Issue - Added by Ankit Shah over 13 years ago

It works when i change the port

$ ruby script/server webrick -e production -p 3001
port to 3001,3002,etc..
when i'm restarting redmine with service httpd restart. what we have to do restart redmine again after installing plugin or theme. i'm running command again

ruby script/server webrick -e production

is this right thing?

Ankit Shah wrote:

[root@vi65 redmine]# ruby script/server webrick -e production
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
/usr/lib64/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-10-16 14:38:04] INFO WEBrick 1.3.1
[2010-10-16 14:38:04] INFO ruby 1.8.6 (2010-02-05) [x86_64-linux]
[2010-10-16 14:38:04] WARN TCPServer Error: Address already in use - bind(2)
Exiting
/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/rack-1.0.1/lib/rack/handler/webrick.rb:10:in `new'
from /usr/lib64/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb:10:in `run'
from /usr/lib64/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:111
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'
from script/server:3

To solve this issue i'm doing below
[root@vi65 redmine]# rake db:migrate
(in /var/www/html/redmine)
rake aborted!
Access denied for user 'root'@'localhost' (using password: NO)

(See full trace by running task with --trace)

I'm getting this error my database.yml looks

  1. MySQL (default setup).

production:
adapter: mysql
database: redmine
host: localhost
username: root
password: admin12
encoding: utf8

so where is the issue?

I'm not able to start application

RE: Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. & Rake Aborted Issue - Added by Felix Schäfer over 13 years ago

Ankit Shah wrote:

[2010-10-16 14:38:04] WARN TCPServer Error: Address already in use - bind(2)

That's you error, not the rest: You are trying to use an address and port combination already used by another application. That's also why it works when you use port 3001 with -p 3001 instead of the default port 3000.

You also have to restart redmine after installing a plugin, yes.

    (1-2/2)