gmeks / myUplinkSmartConnect

This program connect to the myuplink.com and adjust the schedule of Høiax CONNECTED hot water heaters, and adjust the schedule so that it uses electricity when the price is low.
8 stars 1 forks source link

Stack overflow. #3

Closed hghuns closed 2 years ago

hghuns commented 2 years ago

Hi.

From this weekend the docker version started crashing. It's random and can go fine for hours before it stops working and goes in to a "restart loop"

The log from the docker:

2022-10-04 18:05:14.734829+00:00[18:05:14 WRN] Water heater target temperature is incorrect (65) for M2 (65C, 1300W) , changing to 75 2022-10-04 18:05:14.735831+00:00[18:05:14 WRN] Water heater desired power level is incorrect for M2 (65C, 1300W) , changing from Watt2000 to Watt2000 2022-10-04 18:05:14.749307+00:00Stack overflow. 2022-10-04 18:05:14.819075+00:00Repeat 261581 times: 2022-10-04 18:05:14.819099+00:00-------------------------------- 2022-10-04 18:05:14.819104+00:00at MyUplinkSmartConnect.WaterHeaterModeLookup.get_WaterHeaterModes() 2022-10-04 18:05:14.819108+00:00-------------------------------- 2022-10-04 18:05:14.819113+00:00at MyUplinkSmartConnect.JobReScheuleheating+d1.MoveNext() 2022-10-04 18:05:14.819125+00:00at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1+AsyncStateMachineBox1[[System.Boolean, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MyUplinkSmartConnect.JobReScheuleheating+d1, MyUplink-smartconnect, Version=1.1.0.4, Culture=neutral, PublicKeyToken=null]].ExecutionContextCallback(System.Object) 2022-10-04 18:05:14.819135+00:00at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) 2022-10-04 18:05:14.819139+00:00at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1+AsyncStateMachineBox1[[System.Boolean, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MyUplinkSmartConnect.JobReScheuleheating+d1, MyUplink-smartconnect, Version=1.1.0.4, Culture=neutral, PublicKeyToken=null]].MoveNext(System.Threading.Thread) 2022-10-04 18:05:14.819147+00:00at System.Runtime.CompilerServices.AsyncTaskMethodBuilder1+AsyncStateMachineBox1[[System.Boolean, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[MyUplinkSmartConnect.JobReScheuleheating+d1, MyUplink-smartconnect, Version=1.1.0.4, Culture=neutral, PublicKeyToken=null]].MoveNext() ....

Log from Truenas Scale: Oct 4 20:10:41 nas kernel: traps: .NET ThreadPool[1060017] general protection fault ip:7f48da43d602 sp:7f48d9403b90 error:0 in libc-2.31.so[7f48da43d000+14b000] Oct 4 20:10:41 nas kernel: Process 1(.NET ThreadPool) has RLIMIT_CORE set to 1 Oct 4 20:10:41 nas kernel: Aborting core

Have troubleshooted, readded the docker, created a new myuplink account but can't find any solutions. When it's working it is not updating the schedule, only pulling data.

Not sure if this is the correct place, but hope so, it has been a very useuful tool so far.

gmeks commented 2 years ago

It should say the version when it starts can you confirm the version? Can i get a full logs

Whatever is the cause, this crash is a bug. Its the correct place

gmeks commented 2 years ago

Based on the log i have, i change.. You can try erlingsaeterdal/myuplinksmartconnect:1.1.0.6

hghuns commented 2 years ago

Changed to 1.1.0.6 (1.1.0.6_2208.0.0) Schedule is updated and looks like it's working as normal, will confirm tomorrow if it is still normal. Thanks :)

hghuns commented 2 years ago

Still working and no more errors. :)

gmeks commented 2 years ago

Thats good, if you encouter other errors let me know :)