<div dir="ltr"><br>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><div class="gmail_quote"><div dir="ltr">On Thu, 12 May 2016 at 20:30 Brett Henderson <<a href="mailto:brett@bretth.com">brett@bretth.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-family:'helvetica neue',helvetica,arial,sans-serif">Okay, so the --simplify-change task is failing because it requires sorted input.</span></div><div><span style="font-family:'helvetica neue',helvetica,arial,sans-serif"><br></span></div><div><span style="font-family:'helvetica neue',helvetica,arial,sans-serif">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">osmosis —read-replication-interval workingDirectory=/import/data/</span><span style="font-family:'helvetica neue',helvetica,arial,sans-serif">diffs/ <b>--sort-change</b> --simplify-change --write-xml-change /import/data/diffs/data/change</span><span style="font-family:'helvetica neue',helvetica,arial,sans-serif">s.osc.gz</span><br><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 12 May 2016 at 19:43 Michael Kussmaul <<a href="mailto:kussmaul.list@nix.ch" target="_blank">kussmaul.list@nix.ch</a>> wrote:<br></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">Hi Brett<div><br></div><div>Sure, here is my stack trace:</div><div><br></div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span>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"><span>INFO: Osmosis Version 0.44.1</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span>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"><span>INFO: Preparing pipeline.</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span>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"><span>INFO: Launching pipeline execution.</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span>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"><span>INFO: Pipeline executing, waiting for completion.</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span>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"><span>SEVERE: Thread for task 1-read-replication-interval failed</span></div></div></div><div style="word-wrap:break-word"><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span>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"><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><span style="white-space:pre-wrap">        </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"><span><span style="white-space:pre-wrap"> </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"><span><span style="white-space:pre-wrap">       </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"><span><span style="white-space:pre-wrap">        </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"><span><span style="white-space:pre-wrap">    </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"><span><span style="white-space:pre-wrap">    </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"><span><span style="white-space:pre-wrap">        </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"><span></span><br></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span>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"><span>SEVERE: Execution aborted.</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span>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"><span><span style="white-space:pre-wrap">   </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"><span><span style="white-space:pre-wrap">        </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"><span><span style="white-space:pre-wrap"> </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"><span><span style="white-space:pre-wrap">        </span>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><span style="white-space:pre-wrap"> </span>at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><span style="white-space:pre-wrap">       </span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</span></div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span><span style="white-space:pre-wrap">       </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"><span><span style="white-space:pre-wrap">    </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"><span><span style="white-space:pre-wrap"> </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"><span><span style="white-space:pre-wrap"> </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"><span><span style="white-space:pre-wrap">       </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"><span><span style="white-space:pre-wrap">   </span>at org.codehaus.classworlds.Launcher.main(Launcher.java:47)</span></div></div></div><div style="word-wrap:break-word"><div><div><span><br></span></div><div><span><br></span></div><div><span><br></span></div><div><blockquote type="cite"><div>On 12.05.2016, at 05:15, Brett Henderson <<a href="mailto:brett@bretth.com" target="_blank">brett@bretth.com</a>> wrote:</div><br><div><div dir="ltr">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><div class="gmail_quote"><div dir="ltr">On Wed, 11 May 2016 at 21:43 Michael Kussmaul <<a href="mailto:kussmaul.list@nix.ch" target="_blank">kussmaul.list@nix.ch</a>> wrote:<br></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>
<br>
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>
<br>
Again node 257882.<br>
<br>
My osmosis command:<br>
osmosis —read-replication-interval workingDirectory=/import/data/diffs/ --simplify-change --write-xml-change /import/data/diffs/data/changes.osc.gz<br>
<br>
kind regards<br>
Michael<br>
_______________________________________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/dev" rel="noreferrer" target="_blank">https://lists.openstreetmap.org/listinfo/dev</a><br>
</blockquote></div>
</div></blockquote></div><br></div></div></blockquote></div></blockquote></div>