This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Bad / wrong location name

0

Hi!

I've recently installed an OSM file of Nominatim 2.4 in a new Server, but it shows an error message at the end of the instalation. Here is some of the end lines in setup.log file "/utils/setup.log":

Done 9688999 in 280842 @ 34.499821 per second - Rank 26 ETA (seconds): 127908.812500
Done 9688999 in 280842 @ 34.499821 per second - Rank 26 ETA (seconds): 127908.812500
Done 9688999 in 280843 @ 34.499699 per second - Rank 26 ETA (seconds): 127909.265625
Done 9688999 in 280844 @ 34.499577 per second - Rank 26 ETA (seconds): 127909.710938
Done 9688999 in 280844 @ 34.499577 per second - Rank 26 ETA (seconds): 127909.710938

index_placex: UPDATE failed: ERROR:  could not read block 20133 in file "base/2205538/2719940": Error de entrada/salida
CONTEXT:  SQL statement "DELETE FROM location_road_2 where place_id = in_place_id"
PL/pgSQL function deleteroad(integer,bigint) line 1197 at SQL statement
PL/pgSQL function placex_update() line 77 at assignment
Done 9688999 in 280845 @ 34.499454 per second - Rank 26 ETA (seconds): 127910.164062
ERROR: Error executing external command: /home/nominatim/Nominatim/nominatim/nominatim -i -d nominatim -P 5432 -t 1 -r 26
Error executing external command: /home/nominatim/Nominatim/nominatim/nominatim -i -d nominatim -P 5432 -t 1 -r 26

The instalation finsed and it's a complete continent (NorthAmerica)... So, when I try to find a place, the Address request from Nominatim is wrong.

This is an example with the next lat/long data in the new server: "25.539999","-103.427098"

URL: http://192.168.1.207/nominatim/reverse?format=json&addressdetails=0&zoom=18&lat=25.539999&lon=-103.427098

Returns:

"Central de Abastos, Torreón, Coahuila de Zaragoza, 27010, México"

{"place_id":"21325872","licence":"Data © OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"way","osm_id":"116771106","lat":"25.5542692","lon":"-103.425345760978","display_name":"Central de Abastos, Torreón, Coahuila de Zaragoza, 27010, México"}

And searching the place in my old server, it should be showing some thing like this:

URL: http://192.168.1.178/nominatim/reverse?format=json&addressdetails=0&zoom=18&lat=25.539999&lon=-103.427098

"Av. Matamoros, Torreón, Coahuila de Zaragoza, 27010, México"

{"place_id":"275172","licence":"Data \u00a9 OpenStreetMap contributors, ODbL 1.0. http:\/\/www.openstreetmap.org\/copyright","osm_type":"way","osm_id":"50857796","lat":"25.5400986","lon":"-103.4204802","display_name":"Av. Matamoros, Torre\u00f3n, Coahuila de Zaragoza, 27010, M\u00e9xico"}

asked 18 Dec '15, 23:04

Nahum%20Larriva's gravatar image

Nahum Larriva
0112
accept rate: 0%


One Answer:

2

Your disk is faulty. Type dmesg to confirm (or run SMART checks). You will have to replace the disk and run the import again.

answered 18 Dec '15, 23:14

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Thanks, i´m gonna run a chek disk and tell you the resoults.

(18 Dec '15, 23:53) Nahum Larriva

Source code available on GitHub .