Advertisement
Guest User

Untitled

a guest
Oct 5th, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.42 KB | None | 0 0
  1. 2014-10-05 13:08:00,028 [noc-launcher] SIGTERM received. Exiting
  2. 2014-10-05 13:08:00,034 [noc.lib.debug] UNHANDLED EXCEPTION (2014-10-05 13:08:00.030072)
  3. Working directory: /opt/noc
  4. <type 'exceptions.AttributeError'>
  5. 'DaemonData' object has no attribute 'logname'
  6. START OF TRACEBACK
  7. ------------------------------------------------------------------------
  8. File: /opt/noc/main/launcher.py (Line: 283)
  9. Function: stop_all_daemons
  10. 276 self.next_update_check = time.time() + self.next_update_check_interval
  11. 277
  12. 278 def stop_all_daemons(self):
  13. 279 for d in self.daemons:
  14. 280 if d.enabled and d.pid:
  15. 281 try:
  16. 282 self.logger.info("Stopping daemon: %s (PID %d)",
  17. 283 ==> d.logname, d.pid)
  18. 284 os.kill(d.pid, signal.SIGTERM)
  19. 285 d.pid = None
  20. 286 except OSError:
  21. 287 pass
  22. 288
  23. 289 def at_exit(self):
  24. Variables:
  25. self = <noc.main.launcher.Launcher object at 0x8084f4a50>
  26. d = <DaemonData noc-scheduler>
  27. ------------------------------------------------------------------------
  28. File: /opt/noc/main/launcher.py (Line: 290)
  29. Function: at_exit
  30. 283 d.logname, d.pid)
  31. 284 os.kill(d.pid, signal.SIGTERM)
  32. 285 d.pid = None
  33. 286 except OSError:
  34. 287 pass
  35. 288
  36. 289 def at_exit(self):
  37. 290 ==> self.stop_all_daemons()
  38. 291 super(Launcher, self).at_exit()
  39. Variables:
  40. self = <noc.main.launcher.Launcher object at 0x8084f4a50>
  41. ------------------------------------------------------------------------
  42. File: /opt/noc/lib/daemon/base.py (Line: 537)
  43. Function: SIGTERM
  44. 530 """
  45. 531 SIGTERM processing
  46. 532 :param signo:
  47. 533 :param frame:
  48. 534 :return:
  49. 535 """
  50. 536 self.logger.info("SIGTERM received. Exiting")
  51. 537 ==> self.at_exit()
  52. 538 os._exit(0)
  53. Variables:
  54. frame = <frame object at 0x80662b720>
  55. signo = 15
  56. self = <noc.main.launcher.Launcher object at 0x8084f4a50>
  57. ------------------------------------------------------------------------
  58. File: /opt/noc/main/launcher.py (Line: 237)
  59. Function: run
  60. 230 status = 0
  61. 231 if pid == d.pid:
  62. 232 d.logger.info(
  63. 233 "Terminated with status %d",
  64. 234 os.WEXITSTATUS(status)
  65. 235 )
  66. 236 d.pid = None
  67. 237 ==> time.sleep(1)
  68. 238 t = time.time()
  69. 239 if self.crashinfo_uid is not None and t - last_crashinfo_check > 10:
  70. 240 # Fix crashinfo's permissions
  71. 241 for fn in [fn for fn in os.listdir(self.crashinfo_dir) if fn.startswith(DEBUG_CTX_CRASH_PREFIX)]:
  72. 242 path = os.path.join(self.crashinfo_dir, fn)
  73. 243 try:
  74. Variables:
  75. status = -124
  76. d = <DaemonData noc-discovery>
  77. self = <noc.main.launcher.Launcher object at 0x8084f4a50>
  78. pid = 0
  79. last_crashinfo_check = 1412500072.295771
  80. t = 1412500079.365866
  81. fn = 'noc-pmwriter.log.2'
  82. ------------------------------------------------------------------------
  83. File: /opt/noc/lib/daemon/base.py (Line: 385)
  84. Function: guarded_run
  85. 378
  86. 379 def guarded_run(self):
  87. 380 """
  88. 381 Run daemon and catch common exceptions
  89. 382 :return:
  90. 383 """
  91. 384 try:
  92. 385 ==> self.run()
  93. 386 except KeyboardInterrupt:
  94. 387 pass
  95. 388 except MemoryError:
  96. 389 self.logger.error("Out of memory. Exiting.")
  97. 390 except SystemExit:
  98. 391 self.logger.info("Exiting")
  99. Variables:
  100. self = <noc.main.launcher.Launcher object at 0x8084f4a50>
  101. ------------------------------------------------------------------------
  102. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement