mediagis / nominatim-docker

100% working container for Nominatim
Creative Commons Zero v1.0 Universal
1.09k stars 444 forks source link

Segmentation fault installing full planet #525

Open alvasilvao opened 8 months ago

alvasilvao commented 8 months ago

Describe the bug While running the installation for full planet, I get an error called "segmentation fault". For weeks, I have been trying to install the full planet. Using flatnode and shm-size have helped me overcome other problems that I have encountered, but now I am stuck with this one.

To Reproduce

I used this command:

docker run -it --shm-size=128G\

-v nominatim-flatnode:/nominatim/flatnode \ -e PBF_URL=https://ftp5.gwdg.de/pub/misc/openstreetmap/planet.openstreetmap.org/pbf/planet-latest.osm.pbf \ -e REPLICATION_URL=https://ftp5.gwdg.de/pub/misc/openstreetmap/planet.openstreetmap.org/replication/day/ \ -p 8080:8080 \ --name nominatim \ mediagis/nominatim:4.3

Expected behavior The installation shouldn't stop

Screenshots & Logs

/app/init.sh: line 88: 98 Segmentation fault sudo -E -u nominatim nominatim import --osm-file $OSMFILE --threads $THREADS

image

Desktop / Server (please complete the following information):

Thanks in advance for your help!

alvasilvao commented 8 months ago

Any leads on what to try in this case? Thanks!

leonardehrenfried commented 8 months ago

I believe it has to do with not enough ram or disk. I've added a tag and you can check other issues with the same one: https://github.com/mediagis/nominatim-docker/issues?q=label%3A%22resource+problem%22+

They might contain a clue about your problem.