Advertisement
szabozoltan69

Map tiling log

May 1st, 2021
1,104
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ~/go-api# ./manage.py update-mapbox-tilesets
  2. Exporting countries...
  3. Countries written to /tmp/countries.geojson
  4. Exporting districts...
  5. Districts written to /tmp/districts.geojson
  6. Exporting country centroids...
  7. Exporting district centroids...
  8. Update Mapbox tileset source for countries...
  9. Update Mapbox tileset for countries...
  10. Update Mapbox tileset source for districts...
  11. Update Mapbox tileset for districts...
  12. Update Mapbox tileset source for country centroids...
  13. Update Mapbox tileset for country centroids...
  14. Update Mapbox tileset source for district centroids...
  15. Update Mapbox tileset for district centroids...
  16. root@f5289b5f1932:~/go-api# Traceback (most recent call last):
  17.   File "/usr/local/lib/python3.6/site-packages/cligj/features.py", line 106, in iter_features
  18.     obj = json.loads(first_line)
  19.   File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads
  20.     return _default_decoder.decode(s)
  21.   File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
  22.     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  23.   File "/usr/local/lib/python3.6/json/decoder.py", line 355, in raw_decode
  24.     obj, end = self.scan_once(s, idx)
  25. json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 2 column 1 (char 2)
  26.  
  27. During handling of the above exception, another exception occurred:
  28.  
  29. Traceback (most recent call last):
  30.   File "/usr/local/bin/tilesets", line 8, in <module>
  31.     sys.exit(cli())
  32.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
  33.     return self.main(*args, **kwargs)
  34.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
  35.     rv = self.invoke(ctx)
  36.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
  37.     return _process_result(sub_ctx.command.invoke(sub_ctx))
  38.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
  39.     return ctx.invoke(self.callback, **ctx.params)
  40.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
  41.     return callback(*args, **kwargs)
  42.   File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 21, in new_func
  43.     return f(get_current_context(), *args, **kwargs)
  44.   File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 528, in upload_source
  45.     ctx, username, id, features, no_validation, quiet, replace, token, indent
  46.   File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 572, in _upload_source
  47.     for feature in features:
  48.   File "/usr/local/lib/python3.6/site-packages/cligj/features.py", line 38, in normalize_feature_inputs
  49.     for feature in iter_features(iter(src)):
  50.   File "/usr/local/lib/python3.6/site-packages/cligj/features.py", line 136, in iter_features
  51.     obj = json.loads(text)
  52.   File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads
  53.     return _default_decoder.decode(s)
  54.   File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
  55.     obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  56.   File "/usr/local/lib/python3.6/json/decoder.py", line 355, in raw_decode
  57.     obj, end = self.scan_once(s, idx)
  58. json.decoder.JSONDecodeError: Expecting ',' delimiter: line 105 column 13022 (char 2134004)
  59. Traceback (most recent call last):
  60.   File "/usr/local/bin/tilesets", line 8, in <module>
  61.     sys.exit(cli())
  62.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
  63.     return self.main(*args, **kwargs)
  64.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
  65.     rv = self.invoke(ctx)
  66.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
  67.     return _process_result(sub_ctx.command.invoke(sub_ctx))
  68.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
  69.     return ctx.invoke(self.callback, **ctx.params)
  70.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
  71.     return callback(*args, **kwargs)
  72.   File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 137, in publish
  73.     raise errors.TilesetsError(r.text)
  74. mapbox_tilesets.errors.TilesetsError: {"message":"Too Many Requests"}
  75. Traceback (most recent call last):
  76.   File "/usr/local/bin/tilesets", line 8, in <module>
  77.     sys.exit(cli())
  78.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
  79.     return self.main(*args, **kwargs)
  80.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
  81.     rv = self.invoke(ctx)
  82.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
  83.     return _process_result(sub_ctx.command.invoke(sub_ctx))
  84.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
  85.     return ctx.invoke(self.callback, **ctx.params)
  86.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
  87.     return callback(*args, **kwargs)
  88.   File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 137, in publish
  89.     raise errors.TilesetsError(r.text)
  90. mapbox_tilesets.errors.TilesetsError: {"message":"Too Many Requests"}
  91.  
  92. Traceback (most recent call last):
  93.   File "/usr/local/bin/tilesets", line 8, in <module>
  94.     sys.exit(cli())
  95.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
  96.     return self.main(*args, **kwargs)
  97.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
  98.     rv = self.invoke(ctx)
  99.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
  100.     return _process_result(sub_ctx.command.invoke(sub_ctx))
  101.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
  102.     return ctx.invoke(self.callback, **ctx.params)
  103.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
  104.     return callback(*args, **kwargs)
  105.   File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 21, in new_func
  106.     return f(get_current_context(), *args, **kwargs)
  107.   File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 528, in upload_source
  108.     ctx, username, id, features, no_validation, quiet, replace, token, indent
  109.   File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 615, in _upload_source
  110.     raise errors.TilesetsError(resp.text)
  111. mapbox_tilesets.errors.TilesetsError: {"message":"Internal Server Error"}
  112. Traceback (most recent call last):
  113.   File "/usr/local/bin/tilesets", line 8, in <module>
  114.     sys.exit(cli())
  115.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
  116.     return self.main(*args, **kwargs)
  117.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
  118.     rv = self.invoke(ctx)
  119.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
  120.     return _process_result(sub_ctx.command.invoke(sub_ctx))
  121.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
  122.     return ctx.invoke(self.callback, **ctx.params)
  123.   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
  124.     return callback(*args, **kwargs)
  125.   File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 21, in new_func
  126.     return f(get_current_context(), *args, **kwargs)
  127.   File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 528, in upload_source
  128.     ctx, username, id, features, no_validation, quiet, replace, token, indent
  129.   File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 615, in _upload_source
  130.     raise errors.TilesetsError(resp.text)
  131. mapbox_tilesets.errors.TilesetsError: {"message":"Resource is locked and cannot be modified until the following tileset jobs are complete: go-ifrc.go-country-centroids:cko5c85ju000208mnc6iiav37"}
  132. {"message": "Processing go-ifrc.go-country-centroids", "jobId": "cko5c85ju000208mnc6iiav37"}
  133.  
  134. ✔ Tileset job received. Visit https://studio.mapbox.com/tilesets/go-ifrc.go-country-centroids or run tilesets job go-ifrc.go-country-centroids cko5c85ju000208mnc6iiav37 to view the status of your tileset.
  135. {"message": "Processing go-ifrc.go-countries", "jobId": "cko5c8669000108l2floa2zxy"}
  136.  
  137. ✔ Tileset job received. Visit https://studio.mapbox.com/tilesets/go-ifrc.go-countries or run tilesets job go-ifrc.go-countries cko5c8669000108l2floa2zxy to view the status of your tileset.
  138.  
  139. {"id": "mapbox://tileset-source/go-ifrc/go-district-centroids", "files": 1, "source_size": 614492, "file_size": 614492}
  140.  
  141. ==================================================
  142. ps
  143.  
  144.     277 pts/1    00:01:51 ogr2ogr <defunct>
  145.     279 pts/1    00:01:49 ogr2ogr <defunct>
  146.     281 pts/1    00:00:00 ogr2ogr <defunct>
  147.     283 pts/1    00:00:00 ogr2ogr <defunct>
  148.     284 pts/1    00:00:01 tilesets <defunct>
  149.     285 pts/1    00:00:01 tilesets <defunct>
  150.     286 pts/1    00:00:01 tilesets <defunct>
  151.     287 pts/1    00:00:01 tilesets <defunct>
  152.     288 pts/1    00:00:02 tilesets <defunct>
  153.     289 pts/1    00:00:01 tilesets <defunct>
  154.     290 pts/1    00:00:10 tilesets <defunct>
  155.     291 pts/1    00:00:01 tilesets <defunct>
  156.  
  157. ==================================================
  158. PostgreSQL log:
  159. ...
  160. LOG:  execute <unnamed>: SELECT a.attname, a.attnum, t.typname, t.typname = ANY(ARRAY['int2','int4','int8','serial','bigserial']) AS isfid FROM pg_class c, pg_attribute a, pg_type t, pg_namespace n, pg_index i WHERE a.attnum > 0 AND a.attrelid = c.oid AND a.atttypid = t.oid AND c.relnamespace = n.oid AND c.oid = i.indrelid AND i.indisprimary = 't' AND t.typname !~ '^geom' AND c.relname = 'api_district' AND a.attnum = ANY(i.indkey) AND n.nspname='public' ORDER BY a.attnum
  161. LOG:  execute <unnamed>: SELECT DISTINCT a.attname, t.typname, a.attlen,       format_type(a.atttypid,a.atttypmod), a.attnum, a.attnotnull, a.atthasdef FROM pg_class c, pg_attribute a, pg_type t, pg_namespace n WHERE c.relname = 'api_district' AND a.attnum > 0 AND a.attrelid = c.oid AND a.atttypid = t.oid AND c.relnamespace=n.oid AND n.nspname='public' ORDER BY a.attnum
  162. LOG:  execute <unnamed>: SELECT a.attname, pg_get_expr(def.adbin, c.oid) FROM pg_attrdef def, pg_class c, pg_attribute a, pg_type t, pg_namespace n WHERE c.relname = 'api_district' AND a.attnum > 0 AND a.attrelid = c.oid AND a.atttypid = t.oid AND c.relnamespace=n.oid AND def.adrelid = c.oid AND def.adnum = a.attnum AND n.nspname='public' ORDER BY a.attnum
  163. LOG:  execute <unnamed>: SELECT type, coord_dimension, srid FROM geometry_columns WHERE f_table_name = 'api_district' AND f_geometry_column='bbox' AND f_table_schema = 'public'
  164. LOG:  execute <unnamed>: SELECT type, coord_dimension, srid FROM geometry_columns WHERE f_table_name = 'api_district' AND f_geometry_column='centroid' AND f_table_schema = 'public'
  165. LOG:  execute <unnamed>: SELECT srtext FROM spatial_ref_sys WHERE srid = 4326
  166. LOG:  execute <unnamed>: BEGIN
  167. LOG:  execute <unnamed>: DECLARE OGRPGLayerReader0x55cdc8222d60 CURSOR for select d.id, d.name, d.is_deprecated, d.is_enclave, c.iso, d.centroid from api_district d join api_country c on d.country_id=c.id where d.centroid is not null
  168. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55cdc8222d60
  169. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55cdc8222d60
  170. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55cdc8222d60
  171. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55cdc8222d60
  172. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55cdc8222d60
  173. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55cdc8222d60
  174. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55cdc8222d60
  175. LOG:  execute <unnamed>: CLOSE OGRPGLayerReader0x55cdc8222d60
  176. LOG:  execute <unnamed>: COMMIT
  177. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
  178. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
  179. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
  180. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
  181. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
  182. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
  183. LOG:  execute <unnamed>: CLOSE OGRPGLayerReader0x55577c8b2d60
  184. LOG:  execute <unnamed>: COMMIT
  185. LOG:  execute <unnamed>: CLOSE OGRPGLayerReader0x55db01038d60
  186. LOG:  execute <unnamed>: COMMIT
  187. root@est:/home/zol/w/ifrc/go-api/.tmp/pg/pg_log# tail -f postgresql-2021-05-01_053827.log
  188. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
  189. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
  190. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
  191. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
  192. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
  193. LOG:  execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
  194. LOG:  execute <unnamed>: CLOSE OGRPGLayerReader0x55577c8b2d60
  195. LOG:  execute <unnamed>: COMMIT
  196. LOG:  execute <unnamed>: CLOSE OGRPGLayerReader0x55db01038d60
  197. LOG:  execute <unnamed>: COMMIT
  198.  
  199.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement