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
Changes to logrotate package are causing issues #155
Comments
Another issue, This is because the
I suggest a |
Final thing, the EmonSD image has a few random log files left that I think will not rotate and could do with being removed before the image is created. |
Do you have this in /var/log/messages ?
I dont know if this is normal |
Seems this is normal and just says that it was restarted as a result of the rotation https://talk.plesk.com/threads/messages-log-is-failing.342098/ |
OK thanks |
This was done/tested on 3.18.0. I think 3.18.1 forced the 2 to be mutually exclusive rather than just a warning. Run the debug command I didn't save the original messages and have not reflashed the card again. |
I've run this command, but it returns no error, just a warning :
I had 2 night crashes on a pi which is commanding pumps and three way valves for heating a building. I thought it was the logrotate problem. But maybe it is somethings else as I am commanding the pumps with the PI gpios, maybe it is not suitable and I should go for dedicated modules. But I dont think a kernel panic can be related to a logrotate problem...it is more related to sd card or hardware problem I think ? |
I was wrong, I do have the original error messages. Many of these are specific to the EmonSD.
|
I also have the logrotate logs not going to var/log.old
did you manage to find how to correct things in order to make them go into /var/log.old ? |
Let's not conflate more than one issue.
Yes
With the contents of
So order config files are read in is
I didn't propose an actual solution as the update process might be a little tricky :) |
Is this closable now? |
Totally different issue.
Try running an update. It should add a |
References
renamecopy
andcopytruncate
override each other logrotate/logrotate#386emonhub
user/grouprenamecopy
line in the00_olddir
config file. deleting the line and restoring it solved the issue.This should be tested with
sudo /usr/sbin/logrotate -d /etc/logrotate.conf
- pay attention to errors in first few lines as config files are read.Suggested changes:
The text was updated successfully, but these errors were encountered: