Greetings. I've installed nominatim as per instructions here: https://nominatim.org/release-docs/latest/appendix/Install-on-Ubuntu-20/ I've got the following files in my directory
I've tried to import the plant file as so:
And I've received the following error message:
The above exception was the direct cause of the following exception:
During handling of the above exception, another exception occurred:
asked 08 Feb '23, 23:35 james000222 scai ♦ |
Can you try deleting the database before the import? answered 09 Feb '23, 13:05 mtmail |
Thank you for your reply! I've tried that already - but tried again to be consistent. Just to be sure I've done this correctly: $: sudo su - postgres postgres@_:~$ psql postgres=# dropdb nominatim postgres=# \q postgres@_:~$ exit $: nominatim import --osm-file planet-latest.osm 2>&1 | tee setup.log (error message directly as before with this as the prime cause): ERROR: relation "country_osm_grid" already exists I'm fairly experience with linux, but afraid I'm very new to working with databases in general, and never with postgresql. Thank you for your assistance! This is on an HPC platform with several nodes, and this does add a layer of complexity. J answered 09 Feb '23, 21:29 james000222 I THINK I GOT IT WORKING! First I logged in as nominatim, then, I had to do this: nominatim=# DROP SCHEMA public CASCADE; NOTICE: drop cascades to 5 other objects DETAIL: drop cascades to extension hstore drop cascades to extension postgis drop cascades to extension postgis_raster drop cascades to table country_osm_grid drop cascades to table country_name DROP SCHEMA nominatim=# CREATE SCHEMA public; CREATE SCHEMA nominatim=# \dt Did not find any relations. Then I ran the command: nominatim import --osm-file planet-latest.osm 2>&1 | tee setup.log And it's working! Or at least no errror messages. I understand this may take days to unpack and import, correct?
(09 Feb '23, 22:11)
james000222
I probably screwed things up, LOL. No doubt I'll be back here, begging for help again! Thanks for the tip though - it led me to the DROP command and that did it.
(09 Feb '23, 22:51)
james000222
|
how long did your build take and what specs for your server ?