Closed jarrah42 closed 4 years ago
Can you please attach a packet capture? I need to go outside to my pumps to replicate this but the air quality here in California is really dangerous right now so trying to stay indoors. Thx.
replay-1.zip packet capture when pump can be started/stopped
replay-3.zip packet capture after restarting controller; unable to start pump
Ok, this should be fixed. Try again.
I updated from next and the pump doesn't start at all now. Here's the log:
I can confirm that master is able to start the pump, but next doesn't.
Hm, I put your config files in my app and started up (on next
) and it is trying to communicate with the pumps. (I'm not outside now so don't have the incoming packets but do see the outgoing ones.)
However, in your logs I see: [8/24/2020, 10:59:22 AM] error: undefined
. I think we're hitting an error and we should be restarting but probably don't have the right context. I just pushed up a change to restart the pump cycle differently. Can you try again? The app should go through the pump cycles now but I may need to do some more digging to find out why the undefined error happened (if it can be reproduced consistently).
I've noticed that if the pump stops for a while the iChlor starts spitting out messages like:
warn: Message aborted after 3 attempt(s): 16,2,80,17,28,143,16,3 warn: error with chlorinator: Message aborted after 3 attempt(s): 16,2,80,17,28,143,16,3
Not sure if that has anything to do with it. Anyway, I'll give it a try shortly and let you know. Thanks!
That could mean the error is coming from the comms/messages components more than the pumps/chlorinators themselves.
The latest version seems to have resolved the issues. The pump starts now, and when I stop the controller and restart it, I can restart the pump. The only unusual thing I saw was this message when I set the chlorinator:
[8/25/2020, 5:09:24 PM] error: schlor.get is not a function
Thanks!
Describe the bug After restarting the controller when it is shut down unexpectedly (pm2 stop or crash), it is no longer able to control the pump.
To Reproduce Steps to reproduce the behavior:
pm2 stop
or kill itExpected behavior The controller should reset its state and the state of the pumps (e.g. to off) when it is first started.
Workaround The only way to get the controller working again is to stop it, remove both the poolConfig.json and poolState.json files, restart the controller, and reconfigure the UI.