Skip to content
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

Weekly log clean complains about missing files #100

Open
Depfrost opened this issue Jan 22, 2023 · 0 comments
Open

Weekly log clean complains about missing files #100

Depfrost opened this issue Jan 22, 2023 · 0 comments

Comments

@Depfrost
Copy link

Depfrost commented Jan 22, 2023

I have noticed that the script /home/pinodexmr/weekly-log-clean.sh , scheduled to run every Sunday at 12pm with cron produces a lot of these error messages:

rm: cannot remove '/home/pinodexmr/p2pool/build/p2pool.log': No such file or directory
rm: cannot remove '/home/pinodexmr/*dialog*': No such file or directory

Occasionally I also get this message:
rm: cannot remove '/home/pinodexmr/.bitmonero/*bitmonero.log*': No such file or directory

I have setup a mail server on my pi4 and it has sent 60 emails (1 email every minute from 12h to 13h) with this message to [email protected] ^^'

One solution could be to run this script via cron once a week, instead of 60 times a week:
0 12 * * 7 /home/pinodexmr/weekly-log-clean.sh
instead of
* 12 * * 7 /home/pinodexmr/weekly-log-clean.sh

Another solution could be to check if theses files exist before attempting to remove them?

I hope this helps, thank you for this amazing project and developing the monero ecosystem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant