When I try and run the server with EventMachine::run
I keep getting the error saying that the port is in use. This started ever since I ran the server in the background with the command nohup
.
I am pretty sure I have killed the process I started:
ps
, and killed it. It no longer shows up.lsof -i :8081
(8081 is the port I ran it on) and nothing shows up.I also thought it could be the lack of me being the root user, so tried it as root to no avail.
I have also restarted the server.
Please let me know if there's anything else I can try.
Note: this is on debian.
Had the same problem.
Ran lsof -i :3000
(3000 is the port I ran it on).
I found out that the port was being used by ruby. I killed the process using kill -9 *pid*
.
When I ran lsof -i :3000
again, nothing showed up.
I then ran rails s
and everything works fine now.