Some nodes are not waking up within 24 hours #66
Comments
I have reviewed relevant log files and have some more information about what's happening in the case of this issue. The general sequence of events is like this:
Here are two examples with relevant lines extracted from the farmerbot log files. Node 5248Log file: Colossus06.log.gz
Note how the shutdown after random wakeup happens almost an hour before the shutdown for regular periodic wakeup. Then when the nodes comes back online for its periodic wakeup, it happens about ten minutes too late for the 24 hour cutoff (6:31 vs 6:21). Node 4486Log file: Colossus02.log.gz
Timing here is very similar to before. In this case, the node wakes up 20 minutes too late. Suggested FixThe issue here seems to be that nodes which have a random wakeup just before periodic wakeup time are not triggered for a periodic wakeup. To me, the most logical fix is to just not schedule random wakeups so close to the periodic wakeup time. Another approach would be to keep the nodes awake so that they go to sleep at the same time as they would at a periodic wakeup. |
Thanks @scottyeager for the detailed issue. |
The problem is that nodes will miss out on minting if they don't wake up within 24 hours of going to sleep (currently there is a one hour grace period so nodes in these examples will mint normally, but we want to remove that soon). Farmerbot behavior needs to change such that nodes will always stay awake for the set duration after periodic wakeup time, no matter what happens with random wakeups. I see two ways to accomplish this:
|
Since the update to
v0.2.2
, farmers using the farmerbot have reported that some of their nodes are not waking up within 24 hours of going standby.We'll update this issue with farmerbot logs as they come in.
The text was updated successfully, but these errors were encountered: