{"action":"created","issue":{"url":"https://api.github.com/repos/twain47/Nominatim/issues/306","repository_url":"https://api.github.com/repos/twain47/Nominatim","labels_url":"https://api.github.com/repos/twain47/Nominatim/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/twain47/Nominatim/issues/306/comments","events_url":"https://api.github.com/repos/twain47/Nominatim/issues/306/events","html_url":"https://github.com/twain47/Nominatim/issues/306","id":100600437,"number":306,"title":"Nominatim installation error: Out of memory for node cache dense index","user":{"login":"rakeshsukla53","id":9192661,"avatar_url":"https://avatars.githubusercontent.com/u/9192661?v=3","gravatar_id":"","url":"https://api.github.com/users/rakeshsukla53","html_url":"https://github.com/rakeshsukla53","followers_url":"https://api.github.com/users/rakeshsukla53/followers","following_url":"https://api.github.com/users/rakeshsukla53/following{/other_user}","gists_url":"https://api.github.com/users/rakeshsukla53/gists{/gist_id}","starred_url":"https://api.github.com/users/rakeshsukla53/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakeshsukla53/subscriptions","organizations_url":"https://api.github.com/users/rakeshsukla53/orgs","repos_url":"https://api.github.com/users/rakeshsukla53/repos","events_url":"https://api.github.com/users/rakeshsukla53/events{/privacy}","received_events_url":"https://api.github.com/users/rakeshsukla53/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":31,"created_at":"2015-08-12T18:02:36Z","updated_at":"2016-04-20T15:58:00Z","closed_at":"2015-08-13T08:34:05Z","body":"I am installing Nominatim on my Ubuntu server 14.04 through this [link](http://wiki.openstreetmap.org/wiki/Nominatim/Installation) and trying to load OSM data into my postgreSQL database. For loading into my database I am using this command as given in the link:\r\n\r\n    ~/Nominatim/utils/setup.php   --osm-file data/latest.osm.pbf   --all --osm2pgsql-cache 1024 2>&1   | tee setup.log \r\n\r\nBut it is throwing an error\r\n\r\n    Using projection SRS 4326 (Latlong)\r\n    NOTICE:  table \"place\" does not exist, skipping\r\n    NOTICE:  type \"keyvalue\" does not exist, skipping\r\n    NOTICE:  type \"wordscore\" does not exist, skipping\r\n    NOTICE:  type \"stringlanguagetype\" does not exist, skipping\r\n    NOTICE:  type \"keyvaluetype\" does not exist, skipping\r\n    NOTICE:  function get_connected_ways(pg_catalog.int4[]) does not exist,  skipping\r\n    Allocating memory for dense node cache\r\n    Out of memory for node cache dense index, try using \"--cache-strategy  sparse\" instead\r\n    Error occurred, cleaning up\r\n    ERROR: Error executing external command: /home/nominatim/Nominatim /osm2pgsql/osm2pgsql -lsc -O gazetteer --hstore -C 256 -P 5432 -d nominatim /home/nominatim/data/latest.osm.pbf\r\n    Error executing external command: /home/nominatim/Nominatim/osm2pgsql/osm2pgsql -lsc -O gazetteer --hstore -C 256 -P 5432 -d nominatim /home/nominatim/data/latest.osm.pbf\r\n   \r\nMy ubuntu has 7GB of RAM and I am not sure why this error is coming. I ran the above command by reducing the cache size to 512 and then 256 but it is running into same error. I am not sure how to use `--cache-strategy  sparse` in the given command. \r\n\r\nScreenshot of my Error:\r\n[![enter image description here][1]][1]\r\n\r\nCould anybody help with the setup? \r\n    \r\n\r\n\r\n  [1]: http://i.stack.imgur.com/wjE2n.jpg"},"comment":{"url":"https://api.github.com/repos/twain47/Nominatim/issues/comments/212489146","html_url":"https://github.com/twain47/Nominatim/issues/306#issuecomment-212489146","issue_url":"https://api.github.com/repos/twain47/Nominatim/issues/306","id":212489146,"user":{"login":"zheis2","id":16819953,"avatar_url":"https://avatars.githubusercontent.com/u/16819953?v=3","gravatar_id":"","url":"https://api.github.com/users/zheis2","html_url":"https://github.com/zheis2","followers_url":"https://api.github.com/users/zheis2/followers","following_url":"https://api.github.com/users/zheis2/following{/other_user}","gists_url":"https://api.github.com/users/zheis2/gists{/gist_id}","starred_url":"https://api.github.com/users/zheis2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zheis2/subscriptions","organizations_url":"https://api.github.com/users/zheis2/orgs","repos_url":"https://api.github.com/users/zheis2/repos","events_url":"https://api.github.com/users/zheis2/events{/privacy}","received_events_url":"https://api.github.com/users/zheis2/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T15:58:00Z","updated_at":"2016-04-20T15:58:00Z","body":"@lonvia  Just needed get more RAM, Thank you so much :3 !!"}}