Guest User

Untitled

a guest
May 31st, 2021
36
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [tuerpi@tuerpi ~]$ doorpi_cli --trace
  2. 2021-05-31 21:59:37,924 [INFO]      [doorpi.main]
  3.     ___                  ___ _
  4.    /   \___   ___  _ __ / _ (_)  VoIP Door-Intercomstation with Raspberry Pi
  5.   / /\ / _ \ / _ \| '__/ /_)/ |  version:   2.5.1
  6. / /_// (_) | (_) | | / ___/| |  license:   CC BY-NC 4.0
  7. /___,' \___/ \___/|_| \/    |_|  URL:       <https://github.com/motom001/DoorPi>
  8.  
  9. Authors:    Thomas Meissner <motom001@gmail.com>
  10. Supporter:  Phillip Munz <office@businessaccess.info>
  11.             Hermann Dötsch <doorpi1@gmail.com>
  12.             Dennis Häußler <haeusslerd@outlook.com>
  13.             Hubert Nusser <hubsif@gmx.de>
  14.             Michael Hauer <frrr@gmx.at>
  15.             Andreas Schwarz <doorpi@schwarz-ketsch.de>
  16.             Max Rößler <max_kr@gmx.de>
  17.             missing someone? -> sorry -> mail me
  18.  
  19. 2021-05-31 21:59:37,924 [DEBUG]     [doorpi.main] loaded with arguments: ['/usr/bin/doorpi_cli', '--trace']
  20. 2021-05-31 21:59:37,925 [DEBUG]     [doorpi.doorpi] run
  21. 2021-05-31 21:59:37,925 [DEBUG]     [doorpi.doorpi] prepare
  22. 2021-05-31 21:59:37,926 [DEBUG]     [doorpi.doorpi] given arguments argv: Namespace(debug=False, trace=True, test=False, configfile=None)
  23. 2021-05-31 21:59:37,927 [INFO]      [doorpi.doorpi] Selected BasePath /home/tuerpi
  24. 2021-05-31 21:59:37,930 [ERROR]     [doorpi.conf.config_object] No valid configfile found - use parameter --configfile "filename" to specify one
  25. 2021-05-31 21:59:37,930 [DEBUG]     [doorpi.conf.config_object] __init__
  26. 2021-05-31 21:59:37,930 [TRACE]     [doorpi.conf.config_object] get_from_config
  27. 2021-05-31 21:59:37,931 [DEBUG]     [doorpi.conf.config_object] create new key base_path in section DoorPi with value '/home/tuerpi'
  28. 2021-05-31 21:59:37,931 [TRACE]     [doorpi.conf.config_object] get_string for key base_path in section DoorPi (default: /home/tuerpi) returns /home/tuerpi
  29. 2021-05-31 21:59:37,931 [DEBUG]     [doorpi.conf.config_object] create new key eventlog in section DoorPi with value '!BASEPATH!/conf/eventlog.db'
  30. 2021-05-31 21:59:37,932 [TRACE]     [doorpi.conf.config_object] get_string for key eventlog in section DoorPi (default: !BASEPATH!/conf/eventlog.db) returns !BASEPATH!/conf/eventlog.db
  31. 2021-05-31 21:59:37,933 [DEBUG]     [doorpi.conf.config_object] parse string "!BASEPATH!/conf/eventlog.db" to "/home/tuerpi/conf/eventlog.db"
  32. 2021-05-31 21:59:37,936 [TRACE]     [doorpi.action.handler] action SingleAction with args () and kwargs {} was added to new evententry AfterStartup
  33. 2021-05-31 21:59:37,937 [DEBUG]     [doorpi.conf.config_object] create new key 10 in section EVENT_OnStartup with value 'sleep:1'
  34. 2021-05-31 21:59:37,938 [TRACE]     [doorpi.conf.config_object] get_string for key 10 in section EVENT_OnStartup (default: sleep:1) returns sleep:1
  35. 2021-05-31 21:59:37,938 [TRACE]     [doorpi.action.handler] register Event BeforeStartup from doorpi.doorpi
  36. 2021-05-31 21:59:37,938 [DEBUG]     [doorpi.action.handler] event_source doorpi.doorpi was added
  37. 2021-05-31 21:59:37,939 [TRACE]     [doorpi.action.handler] added event_name BeforeStartup and registered source doorpi.doorpi
  38. 2021-05-31 21:59:37,939 [TRACE]     [doorpi.action.handler] register Event OnStartup from doorpi.doorpi
  39. 2021-05-31 21:59:37,939 [TRACE]     [doorpi.action.handler] added event_name OnStartup and registered source doorpi.doorpi
  40. 2021-05-31 21:59:37,940 [TRACE]     [doorpi.action.handler] register Event AfterStartup from doorpi.doorpi
  41. 2021-05-31 21:59:37,940 [TRACE]     [doorpi.action.handler] added event_name AfterStartup and registered source doorpi.doorpi
  42. 2021-05-31 21:59:37,940 [TRACE]     [doorpi.action.handler] register Event BeforeShutdown from doorpi.doorpi
  43. 2021-05-31 21:59:37,941 [TRACE]     [doorpi.action.handler] added event_name BeforeShutdown and registered source doorpi.doorpi
  44. 2021-05-31 21:59:37,941 [TRACE]     [doorpi.action.handler] register Event OnShutdown from doorpi.doorpi
  45. 2021-05-31 21:59:37,941 [TRACE]     [doorpi.action.handler] added event_name OnShutdown and registered source doorpi.doorpi
  46. 2021-05-31 21:59:37,941 [TRACE]     [doorpi.action.handler] register Event AfterShutdown from doorpi.doorpi
  47. 2021-05-31 21:59:37,942 [TRACE]     [doorpi.action.handler] added event_name AfterShutdown and registered source doorpi.doorpi
  48. 2021-05-31 21:59:37,948 [DEBUG]     [doorpi.action.SingleActions.time_tick] doorpi.action.SingleActions.time_tick loaded
  49. 2021-05-31 21:59:37,949 [DEBUG]     [doorpi.action.handler] event_source doorpi.action.SingleActions.time_tick was added
  50. 2021-05-31 21:59:37,950 [TRACE]     [doorpi.action.handler] action TimeTickDestroyAction with args () and kwargs {} was added to new evententry OnShutdown
  51. 2021-05-31 21:59:37,950 [TRACE]     [doorpi.action.handler] action TimeTickAction with args ('!last_tick!',) and kwargs {} was added to new evententry OnTimeTick
  52. 2021-05-31 21:59:37,950 [DEBUG]     [doorpi.conf.config_object] create new key ip in section DoorPiWeb with value '0.0.0.0'
  53. 2021-05-31 21:59:37,951 [TRACE]     [doorpi.conf.config_object] get_string for key ip in section DoorPiWeb (default: 0.0.0.0) returns 0.0.0.0
  54. 2021-05-31 21:59:37,951 [TRACE]     [doorpi.conf.config_object] get_integer for key port in section DoorPiWeb (default: 50371) returns 50371
  55. 2021-05-31 21:59:37,952 [INFO]      [doorpi.status.webserver] Starting WebService
  56. 2021-05-31 21:59:37,953 [ERROR]     [doorpi.status.webserver] Starting WebService failed: [Errno 98] Address already in use
  57. 2021-05-31 21:59:37,953 [ERROR]     [doorpi.status.webserver] [Errno 98] Address already in use
  58. Traceback (most recent call last):
  59.   File "/usr/lib/python3.9/site-packages/doorpi/status/webserver.py", line 38, in load_webserver
  60.     doorpiweb_object = DoorPiWeb(server_address, DoorPiWebRequestHandler)
  61.   File "/usr/lib/python3.9/socketserver.py", line 452, in __init__
  62.     self.server_bind()
  63.   File "/usr/lib/python3.9/site-packages/doorpi/status/webserver.py", line 171, in server_bind
  64.     super().server_bind()
  65.   File "/usr/lib/python3.9/http/server.py", line 138, in server_bind
  66.     socketserver.TCPServer.server_bind(self)
  67.   File "/usr/lib/python3.9/socketserver.py", line 466, in server_bind
  68.     self.socket.bind(self.server_address)
  69. OSError: [Errno 98] Address already in use
  70. 2021-05-31 21:59:37,958 [WARNING]   [root] section keyboards not found in configfile
  71. 2021-05-31 21:59:37,958 [TRACE]     [doorpi.conf.config_object] get_keys for section keyboards returns []
  72. 2021-05-31 21:59:37,959 [INFO]      [doorpi.keyboard.KeyboardInterface] using multi-keyboard mode with dummy keyboard
  73. 2021-05-31 21:59:37,959 [INFO]      [doorpi.keyboard.KeyboardInterface] trying to add keyboard 'dummy' to handler
  74. 2021-05-31 21:59:37,960 [DEBUG]     [doorpi.conf.config_object] create new key dummy in section keyboards with value 'dummy'
  75. 2021-05-31 21:59:37,960 [TRACE]     [doorpi.conf.config_object] get_string for key dummy in section keyboards (default: dummy) returns dummy
  76. 2021-05-31 21:59:37,960 [WARNING]   [root] section dummy_InputPins not found in configfile
  77. 2021-05-31 21:59:37,961 [TRACE]     [doorpi.conf.config_object] get_keys for section dummy_InputPins returns []
  78. 2021-05-31 21:59:37,961 [WARNING]   [root] section dummy_OutputPins not found in configfile
  79. 2021-05-31 21:59:37,961 [TRACE]     [doorpi.conf.config_object] get_keys for section dummy_OutputPins returns []
  80. 2021-05-31 21:59:37,961 [TRACE]     [doorpi.conf.config_object] get_float for key bouncetime in section dummy_keyboard (default: 2000) returns 2000.0
  81. 2021-05-31 21:59:37,962 [TRACE]     [doorpi.conf.config_object] get_integer for key polarity in section dummy_keyboard (default: 0) returns 0
  82. 2021-05-31 21:59:37,962 [TRACE]     [doorpi.conf.config_object] get_boolean for key pressed_on_keydown in section dummy_keyboard (default: True) returns True
  83. 2021-05-31 21:59:37,965 [DEBUG]     [doorpi.keyboard.from_dummy] doorpi.keyboard.from_dummy loaded
  84. 2021-05-31 21:59:37,966 [DEBUG]     [doorpi.keyboard.from_dummy] __init__(input_pins = [], output_pins = [], bouncetime = 2000.0, polarity = 0)
  85. 2021-05-31 21:59:37,966 [WARNING]   [root] section dummy_InputPins not found in configfile
  86. 2021-05-31 21:59:37,967 [TRACE]     [doorpi.conf.config_object] get_keys for section dummy_InputPins returns []
  87. 2021-05-31 21:59:37,967 [WARNING]   [root] section dummy_OutputPins not found in configfile
  88. 2021-05-31 21:59:37,967 [TRACE]     [doorpi.conf.config_object] get_keys for section dummy_OutputPins returns []
  89. 2021-05-31 21:59:37,968 [TRACE]     [doorpi.action.handler] action KeyboardDestroyAction with args () and kwargs {} was added to event OnShutdown
  90. 2021-05-31 21:59:37,968 [WARNING]   [root] section dummy_OutputPins not found in configfile
  91. 2021-05-31 21:59:37,968 [TRACE]     [doorpi.conf.config_object] get_keys for section dummy_OutputPins returns []
  92. 2021-05-31 21:59:37,975 [DEBUG]     [doorpi.status.status_lib.environment] doorpi.status.status_lib.environment loaded
  93. 2021-05-31 21:59:37,981 [DEBUG]     [doorpi.status.requirements_lib.req_config] doorpi.status.requirements_lib.req_config loaded
  94. 2021-05-31 21:59:37,985 [DEBUG]     [doorpi.status.requirements_lib.req_sipphone] doorpi.status.requirements_lib.req_sipphone loaded
  95. 2021-05-31 21:59:37,989 [DEBUG]     [doorpi.sipphone.AbstractBaseClass] doorpi.sipphone.AbstractBaseClass loaded
  96. 2021-05-31 21:59:37,993 [DEBUG]     [doorpi.status.requirements_lib.req_event_handler] doorpi.status.requirements_lib.req_event_handler loaded
  97. 2021-05-31 21:59:37,997 [DEBUG]     [doorpi.status.requirements_lib.req_webserver] doorpi.status.requirements_lib.req_webserver loaded
  98. 2021-05-31 21:59:38,002 [DEBUG]     [doorpi.status.requirements_lib.req_keyboard] doorpi.status.requirements_lib.req_keyboard loaded
  99. 2021-05-31 21:59:38,007 [DEBUG]     [doorpi.status.requirements_lib.req_system] doorpi.status.requirements_lib.req_system loaded
  100. 2021-05-31 21:59:38,020 [WARNING]   [doorpi.sipphone.SipphoneInterface] found no installed sipphones and use dummy as default
  101. 2021-05-31 21:59:38,020 [DEBUG]     [doorpi.conf.config_object] create new key sipphonetyp in section SIP-Phone with value 'dummy'
  102. 2021-05-31 21:59:38,021 [TRACE]     [doorpi.conf.config_object] get_string for key sipphonetyp in section SIP-Phone (default: dummy) returns dummy
  103. 2021-05-31 21:59:38,031 [DEBUG]     [doorpi.sipphone.from_dummy] doorpi.sipphone.from_dummy loaded
  104. 2021-05-31 21:59:38,031 [WARNING]   [doorpi.sipphone.from_dummy] No sipphone in config - use dummy sipphone without functionality
  105. 2021-05-31 21:59:38,032 [DEBUG]     [doorpi.sipphone.from_dummy] __init__
  106. 2021-05-31 21:59:38,032 [TRACE]     [doorpi.action.handler] action SingleAction with args () and kwargs {} was added to event OnShutdown
  107. 2021-05-31 21:59:38,033 [TRACE]     [doorpi.action.handler] register Event OnSipPhoneCreate from doorpi.sipphone.from_dummy
  108. 2021-05-31 21:59:38,033 [DEBUG]     [doorpi.action.handler] event_source doorpi.sipphone.from_dummy was added
  109. 2021-05-31 21:59:38,033 [TRACE]     [doorpi.action.handler] added event_name OnSipPhoneCreate and registered source doorpi.sipphone.from_dummy
  110. 2021-05-31 21:59:38,034 [TRACE]     [doorpi.action.handler] register Event OnSipPhoneStart from doorpi.sipphone.from_dummy
  111. 2021-05-31 21:59:38,034 [TRACE]     [doorpi.action.handler] added event_name OnSipPhoneStart and registered source doorpi.sipphone.from_dummy
  112. 2021-05-31 21:59:38,034 [TRACE]     [doorpi.action.handler] register Event OnSipPhoneDestroy from doorpi.sipphone.from_dummy
  113. 2021-05-31 21:59:38,034 [TRACE]     [doorpi.action.handler] added event_name OnSipPhoneDestroy and registered source doorpi.sipphone.from_dummy
  114. 2021-05-31 21:59:38,035 [TRACE]     [doorpi.action.handler] action SingleAction with args () and kwargs {} was added to new evententry OnSipPhoneDestroy
  115. 2021-05-31 21:59:38,035 [TRACE]     [doorpi.action.handler] register Event OnRecorderStarted from doorpi.sipphone.from_dummy
  116. 2021-05-31 21:59:38,035 [TRACE]     [doorpi.action.handler] added event_name OnRecorderStarted and registered source doorpi.sipphone.from_dummy
  117. 2021-05-31 21:59:38,036 [TRACE]     [doorpi.action.handler] register Event OnRecorderStopped from doorpi.sipphone.from_dummy
  118. 2021-05-31 21:59:38,036 [TRACE]     [doorpi.action.handler] added event_name OnRecorderStopped and registered source doorpi.sipphone.from_dummy
  119. 2021-05-31 21:59:38,036 [TRACE]     [doorpi.action.handler] register Event OnRecorderCreated from doorpi.sipphone.from_dummy
  120. 2021-05-31 21:59:38,036 [TRACE]     [doorpi.action.handler] added event_name OnRecorderCreated and registered source doorpi.sipphone.from_dummy
  121. 2021-05-31 21:59:38,037 [TRACE]     [doorpi.action.handler] fire Event OnRecorderCreated from doorpi.sipphone.from_dummy asyncron
  122. 2021-05-31 21:59:38,038 [TRACE]     [doorpi.action.handler] fire Event OnSipPhoneCreate from doorpi.sipphone.from_dummy asyncron
  123. 2021-05-31 21:59:38,039 [DEBUG]     [doorpi.action.handler] no actions for event OnRecorderCreated - skip fire_event OnRecorderCreated from doorpi.sipphone.from_dummy
  124. 2021-05-31 21:59:38,040 [TRACE]     [doorpi.action.handler] fire Event OnSipPhoneStart from doorpi.sipphone.from_dummy asyncron
  125. 2021-05-31 21:59:38,041 [DEBUG]     [doorpi.action.handler] no actions for event OnSipPhoneCreate - skip fire_event OnSipPhoneCreate from doorpi.sipphone.from_dummy
  126. 2021-05-31 21:59:38,045 [DEBUG]     [doorpi.action.handler] no actions for event OnSipPhoneStart - skip fire_event OnSipPhoneStart from doorpi.sipphone.from_dummy
  127. 2021-05-31 21:59:38,046 [TRACE]     [doorpi.conf.config_object] get_sections returns ['EVENT_OnStartup']
  128. 2021-05-31 21:59:38,048 [INFO]      [doorpi.doorpi] found EVENT_ section 'EVENT_OnStartup' in configfile
  129. 2021-05-31 21:59:38,048 [TRACE]     [doorpi.conf.config_object] get_keys for section EVENT_OnStartup returns ['10']
  130. 2021-05-31 21:59:38,049 [INFO]      [doorpi.doorpi] registering action '10' for event 'OnStartup'
  131. 2021-05-31 21:59:38,049 [TRACE]     [doorpi.conf.config_object] get_string for key 10 in section EVENT_OnStartup (default: ) returns sleep:1
  132. 2021-05-31 21:59:38,052 [DEBUG]     [doorpi.action.SingleActions.sleep] doorpi.action.SingleActions.sleep loaded
  133. 2021-05-31 21:59:38,053 [TRACE]     [doorpi.action.handler] action SleepAction with args (1.0,) and kwargs {} was added to new evententry OnStartup
  134. 2021-05-31 21:59:38,054 [WARNING]   [root] section dummy_InputPins not found in configfile
  135. 2021-05-31 21:59:38,054 [WARNING]   [root] section DTMF not found in configfile
  136. 2021-05-31 21:59:38,054 [TRACE]     [doorpi.conf.config_object] get_keys for section DTMF returns []
  137. 2021-05-31 21:59:38,055 [DEBUG]     [doorpi.conf.config_object] create new key is_alive_led in section DoorPi with value ''
  138. 2021-05-31 21:59:38,055 [TRACE]     [doorpi.conf.config_object] get_string for key is_alive_led in section DoorPi (default: ) returns
  139. 2021-05-31 21:59:38,055 [TRACE]     [doorpi.action.handler] fire Event BeforeStartup from doorpi.doorpi asyncron
  140. 2021-05-31 21:59:38,056 [DEBUG]     [doorpi.action.handler] no actions for event BeforeStartup - skip fire_event BeforeStartup from doorpi.doorpi
  141. 2021-05-31 21:59:38,057 [DEBUG]     [doorpi.action.handler] [JLG5W5] fire for event OnStartup this actions [<doorpi.action.SingleActions.sleep.SleepAction object at 0xffffb8682a30>]
  142. 2021-05-31 21:59:38,057 [TRACE]     [doorpi.action.handler] [JLG5W5] try to fire action SleepAction with args (1.0,) and kwargs {}
  143. 2021-05-31 21:59:38,058 [TRACE]     [doorpi.action.base] run SleepAction with args (1.0,) and kwargs {}
  144. 2021-05-31 21:59:39,059 [TRACE]     [doorpi.action.handler] [JLG5W5] finished fire_event for event_name OnStartup
  145. 2021-05-31 21:59:39,059 [TRACE]     [doorpi.action.handler] fire Event AfterStartup from doorpi.doorpi asyncron
  146. 2021-05-31 21:59:39,062 [INFO]      [doorpi.doorpi] DoorPi started successfully
  147. 2021-05-31 21:59:39,062 [INFO]      [doorpi.doorpi] BasePath is /home/tuerpi
  148. 2021-05-31 21:59:39,064 [DEBUG]     [doorpi.action.handler] [9VYPME] fire for event AfterStartup this actions [<doorpi.action.base.SingleAction object at 0xffffb87cce20>]
  149. 2021-05-31 21:59:39,065 [INFO]      [doorpi.doorpi] no Webserver loaded
  150. 2021-05-31 21:59:39,066 [TRACE]     [doorpi.action.handler] [9VYPME] try to fire action SingleAction with args () and kwargs {}
  151. 2021-05-31 21:59:39,067 [TRACE]     [doorpi.action.base] run SingleAction with args () and kwargs {}
  152. 2021-05-31 21:59:39,069 [ERROR]     [doorpi.action.handler] [9VYPME] error while fire action SingleAction with args () and kwargs {} for event_name AfterStartup
  153. Traceback (most recent call last):
  154.   File "/usr/lib/python3.9/site-packages/doorpi/action/handler.py", line 273, in fire_event_synchron
  155.     result = action.run(silent)
  156.   File "/usr/lib/python3.9/site-packages/doorpi/action/base.py", line 54, in run
  157.     return self.__callback()
  158.   File "/usr/lib/python3.9/site-packages/doorpi/conf/config_object.py", line 80, in save_config
  159.     if not configfile: configfile = self.find_config(configfile)
  160.   File "/usr/lib/python3.9/site-packages/doorpi/conf/config_object.py", line 49, in find_config
  161.     doorpi.DoorPi().parse_string(str(configfile)),
  162.   File "/usr/lib/python3.9/site-packages/doorpi/doorpi.py", line 268, in parse_string
  163.     infos_as_html += '<i>'+cgi.escape(
  164. AttributeError: module 'cgi' has no attribute 'escape'
  165. 2021-05-31 21:59:39,074 [TRACE]     [doorpi.action.handler] [9VYPME] finished fire_event for event_name AfterStartup
  166.  
RAW Paste Data