Advertisement
Guest User

Untitled

a guest
Mar 31st, 2014
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.81 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2014-03-31 10:09:04.410873)\
  2. Working directory: /opt/noc\
  3. <type 'exceptions.IndentationError'>\
  4. unexpected unindent (views.py, line 19)\
  5. START OF TRACEBACK\
  6. ------------------------------------------------------------------------\
  7. File: /opt/noc/lib/app/site.py (Line: 447)\
  8. Function: autodiscover\
  9. 440 # Initialize application\
  10. 441 for f in glob.glob("%s/apps/*/views.py" % m):\
  11. 442 d = os.path.split(f)[0]\
  12. 443 # Skip application loading if denoted by DISABLED file\
  13. 444 if os.path.isfile(os.path.join(d, "DISABLED")):\
  14. 445 continue\
  15. 446 __import__(".".join(["noc"] + f[:-3].split(os.path.sep)),\
  16. 447 ==> {}, {}, "*")\
  17. 448 # Try to install dynamic menus\
  18. 449 menu = None\
  19. 450 try:\
  20. 451 menu = __import__(app + ".menu", {}, {}, "DYNAMIC_MENUS")\
  21. 452 except ImportError:\
  22. 453 continue\
  23. Variables:\
  24. a = 'noc.kb'\
  25. d = 'sa/apps/INTERNET'\
  26. f = 'sa/apps/INTERNET/views.py'\
  27. menu = None\
  28. app = 'noc.sa'\
  29. m = 'sa'\
  30. root = \
  31. {'children': [{'children': [{'access': <function <lambda> at 0x810affa28>,\
  32. 'app': <noc.sa.apps.activator.views.ActivatorApplication object at 0x810afbbd0>,\
  33. 'iconCls': 'icon_application_view_list',\
  34. 'id': '2f06846fbc3636930ecb3f85c1e88c104b7c9a86',\
  35. 'title': u'Activators'},\
  36. {'access': <function <lambda> at 0x810b827d0>,\
  37. 'app': <noc.sa.apps.administrativedomain.views.AdministrativeDomainApplication object at 0x810b02890>,\
  38. 'iconCls': 'icon_application_view_list',\
  39. 'id': '3dc9ab4d2708d3a11c5baaff088dc00c4a0c3178',\
  40. 'title': u'Administrative Domains'},\
  41. {'access': <function <lambda> at 0x810b82de8>,\
  42. 'app': <noc.sa.apps.commandsnippet.views.CommandSnippetApplication object at 0x810b02d90>,\
  43. 'iconCls': 'icon_application_view_list',\
  44. 'id': 'd90f7dca0dd88018159d5d78878dad7b6fb1dd46',\
  45. 'title': u'Command Snippets'},\
  46. {'access': <function <lambda> at 0x810b8a398>,\
  47. 'app': <noc.sa.apps.groupaccess.views.GroupAccessApplication object at 0x810b85510>,\
  48. 'iconCls': 'icon_application_view_list',\
  49. 'id': '69cd3f43708d6f78c2de7e905ee352551c278f25',\
  50. 'title': u'Group Access'},\
  51. {'access': <function <lambda> at 0x810ba7488>,\
  52. 'app': <noc.sa.apps.managedobjectprofile.views.ManagedObjectProfileApplication object at 0x810b9d890>,\
  53. 'iconCls': 'icon_application_view_list',\
  54. 'id': '38317c785fa478f243e93e3ac11b946879c175a9',\
  55. 'title': u'Managed Object Profiles'},\
  56. {'access': <function <lambda> at 0x810c8ca28>,\
  57. 'app': <noc.sa.apps.managedobjectselector.views.ManagedObjectSelectorApplication object at 0x810c5ca50>,\
  58. 'iconCls': 'icon_application',\
  59. 'id': '350b86280cf3e90dacef15585627c325fa7a5404',\
  60. 'title': 'Object Selectors'},\
  61. {'access': <function <lambda> at 0x810c92f50>,\
  62. 'app': <noc.sa.apps.mrtconfig.views.MRTConfigApplication object at 0x810c98c10>,\
  63. 'iconCls': 'icon_application_view_list',\
  64. 'id': 'd85208e201d3c2308392b62bebec8402d561fa8b',\
  65. 'title': u'MRT Config'},\
  66. {'access': <function <lambda> at 0x810caec08>,\
  67. 'app': <noc.sa.apps.useraccess.views.UserAccessApplication object at 0x810cacd90>,\
  68. 'iconCls': 'icon_application_view_list',\
  69. 'id': '955ca521a99b02a071a7ffb97d074404f387289d',\
  70. 'title': u'User Access'},\
  71. {'access': <function <lambda> at 0x810cba578>,\
  72. 'app': <noc.sa.apps.objectnotification.views.ObjectNotificationApplication object at 0x810cb26d0>,\
  73. 'iconCls': 'icon_application_view_list',\
  74. 'id': '8224353f5fca12479162331747f9c410ef15536b',\
  75. 'title': u'Object Notification'},\
  76. {'access': <function <lambda> at 0x810cbaaa0>,\
  77. 'app': <noc.sa.apps.authprofile.views.AuthProfileApplication object at 0x810cb2f90>,\
  78. 'iconCls': 'icon_application_view_list',\
  79. 'id': 'c37007972ee00865cb1d7e8cb10241db84cb05b5',\
  80. 'title': u'Auth Profiles'}],\
  81. 'iconCls': 'icon_wrench_orange',\
  82. 'id': '19cc289ce3b35b2323c10bfa429b31c9798cff73',\
  83. 'title': u'Setup'},\
  84. {'children': [{'access': <function <lambda> at 0x810b821b8>,\
  85. 'app': <noc.sa.apps.activatorstatus.views.ActivatorStatusApplication object at 0x810b02190>,\
  86. 'iconCls': 'icon_application',\
  87. 'id': 'facb2bbc38e5add1bec2ba48b724f9688a13e6bd',\
  88. 'title': 'Activator Status'},\
  89. {'access': <function <lambda> at 0x810b8a938>,\
  90. 'app': <noc.sa.apps.macreport.views.MACReportAppplication object at 0x810b8d450>,\
  91. 'iconCls': 'icon_application',\
  92. 'id': '23efa562502b01d91cbc9f33246d8263ea30ab7e',\
  93. 'title': 'MAC Report'},\
  94. {'access': <function <lambda> at 0x810c928c0>,\
  95. 'app': <noc.sa.apps.mrtask.views.MRTaskAppplication object at 0x810c98890>,\
  96. 'iconCls': 'icon_application',\
  97. 'id': '908bc163a8751c0ff5903626a9649833b0d860d8',\
  98. 'title': 'Run Task'},\
  99. {'access': <function <lambda> at 0x810ca8140>,\
  100. 'app': <noc.sa.apps.runcommands.views.RunCommandsAppplication object at 0x810ca6350>,\
  101. 'iconCls': 'icon_application',\
  102. 'id': '98bb7b81044a915f5849649ddcb63a772926bfe2',\
  103. 'title': 'Run Commands'},\
  104. {'access': <function <lambda> at 0x810ca8938>,\
  105. 'app': <noc.sa.apps.runsnippet.views.RunSnippetApplication object at 0x810ca6410>,\
  106. 'iconCls': 'icon_application',\
  107. 'id': '24674269fc2384f0830bb1f56a41459b335eb233',\
  108. 'title': 'Run Snippet'},\
  109. {'access': <function <lambda> at 0x810ca8e60>,\
  110. 'app': <noc.sa.apps.setuntagged.views.SetUntaggedApplication object at 0x810cac090>,\
  111. 'iconCls': 'icon_application',\
  112. 'id': 'fcf920cc915fb86ade6fe1f930b2855a16f5ae1e',\
  113. 'title': 'Set Untagged'},\
  114. {'access': <function <lambda> at 0x810cae2a8>,\
  115. 'app': <noc.sa.apps.showswitchports.views.ShowSwithportsApplication object at 0x810cac410>,\
  116. 'iconCls': 'icon_application',\
  117. 'id': 'e0a874fca4f8ccbcffc87e1cd67452e07fad93c1',\
  118. 'title': 'Show Switchports'},\
  119. {'access': <function <lambda> at 0x810cae668>,\
  120. 'app': <noc.sa.apps.switchportvalidation.views.SwitchportValidationAppplication object at 0x810cac7d0>,\
  121. 'iconCls': 'icon_application',\
  122. 'id': '4eb55134471af22374f2d46b517769070096d701',\
  123. 'title': 'Switchport Validation'},\
  124. {'access': <function <lambda> at 0x810caef50>,\
  125. 'app': <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x810cb20d0>,\
  126. 'iconCls': 'icon_application',\
  127. 'id': '25ae0810af27f04bf7b83f4953deb7123744d103',\
  128. 'title': 'Version Inventory'}],\
  129. 'id': '790db7681856c409fd180fadf957cea94211ee06',\
  130. 'title': 'Tasks'},\
  131. {'access': <function <lambda> at 0x810b9be60>,\
  132. 'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x810b9a750>,\
  133. 'iconCls': 'icon_application_view_list',\
  134. 'id': '2c15038579ab92b965c3afeafb29baacbc94a39e',\
  135. 'title': u'Managed Objects'},\
  136. {'access': <function <lambda> at 0x810c8ced8>,\
  137. 'app': <noc.sa.apps.monitor.views.MonitorApplication object at 0x810c5cf10>,\
  138. 'iconCls': 'icon_monitor',\
  139. 'id': '18aa77dc81ddbe2a805e61de867bcaf9d6bfdf3b',\
  140. 'title': u'Monitor'},\
  141. {'children': [{'access': <function <lambda> at 0x810ca3140>,\
  142. 'app': <noc.sa.apps.reportfailedscript.views.ReportObjectsSummary object at 0x810c98e10>,\
  143. 'iconCls': 'icon_application',\
  144. 'id': 'ef3c0ae42fc81d6d72fb77d2c35f002c5762b4b1',\
  145. 'title': u'Failed Scripts'},\
  146. {'access': <function <lambda> at 0x810ca3410>,\
  147. 'app': <noc.sa.apps.reportmrtask.views.ReportMRTask object at 0x810ca0590>,\
  148. 'iconCls': 'icon_application',\
  149. 'id': '42c70cfca6a4270edd4942525073b8cc197df962',\
  150. 'title': u'Active Map/Reduce tasks'},\
  151. {'access': <function <lambda> at 0x810ca37d0>,\
  152. 'app': <noc.sa.apps.reportobjectsummary.views.ReportObjectsSummary object at 0x810ca0990>,\
  153. 'iconCls': 'icon_application',\
  154. 'id': '5df62e0893a50d21baec2d2898a6bfacc33ad8bf',\
  155. 'title': u'Managed Objects Summary'},\
  156. {'access': <function <lambda> at 0x810ca3b18>,\
  157. 'app': <noc.sa.apps.reportsupportedequipment.views.Reportreportsupportedequipment object at 0x810ca0b90>,\
  158. 'iconCls': 'icon_application',\
  159. 'id': '9eb9760290663e53489e69e89f4c98221f6f1d78',\
  160. 'title': u'Supported Equipment'}],\
  161. 'iconCls': 'icon_report',\
  162. 'id': '54c9de9719317233a00ee7b8fd25faa759786c7d',\
  163. 'title': u'Reports'}],\
  164. 'id': '9a80cd1dbe91b4750ab387a6757842e0d5936c1d',\
  165. 'title': 'Service Activation'}\
  166. self = <noc.lib.app.site.Site object at 0x80ca894d0>\
  167. ------------------------------------------------------------------------\
  168. File: /opt/noc/main/web.py (Line: 140)\
  169. Function: children_loop\
  170. 133 self.server._pending_sockets = []\
  171. 134 self.server.add_sockets(sockets)\
  172. 135 # Connect to mongodb\
  173. 136 import noc.lib.nosql\
  174. 137 # Initialize site\
  175. 138 logging.info("Registering web applications")\
  176. 139 from noc.lib.app import site\
  177. 140 ==> site.autodiscover()\
  178. 141 # Run children's I/O loop\
  179. 142 logging.info("Starting to serve requests")\
  180. 143 tornado.ioloop.IOLoop.instance().start()\
  181. 144 \
  182. 145 def at_exit(self):\
  183. 146 if self.t_children:\
  184. Variables:\
  185. self = <noc.main.web.Web object at 0x8017a7190>\
  186. sockets = [<socket._socketobject object at 0x807696c90>]\
  187. site = <noc.lib.app.site.Site object at 0x80ca894d0>\
  188. noc = <module 'noc' from '/opt/noc/__init__.pyc'>\
  189. ------------------------------------------------------------------------\
  190. File: /opt/noc/main/web.py (Line: 111)\
  191. Function: run\
  192. 104 nc = cpu_count()\
  193. 105 self.t_children = set()\
  194. 106 while True:\
  195. 107 # Run children\
  196. 108 while len(self.t_children) < nc:\
  197. 109 pid = os.fork()\
  198. 110 if pid == 0:\
  199. 111 ==> self.children_loop()\
  200. 112 elif pid < 0:\
  201. 113 logging.error("Unable to fork child")\
  202. 114 else:\
  203. 115 logging.info("Running child %d" % pid)\
  204. 116 self.t_children.add(pid)\
  205. 117 # Wait for status\
  206. Variables:\
  207. status = 0\
  208. vi = \
  209. sys.version_info(major=2, minor=7, micro=5, releaselevel='final', serial=0)\
  210. self = <noc.main.web.Web object at 0x8017a7190>\
  211. nc = 8\
  212. pid = 0\
  213. noc_wsgi = <tornado.wsgi.WSGIContainer object at 0x8062eb050>\
  214. application = <tornado.web.Application object at 0x8062eb090>\
  215. address = '127.0.0.1'\
  216. port = 8000\
  217. listen = '127.0.0.1:8000'\
  218. ------------------------------------------------------------------------\
  219. File: /opt/noc/lib/daemon.py (Line: 370)\
  220. Function: guarded_run\
  221. 363 \
  222. 364 def guarded_run(self):\
  223. 365 """\
  224. 366 Run daemon and catch common exceptions\
  225. 367 :return:\
  226. 368 """\
  227. 369 try:\
  228. 370 ==> self.run()\
  229. 371 except KeyboardInterrupt:\
  230. 372 pass\
  231. 373 except MemoryError:\
  232. 374 logging.error("Out of memory. Exiting.")\
  233. 375 except SystemExit:\
  234. 376 logging.info("Exiting")\
  235. Variables:\
  236. self = <noc.main.web.Web object at 0x8017a7190>\
  237. ------------------------------------------------------------------------\
  238. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement