lambdajack / sequentially-generate-planet-mbtiles

Generate vector tiles for the entire planet on relatively low spec hardware.
https://wiki.openstreetmap.org/wiki/Sequentially-generate-planet-mbtiles
MIT License
100 stars 15 forks source link

Exit status 137 from mbtiles.go:63 while generating planet #17

Closed hodossy closed 1 year ago

hodossy commented 1 year ago

Describe the bug

Generating one of the temporary mbtiles dies with exist status 137

To Reproduce

Just run ./sequentially-generate-planet-mbtiles--unix-amd64-v3.1.0, default settings, whole planet.

Expected behavior

Generation succeeds.

Screenshots

Output (excerpt):

2023/02/09 10:33:19 generating temporary mbtiles: /home/szabolcs.hodossy/data/mbtiles/9426803175.mbtiles from /home/szabolcs.hodossy/data/pbf/slices/1773301992-tmp.osm.pbf; directory output: false
mbtiles file exists, will overwrite (Ctrl-C to abort, rerun with --merge to keep)
Layer place (z0-14)
Layer boundary (z0-14)
Layer poi (z12-14)
Layer poi_detail (z14-14) -> poi
Layer housenumber (z14-14)
Layer waterway (z8-14)
Layer waterway_detail (z12-14) -> waterway
Layer transportation (z4-14)
Layer transportation_name (z8-14)
Layer transportation_name_mid (z12-14) -> transportation_name
Layer transportation_name_detail (z14-14) -> transportation_name
Layer building (z13-14)
Layer water (z6-14)
Layer ocean (z0-14) -> water
Layer water_name (z14-14)
Layer water_name_detail (z14-14) -> water_name
Layer aeroway (z11-14)
Layer aerodrome_label (z10-14)
Layer park (z11-14)
Layer landuse (z4-14)
Layer urban_areas (z4-8) -> landuse
Layer landcover (z0-14)
Layer ice_shelf (z0-9) -> landcover
Layer glacier (z2-9) -> landcover
Layer mountain_peak (z11-14)
Bounding box -180, -85.06, -134.982, 85.06
Reading .shp ocean
Shapefile entity #704 type 5 is invalid. Parts:232. Reason:Geometry has invalid self-intersections. A self-intersection point was found at (-146.579, -15.9312); method: i; operations: i/u; segment IDs {source, multi, ring, segment}: {0, 0, 138, 7}/{0, 0, 138, 9}... failed to correct. Reason: Geometry has invalid self-intersections. A self-intersection point was found at (-146.579, -15.9312); method: i; operations: i/u; segment IDs {source, multi, ring, segment}: {0, 0, 138, 7}/{0, 0, 138, 9}
Shapefile entity #51908 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51909 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51910 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51911 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51912 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51913 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51914 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51915 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51916 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51917 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51918 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51919 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51920 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51921 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51922 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51923 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51924 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51925 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51926 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51927 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51928 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51929 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51930 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51931 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51932 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51933 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51934 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51935 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51936 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51937 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51938 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51939 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51940 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51941 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51942 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51943 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51944 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51945 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51946 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51947 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51948 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51949 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51950 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51951 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51952 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #51953 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52268 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52269 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52270 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52271 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52272 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52273 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52274 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52275 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52276 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52277 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52278 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52279 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52280 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52281 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52282 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52283 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52284 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52285 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52286 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52287 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52288 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52289 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52290 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52291 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52292 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52293 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52294 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52295 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52296 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52297 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52298 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52299 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52300 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52301 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52302 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52303 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52304 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52305 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52306 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52307 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52308 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52309 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52310 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52311 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52312 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52313 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52628 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52629 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52630 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52631 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52632 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52633 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52634 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52635 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52636 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52637 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52638 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52639 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52640 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52641 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52642 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52643 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52644 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52645 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52646 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52647 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52648 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52649 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52650 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52651 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52652 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52653 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52654 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52655 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52656 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52657 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52658 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52659 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52660 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52661 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52662 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52663 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52664 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52665 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52666 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52667 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52668 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52669 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52670 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52671 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52672 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52673 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52988 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52989 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52990 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52991 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52992 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52993 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52994 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52995 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52996 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52997 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52998 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #52999 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53000 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53001 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53002 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53003 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53004 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53005 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53006 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53007 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53008 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53009 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53010 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53011 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53012 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53013 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53014 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53015 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53016 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53017 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53018 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53019 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53020 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53021 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53022 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53023 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53024 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53025 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53026 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53027 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53028 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53029 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53030 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53031 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53032 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Shapefile entity #53033 type 5 is invalid. Parts:1. Reason:Geometry has too few points... corrected
Reading .shp urban_areas
Reading .shp ice_shelf
Reading .shp glacier
Shapefile entity #360 type 5 is invalid. Parts:7. Reason:Geometry has invalid self-intersections. A self-intersection point was found at (-152.169, 78.8039); method: t; operations: u/u; segment IDs {source, multi, ring, segment}: {0, 0, 0, 5}/{0, 0, 0, 87}... corrected
Shapefile entity #1861 type 5 is invalid. Parts:1. Reason:Geometry has invalid self-intersections. A self-intersection point was found at (-155.982, -180); method: c; operations: x/i; segment IDs {source, multi, ring, segment}: {0, 0, -1, 224}/{0, 0, -1, 377}... corrected
Shapefile entity #1875 type 5 is invalid. Parts:54. Reason:Geometry has invalid self-intersections. A self-intersection point was found at (-141.942, 76.9594); method: t; operations: u/u; segment IDs {source, multi, ring, segment}: {0, 0, -1, 2543}/{0, 0, -1, 2505}... corrected
Sorting loaded shapes
Reading .pbf /src/1773301992-tmp.osm.pbf
Block 4007/4222 ways 0 relations 0
Sorting nodes
Block 4217/4222 ways 8000 relations 0
Sorting ways
Problem geometry relation 13121479: Boost.Geometry Centroid calculation exception
Problem geometry relation 9599691: Boost.Geometry Centroid calculation exception
Problem geometry relation 15006398: Boost.Geometry Centroid calculation exception
Problem geometry relation 4562026: Boost.Geometry Centroid calculation exception
Sorting generated geometriesions 8000
Stored 32065249 nodes, 102695 ways, 18264 relations
Shape points: 0, lines: 0, polygons: 7773
Generated points: 96335, lines: 1237744, polygons: 906896
2023/02/09 10:37:27 mbtiles.go:63: exit status 137

