Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~/go-api# ./manage.py update-mapbox-tilesets
- Exporting countries...
- Countries written to /tmp/countries.geojson
- Exporting districts...
- Districts written to /tmp/districts.geojson
- Exporting country centroids...
- Exporting district centroids...
- Update Mapbox tileset source for countries...
- Update Mapbox tileset for countries...
- Update Mapbox tileset source for districts...
- Update Mapbox tileset for districts...
- Update Mapbox tileset source for country centroids...
- Update Mapbox tileset for country centroids...
- Update Mapbox tileset source for district centroids...
- Update Mapbox tileset for district centroids...
- root@f5289b5f1932:~/go-api# Traceback (most recent call last):
- File "/usr/local/lib/python3.6/site-packages/cligj/features.py", line 106, in iter_features
- obj = json.loads(first_line)
- File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads
- return _default_decoder.decode(s)
- File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
- obj, end = self.raw_decode(s, idx=_w(s, 0).end())
- File "/usr/local/lib/python3.6/json/decoder.py", line 355, in raw_decode
- obj, end = self.scan_once(s, idx)
- json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 2 column 1 (char 2)
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/bin/tilesets", line 8, in <module>
- sys.exit(cli())
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
- return self.main(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
- rv = self.invoke(ctx)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
- return callback(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 21, in new_func
- return f(get_current_context(), *args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 528, in upload_source
- ctx, username, id, features, no_validation, quiet, replace, token, indent
- File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 572, in _upload_source
- for feature in features:
- File "/usr/local/lib/python3.6/site-packages/cligj/features.py", line 38, in normalize_feature_inputs
- for feature in iter_features(iter(src)):
- File "/usr/local/lib/python3.6/site-packages/cligj/features.py", line 136, in iter_features
- obj = json.loads(text)
- File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads
- return _default_decoder.decode(s)
- File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
- obj, end = self.raw_decode(s, idx=_w(s, 0).end())
- File "/usr/local/lib/python3.6/json/decoder.py", line 355, in raw_decode
- obj, end = self.scan_once(s, idx)
- json.decoder.JSONDecodeError: Expecting ',' delimiter: line 105 column 13022 (char 2134004)
- Traceback (most recent call last):
- File "/usr/local/bin/tilesets", line 8, in <module>
- sys.exit(cli())
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
- return self.main(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
- rv = self.invoke(ctx)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
- return callback(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 137, in publish
- raise errors.TilesetsError(r.text)
- mapbox_tilesets.errors.TilesetsError: {"message":"Too Many Requests"}
- Traceback (most recent call last):
- File "/usr/local/bin/tilesets", line 8, in <module>
- sys.exit(cli())
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
- return self.main(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
- rv = self.invoke(ctx)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
- return callback(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 137, in publish
- raise errors.TilesetsError(r.text)
- mapbox_tilesets.errors.TilesetsError: {"message":"Too Many Requests"}
- Traceback (most recent call last):
- File "/usr/local/bin/tilesets", line 8, in <module>
- sys.exit(cli())
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
- return self.main(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
- rv = self.invoke(ctx)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
- return callback(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 21, in new_func
- return f(get_current_context(), *args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 528, in upload_source
- ctx, username, id, features, no_validation, quiet, replace, token, indent
- File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 615, in _upload_source
- raise errors.TilesetsError(resp.text)
- mapbox_tilesets.errors.TilesetsError: {"message":"Internal Server Error"}
- Traceback (most recent call last):
- File "/usr/local/bin/tilesets", line 8, in <module>
- sys.exit(cli())
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, in __call__
- return self.main(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 782, in main
- rv = self.invoke(ctx)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1259, in invoke
- return _process_result(sub_ctx.command.invoke(sub_ctx))
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
- return ctx.invoke(self.callback, **ctx.params)
- File "/usr/local/lib/python3.6/site-packages/click/core.py", line 610, in invoke
- return callback(*args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/click/decorators.py", line 21, in new_func
- return f(get_current_context(), *args, **kwargs)
- File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 528, in upload_source
- ctx, username, id, features, no_validation, quiet, replace, token, indent
- File "/usr/local/lib/python3.6/site-packages/mapbox_tilesets/scripts/cli.py", line 615, in _upload_source
- raise errors.TilesetsError(resp.text)
- 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"}
- {"message": "Processing go-ifrc.go-country-centroids", "jobId": "cko5c85ju000208mnc6iiav37"}
- ✔ 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.
- {"message": "Processing go-ifrc.go-countries", "jobId": "cko5c8669000108l2floa2zxy"}
- ✔ 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.
- {"id": "mapbox://tileset-source/go-ifrc/go-district-centroids", "files": 1, "source_size": 614492, "file_size": 614492}
- ==================================================
- ps
- 277 pts/1 00:01:51 ogr2ogr <defunct>
- 279 pts/1 00:01:49 ogr2ogr <defunct>
- 281 pts/1 00:00:00 ogr2ogr <defunct>
- 283 pts/1 00:00:00 ogr2ogr <defunct>
- 284 pts/1 00:00:01 tilesets <defunct>
- 285 pts/1 00:00:01 tilesets <defunct>
- 286 pts/1 00:00:01 tilesets <defunct>
- 287 pts/1 00:00:01 tilesets <defunct>
- 288 pts/1 00:00:02 tilesets <defunct>
- 289 pts/1 00:00:01 tilesets <defunct>
- 290 pts/1 00:00:10 tilesets <defunct>
- 291 pts/1 00:00:01 tilesets <defunct>
- ==================================================
- PostgreSQL log:
- ...
- 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
- 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
- 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
- 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'
- 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'
- LOG: execute <unnamed>: SELECT srtext FROM spatial_ref_sys WHERE srid = 4326
- LOG: execute <unnamed>: BEGIN
- 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
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55cdc8222d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55cdc8222d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55cdc8222d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55cdc8222d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55cdc8222d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55cdc8222d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55cdc8222d60
- LOG: execute <unnamed>: CLOSE OGRPGLayerReader0x55cdc8222d60
- LOG: execute <unnamed>: COMMIT
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
- LOG: execute <unnamed>: CLOSE OGRPGLayerReader0x55577c8b2d60
- LOG: execute <unnamed>: COMMIT
- LOG: execute <unnamed>: CLOSE OGRPGLayerReader0x55db01038d60
- LOG: execute <unnamed>: COMMIT
- root@est:/home/zol/w/ifrc/go-api/.tmp/pg/pg_log# tail -f postgresql-2021-05-01_053827.log
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
- LOG: execute <unnamed>: FETCH 500 in OGRPGLayerReader0x55577c8b2d60
- LOG: execute <unnamed>: CLOSE OGRPGLayerReader0x55577c8b2d60
- LOG: execute <unnamed>: COMMIT
- LOG: execute <unnamed>: CLOSE OGRPGLayerReader0x55db01038d60
- LOG: execute <unnamed>: COMMIT
Advertisement
Add Comment
Please, Sign In to add comment