<div class="gmail_quote">On Fri, Apr 9, 2010 at 5:40 AM, Aaron Schaefer <span dir="ltr"><<a href="mailto:aaron@elasticdog.com">aaron@elasticdog.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The file does download just fine using wget/curl, and I always thought<br>
it was odd that it was failing on the same file even on different<br>
mirrors. I had assumed that due to the sequence number that this was<br>
not the first file it had tried to download, but that might not be the<br>
case. Because you mentioned it looked like a network issue, I ran<br>
things verbosely and then tried adding the trailing slash to the<br>
baseURL...that fixed it!<br></blockquote><div><br>It's great it's working, although I've never added the trailing slash.  I'm not sure what's going on there ...<br><br>You're right in saying that the sequence number didn't look like the first one.  However I suspect the state file you downloaded wasn't used somehow because it sounds like it started processing from a much later time than you said you used.  I'm not too sure what happened there.<br>
<br>You really need to look at the contents of the state file to be sure, not the creation timestamp of the file itself because they're not necessarily related.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
When you initialize the working directory, the example<br>
configuration.txt file lists<br>
'baseUrl=<a href="http://planet.openstreetmap.org/minute-replicate" target="_blank">http://planet.openstreetmap.org/minute-replicate</a>' (note<br>
there's no trailing slash), so I had just switched /minute/hour/ and<br>
thought it would be fine. So, dumb mistake, but it works fine now.<br>
<br>
Per your advice, I did switch maxInterval as well, but had another<br>
question. Daily diffs would be great, but from my understanding after<br>
talking with people on IRC, was that there wasn't an easy way to<br>
download and import daily diffs using osmosis because there are no<br>
managed state.txt files like there are with the minute/hour replicate<br>
diffs. So, the conclusion I came to was to just run a daily cron job<br>
that would grab a days worth of hourly diffs and apply those. Is there<br>
a better way? Thanks again for your help...I really appreciate it.<br></blockquote><div><br>Have you checked out the Osmosis detailed usage page?  There are several replication tasks there:<br><a href="http://wiki.openstreetmap.org/wiki/Osmosis/DetailedUsage#Replication_Tasks">http://wiki.openstreetmap.org/wiki/Osmosis/DetailedUsage#Replication_Tasks</a><br>
<br>The one you need for daily diffs is the --rci task instead of the --rri task.  The --rci is an older style of replication which is based on filenames using timestamps.  It works okay for daily diffs, but isn't suitable for minute or hourly diffs.<br>
<br>If you have the hourly diffs working I'd stick with them.<br><br>Brett<br></div></div><br>