[Geocoding] Accidentally stopped Nominatim install - can it be resumed?

Simon Nuttall info at cyclestreets.net
Fri Jul 19 18:50:51 UTC 2013


On 19 July 2013 19:43, Sarah Hoffmann <lonvia at denofr.de> wrote:
> On Fri, Jul 19, 2013 at 07:24:52PM +0100, Simon Nuttall wrote:
>> Got this error after restarting...
>>
>> root at nominatim:/home/nominatim/Nominatim# sudo -u nominatim
>> ./utils/update.php --import-osmosis-all --no-npi
>> sudo: unable to resolve host nominatim
>> /home/nominatim/Nominatim/osm2pgsql/osm2pgsql -klas -C 2000 -O
>> gazetteer -d nominatim
>> /home/nominatim/Nominatim/data/osmosischange.osc
>> osm2pgsql SVN version 0.83.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=256001*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: /home/nominatim/Nominatim/data/osmosischange.osc
>> Entity: line 6613: parser error : Extra content at the end of the document
>> uid="822650" user="172sp" changeset="16887163" lat="43.6394422" lon="6.9363448"/
>>                                                                                ^
>> /home/nominatim/Nominatim/data/osmosischange.osc : failed to parse
>> Error occurred, cleaning up
>> Error: 1
>> root at nominatim:/home/nominatim/Nominatim#
>
> Looks like there is garbage left from the previous trials. Remove
> data/osmosischange.osc (and, if existing, settings/download.lock),
> check settings/state.txt once more and try again.

OK, I tried, but it still errors...


root at nominatim:/home/nominatim/Nominatim# rm data/osmosischange.osc
root at nominatim:/home/nominatim/Nominatim# rm settings/download.lock
root at nominatim:/home/nominatim/Nominatim# sudo -u nominatim
./utils/update.php --import-osmosis-all --no-npi
sudo: unable to resolve host nominatim

Replication Delay is 864056
/usr/bin/osmosis --read-replication-interval
workingDirectory=/home/nominatim/Nominatim/settings --simplify-change
--write-xml-change /home/nominatim/Nominatim/data/osmosischange.osc
19-Jul-2013 19:47:57 org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.40.1
19-Jul-2013 19:47:57 org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
19-Jul-2013 19:47:57 org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
19-Jul-2013 19:47:57 org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
19-Jul-2013 19:48:41
org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager
waitForCompletion
SEVERE: Thread for task 1-read-replication-interval failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Pipeline
entities are not sorted, previous entity type=Node, id=26303082,
version=3 current entity type=Node, id=26303082, version=3.
        at org.openstreetmap.osmosis.core.sort.v0_6.SortedHistoryChangePipeValidator.process(SortedHistoryChangePipeValidator.java:50)
        at org.openstreetmap.osmosis.set.v0_6.ChangeSimplifier.process(ChangeSimplifier.java:39)
        at org.openstreetmap.osmosis.core.sort.v0_6.ChangeSorter.complete(ChangeSorter.java:64)
        at org.openstreetmap.osmosis.replication.v0_6.ReplicationDownloader.processComplete(ReplicationDownloader.java:93)
        at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.runImpl(BaseReplicationDownloader.java:288)
        at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.run(BaseReplicationDownloader.java:349)
        at java.lang.Thread.run(Thread.java:679)
19-Jul-2013 19:48:41 org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more
tasks failed.
        at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146)
        at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)
        at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:328)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:31)
Error: 1



More information about the Geocoding mailing list