[osmosis-dev] Specifying ports for replication

Igor Podolskiy igor.podolskiy at vwi-stuttgart.de
Sat Jun 23 12:45:02 BST 2012


On 17.06.2012 06:46, Paul Norman wrote:
> I'm trying to get script to work to update my apidb, but I keep getting
> errors with trying to specify the location of the minutely replication
> diffs. I suspect it is related to the port in my change file URL
>
> My simplified command line is osmosis --rri --sc --wdc
>
> I have tried both
>
> baseUrl=http://merry.paulnorman.ca:7201/minute-redaction-replicate/
>
> and
>
> baseUrl=http://merry.paulnorman.ca\:7201/minute-redaction-replicate/
>
> The error I get is:
>[...]

Hmm... Sadly I cannot reproduce this. No matter whether I'm using

   http://my.server.local/planet/replicate

or

   http://my.server.local:80/planet/replicate

it works fine. From the stack trace you posted it looks like your server 
is returning a malformed response. Here are some things to check:

1. Is there any information regarding those requests access and error 
logs of the HTTP server listening on port 7201? The relevant entries 
should look like:

127.0.0.1 - - [23/Jun/2012:13:37:05 +0200] "GET 
/minute-redaction-replicate/state.txt HTTP/1.1" 200 409 "-" "Java/1.6.0_24"

2. Could you try to access

   http://merry.paulnorman.ca:7201/minute-redaction-replicate/state.txt

with a web browser?

You should get a text file like this:

#Sat Jun 23 13:40:02 CEST 2012
sequenceNumber=28727
txnMaxQueried=182338
timestamp=2012-06-23T11\:40\:02Z
txnReadyList=
txnMax=182338
txnActiveList=

If you don't see any log entries in the access or error logs that you 
can relate to Osmosis, then there is most probably some kind of a 
network problem between your client and your server machine. Or maybe 
the server on port 7201 isn't running? :)

If you can ac don't get a proper state.txt file at the appropriate URL 
($BASE_URL/state.txt), then something is wrong with your replication 
server setup. Might be a typo in the configuration, might be a 
permission problem, might be all kinds of things, it's hard to tell from 
a distance :)

Hope that helps
Igor



More information about the osmosis-dev mailing list