Desktop (please complete the following information):

Ubuntu 20.04.5 LTS (GNU/Linux 5.4.0-135-generic x86_64) with 8 GB RAM, 8 cores and 512 GB storage

hodossy commented 1 year ago

I looked up a bit, this probably means, that the tilemaker container has been killed due to OOM. I think this project is genius, and we will definitely incorporate it in our operations. The ability to resume is a huge plus. Thanks for creating this! I would like to summarize my experience below, it may help take a step towards the stated goal of the project.

This program aims to be a simple set and forget, one liner which gives anyone - a way to get a full-featured and bang up to date set of vector tiles for the entire planet on small hardware.

So here it is: The auto ram setting decided it can take up to 5950 MB memory, so I have manually lowered that to 4096 MB, but still, I regularly saw memory consumption of the tilemaker process well over 5 GB. Fortunately I managed to add a 8 more GB of RAM to the instance (now total of 16 GB), so I managed to finish the process. I observed a max memory usage of 10.3 GB for an input size of ~190 MB (cut size was determined at 273 MB). That file contained over 43 million tiles, and I think that is reason for the memory requirements. I am wondering if it is possible to take into consideration the number of tiles in a slice, when determining if it requires further slicing.

There were also minor annoyances like when run without a pbf file given, and if there is an error, usually after the first re-run, the planet osm file is removed (considered corrupt for some reason), thus it needs to be downloaded (and possibly sliced) again. So I quickly reverted to a config file, and I downloaded the planet file myself (I got the url from the code). I also noticed that the shape files are always unzipped, seems unnecessary.

A good improvement would be if slicing could be continued from a previously complete state. So for example in my case, after slicing completed for the 5950 MB RAM limit, I had to rerun the whole process, but it would have been much more efficient to just continue with the already present slices.

Also there was an issue, that a journal file has been left in the mbtiles directory, and that caused tile-join to fail, so I had to rerun the whole joining again.

I am closing this issue, as it is not a bug, but I see several improvements here (I have never written a single line in go):

Please let me know what you think about these ideas!