Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pylons: address already in use when trying to serve

I'm running pylons and I did this: paster server development.ini It's running on :5000

But when I try to run the command again: paster serve development.ini

I get this message: socket.error: [Errno 98] Address already in use

Any ideas?

like image 715
resopollution Avatar asked Nov 30 '22 06:11

resopollution


2 Answers

I've found this trick in a forum:

This will kill all programs listening to port 5000

kill -9 `fuser -n tcp 5000`
like image 95
therealmarv Avatar answered Dec 05 '22 04:12

therealmarv


Normally that means it's still running, but that should only happen if it's in daemon mode. After you started it, do you get a command prompt, or do you have to stop it with Ctrl-C?

If you get a command prompt back it's deamon mode and you have to stop it with

paster server development.ini stop

If you have stopped it with Ctrl-C (and not Ctrl-Z of course), I have no idea.

like image 38
Lennart Regebro Avatar answered Dec 05 '22 04:12

Lennart Regebro