NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello,

I downloaded the latest version of osmosis today (10/24/2014). Unzipped it and typed osmosis.exe and it looked correct. I got all the everything's ok messages.

Now I go to load a small pbf file, and I get this:

> C:\osmosis-latest\bin>osmosis -v --read-pbf file=C:\temp\osm\sample.pbf --buffer
 bufferCapacity=100000 --log-progress --write-apidb host=localhost database=test
osm user=<username> password=<password>
Oct 24, 2014 11:10:07 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.43.1
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.TaskRegistrar loadJPFPlu
gins
FINE: Searching for JPF plugins.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.TaskRegistrar loadJPFPlu
gins
FINE: Registering the core plugin.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.TaskRegistrar loadJPFPlu
gins
FINE: Registering the extension plugins.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.Pipeline
 prepare
FINE: Building tasks.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.Pipeline
 buildTasks
FINE: Created task "1-read-pbf"
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.Pipeline
 buildTasks
FINE: Created task "2-buffer"
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.Pipeline
 buildTasks
FINE: Created task "3-log-progress"
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.Pipeline
 buildTasks
FINE: Created task "4-write-apidb"
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.Pipeline
 prepare
FINE: Connecting tasks.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.PipeTask
s putTask
FINE: Task "1-read-pbf" produced unnamed pipe stored at level 1 in the default p
ipe stack.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.Pipeline
 connectTasks
FINE: Connected task "1-read-pbf"
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.PipeTask
s retrieveTask
FINE: Task "2-buffer" consumed unnamed pipe stored at level 1 in the default pip
e stack.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.PipeTask
s putTask
FINE: Task "2-buffer" produced unnamed pipe stored at level 1 in the default pip
e stack.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.Pipeline
 connectTasks
FINE: Connected task "2-buffer"
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.PipeTask
s retrieveTask
FINE: Task "3-log-progress" consumed unnamed pipe stored at level 1 in the defau
lt pipe stack.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.PipeTask
s putTask
FINE: Task "3-log-progress" produced unnamed pipe stored at level 1 in the defau
lt pipe stack.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.Pipeline
 connectTasks
FINE: Connected task "3-log-progress"
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.PipeTask
s retrieveTask
FINE: Task "4-write-apidb" consumed unnamed pipe stored at level 1 in the defaul
t pipe stack.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.Pipeline
 connectTasks
FINE: Connected task "4-write-apidb"
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.ActiveTa
skManager execute
FINE: Launching task 1-read-pbf in a new thread.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.ActiveTa
skManager execute
FINE: Launching task 2-buffer in a new thread.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.PassiveT
askManager execute
FINE: Task 3-log-progress is passive, no execution required.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.PassiveT
askManager execute
FINE: Task 4-write-apidb is passive, no execution required.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Oct 24, 2014 11:10:08 AM org.openstreetmap.osmosis.core.pipeline.common.ActiveTa
skManager waitForCompletion
FINE: Waiting for task 1-read-pbf to complete.
Oct 24, 2014 11:10:09 AM org.openstreetmap.osmosis.core.pipeline.common.ActiveTa
skManager waitForCompletion
SEVERE: Thread for task 1-read-pbf failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: An output error has occu
rred, aborting.
        at org.openstreetmap.osmosis.core.store.DataPostbox.checkForOutputErrors
(DataPostbox.java:160)
        at org.openstreetmap.osmosis.core.store.DataPostbox.populateCentralQueue
(DataPostbox.java:216)
        at org.openstreetmap.osmosis.core.store.DataPostbox.put(DataPostbox.java
:303)
        at org.openstreetmap.osmosis.core.buffer.v0_6.EntityBuffer.process(Entit
yBuffer.java:48)
        at crosby.binary.osmosis.OsmosisBinaryParser.parseDense(OsmosisBinaryPar
ser.java:138)
        at org.openstreetmap.osmosis.osmbinary.BinaryParser.parse(BinaryParser.j
ava:124)
        at org.openstreetmap.osmosis.osmbinary.BinaryParser.handleBlock(BinaryPa
rser.java:68)
        at org.openstreetmap.osmosis.osmbinary.file.FileBlock.process(FileBlock.
java:135)
        at org.openstreetmap.osmosis.osmbinary.file.BlockInputStream.process(Blo
ckInputStream.java:34)
        at crosby.binary.osmosis.OsmosisReader.run(OsmosisReader.java:45)
        at java.lang.Thread.run(Unknown Source)

Oct 24, 2014 11:10:09 AM org.openstreetmap.osmosis.core.pipeline.common.ActiveTa
skManager waitForCompletion
FINE: Waiting for task 2-buffer to complete.
Oct 24, 2014 11:10:09 AM org.openstreetmap.osmosis.core.pipeline.common.ActiveTa
skManager waitForCompletion
SEVERE: Thread for task 2-buffer failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to create results
et.
        at org.openstreetmap.osmosis.apidb.common.DatabaseContext.executeQuery(D
atabaseContext.java:429)
        at org.openstreetmap.osmosis.apidb.v0_6.impl.SchemaVersionValidator.vali
dateDBVersion(SchemaVersionValidator.java:82)
        at org.openstreetmap.osmosis.apidb.v0_6.impl.SchemaVersionValidator.vali
dateVersion(SchemaVersionValidator.java:55)
        at org.openstreetmap.osmosis.apidb.v0_6.ApidbWriter.initialize(ApidbWrit
er.java:324)
        at org.openstreetmap.osmosis.apidb.v0_6.ApidbWriter.process(ApidbWriter.
java:1089)
        at org.openstreetmap.osmosis.core.progress.v0_6.EntityProgressLogger.pro
cess(EntityProgressLogger.java:71)
        at org.openstreetmap.osmosis.core.buffer.v0_6.EntityBuffer.run(EntityBuf
fer.java:84)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.postgresql.util.PSQLException: ERROR: relation "schema_migrations
" does not exist
  Position: 21
        at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryEx
ecutorImpl.java:2103)
        at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutor
Impl.java:1836)
        at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.ja
va:257)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stat
ement.java:512)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(Abstract
Jdbc2Statement.java:374)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc
2Statement.java:254)
        at org.openstreetmap.osmosis.apidb.common.DatabaseContext.executeQuery(D
atabaseContext.java:424)
        ... 7 more

Oct 24, 2014 11:10:09 AM org.openstreetmap.osmosis.core.pipeline.common.PassiveT
askManager waitForCompletion
FINE: Task 3-log-progress is passive, no completion wait required.
Oct 24, 2014 11:10:09 AM org.openstreetmap.osmosis.core.pipeline.common.PassiveT
askManager waitForCompletion
FINE: Task 4-write-apidb is passive, no completion wait required.
Oct 24, 2014 11:10:09 AM org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more tasks failed
.
        at org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForComple
tion(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(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Laun
cher.java:329)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:239)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:47)

Not pretty at all I know, but I don't know where to start to debug this issue. Can anyone provide some insight into this issue?

Thanks A

asked 24 Oct '14, 16:19

ajc2014's gravatar image

ajc2014
46335
accept rate: 0%

edited 24 Oct '14, 16:54

mmd's gravatar image

mmd
5.7k15388

I am starting with a clean database, postgresql 9.2 x64, postgis 2.0, I ran the create schema scripts before trying to run osmosis as well.

(24 Oct '14, 16:22) ajc2014

Did you already check whether the PBF file is broken?

(24 Oct '14, 16:28) scai ♦

I can load the pbf using osm2pgsql, but not using osmosis. I wanted to change from osm2pgsql to osmosis, because I want to load the whole planet and osm2pgsql crashes whereas it has been reported that osmosis will load the whole planet on a windows box.

(24 Oct '14, 16:37) ajc2014

Are there environmental parameters I need to set outside of the batch file?

(24 Oct '14, 16:38) ajc2014

@mmd does this allow you to update the database?

(24 Oct '14, 17:09) ajc2014

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×252
×165

question asked: 24 Oct '14, 16:19

question was seen: 2,865 times

last updated: 24 Oct '14, 17:15

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum