404 Not Found - Indexing Failed

I have a self-hosted Nominatim installation. Everything was working fine until I started getting 404s for all Get requests. I noticed that indexing had failed. I ran the command “nominatim import --continue indexing” and ran the “testing the Nominatim service” command again and Indexing was now OK. But I’m still getting 404s.

Testing the Nominatim service
2025-11-04 23:44:07: Using project directory: /srv/nominatim/nominatim-project
2025-11-04 23:44:07: Checking database
Checking database connection … OK
Checking database_version matches Nominatim software version … OK
Checking for placex table … OK
Checking for placex content … OK
Checking that tokenizer works … OK
Checking for wikipedia/wikidata data … OK
Checking indexing status … Failed

What version of Nominatim do you run? What does the log file for your Nominatim service say? What is the exact request that gets you a 404?

Nominatim version 5.1.0-0

nominatim search --query Berlin

works. It gives a JSON response.

curl -H “User-Agent: YourAppName/1.0 (your.email@example.com)” “http://localhost/nominatim/search?q=Berlin&format=json”

gives 404s.

Also, how do I increase logging levels and which logs specifically would that apply to?

Finally, would it make sense to just reindex everything? Is there a command for that?

nginx access.log

::1 - - [07/Nov/2025:07:26:06 +0000] “GET /search?q=1600%20Pennsylvania%20Avenue%20NW%2C%20Washington%2C%20DC%2020500 HTTP/1.1” 404 26 “-” “curl/8.5.0”
::1 - - [07/Nov/2025:07:26:41 +0000] “GET /status HTTP/1.1” 200 2 “-” “curl/8.5.0”
::1 - - [07/Nov/2025:07:27:35 +0000] “GET /status HTTP/1.1” 200 2 “-” “curl/8.5.0”
::1 - - [07/Nov/2025:07:32:39 +0000] “GET /nominatim/search?q=Berlin&format=json HTTP/1.1” 404 26 “-” “YourAppName/1.0 (your.email@example.com)”

sys.log

…
2025-11-07T07:37:31.459062+00:00 geocoder nominatim[1641703]: 
2025-11-07 07:37:31: Done 0/0 in 0 @ 0.000 per second - FINISHED interpolation lines (location_property_osmline)
2025-11-07T07:37:31.465583+00:00 geocoder nominatim[1641703]: 
2025-11-07 07:37:31: Starting indexing postcodes using 1 threads2025-11-07T07:37:31.465770+00:00 geocoder nominatim[1641703]: 
2025-11-07 07:37:31: Starting postcodes (location_postcode) (using batch size 20)
2025-11-07T07:37:31.951758+00:00 geocoder nominatim[1641703]: 
2025-11-07 07:37:31: Done 0/0 in 0 @ 0.000 per second - FINISHED postcodes (location_postcode)2025-11-07T07:37:32.123504+00:00 geocoder nominatim[1641703]: 2025-11-07 07:37:32: Update completed. Import: 0:00:08. Indexing: 0:00:08 Total: 0:00:17. Remaining backlog: 0:01:08.2025-11-07T07:37:32.437345+00:00 geocoder systemd[1]: nominatim-updates.service: Deactivated successfully.

journalctl

… 
Nov 07 07:44:32 geocoder nominatim[1642365]: 2025-11-07 07:44:32: Done 2140 in 53 @ 40.301 per second - rank 30 ETA (seconds): 28.53
Nov 07 07:44:33 geocoder nominatim[1642365]: 2025-11-07 07:44:33: Done 2180 in 54 @ 40.381 per second - rank 30 ETA (seconds): 27.49

This looks like the same issue as Local Nominatim /search API endpoint issue 404 · osm-search/Nominatim · Discussion #3869 · GitHub