Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.97 KB | None | 0 0
  1. 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
  2. 2015-01-22 16:59:40,313 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931580281&node=root (127.0.0.1) 25.99ms
  3. 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
  4. 2015-01-22 16:59:46,831 [tornado.access] 200 GET /inv/inv/52f8cdb0c4e7091215404600/plugin/data/?_dc=1421931586808 (127.0.0.1) 19.62ms
  5. 2015-01-22 16:59:46,842 [tornado.access] 200 GET /inv/inv/52f8cdb0c4e7091215404600/plugin/map/?_dc=1421931586765 (127.0.0.1) 73.67ms
  6. 2015-01-22 16:59:46,862 [tornado.access] 200 GET /inv/inv/52f8cdb0c4e7091215404600/plugin/comment/?_dc=1421931586848 (127.0.0.1) 11.20ms
  7. 2015-01-22 16:59:46,911 [tornado.access] 200 GET /inv/inv/52f8cdb0c4e7091215404600/plugin/file/?_dc=1421931586893 (127.0.0.1) 14.24ms
  8. 2015-01-22 16:59:46,948 [tornado.access] 200 GET /inv/inv/52f8cdb0c4e7091215404600/plugin/log/?_dc=1421931586928 (127.0.0.1) 17.06ms
  9. 2015-01-22 16:59:47,106 [tornado.access] 200 POST /main/desktop/state/inv.inv-data-grid/ (127.0.0.1) 11.13ms
  10. 2015-01-22 16:59:47,118 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931586940&node=52f8cdb0c4e7091215404600 (127.0.0.1) 174.53ms
  11. 2015-01-22 16:59:47,211 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587179&node=53130f3ec4e709606dc2fe0f (127.0.0.1) 25.48ms
  12. 2015-01-22 16:59:47,224 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587171&node=531ae5b8c4e7090b255454de (127.0.0.1) 50.28ms
  13. 2015-01-22 16:59:47,227 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587176&node=52f8d84dc4e7093457c6b50f (127.0.0.1) 46.25ms
  14. 2015-01-22 16:59:47,231 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587174&node=52f8d037c4e7091b5f1b3d58 (127.0.0.1) 54.69ms
  15. 2015-01-22 16:59:47,248 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587181&node=5313108ac4e709606cc2fdf9 (127.0.0.1) 36.50ms
  16. 2015-01-22 16:59:47,252 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587185&node=53849bc4c4e70901784a8eec (127.0.0.1) 23.81ms
  17. 2015-01-22 16:59:47,260 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587183&node=53131302c4e709606ec2fe11 (127.0.0.1) 34.45ms
  18. 2015-01-22 16:59:47,275 [noc.inv.apps.inv.plugins.map] UNHANDLED EXCEPTION (2015-01-22 16:59:47.257632)
  19. BRANCH: develop TIP: 9df4ed778ab8
  20. PROCESS: ./scripts/noc-web.py
  21. ERROR FINGERPRINT: 60844847-6164-57da-888c-46ac02cff090
  22. WORKING DIRECTORY: /opt/noc
  23. EXCEPTION: <class 'django.contrib.gis.gdal.error.SRSException'> Unsupported SRS.
  24. START OF TRACEBACK
  25. ------------------------------------------------------------------------
  26. File: lib/python2.7/site-packages/django/contrib/gis/gdal/error.py (Line: 40)
  27. Function: check_err
  28. 33 def check_err(code):
  29. 34 "Checks the given OGRERR, and raises an exception where appropriate."
  30. 35
  31. 36 if code == OGRERR_NONE:
  32. 37 return
  33. 38 elif code in OGRERR_DICT:
  34. 39 e, msg = OGRERR_DICT[code]
  35. 40 ==> raise e(msg)
  36. 41 else:
  37. 42 raise OGRException('Unknown error code: "%s"' % code)
  38. Variables:
  39. msg = 'Unsupported SRS.'
  40. code = 7
  41. e = <class 'django.contrib.gis.gdal.error.SRSException'>
  42. ------------------------------------------------------------------------
  43. File: lib/python2.7/site-packages/django/contrib/gis/gdal/prototypes/errcheck.py (Line: 107)
  44. Function: check_errcode
  45. 100 check_err(arg_byref(cargs))
  46. 101 return result
  47. 102
  48. 103 def check_errcode(result, func, cargs):
  49. 104 """
  50. 105 Check the error code returned (c_int).
  51. 106 """
  52. 107 ==> check_err(result)
  53. 108 return
  54. 109
  55. 110 def check_pointer(result, func, cargs):
  56. 111 "Makes sure the result pointer is valid."
  57. 112 if isinstance(result, (int, long)):
  58. 113 result = c_void_p(result)
  59. Variables:
  60. cargs = (c_void_p(44798240), 'EPSG:900913')
  61. func = <_FuncPtr object at 0x7fd7a13bca10>
  62. result = 7
  63. ------------------------------------------------------------------------
  64. File: lib/python2.7/site-packages/django/contrib/gis/gdal/srs.py (Line: 284)
  65. Function: import_user_input
  66. 277
  67. 278 def import_proj(self, proj):
  68. 279 "Imports the Spatial Reference from a PROJ.4 string."
  69. 280 capi.from_proj(self.ptr, proj)
  70. 281
  71. 282 def import_user_input(self, user_input):
  72. 283 "Imports the Spatial Reference from the given user input string."
  73. 284 ==> capi.from_user_input(self.ptr, user_input)
  74. 285
  75. 286 def import_wkt(self, wkt):
  76. 287 "Imports the Spatial Reference from OGC WKT (string)"
  77. 288 capi.from_wkt(self.ptr, byref(c_char_p(wkt)))
  78. 289
  79. 290 def import_xml(self, xml):
  80. Variables:
  81. user_input = 'EPSG:900913'
  82. self = <django.contrib.gis.gdal.srs.SpatialReference object at 0x7fd78ba49090>
  83. ------------------------------------------------------------------------
  84. File: lib/python2.7/site-packages/django/contrib/gis/gdal/srs.py (Line: 90)
  85. Function: __init__
  86. 83 if not srs:
  87. 84 raise SRSException('Could not create spatial reference from: %s' % srs_input)
  88. 85 else:
  89. 86 self.ptr = srs
  90. 87
  91. 88 # Importing from either the user input string or an integer SRID.
  92. 89 if srs_type == 'user':
  93. 90 ==> self.import_user_input(srs_input)
  94. 91 elif srs_type == 'epsg':
  95. 92 self.import_epsg(srs_input)
  96. 93
  97. 94 def __del__(self):
  98. 95 "Destroys this spatial reference."
  99. 96 if self._ptr: capi.release_srs(self._ptr)
  100. Variables:
  101. srs = c_void_p(44798240)
  102. srs_input = 'EPSG:900913'
  103. buf = c_char_p(140564293268780)
  104. self = <django.contrib.gis.gdal.srs.SpatialReference object at 0x7fd78ba49090>
  105. srs_type = 'user'
  106. ------------------------------------------------------------------------
  107. File: gis/map.py (Line: 107)
  108. Function: get_layer_objects
  109. 100 """
  110. 101 Extract GeoJSON from bounding box
  111. 102 """
  112. 103 l = Layer.objects.filter(code=layer).first()
  113. 104 if not l:
  114. 105 return {}
  115. 106 # Build bounding box
  116. 107 ==> dst_srid = SpatialReference(srid)
  117. 108 from_transform = CoordTransform(
  118. 109 dst_srid,
  119. 110 self.srid
  120. 111 )
  121. 112 bbox = Polygon.from_bbox((x0, y0, x1, y1))
  122. 113 bbox.srid = dst_srid.srid
  123. Variables:
  124. layer = u'cities'
  125. self = <noc.gis.map.Map object at 0x7fd78ce3bad0>
  126. l = <Layer: Cities>
  127. y1 = 5308535.0516884
  128. srid = u'EPSG:900913'
  129. y0 = 4369276.8482508
  130. x0 = 4192513.6730871
  131. x1 = 5904703.1064367
  132. ------------------------------------------------------------------------
  133. File: inv/apps/inv/plugins/map.py (Line: 150)
  134. Function: api_get_layer
  135. 143 if layer == "conduits":
  136. 144 builder = self.get_conduits_layer
  137. 145 elif layer.startswith("pop_link"):
  138. 146 builder = self.get_pop_links_layer
  139. 147 else:
  140. 148 builder = map.get_layer_objects
  141. 149 return self.app.render_response(
  142. 150 ==> builder(layer, x0, y0, x1, y1, srid),
  143. 151 content_type="text/json")
  144. 152
  145. 153 def api_set_geopoint(self, request, id, srid=None, x=None, y=None):
  146. 154 o = self.app.get_object_or_404(Object, id=id)
  147. 155 o.set_data("geopoint", "srid", srid)
  148. 156 o.set_data("geopoint", "x", x)
  149. Variables:
  150. layer = u'cities'
  151. builder =
  152. <bound method Map.get_layer_objects of <noc.gis.map.Map object at 0x7fd78ce3bad0>>
  153. request =
  154. <WSGIRequest
  155. path:/inv/inv/plugin/map/layers/cities/,
  156. GET:<QueryDict: {u'bbox': [u'4192513.6730871,4369276.8482508,5904703.1064367,5308535.0516884,EPSG:900913']}>,
  157. POST:<QueryDict: {}>,
  158. COOKIES:{'csrftoken': '8XXopcXa5WE7RgP2BvDbv2nQCyyBMaaC',
  159. 'sessionid': '4a1928eeb925bec56aaab2c04cae64c7'},
  160. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  161. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  162. 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
  163. 'HTTP_CONNECTION': 'close',
  164. 'HTTP_COOKIE': 'csrftoken=8XXopcXa5WE7RgP2BvDbv2nQCyyBMaaC; sessionid=4a1928eeb925bec56aaab2c04cae64c7',
  165. 'HTTP_DNT': '1',
  166. 'HTTP_HOST': 'noc.gnc.am',
  167. 'HTTP_REFERER': 'http://noc.gnc.am/main/desktop/',
  168. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 SeaMonkey/2.35a1',
  169. 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
  170. 'HTTP_X_SCHEME': 'http',
  171. 'PATH_INFO': u'/inv/inv/plugin/map/layers/cities/',
  172. 'QUERY_STRING': 'bbox=4192513.6730871,4369276.8482508,5904703.1064367,5308535.0516884,EPSG%3A900913',
  173. 'REMOTE_ADDR': '127.0.0.1',
  174. 'REQUEST_METHOD': 'GET',
  175. 'SCRIPT_NAME': u'',
  176. 'SERVER_NAME': 'noc.gnc.am',
  177. 'SERVER_PORT': '80',
  178. 'SERVER_PROTOCOL': 'HTTP/1.0',
  179. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x7fd79c7000c0>,
  180. 'wsgi.input': <_io.BytesIO object at 0x7fd78b945650>,
  181. 'wsgi.multiprocess': True,
  182. 'wsgi.multithread': False,
  183. 'wsgi.run_once': False,
  184. 'wsgi.url_scheme': 'http',
  185. 'wsgi.version': (1, 0)}>
  186. y1 = 5308535.0516884
  187. bbox =
  188. [u'4192513.6730871',
  189. u'4369276.8482508',
  190. u'5904703.1064367',
  191. u'5308535.0516884',
  192. u'EPSG:900913']
  193. srid = u'EPSG:900913'
  194. y0 = 4369276.8482508
  195. x0 = 4192513.6730871
  196. x1 = 5904703.1064367
  197. self = <noc.inv.apps.inv.plugins.map.MapPlugin object at 0x7fd78c3a66d0>
  198. ------------------------------------------------------------------------
  199. File: lib/app/site.py (Line: 248)
  200. Function: inner
  201. 241 a = dict((k, v[0] if len(v) == 1 else v)
  202. 242 for k, v in request.GET.lists())
  203. 243 app_logger.debug("API %s %s %s",
  204. 244 request.method, request.path, a)
  205. 245 # Call handler
  206. 246 v.__dict__["hits_metric"] += 1
  207. 247 with v.__dict__["time_metric"].timer():
  208. 248 ==> r = v(request, *args, **kwargs)
  209. 249 # Dump SQL statements
  210. 250 if self.log_sql_statements:
  211. 251 from django.db import connections
  212. 252 tsc = 0
  213. 253 sc = defaultdict(int)
  214. 254 for conn in connections.all():
  215. Variables:
  216. args = ()
  217. view_map = {'GET': <functools.partial object at 0x7fd78c3a95d0>}
  218. Form = <class 'django.forms.forms.Form'>
  219. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  220. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  221. self = <noc.lib.app.site.Site object at 0x7fd78e859450>
  222. v = <functools.partial object at 0x7fd78c3a95d0>
  223. request =
  224. <WSGIRequest
  225. path:/inv/inv/plugin/map/layers/cities/,
  226. GET:<QueryDict: {u'bbox': [u'4192513.6730871,4369276.8482508,5904703.1064367,5308535.0516884,EPSG:900913']}>,
  227. POST:<QueryDict: {}>,
  228. COOKIES:{'csrftoken': '8XXopcXa5WE7RgP2BvDbv2nQCyyBMaaC',
  229. 'sessionid': '4a1928eeb925bec56aaab2c04cae64c7'},
  230. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  231. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  232. 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
  233. 'HTTP_CONNECTION': 'close',
  234. 'HTTP_COOKIE': 'csrftoken=8XXopcXa5WE7RgP2BvDbv2nQCyyBMaaC; sessionid=4a1928eeb925bec56aaab2c04cae64c7',
  235. 'HTTP_DNT': '1',
  236. 'HTTP_HOST': 'noc.gnc.am',
  237. 'HTTP_REFERER': 'http://noc.gnc.am/main/desktop/',
  238. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 SeaMonkey/2.35a1',
  239. 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
  240. 'HTTP_X_SCHEME': 'http',
  241. 'PATH_INFO': u'/inv/inv/plugin/map/layers/cities/',
  242. 'QUERY_STRING': 'bbox=4192513.6730871,4369276.8482508,5904703.1064367,5308535.0516884,EPSG%3A900913',
  243. 'REMOTE_ADDR': '127.0.0.1',
  244. 'REQUEST_METHOD': 'GET',
  245. 'SCRIPT_NAME': u'',
  246. 'SERVER_NAME': 'noc.gnc.am',
  247. 'SERVER_PORT': '80',
  248. 'SERVER_PROTOCOL': 'HTTP/1.0',
  249. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x7fd79c7000c0>,
  250. 'wsgi.input': <_io.BytesIO object at 0x7fd78b945650>,
  251. 'wsgi.multiprocess': True,
  252. 'wsgi.multithread': False,
  253. 'wsgi.run_once': False,
  254. 'wsgi.url_scheme': 'http',
  255. 'wsgi.version': (1, 0)}>
  256. app_logger = <logging.Logger object at 0x7fd78c3a6690>
  257. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  258. to_log_api_call = False
  259. kwargs = {'layer': u'cities'}
  260. nq = <function nq at 0x7fd78b942500>
  261. app = <noc.inv.apps.inv.views.InvApplication object at 0x7fd78c4535d0>
  262. ------------------------------------------------------------------------
  263. END OF TRACEBACK
  264. 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
  265. 2015-01-22 16:59:47,400 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587363&node=52f8d87fc4e7093457c6b510 (127.0.0.1) 33.42ms
  266. 2015-01-22 16:59:47,437 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587405&node=52f8d083c4e7091b5a1b3d58 (127.0.0.1) 29.16ms
  267. 2015-01-22 16:59:47,795 [tornado.access] 200 GET /inv/inv/node/?_dc=1421931587758&node=52f8d0d1c4e7091b5f1b3d59 (127.0.0.1) 33.51ms
  268. 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