LIVE spirit-local ............................................... export LUA_PATH="$HOME/osm2pgsql-themepark/lua/?.lua;;"" osm2pgsql --output flex --style spirit.lua -d spirit-local /home/ertert/spirit-local/data/main-db-changes-whole-U4-history-6may24-02c.osm.pbf tilekiln dev --bind-host 192.168.1.102 --bind-port 8000 --config spirit.yaml --source-dbname spirit-local --base-url https://umap.opennbs.net node_modules/.bin/charites serve style.yaml --port 8585 node_modules/.bin/charites build style.yaml spirit.json node_modules/.bin/basemaps-sprites sprites && python3 serve.py WORKING .spirit .............................................. export LUA_PATH="$HOME/osm2pgsql-themepark/lua/?.lua;;" osm2pgsql --output flex --style spirit.lua -d spirit /home/ertert/spirit-local/data/main-db-changes-whole-U4-history-6may24-02c.osm.pbf tilekiln dev --bind-host 192.168.1.102 --bind-port 8008 --config spirit.yaml --source-dbname spirit --base-url https://map.opennbs.net tilekiln dev --bind-host 192.168.1.102 --bind-port 8008 --config spirit.yaml --source-dbname spirit (8008 is map.opennbs.net) node_modules/.bin/charites serve style.yaml --port 8686 node_modules/.bin/charites build style.yaml spirit.json osm2pgsql --output flex --style shortbread.lua -d spirit /home/ertert/spirit/andorra-latest.osm.pbf osm2pgsql --output flex --style spirit.lua -d spirit /home/ertert/spirit/andorra-latest.osm.pb GO INTO VENV source venv/bin/activate pip install --upgrade pip pip install requests scripts/get-external-data.py Need: pip install requests pip install psycopg2 (installed version 2.9.9) pip install psycopg (installed version 3.1.8) scripts/get-external-data.py (WORKS) venv/bin/tilekiln dev --config shortbread.yaml --source-dbname spirit venv/bin/tilekiln serve --config shortbread.yaml --source-dbname spirit venv/bin/tilekiln serve --help --bind-host TEXT Bind socket to this host. [default: 127.0.0.1] --bind-port INTEGER Bind socket to this port. [default: 8000] -n, --num-threads INTEGER Number of worker processes. [default: 4] --storage-dbname TEXT --storage-host TEXT --storage-port TEXT --storage-username TEXT --base-url TEXT Defaults to http://127.0.0.1:8000 or the bind host and port venv/bin/tilekiln dev --help --config PATH [required] --bind-host TEXT Bind socket to this host. [default: 127.0.0.1] --bind-port INTEGER Bind socket to this port. [default: 8000] -n, --num-threads INTEGER Number of worker processes. [default: 4] --source-dbname TEXT --source-host TEXT --source-port TEXT --source-username TEXT --base-url TEXT Defaults to http://127.0.0.1:8000 or the bind host and port --id TEXT Override YAML config ID WORKS tilekiln dev --bind-host umaps.opennbs.net --bind-port 8000 --config shortbread.yaml --source-dbname spirit --base-url https://umaps.opennbs.net tilekiln dev --bind-host 127.0.0.1 --bind-port 8000 --base-url https://umap.opennbs.net --config shortbread.yaml --source-dbname spirit tilekiln dev --bind-host 127.0.0.1 --bind-port 8000 --config shortbread.yaml --source-dbname spirit tilekiln dev --bind-host 0.0.0.0 --bind-port 8000 --config shortbread.yaml --source-dbname spirit tilekiln dev --bind-host umap.opennbs.net --bind-port 8000 --config shortbread.yaml --source-dbname spirit tilekiln dev --bind-host 127.0.0.1 --bind-port 8000 --config shortbread.yaml --source-dbname spirit tilekiln dev --bind-host 192.168.1.102 --bind-port 8000 --config shortbread.yaml --source-dbname spirit WORKS WITH PCB ROWSER 192.168.1.102/versaw tilekiln dev --bind-host 127.0.0.1 --bind-port 8000 --config shortbread.yaml --source-dbname spirit tilekiln dev --bind-host 127.0.0.1 --bind-port 8000 --config spirit.yaml --source-dbname spirit FAILED TO CONSTRUCT tilekiln dev --bind-host 192.168.1.102 --bind-port 8000 --config shortbread.yaml --source-dbname spirit --base-url umap.opennbs.net tilekiln dev --bind-host 192.168.1.102 --bind-port 8000 --config shortbread.yaml --source-dbname spirit --base-url https://umap.opennbs.net tilekiln dev --bind-host map.opennbs.net --bind-port 8000 --config shortbread.yaml --source-dbname spirit tilekiln dev --bind-host 0.0.0.0 --bind-port 8000 --config shortbread.yaml --source-dbname spirit www.opennbs.net/versaw http : mixed loading www.opennbs.net/versaw https : invalid .................. https://github.com/unvt/charites node_modules/.bin/charites serve style.yaml .................. psycopg.errors.InternalError_: Directed line merging requires a build against GEOS-3.11 or higher, this version of PostGIS was built against version 3.10.2 psycopg.errors.InternalError_: Directed line merging requires a build against GEOS-3.11 or higher, this version of PostGIS was built against version 3.10.2 /usr/pgadmin4/venv/lib/python3.10/site-packages/psycopg-3.1.12.dist-info /home/ertert/pgadmin4/pgadmin4/lib/python3.10/site-packages/psycopg /home/ertert/osm-vec/tilekiln/lib/python3.10/site-packages/psycopg /home/ertert/spirit/venv/lib/python3.10/site-packages/psycopg_pool /home/ertert/spirit/venv/lib/python3.10/site-packages/psycopg2_binary-2.9.9.dist-info /home/ertert/spirit/venv/lib/python3.10/site-packages/psycopg /home/ertert/spirit/venv/lib/python3.10/site-packages/psycopg2 /home/ertert/spirit/venv/lib/python3.10/site-packages/psycopg_pool-3.2.1.dist-info /home/ertert/spirit/venv/lib/python3.10/site-packages/psycopg-3.1.18.dist-info /home/ertert/spirit/venv/lib/python3.10/site-packages/psycopg2_binary.libs pip uninstall psycopg2 pip uninstall psycopg2_binary pip uninstall psycopg_pool pip install upgrade pip "https://127.0.0.1:8000/shortbread_v1/tilejson.json" INVALID tried pip install psycopg[] pip install psycopg[pool] sudo apt install libpq5 ALREADY INSTALLED sudo apt-get install python3-dev pip install "psycopg[c]" https://libgeos.org/usage/download/ new GEOS 3.12.1 make install sudo apt install libprotobuf-c-dev configure: error: gdal-config not found. sudo apt-get install libgdal-dev gdal-config NOT FOUND export CPLUS_INCLUDE_PATH=$(gdal-config --cflags | sed 's/-I//') export C_INCLUDE_PATH=$(gdal-config --cflags | sed 's/-I//') pip install GDAL==$(gdal-config --version) postgres.h: No such file or directory ................. CONNECTION LOST sudo su - postgres -c psql sudo -u postgres psql ALTER USER postgres PASSWORD 'ertert'; sudo su - postgres sudo -u postgres -i ALTER USER ertert WITH PASSWORD 'ertert'; SELECT PostGIS_Full_Version(); SELECT PostGIS_GEOS_Version(); sudo ln -s /tmp/.s.PGSQL.5432 /var/run/postgresql/.s.PGSQL.5432 sudo netstat -lp --protocol=unix | grep postgres journalctl -xeu postgresql@16-main.service ............... html versa: "url": "http://127.0.0.1:8000/shortbread_v1/tilejson.json" WORKS LOCALLY ....................... tilekiln generate tiles --help Usage: tilekiln generate tiles [OPTIONS] A list of z/x/y tiles is read from stdin and those tiles are generated and aved to storage. Options: --config PATH [required] -n, --num-threads INTEGER Number of worker processes. [default: 4] --source-dbname TEXT --source-host TEXT --source-port TEXT --source-username TEXT --storage-dbname TEXT --storage-host TEXT --storage-port TEXT --storage-username TEXT --help Show this message and exit. generate tiles --config shortbread.yaml --source-dbname spirit --source-host 127.0.0.1--source-port 5432--source-username ertert --storage-dbname tiles --storage-host 127.0.0.1 --storage-port 5432 --storage-username ertert sed -i -E -e "s/--.*(themepark:plugin\('tilekiln'\):write_config\('tk'\))/\1/" ./osm2pgsql-themepark/config/shortbread_gen.lua sed -i -E -e "'5'\.'mvt'" ............................... http-server -P https://umap.opennbs.net/shortbread_v1/tilejson.json WORKS ./node_modules/.bin/http-server -a localhost -p 8081 -c-1 ....... serve node_modules/.bin/charites serve style.yaml --port 8585 node_modules/.bin/charites serve style.yaml --port 8686 export node_modules/.bin/charites build style.yaml spirit.json node_modules/.bin/charites build style-shortbread.yaml style-shortbread.json