no nie jest łatwo, gdyż trzeba w miarę na bieżąco śledzić co znowu wymyślili, ale system skryptów portage jak się opanuje to dość prosto można dopisać kolejne skrypty dla softu którego standardowo nie ma w dystrybucji. Mam już ich tyle, że nie wiem jak bym miał się przesiąść na coś innego by je ponownie musieć sobie przygotowywać. Niemniej faktycznie wygląda to trochę tak, że dzielnie walczy się z problemami nieznanymi w innych systemach
Natomiast co może być przyczyną, błędu
Osm2pgsql failed due to ERROR: failed to uncompress data: data error
Jak tworzę bazę dla Podkarpacia to wszystko jest ok. Przygotowanie bazy dla Europy przerywa mnie tym samym błędem i to dla dla kilku wersji pliku dla kontynentu nie tylko najnowszego ale i sprzed kilku dni.
Podkarpackie
osm2pgsql version 0.92.1 (64 bit id space)
Using built-in tag processing pipeline
Using projection SRS 3857 (Spherical Mercator)
Setting up table: planet_osm_point
Setting up table: planet_osm_line
Setting up table: planet_osm_polygon
Setting up table: planet_osm_roads
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Allocating memory for sparse node cache
Sharing dense sparse
Node-cache: cache=16000MB, maxblocks=256000*65536, allocation method=11
Mid: loading persistent node cache from /mnt/3tb/flatnodes
Allocated space for persistent node cache file
Maximum node in persistent node cache: 0
Mid: pgsql, scale=100 cache=16000
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Reading in file: /mnt/3tb/podkarpackie-latest.osm.pbf
Using PBF parser.
Processing: Node(9921k 20.8k/s) Way(1236k 137.44k/s) Relation(8080 621.54/s) parse time: 500s
Node stats: total(9921902), max(4942954186) in 476s
Way stats: total(1236985), max(504086971) in 9s
Relation stats: total(8083), max(7363460) in 13s
Maximum node in persistent node cache: 4942987263
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Mid: loading persistent node cache from /mnt/3tb/flatnodes
Maximum node in persistent node cache: 4942987263
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Mid: loading persistent node cache from /mnt/3tb/flatnodes
Maximum node in persistent node cache: 4942987263
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Mid: loading persistent node cache from /mnt/3tb/flatnodes
Maximum node in persistent node cache: 4942987263
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Mid: loading persistent node cache from /mnt/3tb/flatnodes
Maximum node in persistent node cache: 4942987263
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Going over pending ways...
1035921 ways are pending
Using 4 helper-processes
Finished processing 1035921 ways in 48 s
1035921 Pending ways took 48s at a rate of 21581.69/s
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Going over pending relations...
0 relations are pending
Using 4 helper-processes
Finished processing 0 relations in 0 s
Committing transaction for planet_osm_point
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_line
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_polygon
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_roads
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_point
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_line
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_polygon
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_roads
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_point
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_line
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_polygon
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_roads
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_point
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_line
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_polygon
OSTRZEŻENIE: brak aktywnej transakcji
Committing transaction for planet_osm_roads
OSTRZEŻENIE: brak aktywnej transakcji
Stopping table: planet_osm_nodes
Sorting data and creating indexes for planet_osm_roads
Sorting data and creating indexes for planet_osm_line
Stopping table: planet_osm_ways
Building index on table: planet_osm_ways
Stopping table: planet_osm_rels
Building index on table: planet_osm_rels
Sorting data and creating indexes for planet_osm_polygon
Sorting data and creating indexes for planet_osm_point
Stopped table: planet_osm_nodes in 0s
Stopped table: planet_osm_rels in 0s
Copying planet_osm_roads to cluster by geometry finished
Creating geometry index on planet_osm_roads
Creating osm_id index on planet_osm_roads
Creating indexes on planet_osm_roads finished
All indexes on planet_osm_roads created in 1s
Completed planet_osm_roads
Copying planet_osm_point to cluster by geometry finished
Creating geometry index on planet_osm_point
Copying planet_osm_line to cluster by geometry finished
Creating geometry index on planet_osm_line
Creating osm_id index on planet_osm_point
Creating indexes on planet_osm_point finished
All indexes on planet_osm_point created in 4s
Completed planet_osm_point
Creating osm_id index on planet_osm_line
Creating indexes on planet_osm_line finished
All indexes on planet_osm_line created in 5s
Completed planet_osm_line
Copying planet_osm_polygon to cluster by geometry finished
Creating geometry index on planet_osm_polygon
Creating osm_id index on planet_osm_polygon
Creating indexes on planet_osm_polygon finished
All indexes on planet_osm_polygon created in 19s
Completed planet_osm_polygon
Stopped table: planet_osm_ways in 22s
Maximum node in persistent node cache: 4942987263
Maximum node in persistent node cache: 4942987263
Maximum node in persistent node cache: 4942987263
Maximum node in persistent node cache: 4942987263
node cache: stored: 9921902(100.00%), storage efficiency: 50.58% (dense blocks: 154, sparse nodes: 9178004), hit rate: 100.42%
Osm2pgsql took 570s overall
real 9m30,090s
user 2m19,789s
sys 0m23,298s
Europa
time osm2pgsql --create --slim \
-C 16000 --number-processes 4 -k -m \
--style /opt/osm/local_style/openstreetmap-carto.style --multi-geometry \
-U psql -c -d gis \
--flat-nodes /mnt/3tb/flatnodes \
/mnt/3tb/europe-latest.osm.pbf
osm2pgsql version 0.92.1 (64 bit id space)
Using built-in tag processing pipeline
Using projection SRS 3857 (Spherical Mercator)
Setting up table: planet_osm_point
Setting up table: planet_osm_line
Setting up table: planet_osm_polygon
Setting up table: planet_osm_roads
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Allocating memory for sparse node cache
Sharing dense sparse
Node-cache: cache=16000MB, maxblocks=256000*65536, allocation method=11
Mid: loading persistent node cache from /mnt/3tb/flatnodes
Allocated space for persistent node cache file
Maximum node in persistent node cache: 0
Mid: pgsql, scale=100 cache=16000
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Reading in file: /mnt/3tb/europe-latest.osm.pbf
Using PBF parser.
Processing: Node(737290k 2355.6k/s) Way(0k 0.00k/s) Relation(0 0.00/s)Maximum node in persistent node cache: 1984954367
node cache: stored: 737296000(100.00%), storage efficiency: 60.93% (dense blocks: 86734, sparse nodes: 249737386), hit rate: -nan%
Osm2pgsql failed due to ERROR: failed to uncompress data: data error
real 5m13,909s
user 7m47,838s
sys 0m14,349s