martomi / chiadog

A watch dog providing a peace in mind that your Chia farm is running smoothly 24/7.
MIT License
457 stars 120 forks source link

network_log_consumer not reconnecting #213

Open jaylinnyc opened 3 years ago

jaylinnyc commented 3 years ago

Describe the bug

When configured harvester with network_log_consumer. After the harvester restart, the main node will continue to report the harvester is offline after it came back online.

Restarting Chiadog for the harvester will fix this issue. I believe this should be a bug than a feature request, which is why i submitted it here.

Environment:

pieterhelsen commented 3 years ago

Since I currently don't have a Windows connection to test with; can you be my guinea pig? :)

I have a potential fix ready on this branch: https://github.com/martomi/chiadog/tree/bugfix/reestablish-ssh-connection

Could you try it out and report back? Simulating a crash can be done by turning off your OpenSSH server on the remote host, but remember that you should only do that when you have direct access to your remote host; if you're logging into the machine over SSH, that will terminate that connection as well.

jaylinnyc commented 3 years ago

Sure, I'll give it a try later today. I'm not on Window either. I'm using macos.

On Sun, May 30, 2021, 12:25 PM pieterhelsen @.***> wrote:

Since I currently don't have a Windows connection to test with; can you be my guinea pig? :)

I have a potential fix ready on this branch: https://github.com/martomi/chiadog/tree/bugfix/reestablish-ssh-connection

Could you try it out and report back? Simulating a crash can be done by turning off your OpenSSH server on the remote host, but remember that you should only do that when you have direct access to your remote host; if you're logging into the machine over SSH, that will terminate that connection as well.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/martomi/chiadog/issues/213#issuecomment-851025568, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANOOX7VHQW2XAE5W5YWGJYLTQJRIZANCNFSM45ZI4DMA .

pieterhelsen commented 3 years ago

Just tested it myself; we're not there yet :) I'll debug some more tomorrow.

sorenfriis commented 3 years ago

Also seeing this on chiadog v0.7 and chia v. 1.2.3