Fix Incomplete Geometries
How can I fix the incomplete geometries of ways and relations on a local OSM server?
This problem has plagued me for a while now but hasn't caused any major issues, until a few days ago when the USA relation (148838) and the Canada relation (1428125) broke for me. My server does daily updates, and I was hoping that would fix it, but it hasn't yet. In fact, I assume that the daily updates are the cause of the problem in the first place. There's nothing else changing the database so unless some extraneous other event happened, that would be the only place for things to go wrong.
Looking at the relations in overpass turbo it says "Attention: incomplete geometry (e.g. some nodes missing)" for both of them. This also causes any area filtering using that relation's area to be completely wrong as well as not giving nearly enough results.
I've had this same problem for a while now but have been able to find workarounds to get the query results that I want, but the USA relation and Canada relation breaking is something that I cannot work around.
Any help at all would be *greatly* appreciated!
Edit:
Found more of the specifics. The two nodes that don't exist in my local sever that are causing the problem are [8856238004](https://www.openstreetmap.org/node/8856238004) and [8856295638](https://www.openstreetmap.org/node/8856295638), both of which are part of the relation for USA and Canada. They are also part of way [957074345](https://www.openstreetmap.org/way/957074345#map=17/44.99673/-74.51237), which does not exist at all on my server. The way itself and all of the nodes that are a part of it just don't exist for me.
Edit 2: In the bin/nohup.out file of my server it has a *lot* of lines that say something like
<pre>compute_geometry: Node 8856295638 used in way 571733868 not found.</pre>
Where the actual node and way numbers vary, but all of the node values are in a range between 8853109156 ~ 8861281943 (not exact range). There's similar statements for missing ways for relations.
It has these statements once a day, I assume, when it updates because the time stamps right before them are the same range as the update times.