<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Brett<div class=""><br class=""></div><div class="">I tried with --sort-change, but had the same result.</div><div class=""><br class=""></div><div class="">It looks like I need to re-import the full planet again and then go on with daily updates - I just hope the error does not get propagated further along in the daily-diffs.</div><div class=""><br class=""></div><div class="">many thanks for your investigation!</div><div class="">Michael</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 12.05.2016, at 12:33, Brett Henderson <<a href="mailto:brett@bretth.com" class="">brett@bretth.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class="">Actually, on closer inspection of the error it looks like the same node (257882) is appearing twice with the same version.  I doubt if sorting will help.  I don't think Osmosis has a way to fix this issue.  The simplify change task could probably cope with it, but the input validation may be too strict.  It may be necessary to fix the file manually ...</div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Thu, 12 May 2016 at 20:30 Brett Henderson <<a href="mailto:brett@bretth.com" class="">brett@bretth.com</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><span style="font-family:'helvetica neue',helvetica,arial,sans-serif" class="">Okay, so the --simplify-change task is failing because it requires sorted input.</span></div><div class=""><span style="font-family:'helvetica neue',helvetica,arial,sans-serif" class=""><br class=""></span></div><div class=""><span style="font-family:'helvetica neue',helvetica,arial,sans-serif" class="">Can you try this?  It will sort the changes before attempting to simplify them.</span></div><span style="font-family:'helvetica neue',helvetica,arial,sans-serif" class="">osmosis —read-replication-interval workingDirectory=/import/data/</span><span style="font-family:'helvetica neue',helvetica,arial,sans-serif" class="">diffs/ <b class="">--sort-change</b> --simplify-change --write-xml-change /import/data/diffs/data/change</span><span style="font-family:'helvetica neue',helvetica,arial,sans-serif" class="">s.osc.gz</span><br class=""><div class=""><br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Thu, 12 May 2016 at 19:43 Michael Kussmaul <<a href="mailto:kussmaul.list@nix.ch" target="_blank" class="">kussmaul.list@nix.ch</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi Brett<div class=""><br class=""></div><div class="">Sure, here is my stack trace:</div><div class=""><br class=""></div><div class=""><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class="">May 11, 2016 1:34:36 PM org.openstreetmap.osmosis.core.Osmosis run</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class="">INFO: Osmosis Version 0.44.1</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class="">May 11, 2016 1:34:36 PM org.openstreetmap.osmosis.core.Osmosis run</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class="">INFO: Preparing pipeline.</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class="">May 11, 2016 1:34:36 PM org.openstreetmap.osmosis.core.Osmosis run</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class="">INFO: Launching pipeline execution.</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class="">May 11, 2016 1:34:36 PM org.openstreetmap.osmosis.core.Osmosis run</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class="">INFO: Pipeline executing, waiting for completion.</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class="">May 11, 2016 1:48:18 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class="">SEVERE: Thread for task 1-read-replication-interval failed</span></div></div></div><div style="word-wrap:break-word" class=""><div class=""><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class="">org.openstreetmap.osmosis.core.OsmosisRuntimeException: Pipeline entities are not sorted, previous entity type=No</span>de, id=257882, version=5 current entity type=Node, id=257882, version=5.</div></div></div><div style="word-wrap:break-word" class=""><div class=""><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">       </span>at org.openstreetmap.osmosis.core.sort.v0_6.SortedHistoryChangePipeValidator.process(SortedHistoryChangeP</span>ipeValidator.java:59)</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">        </span>at org.openstreetmap.osmosis.set.v0_6.ChangeSimplifier.process(ChangeSimplifier.java:50)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">      </span>at org.openstreetmap.osmosis.core.sort.v0_6.ChangeSorter.complete(ChangeSorter.java:73)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">       </span>at org.openstreetmap.osmosis.replication.v0_6.ReplicationDownloader.processComplete(ReplicationDownloader</span>.java:116)</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">   </span>at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.runImpl(BaseReplicationDownloader</span>.java:313)</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">   </span>at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.run(BaseReplicationDownloader.jav</span>a:383)</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">       </span>at java.lang.Thread.run(Thread.java:744)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class=""><span class=""></span><br class=""></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class="">May 11, 2016 1:48:18 PM org.openstreetmap.osmosis.core.Osmosis main</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class="">SEVERE: Execution aborted.</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class="">org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks failed.</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">       </span>at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">       </span>at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">        </span>at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">       </span>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">      </span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">      </span>at java.lang.reflect.Method.invoke(Method.java:606)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">   </span>at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">        </span>at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">        </span>at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">      </span>at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo" class=""><span class=""><span style="white-space:pre-wrap" class="">  </span>at org.codehaus.classworlds.Launcher.main(Launcher.java:47)</span></div></div></div><div style="word-wrap:break-word" class=""><div class=""><div class=""><span class=""><br class=""></span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class=""><br class=""></span></div><div class=""><blockquote type="cite" class=""><div class="">On 12.05.2016, at 05:15, Brett Henderson <<a href="mailto:brett@bretth.com" target="_blank" class="">brett@bretth.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Can you provide more of the stack trace?  It would be helpful to see exactly which task in the pipeline is failing.  It *may* be possible to workaround it it with an intermediate sort task.</div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Wed, 11 May 2016 at 21:43 Michael Kussmaul <<a href="mailto:kussmaul.list@nix.ch" target="_blank" class="">kussmaul.list@nix.ch</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, I see the same problem, I’m using osmosis to keep my local planet file up-to-date and now see the same error as Jan Michel:<br class="">
<br class="">
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Pipeline entities are not sorted, previous entity type=Node, id=257882, version=5 current entity type=Node, id=257882, version=5.<br class="">
<br class="">
Again node 257882.<br class="">
<br class="">
My osmosis command:<br class="">
osmosis —read-replication-interval workingDirectory=/import/data/diffs/ --simplify-change --write-xml-change /import/data/diffs/data/changes.osc.gz<br class="">
<br class="">
kind regards<br class="">
Michael<br class="">
_______________________________________________<br class="">
dev mailing list<br class="">
<a href="mailto:dev@openstreetmap.org" target="_blank" class="">dev@openstreetmap.org</a><br class="">
<a href="https://lists.openstreetmap.org/listinfo/dev" rel="noreferrer" target="_blank" class="">https://lists.openstreetmap.org/listinfo/dev</a><br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></div></blockquote></div></blockquote></div>
</div></blockquote></div><br class=""></body></html>