I am using Ubuntu 18.04 LTS.

I have created local version of openstreetmap-website, by this guide.

I have filled up database with initial script osmosis --read-pbf andorra-latest.osm.pbf --write-apidb host="localhost:5432" database="openstreetmap" user="postgres" password="postgres" validateSchemaVersion="no".

Now, it's time to get replica from DB.

Here's a command: osmosis --replicate-apidb authFile=localBackendAuthFile.txt validateSchemaVersion=false --write-replication workingDirectory=~/osmosisworkdir

And the output:

Aug 12, 2019 12:10:06 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Osmosis Version 0.46 Aug 12, 2019 12:10:06 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Preparing pipeline. Aug 12, 2019 12:10:06 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Launching pipeline execution. Aug 12, 2019 12:10:06 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Pipeline executing, waiting for completion. WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.postgresql.jdbc.TimestampUtils (file:/usr/share/java/postgresql.jar) to field java.util.TimeZone.defaultTimeZone WARNING: Please consider reporting this to the maintainers of org.postgresql.jdbc.TimestampUtils WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Aug 12, 2019 12:10:07 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion SEVERE: Thread for task 1-replicate-apidb failed java.lang.NumberFormatException: null at java.base/java.lang.Long.parseLong(Long.java:655) at java.base/java.lang.Long.parseLong(Long.java:817) at org.openstreetmap.osmosis.apidb.v0_6.impl.ReplicationState.load(ReplicationState.java:80) at org.openstreetmap.osmosis.replication.v0_6.ReplicationStateWriter.initialize(ReplicationStateWriter.java:74) at org.openstreetmap.osmosis.replication.v0_6.ReplicationWriter.initialize(ReplicationWriter.java:46) at org.openstreetmap.osmosis.apidb.v0_6.impl.Replicator.replicateImpl(Replicator.java:293) at org.openstreetmap.osmosis.apidb.v0_6.impl.Replicator.access$000(Replicator.java:20) at org.openstreetmap.osmosis.apidb.v0_6.impl.Replicator$1.run(Replicator.java:263) at org.openstreetmap.osmosis.apidb.v0_6.impl.TransactionDao$1.doInTransactionWithoutResult(TransactionDao.java:61) at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:34) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) at org.openstreetmap.osmosis.apidb.common.DatabaseContext2.executeWithinTransaction(DatabaseContext2.java:94) at org.openstreetmap.osmosis.apidb.v0_6.impl.TransactionDao.executeWithinTransaction(TransactionDao.java:58) at org.openstreetmap.osmosis.apidb.v0_6.impl.Replicator.replicateLoop(Replicator.java:260) at org.openstreetmap.osmosis.apidb.v0_6.impl.Replicator.replicate(Replicator.java:242) at org.openstreetmap.osmosis.apidb.v0_6.ApidbFileReplicator.runImpl(ApidbFileReplicator.java:89) at org.openstreetmap.osmosis.apidb.v0_6.ApidbFileReplicator.run(ApidbFileReplicator.java:99) at java.base/java.lang.Thread.run(Thread.java:834) Aug 12, 2019 12:10:07 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(Pipeline.java:146) at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92) at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) at org.codehaus.classworlds.Launcher.main(Launcher.java:47)

What is wrong and how can I fix it?

asked 12 Aug, 12:46

YUNtee's gravatar image

YUNtee
161
accept rate: 0%

edited 12 Aug, 12:48

Be the first one to answer this question!
toggle preview

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:

×216

question asked: 12 Aug, 12:46

question was seen: 42 times

last updated: 12 Aug, 12:48

powered by OSQA