wiktorn / Overpass-API

Overpass API docker image
MIT License
134 stars 48 forks source link

Update repeats in loop without sleep #58

Closed VShkaberda closed 3 years ago

VShkaberda commented 3 years ago

After initialization using image version 0.7.56.8 (also tried 0.7.55.9) updating process repeats in loop without sleep. Initialization configuration:

docker run \
  -e OVERPASS_META=no \
  -e OVERPASS_MODE=init \
  -e OVERPASS_PLANET_URL=http://download.geofabrik.de/europe/monaco-latest.osm.bz2 \
  -e OVERPASS_DIFF_URL=http://download.openstreetmap.fr/replication/europe/monaco/minute/ \
  -e OVERPASS_RULES_LOAD=10 \
  -e OVERPASS_UPDATE_SLEEP=300 \
  -v /mnt/OSM_data/overpass_monaco/:/db \
  -p 12345:80 \
  -i -t \
  --name overpass_monaco wiktorn/overpass-api:0.7.56.8

Also tried with OVERPASS_META=yes and without OVERPASS_RULES_LOAD or OVERPASS_UPDATE_SLEEP variables. Logs output looks like:

log

``` There are still some updates remaining 2020-12-28 08:37:57 INFO: Using replication server at http://download.openstreetmap.fr/replication/europe/monaco/minute/ 2020-12-28 08:37:57 DEBUG: Using given sequence ID 4346024 2020-12-28 08:37:57 DEBUG: Starting download at ID 4346025 (max 100 MB) 2020-12-28 08:37:57 DEBUG: Downloaded change 4346025. (102400 kB available in download buffer) 2020-12-28 08:37:57 DEBUG: Downloaded change 4346026. (102400 kB available in download buffer) 2020-12-28 08:37:57 DEBUG: Downloaded change 4346027. (102400 kB available in download buffer) Empty version, skipping file There are still some updates remaining 2020-12-28 08:37:57 INFO: Using replication server at http://download.openstreetmap.fr/replication/europe/monaco/minute/ 2020-12-28 08:37:57 DEBUG: Using given sequence ID 4346024 2020-12-28 08:37:57 DEBUG: Starting download at ID 4346025 (max 100 MB) 2020-12-28 08:37:57 DEBUG: Downloaded change 4346025. (102400 kB available in download buffer) 2020-12-28 08:37:57 DEBUG: Downloaded change 4346026. (102400 kB available in download buffer) 2020-12-28 08:37:57 DEBUG: Downloaded change 4346027. (102400 kB available in download buffer) Empty version, skipping file There are still some updates remaining 2020-12-28 08:37:57 INFO: Using replication server at http://download.openstreetmap.fr/replication/europe/monaco/minute/ 2020-12-28 08:37:57 DEBUG: Using given sequence ID 4346024 2020-12-28 08:37:57 DEBUG: Starting download at ID 4346025 (max 100 MB) 2020-12-28 08:37:57 DEBUG: Downloaded change 4346025. (102400 kB available in download buffer) 2020-12-28 08:37:58 DEBUG: Downloaded change 4346026. (102400 kB available in download buffer) 2020-12-28 08:37:58 DEBUG: Downloaded change 4346027. (102400 kB available in download buffer) Empty version, skipping file There are still some updates remaining ```

Though version latest which I pulled April 2020 seems to be working fine (it logs Overpass API 0.7.56.1003 though image wiktorn/overpass-api:0.7.56.1003 still loops without sleep). Started container using latest version from April 2020 sleeps after update showing appropriate message:

log

``` There are still some updates remaining INFO: Using replication server at http://download.openstreetmap.fr/replication/europe/monaco/minute/ DEBUG: Using given sequence ID 4348922 DEBUG: Starting download at ID 4348923 (max 100 MB) Empty version, skipping file Update finished with status code: 3 The data included in this document is from www.openstreetmap.org. The data is made available under ODbL. It took 2 to run the loop. Desired load is: 1%. Sleeping: 198 The data included in this document is from www.openstreetmap.org. The data is made available under ODbL. It took 2 to run the loop. Desired load is: 1%. Sleeping: 198 INFO: Using replication server at http://download.openstreetmap.fr/replication/europe/monaco/minute/ DEBUG: Using given sequence ID 4348922 DEBUG: Starting download at ID 4348923 (max 100 MB) ```