[OSM-talk] [osmosis-dev] Osmosis replication fails

Martijn van Exel m at rtijn.org
Fri Dec 16 22:41:48 GMT 2011


Brett,

On Tue, Dec 13, 2011 at 3:20 AM, Brett Henderson <brett at bretth.com> wrote:
> On 13 December 2011 06:31, Martijn van Exel <m at rtijn.org> wrote:
>>
>> Hi all,
>>
>> I have a replication task set up, initially with a longer interval
>> because my planet file is a few weeks old. I have had it running in a
>> cron job with a two hour interval but I get a lot of errors similar to
>> this one:
>>
>> SEVERE: Thread for task 1-rri failed
>> org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to
>> parse xml file /tmp/change8301792328184763034.tmp.  publicId=(null),
>> systemId=(null), lineNumber=7384, columnNumber=3.
>> ....
>> Caused by: org.xml.sax.SAXParseException; lineNumber: 746;
>> columnNumber: 3; The element type "osmChange" must be terminated by
>> the matching end-tag "</osmChange>".
>
>
> It sounds like the change files are incomplete.  Perhaps some of the
> downloads are failing.  Is your network connection usually reliable?

Well, it's comcast cable, so no.

>>
>>
>> Out of 50 executions, this error appeared 23 times.
>> I have my replication interval set to one day, could that be the problem?
>> Processing (when it succeeds) takes about 90 minutes. I have the cron
>> job set to execute every two hours.
>
>
> How is your replication configured?  Specifically which replication files
> are you using (ie. minute, hour or day)?  It may be worth switching to files
> with a longer interval if you are patching a file to reduce the number of
> downloads required.  Minute replication files would typically be more
> suitable to patching a database where small files can be applied quickly.

Hmm. I had this set to retrieve the minutely updates. I set it to
hourly now and am expecting much better results.
Thanks for the pointers, Brett,
Martijn
-- 
martijn van exel
geospatial omnivore
1109 1st ave #2
salt lake city, ut 84103
801-550-5815
http://oegeo.wordpress.com



More information about the talk mailing list