-
Notifications
You must be signed in to change notification settings - Fork 121
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
ChiaDog is not recovering from a remote harvester being down #283
Comments
I see the same issue when using the |
@sorenfriis Is there any reason why you would prefer to expose the whole box (using SSH), vs. just local mapping the log folder with read only privileges? You can map Samba or NFS, so any box/OS combination will work. |
@Jacek-ghub I am only letting chiadog in over SSH with a dedicated user who only has read access to the log file |
I would also suggest that just one notification about the harvester being down event is being sent. I guess, we all know what to do when we get notified, so those extra notifications are both redundant and (to me only?) annoying. Saying that, I would also like to see a notification when a bunch of plots is being added (what would indicate connecting a new drive with plots - moving HDs around). That notification would be most often complementary to the one that is being sent when plots are disappearing from the harvester (HD unplugged from the plotter). This way, it would be a good notification that the added drive was recognized by the harvester, so we would not need to relay on rather hopeless full node UI. |
Like the suggestions & ideas! Happy to provide guidance if you or anyone else is interested to tackle them in code :-) |
Sorry, I don't know anything about Python, so potentially my questions will be rather dumb. I did test changes to daily status messages, but it was a pain sitting in a root folder, and trying to grep stuff. Which files are involved in opening those log files? |
You can see high-level architecture diagram here - it should make the file structure more intuitive. The log consumers are defined in log_consumer.py. Since you have mapped the remote log file to the local filesystem, the most relevant part of the code is in the FileLogConsumer here (we use pygtail): chiadog/src/chia_log/log_consumer.py Line 75 in dd9f46d
|
Got the same behaviour here. The only way I found right now is to kill the chiadog process and restart it. |
Hi, I have ChiaDog running on a CentOS box. I mapped my harvesters to local folders. Works great.
However, when a harvester box is restarted, ChiaDog is stuck on not seeing that log file anymore, until I restart ChiaDog for that harvester. Maybe when ChiaDog is detecting harvester down (no access to the file), it should try to check whether the file access has been restored?
A clear and concise description of what the bug is and how it can be reproduced.
Environment:
Here is the exception generated when harvester went down:
The text was updated successfully, but these errors were encountered: