2023-05-29 14:25:27 2023-05-29 12:25:27: Done 1073294/1073294 in 1113 @ 964.215 per second - FINISHED postcodes (location_postcode) 2023-05-29 14:25:27 2023-05-29 14:26:25 2023-05-29 12:26:25: Post-process tables 2023-05-29 14:27:43 /app/init.sh: line 81: 104 Killed sudo -E -u nominatim nominatim import --osm-file $OSMFILE --threads $THREADS 2023-05-29 16:59:27 + tailpid=0 2023-05-29 16:59:27 + replicationpid=0 2023-05-29 16:59:27 + trap stopServices SIGTERM TERM INT 2023-05-29 16:59:27 + /app/config.sh 2023-05-29 16:59:27 + id nominatim 2023-05-29 16:59:27 + echo 'user nominatim already exists' 2023-05-29 16:59:27 user nominatim already exists 2023-05-29 16:59:27 + IMPORT_FINISHED=/var/lib/postgresql/14/main/import-finished 2023-05-29 16:59:27 + '[' '!' -f /var/lib/postgresql/14/main/import-finished ']' 2023-05-29 16:59:27 + /app/init.sh 2023-05-29 16:59:27 + OSMFILE=/nominatim/data.osm.pbf 2023-05-29 16:59:27 + CURL=("curl" "-L" "-A" "${USER_AGENT}" "--fail-with-body") 2023-05-29 16:59:27 + '[' '' = true ']' 2023-05-29 16:59:27 + '[' -f '' ']' 2023-05-29 16:59:27 + echo 'Skipping optional Wikipedia importance import' 2023-05-29 16:59:27 Skipping optional Wikipedia importance import 2023-05-29 16:59:27 + '[' '' = true ']' 2023-05-29 16:59:27 + '[' -f '' ']' 2023-05-29 16:59:27 + echo 'Skipping optional GB postcode import' 2023-05-29 16:59:27 Skipping optional GB postcode import 2023-05-29 16:59:27 + '[' '' = true ']' 2023-05-29 16:59:27 + '[' -f '' ']' 2023-05-29 16:59:27 + echo 'Skipping optional US postcode import' 2023-05-29 16:59:27 Skipping optional US postcode import 2023-05-29 16:59:27 + '[' '' = true ']' 2023-05-29 16:59:27 + '[' -f '' ']' 2023-05-29 16:59:27 + echo 'Skipping optional Tiger addresses import' 2023-05-29 16:59:27 Skipping optional Tiger addresses import 2023-05-29 16:59:27 + '[' https://download.geofabrik.de/europe-latest.osm.pbf '!=' '' ']' 2023-05-29 16:59:27 + echo Downloading OSM extract from https://download.geofabrik.de/europe-latest.osm.pbf 2023-05-29 16:59:27 Downloading OSM extract from https://download.geofabrik.de/europe-latest.osm.pbf 2023-05-29 16:59:27 + curl -L -A mediagis/nominatim-docker:4.2.3 --fail-with-body https://download.geofabrik.de/europe-latest.osm.pbf -C - --create-dirs -o /nominatim/data.osm.pbf 2023-05-29 16:59:27 ** Resuming transfer from byte position 28829180161 2023-05-29 16:59:27 % Total % Received % Xferd Average Speed Time Time Time Current 2023-05-29 16:59:27 Dload Upload Total Spent Left Speed 100 271 100 271 0 0 1046 0 --:--:-- --:--:-- --:--:-- 1050 100 12.1M 100 12.1M 0 0 8183k 0 0:00:01 0:00:01 --:--:-- 12.3M 2023-05-29 16:59:29 + '[' '' '!=' '' ']' 2023-05-29 16:59:29 + '[' '!' -f /var/lib/postgresql/14/main/PG_VERSION ']' 2023-05-29 16:59:29 + cp /etc/postgresql/14/main/conf.d/postgres-import.conf.disabled /etc/postgresql/14/main/conf.d/postgres-import.conf 2023-05-29 16:59:29 + sudo service postgresql start 2023-05-29 16:59:37 * Starting PostgreSQL 14 database server [ OK ] 2023-05-29 16:59:37 + sudo -E -u postgres psql postgres -tAc 'SELECT 1 FROM pg_roles WHERE rolname='\''nominatim'\''' 2023-05-29 16:59:37 + grep -q 1 2023-05-29 16:59:37 + sudo -E -u postgres psql postgres -tAc 'SELECT 1 FROM pg_roles WHERE rolname='\''www-data'\''' 2023-05-29 16:59:37 + grep -q 1 2023-05-29 16:59:37 + sudo -E -u postgres psql postgres -tAc 'ALTER USER nominatim WITH ENCRYPTED PASSWORD '\''qaIACxO6wMR3'\''' 2023-05-29 16:59:37 ALTER ROLE 2023-05-29 16:59:37 + sudo -E -u postgres psql postgres -tAc 'ALTER USER "www-data" WITH ENCRYPTED PASSWORD '\''qaIACxO6wMR3'\''' 2023-05-29 16:59:37 ALTER ROLE 2023-05-29 16:59:37 + sudo -E -u postgres psql postgres -c 'DROP DATABASE IF EXISTS nominatim' 2023-05-29 16:59:44 DROP DATABASE 2023-05-29 16:59:44 + chown -R nominatim:nominatim /nominatim 2023-05-29 16:59:44 + cd /nominatim 2023-05-29 16:59:44 + '[' '' = true ']' 2023-05-29 16:59:44 + sudo -E -u nominatim nominatim import --osm-file /nominatim/data.osm.pbf --threads 8 2023-05-29 16:59:44 2023-05-29 14:59:44: Using project directory: /nominatim 2023-05-29 16:59:46 2023-05-29 14:59:46: Creating database 2023-05-29 16:59:47 2023-05-29 14:59:47: Setting up country tables 2023-05-29 16:59:49 2023-05-29 14:59:49: Importing OSM data file 2023-05-29 16:59:49 2023-05-29 14:59:49 osm2pgsql version 1.7.2 2023-05-29 16:59:49 2023-05-29 14:59:49 Database version: 14.7 (Ubuntu 14.7-0ubuntu0.22.04.1) 2023-05-29 16:59:49 2023-05-29 14:59:49 PostGIS version: 3.2 2023-05-29 16:59:49 2023-05-29 14:59:49 Parsing gazetteer style file '/usr/local/etc/nominatim/import-full.style'. 2023-05-29 16:59:49 NOTICE: table "place" does not exist, skipping Processing: Node(3175925k 3107.6k/s) Way(385336k 16.47k/s) Relation(6755890 1442.0/s)k/s) Relation(6345560 1396.8/s) 2023-05-30 01:04:55 2023-05-29 23:04:55 ERROR: PBF error: invalid BlobHeader size (> max_blob_header_size) 2023-05-30 01:04:55 Traceback (most recent call last): 2023-05-30 01:04:55 File "/usr/local/bin/nominatim", line 14, in 2023-05-30 01:04:55 exit(cli.nominatim(module_dir='/usr/local/lib/nominatim/module', 2023-05-30 01:04:55 File "/usr/local/lib/nominatim/lib-python/nominatim/cli.py", line 264, in nominatim 2023-05-30 01:04:55 return parser.run(**kwargs) 2023-05-30 01:04:55 File "/usr/local/lib/nominatim/lib-python/nominatim/cli.py", line 126, in run 2023-05-30 01:04:55 return args.command.run(args) 2023-05-30 01:04:55 File "/usr/local/lib/nominatim/lib-python/nominatim/clicmd/setup.py", line 94, in run 2023-05-30 01:04:55 database_import.import_osm_data(files, 2023-05-30 01:04:55 File "/usr/local/lib/nominatim/lib-python/nominatim/tools/database_import.py", line 113, in import_osm_data 2023-05-30 01:04:55 run_osm2pgsql(options) 2023-05-30 01:04:55 File "/usr/local/lib/nominatim/lib-python/nominatim/tools/exec_utils.py", line 159, in run_osm2pgsql 2023-05-30 01:04:55 subprocess.run(cmd, cwd=options.get('cwd', '.'), 2023-05-30 01:04:55 File "/usr/lib/python3.10/subprocess.py", line 524, in run 2023-05-30 01:04:55 raise CalledProcessError(retcode, process.args, 2023-05-30 01:04:55 subprocess.CalledProcessError: Command '['/usr/local/lib/nominatim/osm2pgsql', '--hstore', '--latlon', '--slim', '--log-progress', 'true', '--number-processes', '1', '--cache', '0', '--style', '/usr/local/etc/nominatim/import-full.style', '--output', 'gazetteer', '--create', '--flat-nodes', '/nominatim/flatnode.file', '--with-forward-dependencies', 'false', '/nominatim/data.osm.pbf']' returned non-zero exit status 1. 2023-05-30 07:54:27 + tailpid=0 2023-05-30 07:54:27 + replicationpid=0 2023-05-30 07:54:27 + trap stopServices SIGTERM TERM INT 2023-05-30 07:54:27 + /app/config.sh 2023-05-30 07:54:27 + id nominatim 2023-05-30 07:54:27 + echo 'user nominatim already exists' 2023-05-30 07:54:27 user nominatim already exists 2023-05-30 07:54:27 + IMPORT_FINISHED=/var/lib/postgresql/14/main/import-finished 2023-05-30 07:54:27 + '[' '!' -f /var/lib/postgresql/14/main/import-finished ']' 2023-05-30 07:54:27 + /app/init.sh 2023-05-30 07:54:27 + OSMFILE=/nominatim/data.osm.pbf 2023-05-30 07:54:27 + CURL=("curl" "-L" "-A" "${USER_AGENT}" "--fail-with-body") 2023-05-30 07:54:27 + '[' '' = true ']' 2023-05-30 07:54:27 + '[' -f '' ']' 2023-05-30 07:54:27 + echo 'Skipping optional Wikipedia importance import' 2023-05-30 07:54:27 Skipping optional Wikipedia importance import 2023-05-30 07:54:27 + '[' '' = true ']' 2023-05-30 07:54:27 + '[' -f '' ']' 2023-05-30 07:54:27 + echo 'Skipping optional GB postcode import' 2023-05-30 07:54:27 Skipping optional GB postcode import 2023-05-30 07:54:27 + '[' '' = true ']' 2023-05-30 07:54:27 + '[' -f '' ']' 2023-05-30 07:54:27 + echo 'Skipping optional US postcode import' 2023-05-30 07:54:27 Skipping optional US postcode import 2023-05-30 07:54:27 + '[' '' = true ']' 2023-05-30 07:54:27 + '[' -f '' ']' 2023-05-30 07:54:27 + echo 'Skipping optional Tiger addresses import' 2023-05-30 07:54:27 Skipping optional Tiger addresses import 2023-05-30 07:54:27 + '[' https://download.geofabrik.de/europe-latest.osm.pbf '!=' '' ']' 2023-05-30 07:54:27 + echo Downloading OSM extract from https://download.geofabrik.de/europe-latest.osm.pbf 2023-05-30 07:54:27 Downloading OSM extract from https://download.geofabrik.de/europe-latest.osm.pbf 2023-05-30 07:54:27 + curl -L -A mediagis/nominatim-docker:4.2.3 --fail-with-body https://download.geofabrik.de/europe-latest.osm.pbf -C - --create-dirs -o /nominatim/data.osm.pbf 2023-05-30 07:54:27 ** Resuming transfer from byte position 28841899514 2023-05-30 07:54:27 % Total % Received % Xferd Average Speed Time Time Time Current 2023-05-30 07:54:27 Dload Upload Total Spent Left Speed 100 4453k 100 4453k 0 0 1148k 0 0:00:03 0:00:03 --:--:-- 1148k 2023-05-30 07:54:31 + '[' '' '!=' '' ']' 2023-05-30 07:54:31 + '[' '!' -f /var/lib/postgresql/14/main/PG_VERSION ']' 2023-05-30 07:54:31 + cp /etc/postgresql/14/main/conf.d/postgres-import.conf.disabled /etc/postgresql/14/main/conf.d/postgres-import.conf 2023-05-30 07:54:31 + sudo service postgresql start 2023-05-30 07:54:36 * Starting PostgreSQL 14 database server [ OK ] 2023-05-30 07:54:36 + sudo -E -u postgres psql postgres -tAc 'SELECT 1 FROM pg_roles WHERE rolname='\''nominatim'\''' 2023-05-30 07:54:36 + grep -q 1 2023-05-30 07:54:36 + sudo -E -u postgres psql postgres -tAc 'SELECT 1 FROM pg_roles WHERE rolname='\''www-data'\''' 2023-05-30 07:54:36 + grep -q 1 2023-05-30 07:54:36 + sudo -E -u postgres psql postgres -tAc 'ALTER USER nominatim WITH ENCRYPTED PASSWORD '\''qaIACxO6wMR3'\''' 2023-05-30 07:54:36 ALTER ROLE 2023-05-30 07:54:36 + sudo -E -u postgres psql postgres -tAc 'ALTER USER "www-data" WITH ENCRYPTED PASSWORD '\''qaIACxO6wMR3'\''' 2023-05-30 07:54:36 ALTER ROLE 2023-05-30 07:54:36 + sudo -E -u postgres psql postgres -c 'DROP DATABASE IF EXISTS nominatim' 2023-05-30 07:54:40 DROP DATABASE 2023-05-30 07:54:40 + chown -R nominatim:nominatim /nominatim 2023-05-30 07:54:40 + cd /nominatim 2023-05-30 07:54:40 + '[' '' = true ']' 2023-05-30 07:54:40 + sudo -E -u nominatim nominatim import --osm-file /nominatim/data.osm.pbf --threads 8 2023-05-30 07:54:41 2023-05-30 05:54:41: Using project directory: /nominatim 2023-05-30 07:54:43 2023-05-30 05:54:43: Creating database 2023-05-30 07:54:43 2023-05-30 05:54:43: Setting up country tables 2023-05-30 07:54:45 2023-05-30 05:54:45: Importing OSM data file 2023-05-30 07:54:45 2023-05-30 05:54:45 osm2pgsql version 1.7.2 2023-05-30 07:54:45 2023-05-30 05:54:45 Database version: 14.7 (Ubuntu 14.7-0ubuntu0.22.04.1) 2023-05-30 07:54:45 2023-05-30 05:54:45 PostGIS version: 3.2 2023-05-30 07:54:45 2023-05-30 05:54:45 Parsing gazetteer style file '/usr/local/etc/nominatim/import-full.style'. 2023-05-30 07:54:45 NOTICE: table "place" does not exist, skipping