Rails Tcpserver Error Address Already In Use - Bind2 Exiting
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about
Address Already In Use - Bind(2) Rails
Stack Overflow the company Business Learn more about hiring developers or posting ads with jekyll error address already in use us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a
Puppet Tcpserver Error: Address Already In Use - Bind(2)
community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up TCPServer Error: Address already in use - bind(2) up vote 73 down vote favorite 45 foreman address already in use Jekyll was working fine for me few weeks back but now all of a sudden it gives me the following error: TCPServer Error: Address already in use - bind(2) INFO WEBrick::HTTPServer#start: pid=7300 port=4000 % lsof -i :4000
to install all prerequisites but I get
Lsof -wni Tcp:3000
these errors when I try to start the server: a server is already running [root@bidassoa redmine]# ruby script/server -e production
=> Booting WEBrick...
=> Rails 2.1.2 application started
Address Already In Use Bind 2 For 0.0 0.0 Port 3000
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 http://stackoverflow.com/questions/10261477/tcpserver-error-address-already-in-use-bind2 (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'
http://www.redmine.org/boards/2/topics/3450 /> 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/lib64/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/server.rb:39
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
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 Vincèn Replies (2) RE: TCPServer Error: Address already in use ???? - Added by Jean-Philippe Lang almost 8 years ago 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 RE: TCPServer Error: Address already in use ???? - Added by Vincen PUJOL almost 8 years ago Thanks for the info, works great that way but how to
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About http://unix.stackexchange.com/questions/240227/puppet-master-tcpserver-error-address-already-in-use-bind2-webrick-1-3-1 Us Learn more about Stack Overflow the company Business Learn more about hiring developers http://d.hatena.ne.jp/shio_chan/20120112/1326344310 or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a address already question Anybody can answer The best answers are voted up and rise to the top Puppet Master: TCPServer Error: Address already in use - bind(2) - WEBrick 1.3.1 up vote 0 down vote favorite I rebooted Puppet Master several times but always this error [root@puppet-master04 ~]# service httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] [root@puppet-master04 ~]# service puppetmaster restart Stopping puppetmaster: [FAILED] Starting address already in puppetmaster: [ OK ] [root@puppet-master04 ~]# cd /var/log/puppet [root@puppet-master04 puppet]# ls -lrt total 16 -rw-rw----. 1 puppet puppet 6605 Sep 2 10:25 masterhttp.log-20150906 -rw-rw----. 1 puppet puppet 187 Sep 24 10:49 masterhttp.log-20150925 -rw-rw----. 1 puppet puppet 748 Nov 2 10:19 masterhttp.log [root@puppet-master04 puppet]# tail -20 masterhttp.log [2015-11-02 10:16:05] INFO WEBrick 1.3.1 [2015-11-02 10:16:05] INFO ruby 1.8.7 (2013-06-27) [x86_64-linux] [2015-11-02 10:16:05] WARN TCPServer Error: Address already in use - bind(2) [2015-11-02 10:17:08] INFO WEBrick 1.3.1 [2015-11-02 10:17:08] INFO ruby 1.8.7 (2013-06-27) [x86_64-linux] [2015-11-02 10:17:08] WARN TCPServer Error: Address already in use - bind(2) [2015-11-02 10:17:13] INFO WEBrick 1.3.1 [2015-11-02 10:17:13] INFO ruby 1.8.7 (2013-06-27) [x86_64-linux] [2015-11-02 10:17:13] WARN TCPServer Error: Address already in use - bind(2) [2015-11-02 10:19:59] INFO WEBrick 1.3.1 [2015-11-02 10:19:59] INFO ruby 1.8.7 (2013-06-27) [x86_64-linux] [2015-11-02 10:19:59] WARN TCPServer Error: Address already in use - bind(2) which port is already in use? We use RHEL6. http ruby puppet share|improve this question asked Nov 2 '15 at 9:25 Fyodor Glebov 3011413 what is the output "netstat -tulpn | grep 8140" –cristi Nov 2 '15 at 10:45 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote It looks like you are trying to start puppet m
rails s => Booting WEBrick => Rails 3.1.3 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2012-01-12 13:49:02] INFO WEBrick 1.3.1 [2012-01-12 13:49:02] INFO ruby 1.9.3 (2011-10-30) [x86_64-darwin11.2.0] [2012-01-12 13:49:02] WARN TCPServer Error: Address already in use - bind(2) Exiting /Users/shiori/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/utils.rb:85:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE) from /Users/shiori/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/utils.rb:85:in `new' from /Users/shiori/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/utils.rb:85:in `block in create_listeners' from /Users/shiori/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/utils.rb:82:in `each' from /Users/shiori/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/utils.rb:82:in `create_listeners' from /Users/shiori/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/server.rb:82:in `listen' from /Users/shiori/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/server.rb:70:in `initialize' from /Users/shiori/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/webrick/httpserver.rb:45:in `initialize' from /Users/shiori/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.3.5/lib/rack/handler/webrick.rb:10:in `new' from /Users/shiori/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.3.5/lib/rack/handler/webrick.rb:10:in `run' from /Users/shiori/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.3.5/lib/rack/server.rb:265:in `start' from /Users/shiori/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands/server.rb:70:in `start' from /Users/shiori/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands.rb:54:in `block in