Hi Paul, Thanks for your reply. But still, I met connection timeout, when executing below cmd for download diff data.
osmosis <proxy> <proxy-pwd> --read-replication-interval workingDirectory=Nominatim-2.5.1/settings --simplify-change --write-xml-change Nominatim-2.5.1/data/osmosischange.osc ERROR: org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion SEVERE: 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:116) at org.openstreetmap.osmosis.replication.common.ServerStateReader.getServerState(ServerStateReader.java:50) at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.runImpl(BaseReplicationDownloader.java:290) at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.run(BaseReplicationDownloader.java:383) at java.lang.Thread.run(Thread.java:745) Caused by: java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) *Note:* We are using a small customised shell script for the update. refer to the same. OSMOSIS_BIN=Nominatim/osmosis/bin/osmosis > WORKOSM_DIR=Nominatim/Nominatim-2.5.1/settings > CHANGE_FILE=Nominatim/Nominatim-2.5.1/data/osmosischange.osc > if [ ! -f $WORKOSM_DIR/state.txt ] ; then > lastOsmId=`postgres/bin/psql -Atc -U nomi -d nomi -c "select max(id) > from planet_osm_nodes"` > output=`wget -qO- https://www.openstreetmap.org/api/0.6 > /node/$lastOsmId` > lastNodeDate=`echo $output | cut -d" " -f20 | cut -d"=" -f2 | cut -d'" > ' -f2` > $OSMOSIS_BIN <proxy> <proxy-pwd> --read-replication-interval-init > workingDirectory=$WORKOSM_DIR > *wget * > *"http://osm.personalwerk.de/replicate-sequences/ > <http://osm.personalwerk.de/replicate-sequences/>?"$lastNodeDate"&stream=hour" > -O $WORKOSM_DIR/state.txt*fi > export PGPASSWORD=nomi; > seq=`cat $WORKOSM_DIR/state.txt | grep sequenceNumber | cut -d= -f2` > echo $OSMOSIS_BIN <proxy> <proxy-pwd> --read-replication-interval > workingDirectory=$WORKOSM_DIR --simplify-change --write-xml-change > $CHANGE_FILE > if ! *$OSMOSIS_BIN <proxy> <proxy-pwd> --read-replication-interval > workingDirectory=$WORKOSM_DIR --simplify-change --write-xml-change > $CHANGE_FILE* ; then > echo "Osmosis error" > fi > php /Nominatim/Nominatim-2.5.1/utils/update.php --import-osmosis-all > --no-npi We met err while downloading state.txt, but can be download using url ( https://replicate-sequences.osm.mazdermind.de//?2015-10-24T12:58:56Z&stream=hour). But now met connection timeout error. Also, I can download diff file from *https://planet.openstreetmap.org/replication/day/000/002/ <https://planet.openstreetmap.org/replication/day/000/002/>* and can be updated directly as *php** /Nominatim/Nominatim*-2.5.1*/utils/update.php --import-osmosis-all --* *no-npi*. Is it a correct way? On Tue, May 29, 2018 at 4:01 AM, Paul Norman <[email protected]> wrote: > On 2018-05-28 1:20 AM, Rajavelu.M Mookkaia.A wrote: > >> baseUrl=http://planet.openstreetmap.org/replication/day >> maxInterval = 86400 >> > > planet.openstreetmap.org is https-only. https://github.com/openstreetm > ap/operations/issues/200 has more information, but just change http to > https. >
_______________________________________________ Geocoding mailing list [email protected] https://lists.openstreetmap.org/listinfo/geocoding

