Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2014-10-05 13:08:00,028 [noc-launcher] SIGTERM received. Exiting
- 2014-10-05 13:08:00,034 [noc.lib.debug] UNHANDLED EXCEPTION (2014-10-05 13:08:00.030072)
- Working directory: /opt/noc
- <type 'exceptions.AttributeError'>
- 'DaemonData' object has no attribute 'logname'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/main/launcher.py (Line: 283)
- Function: stop_all_daemons
- 276 self.next_update_check = time.time() + self.next_update_check_interval
- 277
- 278 def stop_all_daemons(self):
- 279 for d in self.daemons:
- 280 if d.enabled and d.pid:
- 281 try:
- 282 self.logger.info("Stopping daemon: %s (PID %d)",
- 283 ==> d.logname, d.pid)
- 284 os.kill(d.pid, signal.SIGTERM)
- 285 d.pid = None
- 286 except OSError:
- 287 pass
- 288
- 289 def at_exit(self):
- Variables:
- self = <noc.main.launcher.Launcher object at 0x8084f4a50>
- d = <DaemonData noc-scheduler>
- ------------------------------------------------------------------------
- File: /opt/noc/main/launcher.py (Line: 290)
- Function: at_exit
- 283 d.logname, d.pid)
- 284 os.kill(d.pid, signal.SIGTERM)
- 285 d.pid = None
- 286 except OSError:
- 287 pass
- 288
- 289 def at_exit(self):
- 290 ==> self.stop_all_daemons()
- 291 super(Launcher, self).at_exit()
- Variables:
- self = <noc.main.launcher.Launcher object at 0x8084f4a50>
- ------------------------------------------------------------------------
- File: /opt/noc/lib/daemon/base.py (Line: 537)
- Function: SIGTERM
- 530 """
- 531 SIGTERM processing
- 532 :param signo:
- 533 :param frame:
- 534 :return:
- 535 """
- 536 self.logger.info("SIGTERM received. Exiting")
- 537 ==> self.at_exit()
- 538 os._exit(0)
- Variables:
- frame = <frame object at 0x80662b720>
- signo = 15
- self = <noc.main.launcher.Launcher object at 0x8084f4a50>
- ------------------------------------------------------------------------
- File: /opt/noc/main/launcher.py (Line: 237)
- Function: run
- 230 status = 0
- 231 if pid == d.pid:
- 232 d.logger.info(
- 233 "Terminated with status %d",
- 234 os.WEXITSTATUS(status)
- 235 )
- 236 d.pid = None
- 237 ==> time.sleep(1)
- 238 t = time.time()
- 239 if self.crashinfo_uid is not None and t - last_crashinfo_check > 10:
- 240 # Fix crashinfo's permissions
- 241 for fn in [fn for fn in os.listdir(self.crashinfo_dir) if fn.startswith(DEBUG_CTX_CRASH_PREFIX)]:
- 242 path = os.path.join(self.crashinfo_dir, fn)
- 243 try:
- Variables:
- status = -124
- d = <DaemonData noc-discovery>
- self = <noc.main.launcher.Launcher object at 0x8084f4a50>
- pid = 0
- last_crashinfo_check = 1412500072.295771
- t = 1412500079.365866
- fn = 'noc-pmwriter.log.2'
- ------------------------------------------------------------------------
- File: /opt/noc/lib/daemon/base.py (Line: 385)
- Function: guarded_run
- 378
- 379 def guarded_run(self):
- 380 """
- 381 Run daemon and catch common exceptions
- 382 :return:
- 383 """
- 384 try:
- 385 ==> self.run()
- 386 except KeyboardInterrupt:
- 387 pass
- 388 except MemoryError:
- 389 self.logger.error("Out of memory. Exiting.")
- 390 except SystemExit:
- 391 self.logger.info("Exiting")
- Variables:
- self = <noc.main.launcher.Launcher object at 0x8084f4a50>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement