Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2014-03-31 10:09:04.410873)\
- Working directory: /opt/noc\
- <type 'exceptions.IndentationError'>\
- unexpected unindent (views.py, line 19)\
- START OF TRACEBACK\
- ------------------------------------------------------------------------\
- 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'\
- d = 'sa/apps/INTERNET'\
- f = 'sa/apps/INTERNET/views.py'\
- menu = None\
- app = 'noc.sa'\
- m = 'sa'\
- root = \
- {'children': [{'children': [{'access': <function <lambda> at 0x810affa28>,\
- 'app': <noc.sa.apps.activator.views.ActivatorApplication object at 0x810afbbd0>,\
- 'iconCls': 'icon_application_view_list',\
- 'id': '2f06846fbc3636930ecb3f85c1e88c104b7c9a86',\
- 'title': u'Activators'},\
- {'access': <function <lambda> at 0x810b827d0>,\
- 'app': <noc.sa.apps.administrativedomain.views.AdministrativeDomainApplication object at 0x810b02890>,\
- 'iconCls': 'icon_application_view_list',\
- 'id': '3dc9ab4d2708d3a11c5baaff088dc00c4a0c3178',\
- 'title': u'Administrative Domains'},\
- {'access': <function <lambda> at 0x810b82de8>,\
- 'app': <noc.sa.apps.commandsnippet.views.CommandSnippetApplication object at 0x810b02d90>,\
- 'iconCls': 'icon_application_view_list',\
- 'id': 'd90f7dca0dd88018159d5d78878dad7b6fb1dd46',\
- 'title': u'Command Snippets'},\
- {'access': <function <lambda> at 0x810b8a398>,\
- 'app': <noc.sa.apps.groupaccess.views.GroupAccessApplication object at 0x810b85510>,\
- 'iconCls': 'icon_application_view_list',\
- 'id': '69cd3f43708d6f78c2de7e905ee352551c278f25',\
- 'title': u'Group Access'},\
- {'access': <function <lambda> at 0x810ba7488>,\
- 'app': <noc.sa.apps.managedobjectprofile.views.ManagedObjectProfileApplication object at 0x810b9d890>,\
- 'iconCls': 'icon_application_view_list',\
- 'id': '38317c785fa478f243e93e3ac11b946879c175a9',\
- 'title': u'Managed Object Profiles'},\
- {'access': <function <lambda> at 0x810c8ca28>,\
- 'app': <noc.sa.apps.managedobjectselector.views.ManagedObjectSelectorApplication object at 0x810c5ca50>,\
- 'iconCls': 'icon_application',\
- 'id': '350b86280cf3e90dacef15585627c325fa7a5404',\
- 'title': 'Object Selectors'},\
- {'access': <function <lambda> at 0x810c92f50>,\
- 'app': <noc.sa.apps.mrtconfig.views.MRTConfigApplication object at 0x810c98c10>,\
- 'iconCls': 'icon_application_view_list',\
- 'id': 'd85208e201d3c2308392b62bebec8402d561fa8b',\
- 'title': u'MRT Config'},\
- {'access': <function <lambda> at 0x810caec08>,\
- 'app': <noc.sa.apps.useraccess.views.UserAccessApplication object at 0x810cacd90>,\
- 'iconCls': 'icon_application_view_list',\
- 'id': '955ca521a99b02a071a7ffb97d074404f387289d',\
- 'title': u'User Access'},\
- {'access': <function <lambda> at 0x810cba578>,\
- 'app': <noc.sa.apps.objectnotification.views.ObjectNotificationApplication object at 0x810cb26d0>,\
- 'iconCls': 'icon_application_view_list',\
- 'id': '8224353f5fca12479162331747f9c410ef15536b',\
- 'title': u'Object Notification'},\
- {'access': <function <lambda> at 0x810cbaaa0>,\
- 'app': <noc.sa.apps.authprofile.views.AuthProfileApplication object at 0x810cb2f90>,\
- 'iconCls': 'icon_application_view_list',\
- 'id': 'c37007972ee00865cb1d7e8cb10241db84cb05b5',\
- 'title': u'Auth Profiles'}],\
- 'iconCls': 'icon_wrench_orange',\
- 'id': '19cc289ce3b35b2323c10bfa429b31c9798cff73',\
- 'title': u'Setup'},\
- {'children': [{'access': <function <lambda> at 0x810b821b8>,\
- 'app': <noc.sa.apps.activatorstatus.views.ActivatorStatusApplication object at 0x810b02190>,\
- 'iconCls': 'icon_application',\
- 'id': 'facb2bbc38e5add1bec2ba48b724f9688a13e6bd',\
- 'title': 'Activator Status'},\
- {'access': <function <lambda> at 0x810b8a938>,\
- 'app': <noc.sa.apps.macreport.views.MACReportAppplication object at 0x810b8d450>,\
- 'iconCls': 'icon_application',\
- 'id': '23efa562502b01d91cbc9f33246d8263ea30ab7e',\
- 'title': 'MAC Report'},\
- {'access': <function <lambda> at 0x810c928c0>,\
- 'app': <noc.sa.apps.mrtask.views.MRTaskAppplication object at 0x810c98890>,\
- 'iconCls': 'icon_application',\
- 'id': '908bc163a8751c0ff5903626a9649833b0d860d8',\
- 'title': 'Run Task'},\
- {'access': <function <lambda> at 0x810ca8140>,\
- 'app': <noc.sa.apps.runcommands.views.RunCommandsAppplication object at 0x810ca6350>,\
- 'iconCls': 'icon_application',\
- 'id': '98bb7b81044a915f5849649ddcb63a772926bfe2',\
- 'title': 'Run Commands'},\
- {'access': <function <lambda> at 0x810ca8938>,\
- 'app': <noc.sa.apps.runsnippet.views.RunSnippetApplication object at 0x810ca6410>,\
- 'iconCls': 'icon_application',\
- 'id': '24674269fc2384f0830bb1f56a41459b335eb233',\
- 'title': 'Run Snippet'},\
- {'access': <function <lambda> at 0x810ca8e60>,\
- 'app': <noc.sa.apps.setuntagged.views.SetUntaggedApplication object at 0x810cac090>,\
- 'iconCls': 'icon_application',\
- 'id': 'fcf920cc915fb86ade6fe1f930b2855a16f5ae1e',\
- 'title': 'Set Untagged'},\
- {'access': <function <lambda> at 0x810cae2a8>,\
- 'app': <noc.sa.apps.showswitchports.views.ShowSwithportsApplication object at 0x810cac410>,\
- 'iconCls': 'icon_application',\
- 'id': 'e0a874fca4f8ccbcffc87e1cd67452e07fad93c1',\
- 'title': 'Show Switchports'},\
- {'access': <function <lambda> at 0x810cae668>,\
- 'app': <noc.sa.apps.switchportvalidation.views.SwitchportValidationAppplication object at 0x810cac7d0>,\
- 'iconCls': 'icon_application',\
- 'id': '4eb55134471af22374f2d46b517769070096d701',\
- 'title': 'Switchport Validation'},\
- {'access': <function <lambda> at 0x810caef50>,\
- 'app': <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x810cb20d0>,\
- 'iconCls': 'icon_application',\
- 'id': '25ae0810af27f04bf7b83f4953deb7123744d103',\
- 'title': 'Version Inventory'}],\
- 'id': '790db7681856c409fd180fadf957cea94211ee06',\
- 'title': 'Tasks'},\
- {'access': <function <lambda> at 0x810b9be60>,\
- 'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x810b9a750>,\
- 'iconCls': 'icon_application_view_list',\
- 'id': '2c15038579ab92b965c3afeafb29baacbc94a39e',\
- 'title': u'Managed Objects'},\
- {'access': <function <lambda> at 0x810c8ced8>,\
- 'app': <noc.sa.apps.monitor.views.MonitorApplication object at 0x810c5cf10>,\
- 'iconCls': 'icon_monitor',\
- 'id': '18aa77dc81ddbe2a805e61de867bcaf9d6bfdf3b',\
- 'title': u'Monitor'},\
- {'children': [{'access': <function <lambda> at 0x810ca3140>,\
- 'app': <noc.sa.apps.reportfailedscript.views.ReportObjectsSummary object at 0x810c98e10>,\
- 'iconCls': 'icon_application',\
- 'id': 'ef3c0ae42fc81d6d72fb77d2c35f002c5762b4b1',\
- 'title': u'Failed Scripts'},\
- {'access': <function <lambda> at 0x810ca3410>,\
- 'app': <noc.sa.apps.reportmrtask.views.ReportMRTask object at 0x810ca0590>,\
- 'iconCls': 'icon_application',\
- 'id': '42c70cfca6a4270edd4942525073b8cc197df962',\
- 'title': u'Active Map/Reduce tasks'},\
- {'access': <function <lambda> at 0x810ca37d0>,\
- 'app': <noc.sa.apps.reportobjectsummary.views.ReportObjectsSummary object at 0x810ca0990>,\
- 'iconCls': 'icon_application',\
- 'id': '5df62e0893a50d21baec2d2898a6bfacc33ad8bf',\
- 'title': u'Managed Objects Summary'},\
- {'access': <function <lambda> at 0x810ca3b18>,\
- 'app': <noc.sa.apps.reportsupportedequipment.views.Reportreportsupportedequipment object at 0x810ca0b90>,\
- 'iconCls': 'icon_application',\
- 'id': '9eb9760290663e53489e69e89f4c98221f6f1d78',\
- 'title': u'Supported Equipment'}],\
- 'iconCls': 'icon_report',\
- 'id': '54c9de9719317233a00ee7b8fd25faa759786c7d',\
- 'title': u'Reports'}],\
- 'id': '9a80cd1dbe91b4750ab387a6757842e0d5936c1d',\
- 'title': 'Service Activation'}\
- self = <noc.lib.app.site.Site object at 0x80ca894d0>\
- ------------------------------------------------------------------------\
- File: /opt/noc/main/web.py (Line: 140)\
- Function: children_loop\
- 133 self.server._pending_sockets = []\
- 134 self.server.add_sockets(sockets)\
- 135 # Connect to mongodb\
- 136 import noc.lib.nosql\
- 137 # Initialize site\
- 138 logging.info("Registering web applications")\
- 139 from noc.lib.app import site\
- 140 ==> site.autodiscover()\
- 141 # Run children's I/O loop\
- 142 logging.info("Starting to serve requests")\
- 143 tornado.ioloop.IOLoop.instance().start()\
- 144 \
- 145 def at_exit(self):\
- 146 if self.t_children:\
- Variables:\
- self = <noc.main.web.Web object at 0x8017a7190>\
- sockets = [<socket._socketobject object at 0x807696c90>]\
- site = <noc.lib.app.site.Site object at 0x80ca894d0>\
- noc = <module 'noc' from '/opt/noc/__init__.pyc'>\
- ------------------------------------------------------------------------\
- File: /opt/noc/main/web.py (Line: 111)\
- Function: run\
- 104 nc = cpu_count()\
- 105 self.t_children = set()\
- 106 while True:\
- 107 # Run children\
- 108 while len(self.t_children) < nc:\
- 109 pid = os.fork()\
- 110 if pid == 0:\
- 111 ==> self.children_loop()\
- 112 elif pid < 0:\
- 113 logging.error("Unable to fork child")\
- 114 else:\
- 115 logging.info("Running child %d" % pid)\
- 116 self.t_children.add(pid)\
- 117 # Wait for status\
- Variables:\
- status = 0\
- vi = \
- sys.version_info(major=2, minor=7, micro=5, releaselevel='final', serial=0)\
- self = <noc.main.web.Web object at 0x8017a7190>\
- nc = 8\
- pid = 0\
- noc_wsgi = <tornado.wsgi.WSGIContainer object at 0x8062eb050>\
- application = <tornado.web.Application object at 0x8062eb090>\
- address = '127.0.0.1'\
- port = 8000\
- listen = '127.0.0.1:8000'\
- ------------------------------------------------------------------------\
- File: /opt/noc/lib/daemon.py (Line: 370)\
- Function: guarded_run\
- 363 \
- 364 def guarded_run(self):\
- 365 """\
- 366 Run daemon and catch common exceptions\
- 367 :return:\
- 368 """\
- 369 try:\
- 370 ==> self.run()\
- 371 except KeyboardInterrupt:\
- 372 pass\
- 373 except MemoryError:\
- 374 logging.error("Out of memory. Exiting.")\
- 375 except SystemExit:\
- 376 logging.info("Exiting")\
- Variables:\
- self = <noc.main.web.Web object at 0x8017a7190>\
- ------------------------------------------------------------------------\
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement