Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 21
  1. #1
    Member
    Join Date
    Apr 2003
    Posts
    114

    Question log files are empty

    Hello.

    On one server with CentOS 4.1 and cpanel 10.2.0 C131 we got strange problems. System has empty logs like messages,secure,maillog.... all files from /etc/syslog.conf

    Log files for exim,bfd,..are work ok and are logged like they should. So we compare syslog.con file with other working server and nothing wrong.

    Can aynone help with this puzzle? I would be appreciated to anyone to help me fix this.

    syslog.conf

    # Log all kernel messages to the console.
    # Logging much else clutters up the screen.
    #kern.* /dev/console

    # Log anything (except mail) of level info or higher.
    # Don't log private authentication messages!
    *.info;mail.none;authpriv.none;cron.none /var/log/messages

    # The authpriv file has restricted access.
    authpriv.* /var/log/secure

    # Log all the mail messages in one place.
    local0.notice;local0.debug;mail.*;mail.none;mail.info;local0.info /var/log/maillog


    # Log cron stuff
    cron.* /var/log/cron

    # Everybody gets emergency messages
    *.emerg *

    # Save news errors of level crit and higher in a special file.
    uucp,news.crit /var/log/spooler

    # Save boot messages also to boot.log
    local7.* /var/log/boot.log

    /etc/logrotate.d/syslog


    /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron {
    sharedscripts
    postrotate
    /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    /etc/rc.d/init.d/antirelayd restart
    endscript
    }

    {
    Regards.

  2. #2
    Member nickb's Avatar
    Join Date
    Feb 2005
    Location
    India
    Posts
    347

    Default

    what about syslog service..is it running?
    Either Zero Or Hundred...

  3. #3
    Member
    Join Date
    Apr 2003
    Posts
    114

    Default

    Yes it's runing.

    syslogd (pid 2078) is running...
    klogd (pid 2082) is running...

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Posts
    207
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    we're having a similar problem on centos 4.1. The logs get rotated, but syslogd never gets hupped (eventhough it's in the logroate file) so the log file never gets closed and it keeps logging to the .1 file.

    Anyone else seeing this?

    Frank

  5. #5
    Member
    Join Date
    Apr 2003
    Posts
    114

    Default

    We fixed this this with restarting syslog. After that things are fixed and works ok.

    Regards.

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Posts
    207
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    We know that restarting syslogd (actually kill -s HUP PID) "fixes" it. The problem is that the kill command IS in the /etc/logrotate.d/syslog file and it should happen automagically. It's not a CentOS 4.1 issue either becuase we have non-cpanel CentOS 4.1 boxes and it works properly.

    Frank

  7. #7
    Member
    Join Date
    Mar 2005
    Posts
    75

    Default

    i have exact same problem centos 4.1 cPanel 10.5.0-C49

  8. #8
    Member
    Join Date
    Mar 2004
    Location
    Ayr, North Queensland, Australia
    Posts
    328

    Default

    I have a centos 4.1 box and i have had no recent problems with syslogd, and im running edge.

    Regards,
    Brent

    Talk at cPanel IRC
    cPanel IRC Logs (Publicly available) @ My Site

  9. #9
    Member
    Join Date
    Mar 2005
    Posts
    75

    Default

    i upgraded to edge last week...and noticed today that again they havent rotated..had to restart sysklogd...

  10. #10
    Member Rooter's Avatar
    Join Date
    Apr 2003
    Location
    Houston, Texas, U.S.A.
    Posts
    146
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I am also experiencing this, but on both RHEL4 and CentOS4, both with the latest CURRENT builds of cPanel/WHM. I am still searching for a permanent solution instead of restarting syslogd manually.
    The Root Underground | [TRU] - Houston, Texas, U.S.A.
    TRU Networks Hosting Services www.trunetworks.com
    TRU Domains Registrar Services www.trudomains.com (Reseller/Bulk discounts available.)
    Fried nublets for breakfast, yum... [TRU] Clan Gaming Guild www.truclan.org

  11. #11
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2004
    Posts
    392

    Default

    hey all

    Looks like the command in the logrotate fields isnt working like it should.

    /usr/bin/killall -HUP syslogd
    if i run that command , then logging into the file /var/log/maillog just stops.

    if i then run /etc/init.d/syslogd restart it willl start logging again.

    very weird..

    cheers
    andy
    UK Managed Hosting
    UK Linux Support
    The information given above is intended to be advice only.

  12. #12
    Member
    Join Date
    Apr 2003
    Posts
    19

    Default

    I have a FC2 machine and I also come across this issue about every week. Is there a solution?

  13. #13
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Posts
    207
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    At least for us, it was the logrotate program not linking the fact that we have /tmp (and /var/tmp) mounted noexec. We created a dummy /tmp file elsewhere and then added this to /etc/cron.daily/logrotate:

    #!/bin/sh

    TMPDIR=/somewhere/tmp
    export TMPDIR


    /usr/sbin/logrotate /etc/logrotate.conf

    (the 2 bolded lines are the lines added).

    Frank

  14. #14
    Member
    Join Date
    Apr 2003
    Posts
    19

    Default

    Ah; I see. That is most likely the problem (noexec).

    Thank you for the reply.

    - derek

  15. #15
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Yup, that's a long standing bug in FC2 which the OS developers said they weren't going to fix shortly after FC2 went EOL.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Empty Error Log
    By Fenwick in forum New User Questions
    Replies: 2
    Last Post: 08-25-2008, 03:45 PM
  2. Empty Transfer log??
    By gounder in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-15-2006, 06:11 AM
  3. Empty Domain log file
    By PDM in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 03-16-2006, 03:00 PM
  4. /var/log/messages, etc suddenly empty!?
    By bataylor in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 06-20-2004, 05:26 PM
  5. Raw access log archive empty
    By EMS in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-10-2004, 07:42 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube