You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fab app sometimes returns a fatal error, but appears to run invisibly in the background #74
This error happens when you don't explicitly quit out of a gunicorn session (say, if you close your terminal window without first hitting ctrl+c to stop the webserver).
One way to fix it: Add a function to your .bash_profile...
nano ~/.bash_profile
Add this to the bottom:
# Sometimes yosemite crashes with a gunicorn server up
# and when it comes back up there is a python process blocking port 8000
# kill that process with this function
# http://stackoverflow.com/questions/3855127/find-and-kill-process-locking-port-3000-on-mac
function killport() {
lsof -i TCP:$1 | grep LISTEN | awk '{print $2}' | xargs kill -9
}
Save, and then refresh your terminal window:
source ~/.bash_profile
Once you've set that up, you can type this command to kill the port in question (usually 8000) any time you see this error:
Activity
alykat commentedon Mar 9, 2015
After consulting with @TylerFisher @eads @dannydb:
This error happens when you don't explicitly quit out of a gunicorn session (say, if you close your terminal window without first hitting
ctrl+cto stop the webserver).One way to fix it: Add a function to your
.bash_profile...Add this to the bottom:
Save, and then refresh your terminal window:
Once you've set that up, you can type this command to kill the port in question (usually 8000) any time you see this error:
address #74 (gunicorn running in background)