New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"tail -F" sometime fail to follow new log file #134
Comments
Thanks for this insight! This seems like it could provide a cross-platform solution for LOCAL harvesters For remote harvesting, however, this will not work. One possible alternative is Paramiko's |
Meanwhile I think the following
|
It would likely help, but it's still not very pythonic and does not work for cross-platform implementation. |
This bug is what prevent me to use this software for production monitoring. Overall, very good job. Concerning the issue, I have a couple ideas on how it ccould be at least be dirty fixed before making better code for the long run. The simpliest drity fix for now could be: When 'Your harvester appears to be offline! No events for the past X seconds.' is detected, the code could just try to reload log consumer first before sending warning. |
Also, on windows, the current never work at all. (As soon as the logrotate code from chia logging module is executed, the harvester offline warning appear and the only is to kill and restart chiadog) |
I can second this. Using chiadog in WSL for monitoring my windows plotter and farmer. My files split roughly every 22minutes and I am getting spammed with "Your harvester appears to be offline" messages. |
There's a branch currently in Pull Request that will likely solve this issue. |
Thank you, Pull request should definitely save this. Looking forward to the merge. |
Thank you! I see the code was merged in dev branch, when can we expect an official release with this upgrade implemented? |
Official release is out. This is hopefully resolved, please reopen issue if not. |
On Linux it looks like
tail -F
may not reliably follow new log files. When this happens, chiadog will report "Your harvester appears to be offline", and inspecting the/proc
file system shows that thetail
process is still opening the old log file, eg..chia/mainnet/log/debug.log.11
.Environment:
The text was updated successfully, but these errors were encountered: