Skip to content

Shutdown routine do not work  #58

@sm7tix

Description

@sm7tix

When hitting ctrl-c the server start shutting down. It stops with "BOSWatch server has stopped" and nothing more happens (see log below)
. Can stay there for hours. When i hit ctrl-c again i get this error.

^[^CException ignored in: <module 'threading' from '/usr/lib/python3.7/threading.py'>
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 1281, in _shutdown
t.join()
File "/usr/lib/python3.7/threading.py", line 1032, in join
self._wait_for_tstate_lock()
File "/usr/lib/python3.7/threading.py", line 1048, in _wait_for_tstate_lock
elif lock.acquire(block, timeout):
KeyboardInterrupt

^C

^C03.10.2020 06:38:43,233 - bw_server [WARNING ] Keyboard interrupt
03.10.2020 06:38:43,234 - bw_server [DEBUG ] Starting shutdown routine
03.10.2020 06:38:43,259 - routerManager [DEBUG ] Start cleanup for Router 1
03.10.2020 06:38:43,261 - moduleBase [DEBUG ] [module.filter.modeFilter] onUnload()
03.10.2020 06:38:43,263 - moduleBase [DEBUG ] [module.filter.regexFilter] onUnload()
03.10.2020 06:38:43,264 - moduleBase [DEBUG ] [module.filter.doubleFilter] onUnload()
03.10.2020 06:38:43,265 - moduleBase [DEBUG ] [module.csv] onUnload()
03.10.2020 06:38:43,267 - pluginBase [DEBUG ] [plugin.telegram] onUnload()
03.10.2020 06:38:43,268 - pluginBase [DEBUG ] [plugin.mysql] onUnload()
03.10.2020 06:38:43,269 - pluginBase [DEBUG ] [plugin.pushover] onUnload()
03.10.2020 06:38:43,270 - routerManager [DEBUG ] Start cleanup for Router2
03.10.2020 06:38:43,271 - moduleBase [DEBUG ] [module.filter.modeFilter] onUnload()
03.10.2020 06:38:43,272 - moduleBase [DEBUG ] [module.filter.regexFilter] onUnload()
03.10.2020 06:38:43,273 - pluginBase [DEBUG ] [plugin.telegram] onUnload()
03.10.2020 06:38:43,391 - server [INFO ] Client disconnected: 192.xx
03.10.2020 06:38:43,410 - server [INFO ] Client disconnected: 192.xx
03.10.2020 06:38:43,417 - server [INFO ] Client disconnected: 192.xx
03.10.2020 06:38:43,425 - server [INFO ] Client disconnected: 192.xx
03.10.2020 06:38:43,443 - server [INFO ] Client disconnected: 192.xx
03.10.2020 06:38:43,451 - server [INFO ] Client disconnected: 192.xx
03.10.2020 06:38:43,483 - server [DEBUG ] TCPServer stopped
03.10.2020 06:38:43,484 - broadcast [WARNING ] udp broadcast server always stopped
03.10.2020 06:38:43,485 - bw_server [DEBUG ] BOSWatch server has stopped ...

Info.
03.10.2020 06:47:58,195 - header [DEBUG ] BOSWatch and environment information
03.10.2020 06:47:58,195 - header [DEBUG ] - Client version: 3.0.0
03.10.2020 06:47:58,196 - header [DEBUG ] - Server version: 3.0.0
03.10.2020 06:47:58,196 - header [DEBUG ] - Branch: develop
03.10.2020 06:47:58,197 - header [DEBUG ] - Release date: 01.01.2019
03.10.2020 06:47:58,197 - header [DEBUG ] - Python version: 3.7.3
03.10.2020 06:47:58,198 - header [DEBUG ] - Python build: ('default', 'Jul 25 2020 13:03:44')
03.10.2020 06:47:58,208 - header [DEBUG ] - System: Linux
03.10.2020 06:47:58,212 - header [DEBUG ] - OS Version: Linux-5.4.61-v7+-armv7l-with-debian-10.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions