Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==> /var/log/noc/noc-web.log <==
- 2013-04-23 13:20:13,308 UNHANDLED EXCEPTION (2013-04-23 13:20:13.297456)
- Working directory: /opt/noc
- <type 'exceptions.ImportError'>
- cannot import name DNS
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/cm/apps/dns/views.py (Line: 9)
- Function: <module>
- 2 ##----------------------------------------------------------------------
- 3 ## DNS Manager
- 4 ##----------------------------------------------------------------------
- 5 ## Copyright (C) 2007-2010 The NOC Project
- 6 ## See LICENSE for details
- 7 ##----------------------------------------------------------------------
- 8 from django.contrib import admin
- 9 ==> from noc.cm.models import DNS
- 10 from noc.cm.repoapp import RepoApplication
- 11 ##
- 12 ## DNS admin
- 13 ##
- 14 class DNSAdmin(admin.ModelAdmin):
- 15 list_display=["repo_path","last_modified","status"]
- Variables:
- __builtins__ =
- {'ArithmeticError': <type 'exceptions.ArithmeticError'>,
- 'AssertionError': <type 'exceptions.AssertionError'>,
- 'AttributeError': <type 'exceptions.AttributeError'>,
- 'BaseException': <type 'exceptions.BaseException'>,
- 'BufferError': <type 'exceptions.BufferError'>,
- 'BytesWarning': <type 'exceptions.BytesWarning'>,
- 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>,
- 'EOFError': <type 'exceptions.EOFError'>,
- 'Ellipsis': Ellipsis,
- 'EnvironmentError': <type 'exceptions.EnvironmentError'>,
- 'Exception': <type 'exceptions.Exception'>,
- 'False': False,
- 'FloatingPointError': <type 'exceptions.FloatingPointError'>,
- 'FutureWarning': <type 'exceptions.FutureWarning'>,
- 'GeneratorExit': <type 'exceptions.GeneratorExit'>,
- 'IOError': <type 'exceptions.IOError'>,
- 'ImportError': <type 'exceptions.ImportError'>,
- 'ImportWarning': <type 'exceptions.ImportWarning'>,
- 'IndentationError': <type 'exceptions.IndentationError'>,
- 'IndexError': <type 'exceptions.IndexError'>,
- 'KeyError': <type 'exceptions.KeyError'>,
- 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>,
- 'LookupError': <type 'exceptions.LookupError'>,
- 'MemoryError': <type 'exceptions.MemoryError'>,
- 'NameError': <type 'exceptions.NameError'>,
- 'None': None,
- 'NotImplemented': NotImplemented,
- 'NotImplementedError': <type 'exceptions.NotImplementedError'>,
- 'OSError': <type 'exceptions.OSError'>,
- 'OverflowError': <type 'exceptions.OverflowError'>,
- 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>,
- 'ReferenceError': <type 'exceptions.ReferenceError'>,
- 'RuntimeError': <type 'exceptions.RuntimeError'>,
- 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>,
- 'StandardError': <type 'exceptions.StandardError'>,
- 'StopIteration': <type 'exceptions.StopIteration'>,
- 'SyntaxError': <type 'exceptions.SyntaxError'>,
- 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>,
- 'SystemError': <type 'exceptions.SystemError'>,
- 'SystemExit': <type 'exceptions.SystemExit'>,
- 'TabError': <type 'exceptions.TabError'>,
- 'True': True,
- 'TypeError': <type 'exceptions.TypeError'>,
- 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>,
- 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>,
- 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>,
- 'UnicodeError': <type 'exceptions.UnicodeError'>,
- 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>,
- 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>,
- 'UserWarning': <type 'exceptions.UserWarning'>,
- 'ValueError': <type 'exceptions.ValueError'>,
- 'Warning': <type 'exceptions.Warning'>,
- 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>,
- '__debug__': True,
- '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.",
- '__import__': <built-in function __import__>,
- '__name__': '__builtin__',
- '__package__': None,
- 'abs': <built-in function abs>,
- 'all': <built-in function all>,
- 'any': <built-in function any>,
- 'apply': <built-in function apply>,
- 'basestring': <type 'basestring'>,
- 'bin': <built-in function bin>,
- 'bool': <type 'bool'>,
- 'buffer': <type 'buffer'>,
- 'bytearray': <type 'bytearray'>,
- 'bytes': <type 'str'>,
- 'callable': <built-in function callable>,
- 'chr': <built-in function chr>,
- 'classmethod': <type 'classmethod'>,
- 'cmp': <built-in function cmp>,
- 'coerce': <built-in function coerce>,
- 'compile': <built-in function compile>,
- 'complex': <type 'complex'>,
- 'copyright': Copyright (c) 2001-2010 Python Software Foundation.
- All Rights Reserved.
- Copyright (c) 2000 BeOpen.com.
- All Rights Reserved.
- Copyright (c) 1995-2001 Corporation for National Research Initiatives.
- All Rights Reserved.
- Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
- All Rights Reserved.,
- 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
- for supporting Python development. See www.python.org for more information.,
- 'delattr': <built-in function delattr>,
- 'dict': <type 'dict'>,
- 'dir': <built-in function dir>,
- 'divmod': <built-in function divmod>,
- 'enumerate': <type 'enumerate'>,
- 'eval': <built-in function eval>,
- 'execfile': <built-in function execfile>,
- 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit,
- 'file': <type 'file'>,
- 'filter': <built-in function filter>,
- 'float': <type 'float'>,
- 'format': <built-in function format>,
- 'frozenset': <type 'frozenset'>,
- 'getattr': <built-in function getattr>,
- 'globals': <built-in function globals>,
- 'hasattr': <built-in function hasattr>,
- 'hash': <built-in function hash>,
- 'help': Type help() for interactive help, or help(object) for help about object.,
- 'hex': <built-in function hex>,
- 'id': <built-in function id>,
- 'input': <built-in function input>,
- 'int': <type 'int'>,
- 'intern': <built-in function intern>,
- 'isinstance': <built-in function isinstance>,
- 'issubclass': <built-in function issubclass>,
- 'iter': <built-in function iter>,
- 'len': <built-in function len>,
- 'license': Type license() to see the full license text,
- 'list': <type 'list'>,
- 'locals': <built-in function locals>,
- 'long': <type 'long'>,
- 'map': <built-in function map>,
- 'max': <built-in function max>,
- 'min': <built-in function min>,
- 'next': <built-in function next>,
- 'object': <type 'object'>,
- 'oct': <built-in function oct>,
- 'open': <built-in function open>,
- 'ord': <built-in function ord>,
- 'pow': <function _gmpy_pow at 0x30c6938>,
- 'print': <built-in function print>,
- 'property': <type 'property'>,
- 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit,
- 'range': <built-in function range>,
- 'raw_input': <built-in function raw_input>,
- 'reduce': <built-in function reduce>,
- 'reload': <built-in function reload>,
- 'repr': <built-in function repr>,
- 'reversed': <type 'reversed'>,
- 'round': <built-in function round>,
- 'set': <type 'set'>,
- 'setattr': <built-in function setattr>,
- 'slice': <type 'slice'>,
- 'sorted': <built-in function sorted>,
- 'staticmethod': <type 'staticmethod'>,
- 'str': <type 'str'>,
- 'sum': <built-in function sum>,
- 'super': <type 'super'>,
- 'tuple': <type 'tuple'>,
- 'type': <type 'type'>,
- 'unichr': <built-in function unichr>,
- 'unicode': <type 'unicode'>,
- 'vars': <built-in function vars>,
- 'xrange': <type 'xrange'>,
- 'zip': <built-in function zip>}
- __file__ = None
- __package__ = None
- admin = None
- __name__ = None
- __doc__ = None
- ------------------------------------------------------------------------
- File: /opt/noc/lib/app/site.py (Line: 447)
- Function: autodiscover
- 440 # Initialize application
- 441 for f in glob.glob("%s/apps/*/views.py" % m):
- 442 d = os.path.split(f)[0]
- 443 # Skip application loading if denoted by DISABLED file
- 444 if os.path.isfile(os.path.join(d, "DISABLED")):
- 445 continue
- 446 __import__(".".join(["noc"] + f[:-3].split(os.path.sep)),
- 447 ==> {}, {}, "*")
- 448 # Try to install dynamic menus
- 449 menu = None
- 450 try:
- 451 menu = __import__(app + ".menu", {}, {}, "DYNAMIC_MENUS")
- 452 except ImportError:
- 453 continue
- Variables:
- a = 'noc.kb'
- dm =
- {'children': [],
- 'iconCls': 'icon_page_go',
- 'id': 'd56557e8f3964333d508405e7e1f0ac42b4a3bf0',
- 'title': 'Snippets'}
- d = 'cm/apps/dns'
- f = 'cm/apps/dns/views.py'
- menu = None
- app = 'noc.cm'
- m = 'cm'
- root =
- {'children': [{'children': [{'access': <function <lambda> at 0x451ee60>,
- 'app': <noc.cm.apps.objectnotify.views.ObjectNotifyApplication object at 0x451f610>,
- 'iconCls': 'icon_application',
- 'id': 'c0da3f7b4495d19c33027ac8f0bf0981e0cfe837',
- 'title': 'Object Notifies'}],
- 'iconCls': 'icon_wrench_orange',
- 'id': '9d249574faf88b3b8169e2c7be14e075c3bcd5cb',
- 'title': 'Setup'},
- {'children': [{'access': <function <lambda> at 0x45271b8>,
- 'app': <noc.cm.apps.reportlatestchanges.views.ReportreportLatestChanges object at 0x451fe90>,
- 'iconCls': 'icon_application',
- 'id': '4096dc6b9077c086d3c123dcfd0b07ab90f41021',
- 'title': u'Latest Changes'}],
- 'iconCls': 'icon_report',
- 'id': '1ca347a8fe30349ab00ba7d42d8c8db79a2079bf',
- 'title': u'Reports'},
- {'access': <function <lambda> at 0x46296e0>,
- 'app': <noc.cm.apps.config.views.ConfigApplication object at 0x4628950>,
- 'iconCls': 'icon_application',
- 'id': '7f1b495d9363bd5fed89d4197ea5a87d213352d4',
- 'title': 'Configs'},
- {'access': <function <lambda> at 0x4629ed8>,
- 'app': <noc.cm.apps.rpsl.views.RPSLApplication object at 0x4628b90>,
- 'iconCls': 'icon_application',
- 'id': '1bda33685876420e7da4103225b0bf35309d11b9',
- 'title': 'RPSL Objects'},
- {'access': <function <lambda> at 0x4635758>,
- 'app': <noc.cm.apps.prefixlist.views.PrefixListApplication object at 0x4631310>,
- 'iconCls': 'icon_application',
- 'id': 'c7603fc339ee516f05006f84c3f4766549b9d15d',
- 'title': 'Prefix Lists'}],
- 'id': 'fe686b697b9298ae09bdccc01026926f53395b49',
- 'title': 'Configuration Management'}
- path = ['sa', 'Snippets']
- d_menu = <noc.sa.menu.SnippetsMenu object at 0x43fc850>
- self = <noc.lib.app.site.Site object at 0x267a150>
- ------------------------------------------------------------------------
- File: /opt/noc/main/web.py (Line: 139)
- Function: children_loop
- 132 self.server._pending_sockets = []
- 133 self.server.add_sockets(sockets)
- 134 # Connect to mongodb
- 135 import noc.lib.nosql
- 136 # Initialize site
- 137 logging.info("Registering web applications")
- 138 from noc.lib.app import site
- 139 ==> site.autodiscover()
- 140 # Run children's I/O loop
- 141 logging.info("Starting to serve requests")
- 142 tornado.ioloop.IOLoop.instance().start()
- 143
- 144 def at_exit(self):
- 145 if self.t_children:
- Variables:
- self = <noc.main.web.Web object at 0x7ffd5a431f10>
- sockets = [<socket._socketobject object at 0x232e600>]
- site = <noc.lib.app.site.Site object at 0x267a150>
- noc = <module 'noc' from '/opt/noc/__init__.pyc'>
- ------------------------------------------------------------------------
- File: /opt/noc/main/web.py (Line: 110)
- Function: run
- 103 nc = cpu_count()
- 104 self.t_children = set()
- 105 while True:
- 106 # Run children
- 107 while len(self.t_children) < nc:
- 108 pid = os.fork()
- 109 if pid == 0:
- 110 ==> self.children_loop()
- 111 elif pid < 0:
- 112 logging.error("Unable to fork child")
- 113 else:
- 114 logging.info("Running child %d" % pid)
- 115 self.t_children.add(pid)
- 116 # Wait for status
- Variables:
- self = <noc.main.web.Web object at 0x7ffd5a431f10>
- nc = 2
- pid = 0
- noc_wsgi = <tornado.wsgi.WSGIContainer object at 0x2128590>
- application = <tornado.web.Application object at 0x2128f10>
- address = '127.0.0.1'
- port = 8000
- listen = '127.0.0.1:8000'
- ------------------------------------------------------------------------
- File: /opt/noc/lib/daemon.py (Line: 364)
- Function: guarded_run
- 357
- 358 def guarded_run(self):
- 359 """
- 360 Run daemon and catch common exceptions
- 361 :return:
- 362 """
- 363 try:
- 364 ==> self.run()
- 365 except KeyboardInterrupt:
- 366 pass
- 367 except MemoryError:
- 368 logging.error("Out of memory. Exiting.")
- 369 except SystemExit:
- 370 logging.info("Exiting")
- Variables:
- self = <noc.main.web.Web object at 0x7ffd5a431f10>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement