I'm trying to run "foreman start" for a rails app however this error message is preventing me from running the foreman properly:
~~> ERROR: Something's using port 1025. Are you already running MailCatcher?
I've tried killing the PID, going to the web interface to quit the program and also...restarting the comp. Does anybody know how to remedy this?
Thanks
In OSX, run the following in a shell:
sudo lsof -nP -iTCP:1025 -sTCP:LISTEN
The expected output of this command is a process, which is listening on port 1025:
ruby 43841 youruserid 9u IPv4 0x6a1610da80bb9b4f 0t0 TCP 127.0.0.1:1025 (LISTEN)
In the output above, the 2nd value is the process ID. Then, to kill the offending process (substitute in the correct PID):
sudo kill 43841