[osmosis-dev] Error when updating OSM database
Nuno Miguel Lourenço
nuno-miguel-lourenco at telecom.pt
Fri Oct 25 17:11:35 UTC 2013
Hi all,
I've built an ANT process to populate an OSM database with a full PLANET file.
Afterwards I built another ANT process to update the given OSM database.
I'm getting an error on the update process.
Basically what I've done:
First:
<path to osmosis> --read-replication-interval-init workingDirectory=.
Second:
<path to osmosis> -v --read-replication-interval workingDirectory=. --write-pgsql-change host=host:port user=user database=database password=password
I'm getting stuck because I cannot make it work...
I'm getting this exceptions:
update_database:
[echo] UPDATING OSM DB...
[echo] JAVACMD_OPTIONS -> -server -Xms2000m -Xmx4000m -Djava.io.tmpdir=D:/Temp/tests/osmosis/rep/osmosis/tmp/...
[exec] The command attribute is deprecated.
[exec] Please use the executable attribute and nested arg elements.
[exec] Out 25, 2013 6:10:19 PM org.openstreetmap.osmosis.core.Osmosis run
[exec] INFO: Osmosis Version 0.43.1
[exec] Out 25, 2013 6:10:19 PM org.openstreetmap.osmosis.core.TaskRegistrar loadJPFPlugins
[exec] FINE: Searching for JPF plugins.
[exec] Out 25, 2013 6:10:19 PM org.openstreetmap.osmosis.core.TaskRegistrar loadJPFPlugins
[exec] FINE: Registering the core plugin.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.TaskRegistrar loadJPFPlugins
[exec] FINE: Registering the extension plugins.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.Osmosis run
[exec] INFO: Preparing pipeline.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline prepare
[exec] FINE: Building tasks.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline buildTasks
[exec] FINE: Created task "1-read-replication-interval"
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline buildTasks
[exec] FINE: Created task "2-sort-change"
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline buildTasks
[exec] FINE: Created task "3-write-pgsql-change"
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline prepare
[exec] FINE: Connecting tasks.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PipeTasks putTask
[exec] FINE: Task "1-read-replication-interval" produced unnamed pipe stored at level 1 in the default pipe stack.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline connectTasks
[exec] FINE: Connected task "1-read-replication-interval"
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PipeTasks retrieveTask
[exec] FINE: Task "2-sort-change" consumed unnamed pipe stored at level 1 in the default pipe stack.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PipeTasks putTask
[exec] FINE: Task "2-sort-change" produced unnamed pipe stored at level 1 in the default pipe stack.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline connectTasks
[exec] FINE: Connected task "2-sort-change"
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PipeTasks retrieveTask
[exec] FINE: Task "3-write-pgsql-change" consumed unnamed pipe stored at level 1 in the default pipe stack.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.Pipeline connectTasks
[exec] FINE: Connected task "3-write-pgsql-change"
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.Osmosis run
[exec] INFO: Launching pipeline execution.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager execute
[exec] FINE: Launching task 1-read-replication-interval in a new thread.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PassiveTaskManager execute
[exec] FINE: Task 2-sort-change is passive, no execution required.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PassiveTaskManager execute
[exec] FINE: Task 3-write-pgsql-change is passive, no execution required.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.Osmosis run
[exec] INFO: Pipeline executing, waiting for completion.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
[exec] FINE: Waiting for task 1-read-replication-interval to complete.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader runImpl
[exec] FINE: Reading current server state.
[exec] Out 25, 2013 6:10:20 PM sun.net.www.protocol.http.HttpURLConnection writeRequests
[exec] FINE: sun.net.www.MessageHeader at 591686f75 pairs: {GET /replication/hour/state.txt HTTP/1.1: null}{User-Agent: Java/1.7.0_40}{Host: planet.openstreetmap.org}{Accept: text/html, image/gif, image/jpeg, *; q=.2, */*;
q=.2}{Connection: keep-alive}
[exec] Out 25, 2013 6:10:20 PM sun.net.www.protocol.http.HttpURLConnection getInputStream
[exec] FINE: sun.net.www.MessageHeader at a18047511 pairs: {null: HTTP/1.1 200 OK}{Date: Fri, 25 Oct 2013 17:10:10 GMT}{Server: Apache/2.2.22 (Ubuntu)}{Last-Modified: Fri, 25 Oct 2013 17:02:07 GMT}{ETag: "5f2983d-53-4e993b5
d8f0f4"}{Accept-Ranges: bytes}{Content-Length: 83}{Vary: Accept-Encoding}{Keep-Alive: timeout=5, max=100}{Connection: Keep-Alive}{Content-Type: text/plain; charset=utf-8}
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader download
[exec] FINE: The maximum timestamp to be downloaded is Wed Oct 09 01:00:00 BST 2013.
[exec] Out 25, 2013 6:10:20 PM sun.net.www.protocol.http.HttpURLConnection writeRequests
[exec] FINE: sun.net.www.MessageHeader at 1a2b53fb5 pairs: {GET /replication/hour/000/009/401.state.txt HTTP/1.1: null}{User-Agent: Java/1.7.0_40}{Host: planet.openstreetmap.org}{Accept: text/html, image/gif, image/jpeg, *;
q=.2, */*; q=.2}{Connection: keep-alive}
[exec] Out 25, 2013 6:10:20 PM sun.net.www.protocol.http.HttpURLConnection getInputStream
[exec] FINE: sun.net.www.MessageHeader at 1296912911 pairs: {null: HTTP/1.1 200 OK}{Date: Fri, 25 Oct 2013 17:10:10 GMT}{Server: Apache/2.2.22 (Ubuntu)}{Last-Modified: Wed, 09 Oct 2013 00:02:05 GMT}{ETag: "5f98325-53-4e8439
87f67dc"}{Accept-Ranges: bytes}{Content-Length: 83}{Vary: Accept-Encoding}{Keep-Alive: timeout=5, max=99}{Connection: Keep-Alive}{Content-Type: text/plain; charset=utf-8}
[exec] Out 25, 2013 6:10:20 PM sun.net.www.protocol.http.HttpURLConnection writeRequests
[exec] FINE: sun.net.www.MessageHeader at 1d8330fd5 pairs: {GET /replication/hour/000/009/401.osc.gz HTTP/1.1: null}{User-Agent: Java/1.7.0_40}{Host: planet.openstreetmap.org}{Accept: text/html, image/gif, image/jpeg, *; q=
.2, */*; q=.2}{Connection: keep-alive}
[exec] Out 25, 2013 6:10:20 PM sun.net.www.protocol.http.HttpURLConnection getInputStream
[exec] FINE: sun.net.www.MessageHeader at 1005412e10 pairs: {null: HTTP/1.1 200 OK}{Date: Fri, 25 Oct 2013 17:10:10 GMT}{Server: Apache/2.2.22 (Ubuntu)}{Last-Modified: Wed, 09 Oct 2013 00:02:05 GMT}{ETag: "5f98324-babfc-4e8
43987f67dc"}{Accept-Ranges: bytes}{Content-Length: 764924}{Keep-Alive: timeout=5, max=98}{Connection: Keep-Alive}{Content-Type: application/x-gzip}
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
[exec] SEVERE: Thread for task 1-read-replication-interval failed
[exec] org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to read the changeset file 000/009/401.osc.gz from the server.
[exec] at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.downloadReplicationFile(BaseReplicationDownloader.java:133)
[exec] at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.download(BaseReplicationDownloader.java:262)
[exec] at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.runImpl(BaseReplicationDownloader.java:302)
[exec] at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.run(BaseReplicationDownloader.java:381)
[exec] at java.lang.Thread.run(Unknown Source)
[exec] Caused by: java.io.IOException: The system cannot find the path specified
[exec] at java.io.WinNTFileSystem.createFileExclusively(Native Method)
[exec] at java.io.File.createNewFile(Unknown Source)
[exec] at java.io.File.createTempFile(Unknown Source)
[exec] at java.io.File.createTempFile(Unknown Source)
[exec] at org.openstreetmap.osmosis.replication.v0_6.BaseReplicationDownloader.downloadReplicationFile(BaseReplicationDownloader.java:111)
[exec] ... 4 more
[exec]
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PassiveTaskManager waitForCompletion
[exec] FINE: Task 2-sort-change is passive, no completion wait required.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.pipeline.common.PassiveTaskManager waitForCompletion
[exec] FINE: Task 3-write-pgsql-change is passive, no completion wait required.
[exec] Out 25, 2013 6:10:20 PM org.openstreetmap.osmosis.core.Osmosis main
[exec] SEVERE: Execution aborted.
[exec] org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks failed.
[exec] at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146)
[exec] at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)
[exec] at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[exec] at java.lang.reflect.Method.invoke(Unknown Source)
[exec] at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
[exec] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
[exec] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
[exec] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
[exec] at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
[exec]
BUILD FAILED
Can anyone point me to a correction direction.
Thanks to all.
Nuno Lourenço
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/osmosis-dev/attachments/20131025/86af1c8b/attachment-0001.html>
More information about the osmosis-dev
mailing list