x

Re: Osmosis - Changeset auf postgres importieren


Geschrieben von DrSeuthberg (Gast) am 15. Mai 2012 10:53:52: [flux]

Als Antwort auf: Osmosis - Changeset auf postgres importieren geschrieben von DrSeuthberg (Gast) am 14. Mai 2012 09:34:

Also die Befehle bisher waren

.\osmosis␣--rrii␣workingDirectory="C:\Daten\OSM\Changesets\Daily"
.\osmosis␣--rri␣workingDirectory="C:\Daten\OSM\Changesets\Daily"␣--sc␣--wpc␣host="localhost"␣user="y"␣database="osm"␣password="x"

state.txt:

  1. Sun Apr 01 00:06:46 UTC 2012

sequenceNumber=124
timestamp=2012-04-01T00\:00\:00Z

configuration.txt:

  1. The URL of the directory containing change files.

baseUrl=http://planet.openstreetmap.org/day-replicate/

  1. Defines the maximum time interval in seconds to download in a single invocation.
  2. Setting to 0 disables this feature.

maxDownloadCount=420000
maxInterval=0

Hier die komplette Ausgabe:

PS␣C:\Daten\Tools\osmosis-0.40.1\bin>␣.\osmosis␣--rri␣workingDirectory="C:\Daten\OSM\Changesets\Daily"␣--sc␣--wpc␣host="
localhost"␣user="x"␣database="osm"␣password="y"
Mai␣15,␣2012␣11:48:11␣AM␣org.openstreetmap.osmosis.core.Osmosis␣run
Information:␣Osmosis␣Version␣0.40.1
Mai␣15,␣2012␣11:48:11␣AM␣org.openstreetmap.osmosis.core.Osmosis␣run
Information:␣Preparing␣pipeline.
Mai␣15,␣2012␣11:48:11␣AM␣org.openstreetmap.osmosis.core.Osmosis␣run
Information:␣Launching␣pipeline␣execution.
Mai␣15,␣2012␣11:48:11␣AM␣org.openstreetmap.osmosis.core.Osmosis␣run
Information:␣Pipeline␣executing,␣waiting␣for␣completion.
Mai␣15,␣2012␣11:48:33␣AM␣org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager␣waitForCompletion
Schwerwiegend:␣Thread␣for␣task␣1-rri␣failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException:␣Unable␣to␣read␣the␣state␣from␣the␣server.
at␣org.openstreetmap.osmosis.replication.common.ServerStateReader.getServerState(ServerStateReader.java:105)
at␣org.openstreetmap.osmosis.replication.common.ServerStateReader.getServerState(ServerStateReader.java:46)
at␣org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.runImpl(BaseReplicationDownloader.java:2
67)
at␣org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.run(BaseReplicationDownloader.java:349)
at␣java.lang.Thread.run(Thread.java:722)
Caused␣by:␣java.net.ConnectException:␣Connection␣timed␣out:␣connect
at␣java.net.DualStackPlainSocketImpl.waitForConnect(Native␣Method)
at␣java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:75)
at␣java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:337)
at␣java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:198)
at␣java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
at␣java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)
at␣java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at␣java.net.Socket.connect(Socket.java:579)
at␣sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at␣sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
at␣sun.net.www.http.HttpClient.openServer(HttpClient.java:483)
at␣sun.net.www.http.HttpClient.<init>(HttpClient.java:213)
at␣sun.net.www.http.HttpClient.New(HttpClient.java:300)
at␣sun.net.www.http.HttpClient.New(HttpClient.java:316)
at␣sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:992)
at␣sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:928)
at␣sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:846)
at␣sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1296)
at␣org.openstreetmap.osmosis.replication.common.ServerStateReader.getServerState(ServerStateReader.java:91)
...␣4␣more
Mai␣15,␣2012␣11:48:33␣AM␣org.openstreetmap.osmosis.core.Osmosis␣main
Schwerwiegend:␣Execution␣aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException:␣One␣or␣more␣tasks␣failed.
at␣org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146)
at␣org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)
at␣org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
at␣sun.reflect.NativeMethodAccessorImpl.invoke0(Native␣Method)
at␣sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at␣sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at␣java.lang.reflect.Method.invoke(Method.java:601)
at␣org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at␣org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at␣org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at␣org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
at␣org.codehaus.classworlds.Launcher.main(Launcher.java:47)

Habe schon in den Quelltext geguckt, die Methode getServerState() scheint auf den Server aus der configuration.txt unter baseUrl angegebenen Adresse zuzugreifen zu wollen. Was er aber scheinbar auf Grund eines Timeouts nicht schafft.