# Mqtt to db streaming warning

**URL:** <https://forum.pioreactor.com/t/mqtt-to-db-streaming-warning/283>\
**Category:** Uncategorized\
**Created:** [April 19, 2024, 1:29pm UTC](https://forum.pioreactor.com/t/mqtt-to-db-streaming-warning/283 "2024-04-19T13:29:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eleni\_M](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/eleni_m/32/129_2.png) [@Eleni\_M](https://forum.pioreactor.com/u/Eleni_M)\
**Post date:** [April 19, 2024, 1:29pm UTC](https://forum.pioreactor.com/t/mqtt-to-db-streaming-warning/283/1 "2024-04-19T13:29:33Z")

</div>

Hi guys,

I sometimes get this warning:  
“mqtt to db streaming Encountered error in saving to DB: Expected `float` \>= 0.0 - at `$.od_filtered`. See logs.”

I never had this before and my experiment doesn’t stop so i am not too worried, but i thought i should check if anyone knows what it is about.

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [April 19, 2024, 2:02pm UTC](https://forum.pioreactor.com/t/mqtt-to-db-streaming-warning/283/2 "2024-04-19T14:02:10Z")

</div>

Hi @Eleni_M,

The warning is interesting, I haven’t seen that before. Nothing will stop like you observe, but that data point won’t be saved to the database. The `od_filtered` refers to the nOD values. Normally, nOD should be non-negative, but you’re data point _was_ negative. I wonder if this is a strange edge-case from the Kalman filter we use to generate nOD and growth-rates. We’ll have to investigate more - I’ll make an issue to track this.

---

<div class="post-metadata">

**Author:** ![Eleni\_M](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/eleni_m/32/129_2.png) [@Eleni\_M](https://forum.pioreactor.com/u/Eleni_M)\
**Post date:** [April 19, 2024, 2:21pm UTC](https://forum.pioreactor.com/t/mqtt-to-db-streaming-warning/283/3 "2024-04-19T14:21:05Z")

</div>

Hi @CamDavidsonPilon ,

Weird, my nOD is ocilating around 1.03 (i am running a turbidostat experiment) but it has never gone below 0.95. Thanks for looking into it, let me know if you need anything from me…like log files etc.

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [April 19, 2024, 2:27pm UTC](https://forum.pioreactor.com/t/mqtt-to-db-streaming-warning/283/4 "2024-04-19T14:27:34Z")

</div>

Hmm! Maybe I am mistaken, and it’s not a negative value, but a `null` value in `od_filtered`. Yea, if you can send us the raw OD readings, and the logs, that would be appreciated!

Are you seeing this warning constantly, or was it just once?

---

<div class="post-metadata">

**Author:** ![Eleni\_M](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/eleni_m/32/129_2.png) [@Eleni\_M](https://forum.pioreactor.com/u/Eleni_M)\
**Post date:** [April 19, 2024, 4:32pm UTC](https://forum.pioreactor.com/t/mqtt-to-db-streaming-warning/283/5 "2024-04-19T16:32:23Z")

</div>

I get it once in a while not constantly and it is in red.  
I also get this warning in yellow, from the same experiment:  
“Pioreactor sqlite database file /home/pioreactor/.pioreactor/storage/pioreactor.sqlite-shm has the wrong permissions / does not exist.”

Both of these warning are from my leader.

---

<div class="post-metadata">

**Author:** ![LeoKleym](https://forum.pioreactor.com/letter_avatar_proxy/v4/letter/l/c67d28/32.png) [@LeoKleym](https://forum.pioreactor.com/u/LeoKleym)\
**Post date:** [January 14, 2025, 10:43am UTC](https://forum.pioreactor.com/t/mqtt-to-db-streaming-warning/283/6 "2025-01-14T10:43:58Z")

</div>

i get this warning, anyone knows what it means?

mqtt\_to\_db\_streaming should be running on leader. Double check.

---

<div class="post-metadata">

**Author:** ![CamDavidsonPilon](https://forum.pioreactor.com/user_avatar/forum.pioreactor.com/camdavidsonpilon/32/3_2.png) [@CamDavidsonPilon](https://forum.pioreactor.com/u/CamDavidsonPilon)\
**Post date:** [January 14, 2025, 5:01pm UTC](https://forum.pioreactor.com/t/mqtt-to-db-streaming-warning/283/7 "2025-01-14T17:01:48Z")

</div>

@LeoKleym, your problem may be related to [Graphs on Overview page clearing on refresh / Not able to export data with newest version - #4 by CamDavidsonPilon](https://forum.pioreactor.com/t/graphs-on-overview-page-clearing-on-refresh-not-able-to-export-data-with-newest-version/598/4) (and see solution in the next post)
