Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pry-remote show address already in use when quit from rails app #58

Open
kdstarter opened this issue Nov 13, 2014 · 11 comments
Open

Pry-remote show address already in use when quit from rails app #58

kdstarter opened this issue Nov 13, 2014 · 11 comments

Comments

@kdstarter
Copy link

I am trying to debug a Rails app running inside foreman, when I type quit from pry-remote, there is an error Errno::EADDRINUSE (Address already in use - bind(2) for "127.0.0.1" port 9876). It's similar with issue Mon-Ouie/pry-remote#42, is there any problem?

@kdstarter kdstarter changed the title How to change pry-remote port? Pry-remote quit from rails app Nov 13, 2014
@kdstarter kdstarter changed the title Pry-remote quit from rails app Pry-remote show address alreay in use when quit from rails app Nov 13, 2014
@kdstarter kdstarter changed the title Pry-remote show address alreay in use when quit from rails app Pry-remote show address already in use when quit from rails app Nov 13, 2014
@sungwoncho
Copy link

What is causing this issue?

@tarky
Copy link

tarky commented Mar 12, 2015

I have the same problem.

@zackexplosion
Copy link

I have the same problem. too

@antarr
Copy link

antarr commented Apr 7, 2015

👍

@viniciustorves
Copy link

me too. =/

@wuzzzzaah
Copy link

I encounter this everyday. Killing the process usually works. Just do a netstat and find port 9876, then kill the process listening on that port.

@BrennerSpear
Copy link

Just had this happen to me too

@BrennerSpear
Copy link

In terminal, put:
lsof -i tcp:9876
Check the PID column. that's the PID you want to kill.
put:
kill -9 <PID>

@snoblenet
Copy link

@BrennerSpear Thanks. Is it possible to write this as a one-liner that pipes the PID to the kill command? I know enough bash to know what I don't know.

@BrennerSpear
Copy link

@snoblenet I don't know enough bash to even know what any of those commands really mean - I just googled enough to figure it out.

@snoblenet
Copy link

@BrennerSpear worked it out:

kill -9 $(lsof -ti tcp:9876)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants