Hi All I'm new here and I hope I'm writing on the right session. I have installed Nominatim 2.3.1 following the wiki guide at the page http://wiki.openstreetmap.org/wiki/Nominatim/Installation on centOS 6.6 minimal. I have java 1.7 version, I imported the montecarlo map and everything goes fine. I configure it with apache and I reach the openstreetmap home pag at localhost and I obtain the xml address from a latitude and longitude parameters.

Now i would like to keep my map updated and I download (and unpack) osmosis latest version. I edited my local.php as follows:

<?php
   // Paths
   @define('CONST_Postgresql_Version', '9.4');
   @define('CONST_Postgis_Version', '2.1');
   @define('CONST_Path_Postgresql_Contrib', '/usr/pgsql-9.4/share/contrib');
   // Website settings
   @define('CONST_Website_BaseURL', 'http://192.168.56.101/nominatim/');
   // Osmosis settings, SOLO PER INSTALLAZIONE OSMOSIS!!
   @define('CONST_Osmosis_Binary', '/srv/osmosis/bin/osmosis');
   @define('CONST_Replication_Url', 'http://download.geofabrik.de/europe/monaco-updates');
   @define('CONST_Replication_MaxInterval', '40000');     
   @define('CONST_Replication_Update_Interval', '86400'); 
   @define('CONST_Replication_Recheck_Interval', '900');

I have no configuration.txt on my nominatim/settings folder than I start with the follow command:

./utils/setup.php --osmosis-init

and the script ended ok

./utils/setup.php --create-functions --enable-diff-updates

and the script ended ok than when I run the last script

./utils/update.php --import-osmosis-all --no-npi

the script doesn't end!! I redirect the standard output and error and I post here just a little piece. I don't know what's wrong (and if there's something wrong), how can I verify if the updates goes fine? How long the script must run (10 minutes? 5m?)? Follow pieces of output and error:

2015-05-20 08:47:18 Replication Delay is 2419260
/srv/osmosis/bin/osmosis --read-replication-interval workingDirectory=/srv/Nominatim-2.3.1/settings --simplify-change --write-xml-change /srv/Nominatim-2.3.1/data/osmosischange.osc
mag 20, 2015 10:47:19 AM org.openstreetmap.osmosis.core.Osmosis run
INFORMAZIONI: Osmosis Version 0.43.1
mag 20, 2015 10:47:20 AM org.openstreetmap.osmosis.core.Osmosis run
INFORMAZIONI: Preparing pipeline.
mag 20, 2015 10:47:20 AM org.openstreetmap.osmosis.core.Osmosis run
INFORMAZIONI: Launching pipeline execution.
mag 20, 2015 10:47:20 AM org.openstreetmap.osmosis.core.Osmosis run
INFORMAZIONI: Pipeline executing, waiting for completion.
mag 20, 2015 10:47:20 AM org.openstreetmap.osmosis.core.Osmosis run
INFORMAZIONI: Pipeline complete.
mag 20, 2015 10:47:20 AM org.openstreetmap.osmosis.core.Osmosis run
INFORMAZIONI: Total execution time: 1762 milliseconds.
string(120) "INSERT INTO import_osmosis_log values ('2015-04-22T20:21:03Z',419,'2015-05-20 08:47:18','2015-05-20 08:47:20','osmosis')"
2015-05-20 08:47:20 Completed osmosis step for 2015-04-22T20:21:03Z in 0.03 minutes
/srv/Nominatim-2.3.1/osm2pgsql/osm2pgsql -klas -C 2000 -O gazetteer -d nominatim -P 5432 /srv/Nominatim-2.3.1/data/osmosischange.osc
osm2pgsql SVN version 0.85.0 (64bit id space)

Using projection SRS 4326 (Latlong)
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Allocating memory for sparse node cache
Sharing dense sparse
Node-cache: cache=2000MB, maxblocks=256000*8192, allocation method=11
Mid: pgsql, scale=10000000 cache=2000
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels

Reading in file: /srv/Nominatim-2.3.1/data/osmosischange.osc

Processing: Node(0k 0.0k/s) Way(0k 0.00k/s) Relation(0 0.00/s)  parse time: 0s

Node stats: total(1), max(2680832184) in 0s
Way stats: total(0), max(0) in 0s
Relation stats: total(0), max(0) in 0s
node cache: stored: 1(100.00%), storage efficiency: 0.10% (dense blocks: 1, sparse nodes: 0), hit rate: -nan%
Stopping table: planet_osm_ways
Stopping table: planet_osm_rels
Stopped table: planet_osm_ways in 0s
Stopped table: planet_osm_rels in 0s
Stopping table: planet_osm_nodes
Stopped table: planet_osm_nodes in 0s

Osm2pgsql took 1s overall
string(122) "INSERT INTO import_osmosis_log values ('2015-04-22T20:21:03Z',419,'2015-05-20 08:47:20','2015-05-20 08:47:21','osm2pgsql')"
2015-05-20 08:47:21 Completed osm2pgsql step for 2015-04-22T20:21:03Z in 0.02 minutes
/srv/Nominatim-2.3.1/nominatim/nominatim -i -d nominatim -P 5432 -t 1
nominatim version 2.4

Starting indexing rank (0 to 30) using 1 threads
Starting rank 0
  Done 0 in 0 @ 0.000000 per second - FINISHED                      
Starting rank 1
  Done 0 in 0 @ 0.000000 per second - FINISHED                      
Starting rank 2
.....

until 30 is reached. Than the script repeat output similar to above until the server where it reach the state.txt goes down

......
INFORMAZIONI: Pipeline executing, waiting for completion.
mag 20, 2015 10:47:46 AM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
GRAVE: Thread for task 1-read-replication-interval failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to read the state from the server.
    at org.openstreetmap.osmosis.replication.common.ServerStateReader.getServerState(ServerStateReader.java:114)
    at org.openstreetmap.osmosis.replication.common.ServerStateReader.getServerState(ServerStateReader.java:63)
    at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.download(BaseReplicationDownloader.java:244)
    at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.runImpl(BaseReplicationDownloader.java:302)
    at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.run(BaseReplicationDownloader.java:381)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://download.geofabrik.de/europe/monaco-updates/000/000/779.state.txt
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1627)
    at org.openstreetmap.osmosis.replication.common.ServerStateReader.getServerState(ServerStateReader.java:95)
    ... 5 more

I just want that my nominatim map updates itself daily automatical.. Maybe I just have to edit local.php and don't run others scripts?? Please help me. Thank you all

asked 20 May '15, 13:55

developer_afbnet's gravatar image

developer_af...
26335
accept rate: 0%

edited 20 May '15, 14:01

was there ever any movement on this?

(21 Mar '17, 18:39) olearytd12
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×223

question asked: 20 May '15, 13:55

question was seen: 2,517 times

last updated: 21 Mar '17, 19:38

powered by OSQA