Project: datamanagement
Issue DM-2515: Catch "address in use"
I noticed when running integration tests, it failed with the error pasted below. It'd be good to catch it and print something useful. I am not entire sure what port number is in use, and what to kill... {code} File "/usr/local/home/becla/stack_201502/repo/qserv/bin/qservWmgr.py", line 89, in sys.exit(main()) File "/usr/local/home/becla/stack_201502/repo/qserv/bin/qservWmgr.py", line 85, in main app.run(host) File "/usr/local/home/becla/stack_201502/Linux64/anaconda/2.1.0/lib/python2.7/site-packages/flask/app.py", line 772, in run run_simple(host, port, self, **options) File "/usr/local/home/becla/stack_201502/Linux64/anaconda/2.1.0/lib/python2.7/site-packages/werkzeug/serving.py", line 710, in ru n_simple inner() File "/usr/local/home/becla/stack_201502/Linux64/anaconda/2.1.0/lib/python2.7/site-packages/werkzeug/serving.py", line 692, in in ner passthrough_errors, ssl_context).serve_forever() File "/usr/local/home/becla/stack_201502/Linux64/anaconda/2.1.0/lib/python2.7/site-packages/werkzeug/serving.py", line 486, in ma ke_server passthrough_errors, ssl_context) File "/usr/local/home/becla/stack_201502/Linux64/anaconda/2.1.0/lib/python2.7/site-packages/werkzeug/serving.py", line 410, in __ init__ HTTPServer.__init__(self, (host, int(port)), handler) File "/usr/local/home/becla/stack_201502/Linux64/anaconda/2.1.0/lib/python2.7/SocketServer.py", line 419, in __init__ self.server_bind() File "/usr/local/home/becla/stack_201502/Linux64/anaconda/2.1.0/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind SocketServer.TCPServer.server_bind(self) File "/usr/local/home/becla/stack_201502/Linux64/anaconda/2.1.0/lib/python2.7/SocketServer.py", line 430, in server_bind self.socket.bind(self.server_address) File "/usr/local/home/becla/stack_201502/Linux64/anaconda/2.1.0/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) socket.error: [Errno 98] Address already in use {code}
Story points: 1