Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED cannot open '/var/log/maillog' for reading: No such file or directory

Discussion in 'E-mail Discussion' started by Vinayak, Mar 17, 2019.

Tags:
  1. Vinayak

    Vinayak Well-Known Member

    Joined:
    Jun 27, 2003
    Messages:
    280
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Bharat
    cPanel Access Level:
    Root Administrator
    How come this is missing from all new servers that were setup yesterday

    tail -f /var/log/maillog
    tail: cannot open '/var/log/maillog' for reading: No such file or directory
    tail: no files remaining


    CENTOS 7.6 vzcontainer
    v78.0.17
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,009
    Likes Received:
    2,123
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Vinayak,

    Can you share the specific method you used to install cPanel & WHM? Was it installed as part of an image offered by your VPS hosting provider, or did you install it manually after provisioning a minimal instance of CentOS 7?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Vinayak

    Vinayak Well-Known Member

    Joined:
    Jun 27, 2003
    Messages:
    280
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Bharat
    cPanel Access Level:
    Root Administrator
    Hello @cPanelMichael

    I installed cPanel manually as instructed in your docs.

    These are on OpenVZ 7 node (owned and managed by myself), CentOS 7 minimal template provided by Virtualizor.

    I have now noticed that same issue is there on old OpenVZ containers, node having CentOS release 6.10, container has CENTOS 7.6 virtuozzo v78.0.17
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,009
    Likes Received:
    2,123
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Vinayak,

    Can you submit a support ticket so we can take a closer look at an affected system? You can post the ticket number here and we'll link this thread to it.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPMarkF

    cPMarkF *nix Technical Analyst Staff Member

    Joined:
    Feb 4, 2013
    Messages:
    17
    Likes Received:
    8
    Trophy Points:
    78
    cPanel Access Level:
    Root Administrator
    Ticket # 11718553
     
  6. Vinayak

    Vinayak Well-Known Member

    Joined:
    Jun 27, 2003
    Messages:
    280
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Bharat
    cPanel Access Level:
    Root Administrator
    cPanel tickets ID# 11718553 was opened

    Resolution

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPMarkF

    cPMarkF *nix Technical Analyst Staff Member

    Joined:
    Feb 4, 2013
    Messages:
    17
    Likes Received:
    8
    Trophy Points:
    78
    cPanel Access Level:
    Root Administrator
    The issue was that in the OpenVZ VM template, the operating system provided rsyslog package was not installed. cPanel does not rely on rsyslog for any sort of cPanel logging as rsyslog is strictly for the OS logging system, which is why it was not installed during the cPanel installation procedure, even though it was missing from the OS install.

    After installing rsyslog from the OS repositories, and activating it in systemd, /var/log/maillog was created and began to populate:

    Code:
    yum install rsyslog
    systemctl enable rsyslog
    systemctl start rsyslog
    Please note that in the past, rsyslog has been known to drive up CPU usage in OpenVZ containers, which is why most likely this package was not included in the VM template/OS install. If you choose to install rsyslog on your OpenVZ container, please ensure to monitor your system for any excessive CPU usage which may be attributed to the rsyslog daemon.

    Edit: Should have reloaded the thread to see customer already posted the outcome of the ticket. :)
     
    cPanelMichael and Infopro like this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice