Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2015-01-22 16:59:36,223 [tornado.access] 200 GET /main/sync/ns1/0/config/?last=2015-01-22T16:58:36.292862 (127.0.0.1) 97.28ms
- 2015-01-22 16:59:40,313 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931580281&node=root (127.0.0.1) 25.99ms
- 2015-01-22 16:59:43,273 [tornado.access] 200 GET /main/sync/default/0/config/?last=2015-01-22T16:58:43.211266 (127.0.0.1) 91.85ms
- 2015-01-22 16:59:46,831 [tornado.access] 200 GET /inv/inv/52f8cdb0c4e7091215404600/plugin/data/?_dc=1421931586808 (127.0.0.1) 19.62ms
- 2015-01-22 16:59:46,842 [tornado.access] 200 GET /inv/inv/52f8cdb0c4e7091215404600/plugin/map/?_dc=1421931586765 (127.0.0.1) 73.67ms
- 2015-01-22 16:59:46,862 [tornado.access] 200 GET /inv/inv/52f8cdb0c4e7091215404600/plugin/comment/?_dc=1421931586848 (127.0.0.1) 11.20ms
- 2015-01-22 16:59:46,911 [tornado.access] 200 GET /inv/inv/52f8cdb0c4e7091215404600/plugin/file/?_dc=1421931586893 (127.0.0.1) 14.24ms
- 2015-01-22 16:59:46,948 [tornado.access] 200 GET /inv/inv/52f8cdb0c4e7091215404600/plugin/log/?_dc=1421931586928 (127.0.0.1) 17.06ms
- 2015-01-22 16:59:47,106 [tornado.access] 200 POST /main/desktop/state/inv.inv-data-grid/ (127.0.0.1) 11.13ms
- 2015-01-22 16:59:47,118 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931586940&node=52f8cdb0c4e7091215404600 (127.0.0.1) 174.53ms
- 2015-01-22 16:59:47,211 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587179&node=53130f3ec4e709606dc2fe0f (127.0.0.1) 25.48ms
- 2015-01-22 16:59:47,224 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587171&node=531ae5b8c4e7090b255454de (127.0.0.1) 50.28ms
- 2015-01-22 16:59:47,227 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587176&node=52f8d84dc4e7093457c6b50f (127.0.0.1) 46.25ms
- 2015-01-22 16:59:47,231 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587174&node=52f8d037c4e7091b5f1b3d58 (127.0.0.1) 54.69ms
- 2015-01-22 16:59:47,248 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587181&node=5313108ac4e709606cc2fdf9 (127.0.0.1) 36.50ms
- 2015-01-22 16:59:47,252 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587185&node=53849bc4c4e70901784a8eec (127.0.0.1) 23.81ms
- 2015-01-22 16:59:47,260 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587183&node=53131302c4e709606ec2fe11 (127.0.0.1) 34.45ms
- 2015-01-22 16:59:47,275 [noc.inv.apps.inv.plugins.map] UNHANDLED EXCEPTION (2015-01-22 16:59:47.257632)
- BRANCH: develop TIP: 9df4ed778ab8
- PROCESS: ./scripts/noc-web.py
- ERROR FINGERPRINT: 60844847-6164-57da-888c-46ac02cff090
- WORKING DIRECTORY: /opt/noc
- EXCEPTION: <class 'django.contrib.gis.gdal.error.SRSException'> Unsupported SRS.
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/contrib/gis/gdal/error.py (Line: 40)
- Function: check_err
- 33 def check_err(code):
- 34 "Checks the given OGRERR, and raises an exception where appropriate."
- 35
- 36 if code == OGRERR_NONE:
- 37 return
- 38 elif code in OGRERR_DICT:
- 39 e, msg = OGRERR_DICT[code]
- 40 ==> raise e(msg)
- 41 else:
- 42 raise OGRException('Unknown error code: "%s"' % code)
- Variables:
- msg = 'Unsupported SRS.'
- code = 7
- e = <class 'django.contrib.gis.gdal.error.SRSException'>
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/contrib/gis/gdal/prototypes/errcheck.py (Line: 107)
- Function: check_errcode
- 100 check_err(arg_byref(cargs))
- 101 return result
- 102
- 103 def check_errcode(result, func, cargs):
- 104 """
- 105 Check the error code returned (c_int).
- 106 """
- 107 ==> check_err(result)
- 108 return
- 109
- 110 def check_pointer(result, func, cargs):
- 111 "Makes sure the result pointer is valid."
- 112 if isinstance(result, (int, long)):
- 113 result = c_void_p(result)
- Variables:
- cargs = (c_void_p(44798240), 'EPSG:900913')
- func = <_FuncPtr object at 0x7fd7a13bca10>
- result = 7
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/contrib/gis/gdal/srs.py (Line: 284)
- Function: import_user_input
- 277
- 278 def import_proj(self, proj):
- 279 "Imports the Spatial Reference from a PROJ.4 string."
- 280 capi.from_proj(self.ptr, proj)
- 281
- 282 def import_user_input(self, user_input):
- 283 "Imports the Spatial Reference from the given user input string."
- 284 ==> capi.from_user_input(self.ptr, user_input)
- 285
- 286 def import_wkt(self, wkt):
- 287 "Imports the Spatial Reference from OGC WKT (string)"
- 288 capi.from_wkt(self.ptr, byref(c_char_p(wkt)))
- 289
- 290 def import_xml(self, xml):
- Variables:
- user_input = 'EPSG:900913'
- self = <django.contrib.gis.gdal.srs.SpatialReference object at 0x7fd78ba49090>
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/contrib/gis/gdal/srs.py (Line: 90)
- Function: __init__
- 83 if not srs:
- 84 raise SRSException('Could not create spatial reference from: %s' % srs_input)
- 85 else:
- 86 self.ptr = srs
- 87
- 88 # Importing from either the user input string or an integer SRID.
- 89 if srs_type == 'user':
- 90 ==> self.import_user_input(srs_input)
- 91 elif srs_type == 'epsg':
- 92 self.import_epsg(srs_input)
- 93
- 94 def __del__(self):
- 95 "Destroys this spatial reference."
- 96 if self._ptr: capi.release_srs(self._ptr)
- Variables:
- srs = c_void_p(44798240)
- srs_input = 'EPSG:900913'
- buf = c_char_p(140564293268780)
- self = <django.contrib.gis.gdal.srs.SpatialReference object at 0x7fd78ba49090>
- srs_type = 'user'
- ------------------------------------------------------------------------
- File: gis/map.py (Line: 107)
- Function: get_layer_objects
- 100 """
- 101 Extract GeoJSON from bounding box
- 102 """
- 103 l = Layer.objects.filter(code=layer).first()
- 104 if not l:
- 105 return {}
- 106 # Build bounding box
- 107 ==> dst_srid = SpatialReference(srid)
- 108 from_transform = CoordTransform(
- 109 dst_srid,
- 110 self.srid
- 111 )
- 112 bbox = Polygon.from_bbox((x0, y0, x1, y1))
- 113 bbox.srid = dst_srid.srid
- Variables:
- layer = u'cities'
- self = <noc.gis.map.Map object at 0x7fd78ce3bad0>
- l = <Layer: Cities>
- y1 = 5308535.0516884
- srid = u'EPSG:900913'
- y0 = 4369276.8482508
- x0 = 4192513.6730871
- x1 = 5904703.1064367
- ------------------------------------------------------------------------
- File: inv/apps/inv/plugins/map.py (Line: 150)
- Function: api_get_layer
- 143 if layer == "conduits":
- 144 builder = self.get_conduits_layer
- 145 elif layer.startswith("pop_link"):
- 146 builder = self.get_pop_links_layer
- 147 else:
- 148 builder = map.get_layer_objects
- 149 return self.app.render_response(
- 150 ==> builder(layer, x0, y0, x1, y1, srid),
- 151 content_type="text/json")
- 152
- 153 def api_set_geopoint(self, request, id, srid=None, x=None, y=None):
- 154 o = self.app.get_object_or_404(Object, id=id)
- 155 o.set_data("geopoint", "srid", srid)
- 156 o.set_data("geopoint", "x", x)
- Variables:
- layer = u'cities'
- builder =
- <bound method Map.get_layer_objects of <noc.gis.map.Map object at 0x7fd78ce3bad0>>
- request =
- <WSGIRequest
- path:/inv/inv/plugin/map/layers/cities/,
- GET:<QueryDict: {u'bbox': [u'4192513.6730871,4369276.8482508,5904703.1064367,5308535.0516884,EPSG:900913']}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': '8XXopcXa5WE7RgP2BvDbv2nQCyyBMaaC',
- 'sessionid': '4a1928eeb925bec56aaab2c04cae64c7'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=8XXopcXa5WE7RgP2BvDbv2nQCyyBMaaC; sessionid=4a1928eeb925bec56aaab2c04cae64c7',
- 'HTTP_DNT': '1',
- 'HTTP_HOST': 'noc.gnc.am',
- 'HTTP_REFERER': 'http://noc.gnc.am/main/desktop/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 SeaMonkey/2.35a1',
- 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/inv/inv/plugin/map/layers/cities/',
- 'QUERY_STRING': 'bbox=4192513.6730871,4369276.8482508,5904703.1064367,5308535.0516884,EPSG%3A900913',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': 'noc.gnc.am',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x7fd79c7000c0>,
- 'wsgi.input': <_io.BytesIO object at 0x7fd78b945650>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- y1 = 5308535.0516884
- bbox =
- [u'4192513.6730871',
- u'4369276.8482508',
- u'5904703.1064367',
- u'5308535.0516884',
- u'EPSG:900913']
- srid = u'EPSG:900913'
- y0 = 4369276.8482508
- x0 = 4192513.6730871
- x1 = 5904703.1064367
- self = <noc.inv.apps.inv.plugins.map.MapPlugin object at 0x7fd78c3a66d0>
- ------------------------------------------------------------------------
- File: lib/app/site.py (Line: 248)
- Function: inner
- 241 a = dict((k, v[0] if len(v) == 1 else v)
- 242 for k, v in request.GET.lists())
- 243 app_logger.debug("API %s %s %s",
- 244 request.method, request.path, a)
- 245 # Call handler
- 246 v.__dict__["hits_metric"] += 1
- 247 with v.__dict__["time_metric"].timer():
- 248 ==> r = v(request, *args, **kwargs)
- 249 # Dump SQL statements
- 250 if self.log_sql_statements:
- 251 from django.db import connections
- 252 tsc = 0
- 253 sc = defaultdict(int)
- 254 for conn in connections.all():
- Variables:
- args = ()
- view_map = {'GET': <functools.partial object at 0x7fd78c3a95d0>}
- Form = <class 'django.forms.forms.Form'>
- PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
- DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
- self = <noc.lib.app.site.Site object at 0x7fd78e859450>
- v = <functools.partial object at 0x7fd78c3a95d0>
- request =
- <WSGIRequest
- path:/inv/inv/plugin/map/layers/cities/,
- GET:<QueryDict: {u'bbox': [u'4192513.6730871,4369276.8482508,5904703.1064367,5308535.0516884,EPSG:900913']}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': '8XXopcXa5WE7RgP2BvDbv2nQCyyBMaaC',
- 'sessionid': '4a1928eeb925bec56aaab2c04cae64c7'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=8XXopcXa5WE7RgP2BvDbv2nQCyyBMaaC; sessionid=4a1928eeb925bec56aaab2c04cae64c7',
- 'HTTP_DNT': '1',
- 'HTTP_HOST': 'noc.gnc.am',
- 'HTTP_REFERER': 'http://noc.gnc.am/main/desktop/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 SeaMonkey/2.35a1',
- 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/inv/inv/plugin/map/layers/cities/',
- 'QUERY_STRING': 'bbox=4192513.6730871,4369276.8482508,5904703.1064367,5308535.0516884,EPSG%3A900913',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': 'noc.gnc.am',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x7fd79c7000c0>,
- 'wsgi.input': <_io.BytesIO object at 0x7fd78b945650>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- app_logger = <logging.Logger object at 0x7fd78c3a6690>
- InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- to_log_api_call = False
- kwargs = {'layer': u'cities'}
- nq = <function nq at 0x7fd78b942500>
- app = <noc.inv.apps.inv.views.InvApplication object at 0x7fd78c4535d0>
- ------------------------------------------------------------------------
- END OF TRACEBACK
- 2015-01-22 16:59:47,276 [tornado.access] 500 GET /inv/inv/plugin/map/layers/cities/?bbox=4192513.6730871,4369276.8482508,5904703.1064367,5308535.0516884,EPSG%3A900913 (127.0.0.1) 43.92ms
- 2015-01-22 16:59:47,400 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587363&node=52f8d87fc4e7093457c6b510 (127.0.0.1) 33.42ms
- 2015-01-22 16:59:47,437 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587405&node=52f8d083c4e7091b5a1b3d58 (127.0.0.1) 29.16ms
- 2015-01-22 16:59:47,795 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587758&node=52f8d0d1c4e7091b5f1b3d59 (127.0.0.1) 33.51ms
- 2015-01-22 16:59:55,590 [tornado.access] 200 GET /main/update/ (127.0.0.1) 10.13ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement