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

Hi All,

I have successfully installed the Rails Port e.g. I can see openstreetmap website from localhost. Now, I want to populate the database with my own map. To do so, I run the following comand:

osmosis --read-pbf /mnt/share/entre_rios-latest.osm.pbf
--write-apidb host="localhost" database="openstreetmap" user="osmweb" password="osmweb" validateSchemaVersion="no"

However, command fails because Osmosis is unable to insert a user into the database. Moreover, it seems that a column is missing. Looking at tables "users", "relations", and similar names; results that none of them has a field "nearby".

Here is the log:

Dec 19, 2019 3:39:22 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion
SEVERE: Thread for task 1-read-pbf failed
org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to insert user with id 678132 into the database.
    at org.openstreetmap.osmosis.apidb.v0_6.impl.UserManager.insertUser(
    at org.openstreetmap.osmosis.apidb.v0_6.impl.UserManager.addOrUpdateUser(
    at org.openstreetmap.osmosis.apidb.v0_6.ApidbWriter.process(
    at crosby.binary.osmosis.OsmosisBinaryParser.parseDense(
    at org.openstreetmap.osmosis.osmbinary.BinaryParser.parse(
    at org.openstreetmap.osmosis.osmbinary.BinaryParser.handleBlock(
    at org.openstreetmap.osmosis.osmbinary.file.FileBlock.process(
    at org.openstreetmap.osmosis.osmbinary.file.BlockInputStream.process(
    at java.base/
Caused by: org.postgresql.util.PSQLException: ERROR: column "nearby" of relation "users" does not exist
  Position: 129
    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(
    at org.postgresql.core.v3.QueryExecutorImpl.processResults(
    at org.postgresql.core.v3.QueryExecutorImpl.execute(
    at org.postgresql.jdbc.PgStatement.executeInternal(
    at org.postgresql.jdbc.PgStatement.execute(
    at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(
    at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(
    at org.openstreetmap.osmosis.apidb.v0_6.impl.UserManager.insertUser(
    ... 9 more

Dec 19, 2019 3:39:22 PM 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.waitForCompletion(
    at org.openstreetmap.osmosis.core.Osmosis.main(
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.base/java.lang.reflect.Method.invoke(
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(
    at org.codehaus.classworlds.Launcher.main(

If database is created by the Ruby script, how could a column be missing? Is it possible that there is some mistake, or a missing step? Any help would be appreciated. Thanks in advance!

asked 19 Dec '19, 16:26

JoseBLJ's gravatar image

accept rate: 0%

edited 19 Dec '19, 19:19

This is a known issue see in general you should be looking in the github repo first when you have issues installing.

BTW this should be trivial to fix if you can build osmosis yourself. The larger issue is that osmosis currently has no volunteer maintainer and nobody seems to be willing to pay somebody to do the job.

permanent link

answered 19 Dec '19, 20:01

SimonPoole's gravatar image

SimonPoole ♦
accept rate: 18%

edited 19 Dec '19, 22:56

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 19 Dec '19, 16:26

question was seen: 1,811 times

last updated: 19 Dec '19, 22:56

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