Comments (35)
Same version, same problem here. I run the adapter now only with error log on.
from iobroker.statistics.
this is probably again a problem of the new js-controller
from iobroker.statistics.
no, most likely the adapter is issuuing a setState before the object was really created.
I know that most there is handled by that taskQueue ... so you need to check in depth what happens here
from iobroker.statistics.
the last big refactoring was done by bluefox and probably it is the best to transfer the adapter to the community anyway
from iobroker.statistics.
same problem for me. Is there any solution about the massive log entries?
from iobroker.statistics.
same problem here ... adapter is flooding log since js controller upgrade... anyone working on this ?
from iobroker.statistics.
have upgraded to v1.0.4 today... log entry flooding still happens:
e.g.
statistics.0 | 2021-04-29 08:09:16.918 | warn | (8556) State "statistics.0.temp.avg.stiebel-isg.0.Info.WAERMEPUMPE.WAERMEMENGE.WM_KUEHLEN_SUMME.dayCount" has no existing object, this might lead to an error in future versions
-- | -- | -- | --
statistics.0 | 2021-04-29 08:09:16.918 | warn | (8556) State "statistics.0.temp.avg.stiebel-isg.0.Info.WAERMEPUMPE.WAERMEMENGE.WM_KUEHLEN_SUMME.last" has no existing object, this might lead to an error in future versions
statistics.0 | 2021-04-29 08:09:16.902 | warn | (8556) State "statistics.0.temp.avg.stiebel-isg.0.Info.WAERMEPUMPE.WAERMEMENGE.WM_WRG_SUMME.dayAvg" has no existing object, this might lead to an error in future versions
from iobroker.statistics.
1.0.4 does not declare that this problem is solved.
to avoid the entries a refactoring is necessary, hence the js-controller is checking more in the recent versions.
I have donated the adapter to the community in the hope that my limited time is no longer the blocking point for enhancements
from iobroker.statistics.
I got loads of these messages as well.
I don't really know much about the whole ecosystem, but I wouldn't have thought js controller had anything to do with it.
for me it looks like statistics adapter tries to write / read a key that it neglected to create when enabling statistics on a value.
and no matter what I do it doesn't seem to ever create any of these, though I haven't tried to create them manually to see if it would shut up about it (probably).
so if statistics adapter wants to use those values why does it not check and create them? or why does it skip creating avg
keys when it adds all the other keys just fine?
from iobroker.statistics.
I seem to have the same issue:
statistics.0 | 2021-07-07 22:33:12.269 | warn | (8205) State "statistics.0.temp.avg.javascript.0.Data.Fritz.NewTotalBytesReceived.TB.dayCount" has no existing object, this might lead to an error in future versions |
---|---|---|---|
statistics.0 | 2021-07-07 22:33:12.223 | warn | (8205) State "statistics.0.temp.avg.javascript.0.Data.Fritz.NewTotalBytesReceived.TB.last" has no existing object, this might lead to an error in future versions |
statistics.0 | 2021-07-07 22:33:07.380 | warn | (8205) State "statistics.0.temp.avg.javascript.0.Data.Fritz.NewTotalBytesReceived.TB.dayAvg" has no existing object, this might lead to an error in future versions |
statistics.0 | 2021-07-07 22:33:07.330 | warn | (8205) State "statistics.0.temp.avg.javascript.0.Data.Fritz.NewTotalBytesReceived.TB.daySum" has no existing object, this might lead to an error in future versions |
statistics.0 | 2021-07-07 22:33:07.279 | warn | (8205) State "statistics.0.temp.avg.javascript.0.Data.Fritz.NewTotalBytesReceived.TB.dayCount" has no existing object, this might lead to an error in future versions |
statistics.0 | 2021-07-07 22:33:07.230 | warn | (8205) State "statistics.0.temp.avg.javascript.0.Data.Fritz.NewTotalBytesReceived.TB.last" has no existing object, this might lead to an error in future versions |
Is there anything new on this topic?
from iobroker.statistics.
Ok, please anyone provide a full debug log. I need to see "where" in the flow the relevante mesages appear
from iobroker.statistics.
@Apollon77
How do i create a full debug log?
from iobroker.statistics.
Best use the GitHub version for this test ( restart manually after install from GitHub)
from iobroker.statistics.
@CaneTLOTW In admin enable expert mode then change the loglevel of the instance to "debug". Then best get the log from logfile on disk (/opt/iobroker/log/...) and not from admin and post here or attach as file if too big
from iobroker.statistics.
I did not do the reinstall from GitHub (for now), no time to fix the system in general...
Running 1.0.4 installed via admin interface. What is the differnce between this and git version?
Switched to debug and will collect a bit of log file for you.
from iobroker.statistics.
Should contain a couple of events with warning
iobroker.2021-07-13.log
If you need more I will keep logging on debug for a little while.
from iobroker.statistics.
What is the differnce between this and git version?
The adapter already subscribed to data and started work processes before initialization was done, so Ichanged that to start AFTER init was done ...
from iobroker.statistics.
OK, just updated to 1.0.6:
statistics.0 | 2021-07-13 07:08:12.732 | warn | (11770) State "statistics.0.temp.avg.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.daySum" has no existing object, this might lead to an error in future versions |
---|---|---|---|
statistics.0 | 2021-07-13 07:08:12.679 | warn | (11770) State "statistics.0.temp.avg.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.dayCount" has no existing object, this might lead to an error in future versions |
statistics.0 | 2021-07-13 07:08:12.631 | warn | (11770) State "statistics.0.temp.avg.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.last" has no existing object, this might lead to an error in future versions |
statistics.0 | 2021-07-13 07:12:31.791 | warn | (11770) State "statistics.0.temp.avg.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.daySum" has no existing object, this might lead to an error in future versions |
---|---|---|---|
statistics.0 | 2021-07-13 07:12:31.739 | warn | (11770) State "statistics.0.temp.avg.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.dayCount" has no existing object, this might lead to an error in future versions |
statistics.0 | 2021-07-13 07:12:31.696 | warn | (11770) State "statistics.0.temp.avg.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.last" has no existing object, this might lead to an error in future versions |
statistics.0 | 2021-07-13 07:12:31.694 | debug | (11770) [STATE CHANGE] new last for "temp.avg.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.last: 26.6 |
statistics.0 | 2021-07-13 07:12:31.689 | debug | (11770) [STATE CHANGE] Increase temp.sumDelta.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.year on 26.6 to 4352706.5024 |
statistics.0 | 2021-07-13 07:12:31.683 | debug | (11770) [STATE CHANGE] Increase temp.sumDelta.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.quarter on 26.6 to 2001333.2016 |
statistics.0 | 2021-07-13 07:12:31.678 | debug | (11770) [STATE CHANGE] Increase temp.sumDelta.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.month on 26.6 to 705600.0008 |
statistics.0 | 2021-07-13 07:12:31.673 | debug | (11770) [STATE CHANGE] Increase temp.sumDelta.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.week on 26.6 to 16506.6 |
statistics.0 | 2021-07-13 07:12:31.664 | debug | (11770) [STATE CHANGE] Increase temp.sumDelta.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.day on 26.6 to 2986.6 |
statistics.0 | 2021-07-13 07:12:31.654 | debug | (11770) [STATE CHANGE] Increase temp.sumDelta.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.hour on 26.6 to 186.6 |
statistics.0 | 2021-07-13 07:12:31.639 | debug | (11770) [STATE CHANGE] Increase temp.sumDelta.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.15Min on 26.6 to 186.6 |
statistics.0 | 2021-07-13 07:12:31.604 | debug | (11770) [STATE CHANGE] avg call: hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER value 26.6 |
statistics.0 | 2021-07-13 07:12:31.603 | debug | (11770) [STATE CHANGE] stateChange => 344359.9 [true] |
statistics.0 | 2021-07-13 07:12:31.602 | debug | (11770) [STATE CHANGE] ======================= hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER ======================= |
from iobroker.statistics.
Ok, that helped. I found a case where in theory object creations are blocked and so not finally processed. Please install GitHub version and try again. please provide log if still an issue
from iobroker.statistics.
Ok, I foujd another case, so please use version from NOW (10:00) How it's looking?
from iobroker.statistics.
I see, how to switch to GIT version?
In Admin there is a github symbol in export mdoe I think where you can do a"custom install". just chose this adapter fromthe selection and you instakl the github version. Then do a manual restart after install
from iobroker.statistics.
Thanks!
will test tonight and report back!
from iobroker.statistics.
just installed latest version.
Logging now
I got this output during installation:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@^1.0.7 (node_modules/iobroker.info/node_modules/osx-temperature-sensor):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/@azure/core-auth/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/@azure/ms-rest-js/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/mssql/package.json'
+ [email protected]
updated 1 package in 17.114s
54 packages are looking for funding
run `npm fund` for details
root@iobroker:/opt/iobroker#```
from iobroker.statistics.
Output are the usual warnings vrfrom npm for szuff ... all good
from iobroker.statistics.
Still this:
statistics.0 | 2021-07-13 16:30:53.491 | warn | (18909) State "statistics.0.temp.avg.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.daySum" has no existing object, this might lead to an error in future versions |
---|---|---|---|
statistics.0 | 2021-07-13 16:30:53.440 | warn | (18909) State "statistics.0.temp.avg.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.dayCount" has no existing object, this might lead to an error in future versions |
statistics.0 | 2021-07-13 16:30:53.381 | warn | (18909) State "statistics.0.temp.avg.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.last" has no existing object, this might lead to an error in future versions |
statistics.0 | 2021-07-13 16:30:53.378 | debug | (18909) [STATE CHANGE] new last for "temp.avg.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.last: 26.7 |
statistics.0 | 2021-07-13 16:30:53.371 | debug | (18909) [STATE CHANGE] Increase temp.sumDelta.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.year on 26.7 to 4358919.9024 |
statistics.0 | 2021-07-13 16:30:53.361 | debug | (18909) [STATE CHANGE] Increase temp.sumDelta.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.quarter on 26.7 to 2007546.6016 |
statistics.0 | 2021-07-13 16:30:53.350 | debug | (18909) [STATE CHANGE] Increase temp.sumDelta.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.month on 26.7 to 711813.4008 |
statistics.0 | 2021-07-13 16:30:53.344 | debug | (18909) [STATE CHANGE] Increase temp.sumDelta.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.week on 26.7 to 22720 |
statistics.0 | 2021-07-13 16:30:53.336 | debug | (18909) [STATE CHANGE] Increase temp.sumDelta.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.day on 26.7 to 9200 |
statistics.0 | 2021-07-13 16:30:53.329 | debug | (18909) [STATE CHANGE] Increase temp.sumDelta.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.hour on 26.7 to 480 |
statistics.0 | 2021-07-13 16:30:53.314 | debug | (18909) [STATE CHANGE] Increase temp.sumDelta.hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER.15Min on 26.7 to 26.7 |
statistics.0 | 2021-07-13 16:30:53.297 | debug | (18909) [STATE CHANGE] avg call: hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER value 26.7 |
statistics.0 | 2021-07-13 16:30:53.297 | debug | (18909) [STATE CHANGE] stateChange => 350573.3 [true] |
statistics.0 | 2021-07-13 16:30:53.296 | debug | (18909) [STATE CHANGE] ======================= hm-rpc.0.PEQ0544431.1.ENERGY_COUNTER ======================= |
Anything I have to do? After install I stopped and started statistics
from iobroker.statistics.
Then full debaug log please again as before. I need the log beginning with the satrt of the adapter to verify things
from iobroker.statistics.
Update was around 16:15
iobroker.2021-07-13.log
from iobroker.statistics.
Der Adapter restart (nach Update) war dann 16:27??
from iobroker.statistics.
Ja, das müsste passen. hatte vergessen Ihn vor dem Update zu stoppen.
Habe Ihn dann gestoppt, nochmal den install laufen lassen und dann gestartet.
from iobroker.statistics.
@GermanBluefox Hm ... here I need a logic advice.
Code in https://github.com/iobroker-community-adapters/ioBroker.statistics/blob/master/main.js#L1402 handled the case (obj.avg && !obj.sumDelta)
... and create the "avg" objects. Some lines down we have the code handling (obj.sumDelta)
but this is not creatung the avg objects. means in fact that they are missing because no code handles the (obj.avg && obj.sumDelta)
. case - and the log shows exactly such a configured object.
Because I'm not that deep in the internals ... whats the change needed?
from iobroker.statistics.
Any news on this?
from iobroker.statistics.
Please test 1.0.8
from iobroker.statistics.
@CaneTLOTW Can oyu please try it? I personally do not expect to be ficed because the avg objects should still not be created, but maybe I was looking wrong.
In this case sumDelta AND avg are true ... and in https://github.com/iobroker-community-adapters/ioBroker.statistics/blob/master/main.js#L1366 there should be still no logic to create avg states for this case because https://github.com/iobroker-community-adapters/ioBroker.statistics/blob/master/main.js#L1407 is not executed
from iobroker.statistics.
Hi,
1st of all thanks a lot for the help here :)
No warning in log so far. I will keep an eye on it and report back again in the morning.
But it seems to be fixed :)
from iobroker.statistics.
Cool, then we close here
from iobroker.statistics.
Related Issues (20)
- avg folder shows minmax values HOT 1
- Frage: Falschen Wert korrigieren HOT 1
- Update stable version in repo from 2.2.0 to 2.3.0 HOT 9
- rate_per_time_unit = inf HOT 2
- Timer to consumption HOT 1
- Decreasing values should be also calculated HOT 1
- Error: The id "save.sumGroup." is invalid. Ids are not allowed to end in "."
- TypeError: date.format is not a function
- RangeError: Array buffer allocation failed
- Problems with update to 2.3.0 HOT 3
- SumDelta -> Week consumption is not calculated correctly HOT 5
- Daily average is reset at midnight
- More detailed option for seconds and minutes
- High CPU usage of 2.3.0 vs. 2.2.0 (3 times) HOT 4
- Adapter only partly working or strange behavior: HOT 4
- Question: Is it possible to manually insert old data? HOT 3
- some thoughts about (missing/wrong) UNITS HOT 4
- Update stable version in repo from 2.3.0 to 2.4.0 HOT 1
- MinMaxWerte nicht korrekt HOT 9
- Livewerte glätten HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iobroker.statistics.