-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InfluxDB Persistence not working anymore in 3.1.0-M3 build #10464
Comments
I have the same issue here. It is possible to solve it by manually add the "item" tags to influxdb. In my case this is a lot of manual work, because I have a lot in influx. |
@ole-elo Unfortunatly I do not have any work around. I just downgraded to M2 and it started to work as expected. Hopefully there will be a fix for M4 or release. |
The add-on The cause for your issue may be related to the latest changes: #9943 |
@cweitkamp thanks for the hint. Seems that this change could be the root cause. Hoepfully this gets fixed in M4! |
Is this still true after a new value has been stored? I'm usinf .M3 and don't see these issues |
@J-N-K 7one exampe: values stored in the influx measurement: 1,2,3 without item tag 4,5,6 with item tag. M2: will sum up 1+2+3+4+5+6 M3 will sum up only 4+5+6 |
I can reproduce that now. But the issue must be much older than M3. I need to use data that is older than 150 days to get your issues. FTR:
Only the last line produces the fault, that's why I didn't see it before (I only tried last 60 days, which is much more than M3). |
I've upgraded directly from 2.5.12 to 3.1.0M3 and OH charts don't show any data from before the upgrade. Am I right that sometime between 2.5.12 and 3.1.0M3, OH started adding data to influxdb with the Item name as a tag? This is an example of what I see:
So I think the problem is more general than rule calculations: 3.1.0M3 just isn't accessing any legacy series without the item= part. In my case, that's everything up till the day before yesterday. |
@cweitkamp, I think you're right about it being introduced in #9943. @DerOetzi, I believe the issue lies with lines 60 and 66 of Influx1FilterCriteriaQueryCreatorImpl.java in cdd99c9.
Until cdd99c9 there was no mention of tags in the query. Adding the tag to the query means that historic data is being filtered out? I'm at the limit of my abilities here, not really able to actually fix it, sorry. |
Should this be added to the 3.1 issue list now that the feature itself (#9943) is going to be released with 3.1? |
That would be nice. Actually I am in a dead end with M2 until a fix is ready on that issue |
I have the same issue and would appreciate a fix as well. |
I will try to take a look. |
Please see my post above. The problem is not the query but how the response is handled. |
@J-N-K I'm not sure without reproducing it. Because althought your suggested changes are cleaner I think that they do exactly the same as the current code. Line 174 in 183fb0e
Lines 202 to 204 in 183fb0e
|
Excuse me @J-N-K I've just seen it just after writing the comment. I didn't realize the |
No, it does not. |
I will make a PR with J-N-K suggested change, it looks good to me but I will do a small check. |
Fix problem with historical Influx1 data that was generated with addon version <3.0.0 that didn't write generate item tag Signed-off-by: Joan Pujol <[email protected]>
If someone is able to test I attached a binary in that PR #10680 |
Hi lujop, |
I'm using OH 3.1.0 M3 build on Ubuntu 20.04 LTS 64bit on Raspberry Pi 4 (8GB RAM) and Azul Embedded Java 64Bit. With M2 sumSince calculations ware working well like "SM_PV_EigenverbrauchGesamt.postUpdate(SM_PV_EigenverbrauchTag.sumSince(parse("2021-01-01T00:00+01:00[Europe/Vienna]")) as Number". Since OH3 the item name is written as Tag in the Influx DB (version 1.8). Caluclations (with values that have a tag or not) are working in M2. With M3 the calculations only sum up the values that have the Item name stored as tag in InfluxDB. I do not have any tags configured in my OH Persitence config. Also charts do not show the values (which are not used in the sumSince calculation).
Log says: 2021-04-04 15:26:18.493 [INFO ] [b.internal.InfluxDBStateConvertUtils] - Could not find item 'null' in registry
The text was updated successfully, but these errors were encountered: