I need some help

2 views
Skip to first unread message

kevid

unread,
Jan 27, 2010, 4:18:10 AM1/27/10
to Ruby on Rails: Talk
I can't start webrick from the command line. always have this error
below. Some one help, please.

C:\Users\imedia1\applica>ruby script/server
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2010-01-25 13:45:26] INFO WEBrick 1.3.1
[2010-01-25 13:45:26] INFO ruby 1.8.6 (2008-08-11) [i386-mswin32]
[2010-01-25 13:45:26] WARN TCPServer Error: Only one usage of each
socket address (protocol/network address/port) is normally permitted.
- bind(2)
Exiting
C:/Ruby/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Only one
usage of each socket address (protocol/network address/port) is
normally permitted. - bind(
ADDRINUSE)
from C:/Ruby/lib/ruby/1.8/webrick/utils.rb:73:in `new'
from C:/Ruby/lib/ruby/1.8/webrick/utils.rb:73:in
`create_listeners'
from C:/Ruby/lib/ruby/1.8/webrick/utils.rb:70:in `each'
from C:/Ruby/lib/ruby/1.8/webrick/utils.rb:70:in
`create_listeners'
from C:/Ruby/lib/ruby/1.8/webrick/server.rb:75:in `listen'
from C:/Ruby/lib/ruby/1.8/webrick/server.rb:63:in `initialize'
from C:/Ruby/lib/ruby/1.8/webrick/httpserver.rb:24:in
`initialize'
from C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/
handler/webrick.rb:10:in `new'
from C:/Ruby/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/
handler/webrick.rb:10:in `run'
from C:/Ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/
server.rb:111
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from script/server:3

Pavan Agrawal

unread,
Jan 27, 2010, 5:51:19 AM1/27/10
to rubyonra...@googlegroups.com
is IIS already installed?

Regards,
Pavan Agrawal



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


Marnen Laibow-Koser

unread,
Jan 27, 2010, 10:20:42 AM1/27/10
to rubyonra...@googlegroups.com
kevid wrote:
> I can't start webrick from the command line. always have this error
> below. Some one help, please.
>
>
>
> C:\Users\imedia1\applica>ruby script/server
> => Booting WEBrick
> => Rails 2.3.5 application starting on http://0.0.0.0:3000
> => Call with -d to detach
> => Ctrl-C to shutdown server
> [2010-01-25 13:45:26] INFO WEBrick 1.3.1
> [2010-01-25 13:45:26] INFO ruby 1.8.6 (2008-08-11) [i386-mswin32]
> [2010-01-25 13:45:26] WARN TCPServer Error: Only one usage of each
> socket address (protocol/network address/port) is normally permitted.

Notice that error. It looks like something else is running on port
3000. Run Webrick on some other port.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www.ruby-forum.com/.

Alpha Blue

unread,
Jan 27, 2010, 11:13:16 AM1/27/10
to rubyonra...@googlegroups.com
Open a command prompt from windows and run the following command:

netstat

This will show you what is currently open.

Reply all
Reply to author
Forward
0 new messages