wiktorn / Overpass-API

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

It does not look like the update is working #39

Closed arne182 closed 2 years ago

arne182 commented 4 years ago

Update finished with status code: 3 INFO: Using replication server at http://download.geofabrik.de/europe/germany/baden-wuerttemberg/tue/ DEBUG: Using given sequence ID 2593 DEBUG: Starting download at ID 2594 (max 100 MB) Empty version, skipping file <?xml version='1.0' encoding='UTF-8'?>

wiktorn commented 4 years ago

Can you post a bit more of log?

As far as I’ve checked your update URL there is no state.txt there: http://download.geofabrik.de/europe/germany/baden-wuerttemberg/tue/state.txt

Please check your URL.

arne182 commented 4 years ago

The URL got clipped http://download.geofabrik.de/europe/germany/baden-wuerttemberg/tuebingen-regbez-updates/state.txt Is the output above normal?

wiktorn commented 4 years ago

It might be once all updates are applied, that’s why asked for earlier logs.

arne182 commented 4 years ago

I have had it up now for the last few days and it does seem to download when a new update is available but then it says 0 of ... And I see from my requests that my changes are not in the database.

arne182 commented 4 years ago

image

arne182 commented 4 years ago

After 0h51m51s: in "recurse", part 0, on line 255. Stack: 0 of 0 20897 of 0 0 of 0 After 0h52m8s: in "make-area", part 0, on line 257. Stack: 0 of 0 20937 of 0 INFO: Using replication server at http://download.geofabrik.de/europe/germany/baden-wuerttemberg/tue/ DEBUG: Using given sequence ID 2593 DEBUG: Starting download at ID 2594 (max 100 MB) After 0h52m23s: in "make-area", part 0, on line 257. Stack: 0 of 0 20963 of 0 Empty version, skipping file <?xml version='1.0' encoding='UTF-8'?>

Update finished with status code: 3 After 0h52m38s: in "make-area", part 0, on line 257. Stack: 0 of 0 21007 of 0 After 0h52m53s: in "recurse", part 0, on line 255. Stack: 0 of 0 21176 of 0 0 of 0 After 0h53m8s: in "make-area", part 0, on line 257. Stack: 0 of 0 21403 of 0 After 0h53m23s: in "recurse", part 0, on line 255. Stack: 0 of 0 21603 of 0 0 of 0 After 0h53m38s: in "make-area", part 0, on line 257. Stack: 0 of 0 21820 of 0 INFO: Using replication server at http://download.geofabrik.de/europe/germany/baden-wuerttemberg/tue/ After 0h53m53s: in "recurse", part 0DEBUG: Using given sequence ID 2593 DEBUG: Starting download at ID 2594 (max 100 MB) , on line 255. Stack: 0 of 0 21955 of 0 0 of 0 Empty version, skipping file <?xml version='1.0' encoding='UTF-8'?>

Update finished with status code: 3 After 0h54m8s: in "make-area", part 0, on line 257. Stack: 0 of 0 22115 of 0 After 0h54m23s: in "make-area", part 0, on line 257. Stack: 0 of 0 22273 of 0 After 0h54m38s: in "recurse", part 0, on line 255. Stack: 0 of 0 22465 of 0 0 of 0 INFO: Using replication server at http://download.geofabrik.de/europe/germany/baden-wuerttemberg/tue/ DEBUG: Using given sequence ID 2593 DEBUG: Starting download at ID 2594 (max 100 MB) Empty version, skipping file <?xml version='1.0' encoding='UTF-8'?> Update finished with status code: 3 After 0h55m33s: in "osm-script", part 0, on line 2. Stack: 0 of 0
It took 3336 to run the loop. Desired load is: 10%. Sleeping: 30024 192.168.188.20 - - [01/May/2020:04:27:42 +0000] "POST /api/interpreter HTTP/1.1" 200 2301 "http://ov"INFO: Using replication server at http://download.geofabrik.de/europe/germany/baden-wuerttemberg/tue/DEBUG: Using given sequence ID 2593 DEBUG: Starting download at ID 2594 (max 100 MB) Empty version, skipping file <?xml version='1.0' encoding='UTF-8'?> Update finished with status code: 3

wiktorn commented 4 years ago

Interestingly enough the state file as well as Today’s osc file are empty on Geofabrik server. If the changes you’re referring are from yesterday it might explain the difference

arne182 commented 4 years ago

Changes were the day before yesterday. Maybe it takes some time to update?

wiktorn commented 4 years ago

Your logs suggest that you should have all the changes in your database up to: timestamp=2020-04-30T20\:59\:02Z

arne182 commented 4 years ago

I will see when the change comes in. The picture above was for a change I made 01 May 2020 12:44. So it might be there tomorrow. So the replication looks like daily?

wiktorn commented 4 years ago

Frequency of changes depends on your source. Geofabrik prepares daily extracts. Though if the problem with today’s extract will not be fixed, you may not see your changes until some other changes will be made to these objects

arne182 commented 4 years ago

Is it possible to use an update from say the whole of germany being applied to a smaller part of Germany? Today it looks like the http://download.geofabrik.de/europe/germany/baden-wuerttemberg/tuebingen-regbez-updates/state.txt is updated but the files 594 http://download.geofabrik.de/europe/germany/baden-wuerttemberg/tuebingen-regbez-updates/000/002/ are missing

arne182 commented 4 years ago

Now it looks like this image after an hour with this output image looks like it is getting stuck somewhere.

arne182 commented 4 years ago

after deleting the changes.osm the newly downloaded file did apply properly, but still have this way in my database that should have been deleted image

wiktorn commented 4 years ago

I'd recommend rewinding /db/replicate_id to 2592. The broken file was downloaded and failed to apply, you haven't replaced it with proper version, so update went further. There is no risk, in applying updates once again.

To answer your earlier question, no, it's not yet possible to use updates from e.g. Germany or even planet file, and apply only part of it. Though it shouldn't be that hard to set, as osmium is already installed within docker (see docs). Though scripts needs a bit of tweaking to allow for that. Though I'm not sure, if bbox extracting is enough, or based by shape.

Pull requests are most welcome.

arne182 commented 4 years ago

I set the replicate_id to 2592 and then the updates ran through with only this one error image . still with https://www.openstreetmap.org/way/783101000 included in the result

arne182 commented 4 years ago

I see it in 2594

image

It just does not apply that. It does not bother me too much as long as everything else works. It is just interesting that this way is not being deleted

wiktorn commented 4 years ago

Can you paste full error after /app/bin/update_database ? It looks like the updated wasn't applied at all.

arne182 commented 4 years ago

Changes I made two days ago are in the db. I would need to do it again.

wiktorn commented 2 years ago

Missing changes were fixed in e4881f5eca786267a077ed4661b9d6a90f1da011