Skip to content

Update examples in README to work with current Geofabrik directory structure. #164

@jawlkumuna

Description

@jawlkumuna

The OVERPASS_PLANET_URL in the first example of the README returns a 404 error, so I tried modifying it in the following way:

docker run \
  -e OVERPASS_META=yes \
  -e OVERPASS_MODE=init \
  -e OVERPASS_PLANET_URL=http://download.geofabrik.de/europe/monaco-260322.osm.pbf \
  -e OVERPASS_DIFF_URL=http://download.geofabrik.de/europe/monaco-updates/ \
  -e OVERPASS_PLANET_PREPROCESS='mv /db/planet.osm.bz2 /db/planet.osm.pbf && osmium cat -o /db/planet.osm.bz2 /db/planet.osm.pbf && rm /db/planet.osm.pbf' \
  -e OVERPASS_RULES_LOAD=10 \
  -v /overpass/overpass_db/:/db \
  -p 12345:80 \
  -i -t \
  --name overpass wiktorn/overpass-api

This seems to work, but I get some errors regarding the diffs:

compute_geometry: Way 955246554 used in relation 16467322 not found.
compute_geometry: Way 941949303 used in relation 16467322 not found.
compute_geometry: Way 1350922106 used in relation 16467322 not found.
compute_geometry: Way 1350922107 used in relation 16467322 not found.
compute_geometry: Way 1350922108 used in relation 16467322 not found.
compute_geometry: Way 1350922105 used in relation 16467322 not found.
compute_geometry: Way 1350922099 used in relation 16467322 not found.
compute_geometry: Way 1350922100 used in relation 16467322 not found.
compute_geometry: Way 1350922101 used in relation 16467322 not found.
compute_geometry: Way 1350922103 used in relation 16467322 not found.
compute_geometry: Way 1350922102 used in relation 16467322 not found.
compute_geometry: Way 1350922104 used in relation 16467322 not found.
compute_geometry: Way 1350966804 used in relation 16467322 not found.
compute_geometry: Way 1350966799 used in relation 16467322 not found.
compute_geometry: Way 1350966800 used in relation 16467322 not found.
compute_geometry: Way 1350966802 used in relation 16467322 not found.
compute_geometry: Way 1350966803 used in relation 16467322 not found.
compute_geometry: Way 1350966798 used in relation 16467322 not found.
compute_geometry: Way 1350966801 used in relation 16467322 not found.
Flushing to database ....... done.
Update complete.
There are still some updates remaining
2026-03-23 11:33:56 INFO: Using replication server at http://download.geofabrik.de/europe/monaco-updates/
2026-03-23 11:33:56 DEBUG: Using given sequence ID 4732
2026-03-23 11:33:56 DEBUG: Starting download at ID 4733 (max 100 MB)
2026-03-23 11:33:56 DEBUG: Starting new HTTP connection (1): download.geofabrik.de:80
2026-03-23 11:33:56 DEBUG: http://download.geofabrik.de:80 "GET /europe/monaco-updates//state.txt HTTP/1.1" 200 123
2026-03-23 11:33:56 ERROR: Error while downloading diffs.
Empty version, skipping file
<?xml version='1.0' encoding='UTF-8'?>
<osmChange version="0.6" generator="libosmium/2.20.0">
</osmChange>
Update finished with status code: 3
Generating areas...
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="Overpass API 0.7.62 7c32a7d5">
<note>The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.</note>
<meta osm_base="2026-03-22T17:06:54Z" areas="2026-03-22T17:06:54Z"/>


</osm>
Overpass container initialization complete. Exiting.

After restarting the container the output looks like this (it seems to be running, but there is still some error regarding the diffs):

Starting supervisord process
2026-03-23 11:34:15,117 CRIT Supervisor is running as root.  Privileges were not dropped because no user is specified in the config file.  If you intend to run as root, you can set user=root in the config file to avoid this message.
2026-03-23 11:34:15,118 INFO supervisord started with pid 1
2026-03-23 11:34:16,120 INFO spawned: 'overpass_dispatch' with pid 8
2026-03-23 11:34:16,121 INFO spawned: 'nginx' with pid 9
2026-03-23 11:34:16,123 INFO spawned: 'fcgiwrap' with pid 10
2026-03-23 11:34:16,124 INFO spawned: 'update_overpass' with pid 11
2026-03-23 11:34:16,125 INFO spawned: 'dispatcher_areas' with pid 14
2026-03-23 11:34:16,127 INFO spawned: 'areas_rules' with pid 18
/app/bin /
2026-03-23 11:34:16 INFO: Using replication server at http://download.geofabrik.de/europe/monaco-updates/
2026-03-23 11:34:16 DEBUG: Using given sequence ID 4732
2026-03-23 11:34:16 DEBUG: Starting download at ID 4733 (max 100 MB)
2026-03-23 11:34:16 DEBUG: Starting new HTTP connection (1): download.geofabrik.de:80
2026-03-23 11:34:16 DEBUG: http://download.geofabrik.de:80 "GET /europe/monaco-updates//state.txt HTTP/1.1" 200 123
2026-03-23 11:34:16 ERROR: Error while downloading diffs.
Empty version, skipping file
<?xml version='1.0' encoding='UTF-8'?>
<osmChange version="0.6" generator="libosmium/2.20.0">
</osmChange>
Update finished with status code: 3
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="Overpass API 0.7.62 7c32a7d5">
<note>The data included in this document is from www.openstreetmap.org. The data is made available under ODbL.</note>
<meta osm_base="2026-03-22T17:06:54Z" areas="2026-03-22T17:06:54Z"/>

Could you please update the README with a more up to date example command to help people like me get started with Overpass more easily?

Also I'm wondering why it is necessary to start this container twice in order for the API server to start working? It would be so much nicer if it could just download the data it needs, do the conversions and start running in just one go, like most other Docker images. Or am I doing something wrong perhaps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions