rails server error

64 views
Skip to first unread message

pavey nganpi

unread,
Dec 26, 2013, 11:41:45 PM12/26/13
to rubyonra...@googlegroups.com
rails server                                                                                                       
=> Booting WEBrick                                                                                                 
=> Rails 4.0.2 application starting in development on http://0.0.0.0:3000                                          
=> Run `rails server -h` for more startup options                                                                  
=> Ctrl-C to shutdown server                                                                                       
[2013-12-26 23:29:07] INFO  WEBrick 1.3.1                                                                          
[2013-12-26 23:29:07] INFO  ruby 2.0.0 (2013-11-22) [i386-mingw32]                                                 
[2013-12-26 23:29:07] WARN  TCPServer Error: Only one usage of each socket address (protocol/network address/po    
rt) is normally permitted. - bind(2)                                                                               
Exiting                                                                                                            
C:/Ruby200/lib/ruby/2.0.0/webrick/utils.rb:85:in `initialize': Only one usage of each socket address (protocol/    
network address/port) is normally permitted. - bind(2) (Errno::EADDRINUSE)                                         
        from C:/Ruby200/lib/ruby/2.0.0/webrick/utils.rb:85:in `new'                                                
        from C:/Ruby200/lib/ruby/2.0.0/webrick/utils.rb:85:in `block in create_listeners'                          
        from C:/Ruby200/lib/ruby/2.0.0/webrick/utils.rb:82:in `each'                                               
        from C:/Ruby200/lib/ruby/2.0.0/webrick/utils.rb:82:in `create_listeners'                                   
        from C:/Ruby200/lib/ruby/2.0.0/webrick/server.rb:132:in `listen'                                           
        from C:/Ruby200/lib/ruby/2.0.0/webrick/server.rb:113:in `initialize'                                       
        from C:/Ruby200/lib/ruby/2.0.0/webrick/httpserver.rb:45:in `initialize'                                    
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:11:in `new'                
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:11:in `run'                
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:264:in `start'                      
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.2/lib/rails/commands/server.rb:84:in `start'         
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:76:in `block in <top (req    
uired)>'                                                                                                           
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:71:in `tap'                  
        from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.2/lib/rails/commands.rb:71:in `<top (required)>'     
        from bin/rails:4:in `require'                                                                              
        from bin/rails:4:in `<main>'                                                                               

Norm Scherer

unread,
Dec 27, 2013, 12:30:42 AM12/27/13
to rubyonra...@googlegroups.com
You are attempting to start another servr at the same port as one which
is already running. You need to find and kill the one before you can
run another.
> --
> You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/6ec496cd-cd69-4ef7-a82e-7d766e7b0362%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

pavey nganpi

unread,
Dec 27, 2013, 12:45:17 AM12/27/13
to rubyonra...@googlegroups.com
i have restarted my pc but i still have the same pb, i wasnt able to fins the process which was running,thanks

Adrien Siami

unread,
Dec 28, 2013, 1:54:50 PM12/28/13
to rubyonra...@googlegroups.com
If you're running *NIX you can see which process is listening on port 3000 by running lsof -i :3000

You can also change the port you want your rails server to listen to with the -9 option.

For example : rails server -p 8080 will listen on port 8080.
Reply all
Reply to author
Forward
0 new messages