ukhas / habitat

Next Generation High Altitude Balloon Tracking
http://habitat.habhub.org/
GNU General Public License v3.0
41 stars 14 forks source link

With a lot of receivers only a small part of uploaded packets seems to be stored #324

Closed zanco closed 8 years ago

zanco commented 8 years ago

Today I received 633 LoRa packets on 434.450 from Daveake's flight. Only 78 (edit type error) are logged in the Pi chart for PE2BZ. I spoke to Ron g8fjg and he noticed (I quote) "my image 44 only has a few blocks missing but the one on ssdv live has big chunks missing " so it looks like his received 868 MHz image packet also missed a lot of uploads.

One strang thing, that might add to the solution, PE1ANS was using the Windows tracker from Daveake with the LoRa module and all his packets where logged in the Pi chart. (at least he used this tracker last weekend end as far as I know he has no PiTS board)

Is this the right location for this issue ? Thanks in advance, Ben - PE2BZ

richardeoin commented 8 years ago

Unfortunately this is a downside of CouchDB. If a document merge is already in progress when your uploaded packet arrives, your packet will be rejected (I think with 409 Conflict). This already documented, and CouchDB behaves in this way so it can be used as a distributed database if required (it isn't for habitat).

As the docs say, if you receive a Conflict you should retry. For instance, dl-fldigi does this.

danielrichman commented 8 years ago

On 17 Aug 2016 11:10 p.m., "Richard Meadows" notifications@github.com wrote:

Unfortunately this is a downside of CouchDB. If a document merge is already in progress when your uploaded packet arrives, your packet will be rejected (I think with 409 Conflict). This already documented, and CouchDB behaves in this way so it can be used as a distributed database if required (it isn't for habitat).

As the docs say, if you receive a Conflict you should retry. For instance, dl-fldigi does this.

Indeed, the habitat python client does it too: https://github.com/ukhas/habitat/blob/develop/habitat/uploader.py#L219

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

zanco commented 8 years ago

Thanks for the explanations. Indeed the windows tracker uses the python client. M0RJX is trying to take care of the LoRa part for repeating messages after being rejected I noticed. Topic can be closed, big thanks for the great support !