Skip to content

Instantly share code, notes, and snippets.

@pointlessone
Created April 20, 2011 11:18
Show Gist options
  • Select an option

  • Save pointlessone/931017 to your computer and use it in GitHub Desktop.

Select an option

Save pointlessone/931017 to your computer and use it in GitHub Desktop.
Address already in use - bind(2) (Errno::EADDRINUSE)
E, [2011-04-20T07:20:33.656301 #12254] ERROR -- : adding listener failed addr=0.0.0.0:3000 (in use)
An exception occurred running /home/web/.rvm/gems/rbx-head@po-home/bin/unicorn
Address already in use - bind(2) (Errno::EADDRINUSE)
Backtrace:
Errno.handle at kernel/common/errno.rb:16
TCPSocket(Kgio::TCPServer)#tcp_setup at /home/web/.rvm/rubies/rbx-head/lib
/socket.rb:1085
TCPServer(Kgio::TCPServer)#initialize at /home/web/.rvm/rubies/rbx-head/lib
/socket.rb:1127
Unicorn::SocketHelper(Unicorn::HttpServer)#bind_listen at /home/web/.rvm/gems
/rbx-head@po-home
/gems/unicorn-3.5.0
/lib/unicorn
/socket_helper.rb:141
Unicorn::HttpServer#listen at /home/web/.rvm/gems/rbx-head@po-home
/gems/unicorn-3.5.0/lib/unicorn
/http_server.rb:248
{ } in Unicorn::HttpServer#start at /home/web/.rvm/gems/rbx-head@po-home
/gems/unicorn-3.5.0/lib/unicorn
/http_server.rb:145
Array#each at kernel/bootstrap/array.rb:76
Unicorn::HttpServer#start at /home/web/.rvm/gems/rbx-head@po-home
/gems/unicorn-3.5.0/lib/unicorn
/http_server.rb:145
Unicorn.run at /home/web/.rvm/gems/rbx-head@po-home
/gems/unicorn-3.5.0/lib/unicorn.rb:13
Object#__script__ at /home/web/.rvm/gems
/rbx-head@po-home/gems
/unicorn-3.5.0/bin
/unicorn:120
Kernel(Object)#load at kernel/common/kernel.rb:732
Object#__script__ at /home/web/.rvm/gems
/rbx-head@po-home/bin
/unicorn:19
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:65
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:90
Rubinius::Loader#script at kernel/loader.rb:591
Rubinius::Loader#main at kernel/loader.rb:721
Rubinius::Loader.main at kernel/loader.rb:760
Object#__script__ at kernel/loader.rb:771
E, [2011-04-20T07:01:04.201707 #11842] ERROR -- : adding listener failed addr=[…]/unicorn.sock (in use)
E, [2011-04-20T07:01:04.205751 #11842] ERROR -- : retrying in 0.5 seconds (4 tries left)
E, [2011-04-20T07:01:04.706684 #11842] ERROR -- : adding listener failed addr=[…]/unicorn.sock (in use)
E, [2011-04-20T07:01:04.706887 #11842] ERROR -- : retrying in 0.5 seconds (3 tries left)
E, [2011-04-20T07:01:05.207440 #11842] ERROR -- : adding listener failed addr=[…]/unicorn.sock (in use)
E, [2011-04-20T07:01:05.207579 #11842] ERROR -- : retrying in 0.5 seconds (2 tries left)
E, [2011-04-20T07:01:05.708134 #11842] ERROR -- : adding listener failed addr=[…]/unicorn.sock (in use)
E, [2011-04-20T07:01:05.708345 #11842] ERROR -- : retrying in 0.5 seconds (1 tries left)
E, [2011-04-20T07:01:06.208950 #11842] ERROR -- : adding listener failed addr=[…]/unicorn.sock (in use)
E, [2011-04-20T07:01:06.209149 #11842] ERROR -- : retrying in 0.5 seconds (0 tries left)
E, [2011-04-20T07:01:06.709782 #11842] ERROR -- : adding listener failed addr=[…]/unicorn.sock (in use)
An exception occurred running /home/web/.rvm/gems/rbx-head@po-home/bin/unicorn
Address already in use - bind(2) (Errno::EADDRINUSE)
Backtrace:
Errno.handle at kernel/common/errno.rb:16
UNIXSocket(Kgio::UNIXServer)#unix_setup at /home/web/.rvm/rubies/rbx-head/lib
/socket.rb:813
UNIXServer(Kgio::UNIXServer)#initialize at /home/web/.rvm/rubies/rbx-head/lib
/socket.rb:869
Unicorn::SocketHelper(Unicorn::HttpServer)#bind_listen at /home/web/.rvm/gems
/rbx-head@po-home
/gems/unicorn-3.5.0
/lib/unicorn
/socket_helper.rb:135
Unicorn::HttpServer#listen at /home/web/.rvm/gems/rbx-head@po-home
/gems/unicorn-3.5.0/lib/unicorn
/http_server.rb:248
{ } in Unicorn::HttpServer#start at /home/web/.rvm/gems/rbx-head@po-home
/gems/unicorn-3.5.0/lib/unicorn
/http_server.rb:145
Array#each at kernel/bootstrap/array.rb:76
Unicorn::HttpServer#start at /home/web/.rvm/gems/rbx-head@po-home
/gems/unicorn-3.5.0/lib/unicorn
/http_server.rb:145
Unicorn.run at /home/web/.rvm/gems/rbx-head@po-home
/gems/unicorn-3.5.0/lib/unicorn.rb:13
Object#__script__ at /home/web/.rvm/gems
/rbx-head@po-home/gems
/unicorn-3.5.0/bin
/unicorn:120
Kernel(Object)#load at kernel/common/kernel.rb:732
Object#__script__ at /home/web/.rvm/gems
/rbx-head@po-home/bin
/unicorn:19
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:65
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:90
Rubinius::Loader#script at kernel/loader.rb:591
Rubinius::Loader#main at kernel/loader.rb:721
Rubinius::Loader.main at kernel/loader.rb:760
Object#__script__ at kernel/loader.rb:771
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment