droxit / roxcomposer

This is the droxit microservice framework repository.
GNU Lesser General Public License v3.0
5 stars 0 forks source link

Restarting server after crash is not possible because "address is already in use". #84

Closed hecktor-droxit closed 5 years ago

hecktor-droxit commented 5 years ago

"Address already in use" error after restarting crashed server. Obviously, server does not clear its socket correctly.

Error message:

{"level": "CRITICAL", "msg": "Address already in use - <traceback object at 0x7f5832057248>", "time": "2019-03-05T10:56:41+0000", "service": "basic_reporting"} Traceback (most recent call last): File "plugins/service_container.py", line 18, in srv.listen() File "/home/christian/.local/lib/python3.6/site-packages/roxcomposer/base_service.py", line 236, in listen self.listen_to(self.params['ip'], self.params['port']) File "/home/christian/.local/lib/python3.6/site-packages/roxcomposer/base_service.py", line 173, in listen_to raise e File "/home/christian/.local/lib/python3.6/site-packages/roxcomposer/base_service.py", line 169, in listen_to s.bind((ip, port)) OSError: [Errno 98] Address already in use

droxit-becker commented 5 years ago

Fixed with #103