update on: crond stopped, still fills /var/log/messages with millions of messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2017-04-21 08:59, M. Fioretti wrote:
Greetings,

a few minutes ago, I realized that, on a Fedora 25 box I have...

- my /var/log/messages was almost 15 MILLIONS lines long.
- 99% of those lines (~20/second) are like this:

crond: No configuration file found at /home/marco/.esmtprc or /etc/esmtprc

but the only line in my own crontab is a shell script that runs every
minute. When I run that script manually, from the command line, it
yelds no error or warning. From what I can see, this flood of crond
warnings started about a week ago, but I've used
that computer almost nothing in the last two weeks.

I should install a local MDA on this box, I guess, but before that I
should really figure out what is making crond try 20 times a second to
send an email, and make it
stop. Any ideas?

greetings again, thanks to all who commented, and some more info.

First of all, the problem, whatever it was, disappeared after a dnf update and reboot. Not sure if there actually is a connection. Fact is, what I have now in
/var/log is:

[marco@polaris ~]$ sudo ls -l /var/log/messages*
-rw-------. 1 root root    3839022 Apr 24 11:54 /var/log/messages
-rw-------. 1 root root 1506778911 Apr 23 03:21 /var/log/messages-20170423

that is, the file mentioned in my original email was moved by logrotate ~30 hours ago, and so far the CURRENT /var/log/message has ZERO lines from crond.
So basically the problem disappeared by itself...


Answering to some questions and comments from those who answered:

- by "(~20/second)" I meant "twenty times every second", not "once every 20 seconds". Otherwise the file wouldn't have grown to 15 million lines. And the shell script invoked by cron does not have any sleep instruction in it. It makes a database query, and then runs a perl script that compares those data with others, in other files, just once.

- about:

You might be able to simply remove the esmtp package from your system
if you don't want to configure it.  I don't know what cronie does if
/usr/sbin/sendmail doesn't exist

I tried this. Not 100% sure now, but IIRC it didn't make any difference. Besides, I DO remember that I created an empty esmtprc, for testing, and
then when restarted crond would complain that:

"Local delivery not possible without a MDA"

Thanks,
Marco


--
http://mfioretti.com
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux