question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nominatim update exception

See original GitHub issue

This is normal ?

Debian Jessie


java version "1.7.0_101"
OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-2~deb8u1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)

java -jar -Xms2048m -Xmx10240m photon-0.2.7.jar -host localhost -port 5432 -database nominatim -user nominatim -password … -languages en

[elasticsearch[Midgard Serpent][clusterService#updateTask][T#1]] INFO org.elasticsearch.gateway - [Midgard Serpent] recovered [1] indices into cluster_state
== Spark has ignited ...
>> Listening on 0.0.0.0:2322
[Thread-1] INFO org.eclipse.jetty.server.Server - jetty-9.0.z-SNAPSHOT
[Thread-1] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@1a9bd9bb{HTTP/1.1}{0.0.0.0:2322}
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 1
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 2
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 3
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 4
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 5
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 6
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 7
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 8
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 9
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 10
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 11
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 12
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 13
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 14
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 15
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 16
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 17
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 18
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 19
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 20
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 21
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 22
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 23
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 24
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 25
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 26
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 27
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 28
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 29
[Thread-44] INFO de.komoot.photon.nominatim.NominatimUpdater - Starting rank 30
Exception in thread "Thread-44" org.elasticsearch.action.ActionRequestValidationException: Validation Failed: 1: no requests added;
        at org.elasticsearch.action.ValidateActions.addValidationError(ValidateActions.java:29)
        at org.elasticsearch.action.bulk.BulkRequest.validate(BulkRequest.java:476)
        at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:67)
        at org.elasticsearch.client.node.NodeClient.execute(NodeClient.java:98)
        at org.elasticsearch.client.support.AbstractClient.bulk(AbstractClient.java:167)
        at org.elasticsearch.action.bulk.BulkRequestBuilder.doExecute(BulkRequestBuilder.java:166)
        at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:91)
        at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:65)
        at de.komoot.photon.elasticsearch.Updater.updateDocuments(Updater.java:64)
        at de.komoot.photon.elasticsearch.Updater.finish(Updater.java:30)
        at de.komoot.photon.nominatim.NominatimUpdater.update(NominatimUpdater.java:65)
        at de.komoot.photon.App$1$1.run(App.java:159)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
amirmasudcommented, Aug 23, 2017

Yes. All new and changed data should be available via local nominatim search and photon search (nominatim will be updated only If you set defaultAutoCommit of datasource to true. or do some other transaction managements. It’s an issue I addressed in issue #257 )

Whenever there is no doc is available to apply to elasticsearch ActionRequestValidationException error occurs.

(So if you call /nominatim-update when no changes are available this exception will be thrown too)

1reaction
pbruggercommented, Aug 22, 2017

So the correct way of updating would be like this?

  1. import osm changeset to nominatim e.g. ./utils/update.php --import-diff filename.osc
  2. run the update with e.g. http://localhost:2323/nominatim-update
  3. all new and changed data should be available via local nominatim search and photon search Am I right?

I accidentally did the ./utils/update.php --index after step 1 and so I got the org.elasticsearch.action.ActionRequestValidationException

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update - Nominatim 4.2.0
There are many different ways to update your Nominatim database. The following section describes how to keep it up-to-date using an online replication ......
Read more >
How to handle errors using Nominatim? - Stack Overflow
Based on the geopy documentation (http://geopy.readthedocs.org/en/latest/#exceptions), the most common exception of using geopy is ...
Read more >
setup.php --drop fails with an exception · Issue #1483 - GitHub
According to the source code this is somehow expected to happen but i think the exception should be caught and logged as a...
Read more >
ValueError when using pyosmium-get-changes to update ...
I'm setting up my own Nominatim server for 2 countries being ... when I try to run the update script, it constantly logs...
Read more >
Avoid time out error Nominatim Geopy OpenStreetMap
This will keep retrying the do_geocode function until it manages to return without a Timeout exception being raised.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found