Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@noc-project noc]# ./noc runserver 192.168.13.249:8000
- 2012-01-17 00:04:10,626 Running NOC 0.7(3) webserver
- 2012-01-17 00:04:10,626 Loading site
- 2012-01-17 00:04:10,626 Listening 192.168.13.249:8000
- 2012-01-17 00:04:10,628 Running child 22407
- 2012-01-17 00:04:10,744 Using JSON library: cjson
- 2012-01-17 00:04:10,751 Loading PeriodicRegistry
- 2012-01-17 00:04:10,757 Loading DownloaderRegistry
- /usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-i686.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
- 2012-01-17 00:04:10,825 SSH: Using gmpy
- 2012-01-17 00:04:10,851 Loading ProfileRegistry
- 2012-01-17 00:04:11,199 Loading ScriptRegistry
- 2012-01-17 00:04:11,273 Loading VCSRegistry
- 2012-01-17 00:04:11,307 Loading GeneratorRegistry
- 2012-01-17 00:04:11,323 Loading MacroRegistry
- 2012-01-17 00:04:11,345 Loading ParserRegistry
- 2012-01-17 00:04:11,365 UNHANDLED EXCEPTION (2012-01-17 00:04:11.354512)
- Working directory: /opt/noc
- <class 'psycopg2.OperationalError'>
- FATAL: Ident authentication failed for user "noc"
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /usr/lib/python2.6/site-packages/psycopg2-2.4.4-py2.6-linux-i686.egg/psycopg2/__init__.py (Line: 179)
- Function: connect
- 172 dsn = " ".join(["%s=%s" % (k, _param_escape(str(v)))
- 173 for (k, v) in items])
- 174
- 175 if not dsn:
- 176 raise InterfaceError('missing dsn and no parameters')
- 177
- 178 return _connect(dsn,
- 179 ==> connection_factory=connection_factory, async=async)
- 180
- 181
- 182 __all__ = filter(lambda k: not k.startswith('_'), locals().keys())
- 183
- Variables:
- database = 'noc'
- items = [('dbname', 'noc'), ('user', 'noc'), ('password', 'noc')]
- k = 'password'
- v = 'noc'
- port = None
- dsn = 'dbname=noc user=noc password=noc'
- host = None
- user = 'noc'
- kwargs = {}
- async = False
- password = 'noc'
- connection_factory = None
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/db/backends/postgresql_psycopg2/base.py (Line: 140)
- Function: _cursor
- 133 conn_params['user'] = settings_dict['USER']
- 134 if settings_dict['PASSWORD']:
- 135 conn_params['password'] = settings_dict['PASSWORD']
- 136 if settings_dict['HOST']:
- 137 conn_params['host'] = settings_dict['HOST']
- 138 if settings_dict['PORT']:
- 139 conn_params['port'] = settings_dict['PORT']
- 140 ==> self.connection = Database.connect(**conn_params)
- 141 self.connection.set_client_encoding('UTF8')
- 142 self.connection.set_isolation_level(self.isolation_level)
- 143 connection_created.send(sender=self.__class__, connection=self)
- 144 cursor = self.connection.cursor()
- 145 cursor.tzinfo_factory = None
- 146 if new_connection:
- Variables:
- conn_params = {'password': 'noc', 'user': 'noc', 'database': 'noc'}
- new_connection = True
- settings_dict = {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'TEST_MIRROR': None, 'NAME': 'noc', 'TEST_CHARSET': None, 'TIME_ZONE': 'Europe/Moscow', 'TEST_COLLATION': None, 'OPTIONS': {}, 'HOST': '', 'USER': 'noc', 'TEST_NAME': 'test_noc', 'PASSWORD': 'noc', 'PORT': ''}
- self = <django.db.backends.postgresql_psycopg2.base.DatabaseWrapper object at 0x9b464b4>
- set_tz = 'Europe/Moscow'
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/db/backends/__init__.py (Line: 250)
- Function: cursor
- 243 if self.connection is not None:
- 244 self.connection.close()
- 245 self.connection = None
- 246
- 247 def cursor(self):
- 248 if (self.use_debug_cursor or
- 249 (self.use_debug_cursor is None and settings.DEBUG)):
- 250 ==> cursor = self.make_debug_cursor(self._cursor())
- 251 else:
- 252 cursor = util.CursorWrapper(self._cursor(), self)
- 253 return cursor
- 254
- 255 def make_debug_cursor(self, cursor):
- 256 return util.CursorDebugWrapper(cursor, self)
- Variables:
- self = <django.db.backends.postgresql_psycopg2.base.DatabaseWrapper object at 0x9b464b4>
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/db/models/sql/compiler.py (Line: 734)
- Function: execute_sql
- 727 raise EmptyResultSet
- 728 except EmptyResultSet:
- 729 if result_type == MULTI:
- 730 return empty_iter()
- 731 else:
- 732 return
- 733
- 734 ==> cursor = self.connection.cursor()
- 735 cursor.execute(sql, params)
- 736
- 737 if not result_type:
- 738 return cursor
- 739 if result_type == SINGLE:
- 740 if self.query.ordering_aliases:
- Variables:
- self = <django.db.models.sql.compiler.SQLCompiler object at 0xa7e2dcc>
- params = (True,)
- result_type = 'multi'
- sql = 'SELECT "main_dbtrigger"."id", "main_dbtrigger"."name", "main_dbtrigger"."model", "main_dbtrigger"."is_active", "main_dbtrigger"."order", "main_dbtrigger"."description", "main_dbtrigger"."pre_save_rule_id", "main_dbtrigger"."post_save_rule_id", "main_dbtrigger"."pre_delete_rule_id", "main_dbtrigger"."post_delete_rule_id" FROM "main_dbtrigger" WHERE "main_dbtrigger"."is_active" = %s ORDER BY "main_dbtrigger"."order" ASC'
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/db/models/sql/compiler.py (Line: 680)
- Function: results_iter
- 673 def results_iter(self):
- 674 """
- 675 Returns an iterator over the results from executing this query.
- 676 """
- 677 resolve_columns = hasattr(self, 'resolve_columns')
- 678 fields = None
- 679 has_aggregate_select = bool(self.query.aggregate_select)
- 680 ==> for rows in self.execute_sql(MULTI):
- 681 for row in rows:
- 682 if resolve_columns:
- 683 if fields is None:
- 684 # We only set this up here because
- 685 # related_select_fields isn't populated until
- 686 # execute_sql() has been called.
- Variables:
- fields = None
- self = <django.db.models.sql.compiler.SQLCompiler object at 0xa7e2dcc>
- has_aggregate_select = False
- resolve_columns = False
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/db/models/query.py (Line: 273)
- Function: iterator
- 266 init_list.append(field.attname)
- 267 model_cls = deferred_class_factory(self.model, skip)
- 268
- 269 # Cache db and model outside the loop
- 270 db = self.db
- 271 model = self.model
- 272 compiler = self.query.get_compiler(using=db)
- 273 ==> for row in compiler.results_iter():
- 274 if fill_cache:
- 275 obj, _ = get_cached_row(model, row,
- 276 index_start, using=db, max_depth=max_depth,
- 277 requested=requested, offset=len(aggregate_select),
- 278 only_load=only_load)
- 279 else:
- Variables:
- requested = None
- fill_cache = False
- aggregate_select = []
- fields = [<django.db.models.fields.AutoField object at 0x9feadcc>, <django.db.models.fields.CharField object at 0x9fea6cc>, <django.db.models.fields.CharField object at 0x9fea72c>, <django.db.models.fields.BooleanField object at 0x9fea76c>, <django.db.models.fields.IntegerField object at 0x9fea78c>, <django.db.models.fields.TextField object at 0x9fea7cc>, <django.db.models.fields.related.ForeignKey object at 0x9fea82c>, <django.db.models.fields.related.ForeignKey object at 0x9fea84c>, <django.db.models.fields.related.ForeignKey object at 0x9fea8cc>, <django.db.models.fields.related.ForeignKey object at 0x9fea94c>]
- skip = None
- self = []
- load_fields = []
- db = 'default'
- index_start = 0
- extra_select = []
- aggregate_start = 10
- pk_idx = 0
- model = <class 'noc.main.models.DBTrigger'>
- only_load = {}
- max_depth = 5
- compiler = <django.db.models.sql.compiler.SQLCompiler object at 0xa7e2dcc>
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/db/models/query.py (Line: 772)
- Function: _fill_cache
- 765 """
- 766 Fills the result cache with 'num' more entries (or until the results
- 767 iterator is exhausted).
- 768 """
- 769 if self._iter:
- 770 try:
- 771 for i in range(num or ITER_CHUNK_SIZE):
- 772 ==> self._result_cache.append(self._iter.next())
- 773 except StopIteration:
- 774 self._iter = None
- 775
- 776 def _next_is_sticky(self):
- 777 """
- 778 Indicates that the next filter call and the one following that should
- Variables:
- i = 0
- self = []
- num = None
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/db/models/query.py (Line: 107)
- Function: _result_iter
- 100 upper = len(self._result_cache)
- 101 while pos < upper:
- 102 yield self._result_cache[pos]
- 103 pos = pos + 1
- 104 if not self._iter:
- 105 raise StopIteration
- 106 if len(self._result_cache) <= pos:
- 107 ==> self._fill_cache()
- 108
- 109 def __nonzero__(self):
- 110 if self._result_cache is not None:
- 111 return bool(self._result_cache)
- 112 try:
- 113 iter(self).next()
- Variables:
- upper = 0
- self = []
- pos = 0
- ------------------------------------------------------------------------
- File: /opt/noc/main/models.py (Line: 1156)
- Function: refresh_cache
- 1149 def refresh_cache(cls, *args, **kwargs):
- 1150 # Clear cache
- 1151 cls._pre_save_triggers = {}
- 1152 cls._post_save_triggers = {}
- 1153 cls._pre_delete_triggers = {}
- 1154 cls._post_delete_triggers = {}
- 1155 # Add all active triggers
- 1156 ==> for t in cls.objects.filter(is_active=True).order_by("order"):
- 1157 for r in ["pre_save", "post_save", "pre_delete", "post_delete"]:
- 1158 c = getattr(cls, "_%s_triggers" % r)
- 1159 rule = getattr(t, "%s_rule" % r)
- 1160 if rule:
- 1161 try:
- 1162 c[t.model] += [rule]
- Variables:
- cls = <class 'noc.main.models.DBTrigger'>
- args = ()
- kwargs = {}
- ------------------------------------------------------------------------
- File: /opt/noc/main/models.py (Line: 1440)
- Function: <module>
- 1433 return cp
- 1434
- 1435
- 1436 ##
- 1437 ## Install triggers
- 1438 ##
- 1439 if settings.IS_WEB and not settings.IS_TEST:
- 1440 ==> DBTrigger.refresh_cache() # Load existing triggers
- 1441 # Trigger cache syncronization
- 1442 post_save.connect(DBTrigger.refresh_cache, sender=DBTrigger)
- 1443 post_delete.connect(DBTrigger.refresh_cache, sender=DBTrigger)
- 1444 # Install signal hooks
- 1445 pre_save.connect(DBTrigger.pre_save_dispatch)
- 1446 post_save.connect(DBTrigger.post_save_dispatch)
- Variables:
- MaxLengthValidator = <class 'django.core.validators.MaxLengthValidator'>
- Group = <class 'django.contrib.auth.models.Group'>
- BinaryField = <class 'noc.lib.fields.BinaryField'>
- TextArrayField = <class 'noc.lib.fields.TextArrayField'>
- NotificationGroupUser = <class 'noc.main.models.NotificationGroupUser'>
- periodic_registry = <noc.lib.periodic.PeriodicRegistry object at 0x9f4208c>
- model_choices = <function model_choices at 0x9fe05dc>
- with_statement = _Feature((2, 5, 0, 'alpha', 1), (2, 6, 0, 'alpha', 0), 32768)
- site = <noc.lib.app.site.Site object at 0x9d39dcc>
- datetime = <module 'datetime' from '/usr/lib/python2.6/lib-dynload/datetime.so'>
- rx_mac_3_octets = <_sre.SRE_Pattern object at 0x9f13118>
- UserProfileManager = <class 'noc.main.models.UserProfileManager'>
- SystemNotification = <class 'noc.main.models.SystemNotification'>
- NoPyRuleException = <class 'noc.main.models.NoPyRuleException'>
- ColorField = <class 'noc.lib.fields.ColorField'>
- get_user = <function get_user at 0x9f3cf44>
- DatabaseStorage = <class 'noc.main.models.DatabaseStorage'>
- database_storage = <noc.lib.database_storage.DatabaseStorage object at 0x9fd1fac>
- CIDRField = <class 'noc.lib.fields.CIDRField'>
- Language = <class 'noc.main.models.Language'>
- Permission = <class 'noc.main.models.Permission'>
- audit_trail_delete = <function audit_trail_delete at 0x9f4b95c>
- rx_coding = <_sre.SRE_Pattern object at 0xa01ddb8>
- UserProfileContact = <class 'noc.main.models.UserProfileContact'>
- AUDIT_TRAIL_EXCLUDE = set(['main_audittrail', 'kb_kbentryhistory', 'django_session', 'sa_reducetask', 'kb_kbentrypreviewlog', 'sa_maptask', 'django_admin_log', 'auth_message', 'fm_eventlog'])
- Style = <class 'noc.main.models.Style'>
- TP = <class 'noc.lib.timepattern.TimePattern'>
- __package__ = 'noc.main'
- re = <module 're' from '/usr/lib/python2.6/re.pyc'>
- PickledField = <class 'noc.lib.fields.PickledField'>
- RefBookData = <class 'noc.main.models.RefBookData'>
- models = <module 'django.db.models' from '/opt/noc/contrib/lib/django/db/models/__init__.pyc'>
- types = <module 'types' from '/usr/lib/python2.6/types.pyc'>
- RBDManader = <class 'noc.main.models.RBDManader'>
- post_save = <django.dispatch.dispatcher.Signal object at 0x9a2eaac>
- SystemTemplate = <class 'noc.main.models.SystemTemplate'>
- audit_trail_save = <function audit_trail_save at 0x9f4b844>
- Template = <class 'noc.main.models.Template'>
- UserProfile = <class 'noc.main.models.UserProfile'>
- databrowse = <module 'django.contrib.databrowse' from '/opt/noc/contrib/lib/django/contrib/databrowse/__init__.pyc'>
- __doc__ = '\n'
- USER_NOTIFICATION_METHOD_CHOICES = [('mail', 'Email')]
- User = <class 'django.contrib.auth.models.User'>
- MIMEType = <class 'noc.main.models.MIMEType'>
- check_extension = <function inner_validator at 0x9964f7c>
- NotificationGroup = <class 'noc.main.models.NotificationGroup'>
- on_new_model = <function on_new_model at 0x9f4ba04>
- RefBook = <class 'noc.main.models.RefBook'>
- __builtins__ = {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'isinstance': <built-in function isinstance>, '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., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'locals': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'print': <built-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, '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., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, 'TypeError': <type 'exceptions.TypeError'>, 'license': Type license() to see the full license text, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <function _gmpy_pow at 0xa27efb4>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.LookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOError'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <type 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in function execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <type 'exceptions.OverflowError'>}
- IP = <class 'noc.lib.ip.IP'>
- __file__ = '/opt/noc/main/models.pyc'
- PrefixTable = <class 'noc.main.models.PrefixTable'>
- pre_save = <django.dispatch.dispatcher.Signal object at 0x9a2ea8c>
- PyRule = <class 'noc.main.models.PyRule'>
- TimePatternTerm = <class 'noc.main.models.TimePatternTerm'>
- interface_registry = {'IRemoveVlan': <class 'noc.sa.interfaces.iremovevlan.IRemoveVlan'>, 'IGetTopologyData': <class 'noc.sa.interfaces.igettopologydata.IGetTopologyData'>, 'IGetDot11Associations': <class 'noc.sa.interfaces.igetdot11associations.IGetDot11Associations'>, 'ISyncVlans': <class 'noc.sa.interfaces.isyncvlans.ISyncVlans'>, 'IGetDictList': <class 'noc.sa.interfaces.igetdictlist.IGetDictList'>, 'IGetBFDSessions': <class 'noc.sa.interfaces.igetbfdsessions.IGetBFDSessions'>, 'IGetCDPNeighbors': <class 'noc.sa.interfaces.igetcdpneighbors.IGetCDPNeighbors'>, 'IDispositionCondition': <class 'noc.sa.interfaces.idispositioncondition.IDispositionCondition'>, 'IDBPreSave': <class 'noc.sa.interfaces.idbpresave.IDBPreSave'>, 'INotifySAE': <class 'noc.sa.interfaces.inotifysae.INotifySAE'>, 'IGetVlans': <class 'noc.sa.interfaces.igetvlans.IGetVlans'>, 'IConfigDiffFilter': <class 'noc.sa.interfaces.iconfigdifffilter.IConfigDiffFilter'>, 'IGetFDPNeighbors': <class 'noc.sa.interfaces.igetfdpneighbors.IGetFDPNeighbors'>, 'IGetCopperTDRDiag': <class 'noc.sa.interfaces.igetcoppertdrdiag.IGetCopperTDRDiag'>, 'ISyncPrefixLists': <class 'noc.sa.interfaces.isyncprefixlists.ISyncPrefixLists'>, 'IGetPortchannel': <class 'noc.sa.interfaces.igetportchannel.IGetPortchannel'>, 'IGetIfIndex': <class 'noc.sa.interfaces.igetifindex.IGetIfIndex'>, 'IGetMACAddressTable': <class 'noc.sa.interfaces.igetmacaddresstable.IGetMACAddressTable'>, 'IGetSNMPGet': <class 'noc.sa.interfaces.igetsnmpget.IGetSNMPGet'>, 'IReduceTask': <class 'noc.sa.interfaces.ireducetask.IReduceTask'>, 'IHasVlan': <class 'noc.sa.interfaces.ihasvlan.IHasVlan'>, 'IHasLocalUser': <class 'noc.sa.interfaces.ihaslocaluser.IHasLocalUser'>, 'IPeriodicTask': <class 'noc.sa.interfaces.iperiodictask.IPeriodicTask'>, 'IGetLocalUsers': <class 'noc.sa.interfaces.igetlocalusers.IGetLocalUsers'>, 'Interface': <class 'noc.sa.interfaces.base.Interface'>, 'IConfigFilter': <class 'noc.sa.interfaces.iconfigfilter.IConfigFilter'>, 'IGetARP': <class 'noc.sa.interfaces.igetarp.IGetARP'>, 'IPing': <class 'noc.sa.interfaces.iping.IPing'>, 'IAddVlan': <class 'noc.sa.interfaces.iaddvlan.IAddVlan'>, 'ICommands': <class 'noc.sa.interfaces.icommands.ICommands'>, 'IDBPostSave': <class 'noc.sa.interfaces.idbpostsave.IDBPostSave'>, 'IGetLicense': <class 'noc.sa.interfaces.igetlicense.IGetLicense'>, 'IGetObjectStatus': <class 'noc.sa.interfaces.igetobjectstatus.IGetObjectStatus'>, 'IGetHTTPGet': <class 'noc.sa.interfaces.igethttpget.IGetHTTPGet'>, 'IGetFQDN': <class 'noc.sa.interfaces.igetfqdn.IGetFQDN'>, 'IGetInterfaceStatus': <class 'noc.sa.interfaces.igetinterfacestatus.IGetInterfaceStatus'>, 'IGetSwitchport': <class 'noc.sa.interfaces.igetswitchport.IGetSwitchport'>, 'IDBPreDelete': <class 'noc.sa.interfaces.idbpredelete.IDBPreDelete'>, 'IGetInterfaces': <class 'noc.sa.interfaces.igetinterfaces.IGetInterfaces'>, 'IAuthenticationBackend': <class 'noc.sa.interfaces.iauthenticationbackend.IAuthenticationBackend'>, 'IGetSNMPGetNext': <class 'noc.sa.interfaces.igetsnmpgetnext.IGetSNMPGetNext'>, 'IAlarmTrigger': <class 'noc.sa.interfaces.ialarmtrigger.IAlarmTrigger'>, 'IGetSpanningTree': <class 'noc.sa.interfaces.igetspanningtree.IGetSpanningTree'>, 'IGetVersion': <class 'noc.sa.interfaces.igetversion.IGetVersion'>, 'IConfigValidator': <class 'noc.sa.interfaces.iconfigvalidator.IConfigValidator'>, 'IEventTrigger': <class 'noc.sa.interfaces.ieventtrigger.IEventTrigger'>, 'IDBPostDelete': <class 'noc.sa.interfaces.idbpostdelete.IDBPostDelete'>, 'IGetDHCPBinding': <class 'noc.sa.interfaces.igetdhcpbinding.IGetDHCPBinding'>, 'IGetChassisID': <class 'noc.sa.interfaces.igetchassisid.IGetChassisID'>, 'IGetLLDPNeighbors': <class 'noc.sa.interfaces.igetlldpneighbors.IGetLLDPNeighbors'>, 'IGetObjectsStatus': <class 'noc.sa.interfaces.igetobjectsstatus.IGetObjectsStatus'>, 'IAuthenticationForm': <class 'noc.sa.interfaces.iauthenticationform.IAuthenticationForm'>, 'IPingCheck': <class 'noc.sa.interfaces.ipingcheck.IPingCheck'>, 'IGetConfig': <class 'noc.sa.interfaces.igetconfig.IGetConfig'>, 'IEvent': <class 'noc.sa.interfaces.ievent.IEvent'>}
- Checkpoint = <class 'noc.main.models.Checkpoint'>
- Context = <class 'django.template.context.Context'>
- RefBookField = <class 'noc.main.models.RefBookField'>
- __name__ = 'noc.main.models'
- NotificationGroupOther = <class 'noc.main.models.NotificationGroupOther'>
- AuditTrail = <class 'noc.main.models.AuditTrail'>
- _ = <function ugettext at 0xb748f25c>
- PrefixTablePrefix = <class 'noc.main.models.PrefixTablePrefix'>
- search_methods = set([<bound method ModelBase.search of <class 'noc.cm.models.RPSL'>>, <bound method ModelBase.search of <class 'noc.kb.models.KBEntry'>>, <bound method ModelBase.search of <class 'noc.sa.models.ManagedObject'>>, <bound method ModelBase.search of <class 'noc.cm.models.Config'>>, <bound method ModelBase.search of <class 'noc.kb.models.KBEntryAttachment'>>, <bound method ModelBase.search of <class 'noc.ip.models.VRF'>>, <bound method ModelBase.search of <class 'noc.vc.models.VC'>>, <bound method ModelBase.search of <class 'noc.cm.models.PrefixList'>>, <bound method ModelBase.search of <class 'noc.ip.models.Prefix'>>, <bound method ModelBase.search of <class 'noc.main.models.RefBook'>>, <bound method ModelBase.search of <class 'noc.ip.models.Address'>>, <bound method ModelBase.search of <class 'noc.cm.models.DNS'>>])
- pre_delete = <django.dispatch.dispatcher.Signal object at 0x9a2eacc>
- downloader_registry = <noc.main.refbooks.downloaders.DownloaderRegistry object at 0x9f3b80c>
- settings = <module 'noc.settings' from '/opt/noc/settings.pyc'>
- check_mimetype = <function inner_validator at 0x9964fb4>
- Schedule = <class 'noc.main.models.Schedule'>
- NOTIFICATION_METHOD_CHOICES = [('mail', 'Email'), ('file', 'File')]
- Shard = <class 'noc.main.models.Shard'>
- threading = <module 'threading' from '/usr/lib/python2.6/threading.pyc'>
- connection = <django.db.backends.postgresql_psycopg2.base.DatabaseWrapper object at 0x9b464b4>
- Tag = <class 'tagging.models.Tag'>
- TimePatternList = <class 'noc.lib.timepattern.TimePatternList'>
- Notification = <class 'noc.main.models.Notification'>
- class_prepared = <django.dispatch.dispatcher.Signal object at 0x9a2ea0c>
- DBTrigger = <class 'noc.main.models.DBTrigger'>
- DBS = <class 'noc.lib.database_storage.DatabaseStorage'>
- post_delete = <django.dispatch.dispatcher.Signal object at 0x9a2eaec>
- os = <module 'os' from '/usr/lib/python2.6/os.pyc'>
- DjangoTemplate = <class 'django.template.base.Template'>
- TimePattern = <class 'noc.main.models.TimePattern'>
- ------------------------------------------------------------------------
- File: /opt/noc/lib/app/access.py (Line: 9)
- Function: <module>
- 2 ##----------------------------------------------------------------------
- 3 ## Access control
- 4 ##----------------------------------------------------------------------
- 5 ## Copyright (C) 2007-2009 The NOC Project
- 6 ## See LICENSE for details
- 7 ##----------------------------------------------------------------------
- 8 from django.db.models import Q
- 9 ==> import noc.main.models
- 10
- 11
- 12 class PermissionDenied(Exception):
- 13 """
- 14 Basic Permission Denied exception
- 15 """
- Variables:
- __builtins__ = {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'isinstance': <built-in function isinstance>, '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., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'locals': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'print': <built-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, '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., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, 'TypeError': <type 'exceptions.TypeError'>, 'license': Type license() to see the full license text, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <function _gmpy_pow at 0xa27efb4>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.LookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOError'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <type 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in function execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <type 'exceptions.OverflowError'>}
- __file__ = None
- __package__ = None
- Q = None
- __name__ = None
- __doc__ = None
- ------------------------------------------------------------------------
- File: /opt/noc/lib/app/__init__.py (Line: 9)
- Function: <module>
- 2 ##----------------------------------------------------------------------
- 3 ## Application classes
- 4 ##----------------------------------------------------------------------
- 5 ## Copyright (C) 2007-2009 The NOC Project
- 6 ## See LICENSE for details
- 7 ##----------------------------------------------------------------------
- 8 from site import *
- 9 ==> from access import *
- 10 from application import *
- 11 from modelapplication import *
- 12 from treeapplication import *
- 13 from extapplication import *
- 14 from extmodelapplication import *
- 15 from extdocapplication import *
- Variables:
- force_unicode = None
- reverse = None
- ViewDoesNotExist = None
- HttpResponseNotFound = None
- RegexURLPattern = None
- set_urlconf = None
- site = None
- Site = None
- __path__ = None
- get_callable = None
- HttpResponseForbidden = None
- HttpResponse = None
- NoReverseMatch = None
- normalize = None
- handler500 = None
- smart_str = None
- ImproperlyConfigured = None
- urllib = None
- __package__ = None
- re = None
- patterns = None
- MultiValueDict = None
- get_script_prefix = None
- include = None
- local = None
- __doc__ = None
- import_module = None
- ResolverMatch = None
- RegexURLResolver = None
- clear_url_caches = None
- __builtins__ = {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'isinstance': <built-in function isinstance>, '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., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'locals': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'print': <built-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, '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., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, 'TypeError': <type 'exceptions.TypeError'>, 'license': Type license() to see the full license text, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <function _gmpy_pow at 0xa27efb4>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.LookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOError'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <type 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in function execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <type 'exceptions.OverflowError'>}
- get_resolver = None
- __file__ = None
- DynamicMenu = None
- URL = None
- glob = None
- HTTP_METHODS = None
- __name__ = None
- get_urlconf = None
- ProxyNode = None
- types = None
- INSTALLED_APPS = None
- JSONEncoder = None
- hashlib = None
- resolve = None
- get_mod_func = None
- handler404 = None
- settings = None
- url = None
- iri_to_uri = None
- memoize = None
- Resolver404 = None
- set_script_prefix = None
- Http404 = None
- os = None
- get_traceback = None
- ------------------------------------------------------------------------
- File: /opt/noc/main/web.py (Line: 137)
- Function: children_loop
- 130 # Initialize pending sockets
- 131 sockets = self.server._pending_sockets
- 132 self.server._pending_sockets = []
- 133 self.server.add_sockets(sockets)
- 134 # Connect to mongodb
- 135 import noc.lib.nosql
- 136 # Initialize site
- 137 ==> from noc.lib.app import site
- 138 site.autodiscover()
- 139 # Run children's I/O loop
- 140 tornado.ioloop.IOLoop.instance().start()
- 141
- 142 def SIGTERM(self, signo, frame):
- 143 if self.t_children:
- Variables:
- self = <noc.main.web.Web object at 0xb764062c>
- sockets = [<socket._socketobject object at 0x9b87ca4>]
- 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 0xb764062c>
- nc = 1
- pid = 0
- noc_wsgi = <tornado.wsgi.WSGIContainer object at 0x9b8810c>
- application = <tornado.web.Application object at 0x9b8814c>
- address = '192.168.13.249'
- port = 8000
- listen = '192.168.13.249:8000'
- ------------------------------------------------------------------------
- File: /opt/noc/lib/daemon.py (Line: 326)
- Function: guarded_run
- 319
- 320 def guarded_run(self):
- 321 """
- 322 Run daemon and catch common exceptions
- 323 :return:
- 324 """
- 325 try:
- 326 ==> self.run()
- 327 except KeyboardInterrupt:
- 328 pass
- 329 except MemoryError:
- 330 logging.error("Out of memory. Exiting.")
- 331 except:
- 332 error_report()
- Variables:
- self = <noc.main.web.Web object at 0xb764062c>
- ------------------------------------------------------------------------
- END OF TRACEBACK
- 2012-01-17 00:04:11,450 Exiting child 22407
- 2012-01-17 00:04:11,451 Running child 22411
- 2012-01-17 00:04:11,567 Using JSON library: cjson
- 2012-01-17 00:04:11,572 Loading PeriodicRegistry
- 2012-01-17 00:04:11,578 Loading DownloaderRegistry
- /usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-i686.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
- 2012-01-17 00:04:11,646 SSH: Using gmpy
- 2012-01-17 00:04:11,670 Loading ProfileRegistry
- 2012-01-17 00:04:12,022 Loading ScriptRegistry
- ^C2012-01-17 00:04:12,065 SIGINT received. Exiting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement