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 /usr/lib64/sa/sa2 -A error

Discussion in 'General Discussion' started by mvandemar, Aug 2, 2018.

  1. mvandemar

    mvandemar Well-Known Member

    Joined:
    Jun 17, 2006
    Messages:
    70
    Likes Received:
    1
    Trophy Points:
    158
    I just got an error message email from my server, subject "Cron <root@vps3> /usr/lib64/sa/sa2 -A", message "End of system activity file unexpected". I found 2 other threads on here with the same message, but neither seems to apply to me since a) I am not out of disk space, and b) I haven't deleted any binaries. I do get the same message when I run the command manually, and here is the output of ls -la /var/log/sa:

    Code:
    [root@vps3 ~]# /usr/lib64/sa/sa2 -A
    End of system activity file unexpected
    [root@vps3 ~]# ls -lsa /var/log/sa
    total 1868
      0 drwxr-xr-x.  2 root root     93 Aug  3 00:00 .
      4 drwxr-xr-x. 12 root root   4096 Aug  2 23:46 ..
    408 -rw-r--r--.  1 root root 415328 Aug  1 23:50 sa01
    404 -rw-r--r--.  1 root root 410368 Aug  2 23:50 sa02
      4 -rw-r--r--.  1 root root   3488 Aug  3 00:00 sa03
    368 -rw-r--r--.  1 root root 375104 Jul 31 23:50 sa31
    312 -rw-r--r--.  1 root root 315545 Aug  1 23:53 sar01
     84 -rw-r--r--.  1 root root  83846 Aug  2 23:55 sar02
    284 -rw-r--r--.  1 root root 287793 Jul 31 23:53 sar31
    Any suggestions would be welcome, thanks.

    -Michael
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,204
    Likes Received:
    228
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @mvandemar

    That error is typically associated with the latest sysstat log file being corrupted. What happens when you run the following:

    Code:
    sar -q |tail

    Code:
    sar -q -f /var/log/sa/sa02 1>/dev/null
    Code:
    sar -q -f /var/log/sa/sa03 1>/dev/null
    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. mvandemar

    mvandemar Well-Known Member

    Joined:
    Jun 17, 2006
    Messages:
    70
    Likes Received:
    1
    Trophy Points:
    158
    @cPanelLauren Thanks, this is the results:

    Code:
    [root@vps3 ~]# sar -q | tail
    01:10:01 PM         1       220      0.07      0.07      0.05         0
    01:20:01 PM         2       228      0.14      0.11      0.06         0
    01:30:01 PM         2       225      0.07      0.08      0.06         0
    01:40:01 PM         2       224      0.07      0.08      0.07         0
    01:50:01 PM         2       228      0.23      0.16      0.11         0
    02:00:01 PM         4       226      0.08      0.08      0.10         0
    02:10:01 PM         2       225      0.12      0.11      0.10         0
    02:20:01 PM         2       227      0.04      0.08      0.10         0
    02:30:01 PM         5       227      0.02      0.06      0.09         0
    Average:            2       223      0.11      0.11      0.12         0
    [root@vps3 ~]# sar -q -f /var/log/sa/sa02 1>/dev/null
    End of system activity file unexpected
    [root@vps3 ~]# sar -q -f /var/log/sa/sa03 1>/dev/null
    [root@vps3 ~]#
    
    -Michael
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,204
    Likes Received:
    228
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @mvandemar

    So it was indeed yesterday's sysstat logs that were corrupt based on this:

    Code:
    [root@vps3 ~]# sar -q -f /var/log/sa/sa02 1>/dev/null
    End of system activity file unexpected
    But today's logs look to be fine. I can't say specifically why it happened yesterday though. Did anything unusual happen on the server yesterday?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. mvandemar

    mvandemar Well-Known Member

    Joined:
    Jun 17, 2006
    Messages:
    70
    Likes Received:
    1
    Trophy Points:
    158
    About 20 hours prior to getting that email my server ran out of space, but I fixed it right away. Do you think that could have impacted it?

    -Michael
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,204
    Likes Received:
    228
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @mvandemar

    That would be exactly it. Nearly every time I've seen this issue the server had run out of space at the time, whether or not the issue had been resolved or not.

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    mvandemar likes this.
  7. mvandemar

    mvandemar Well-Known Member

    Joined:
    Jun 17, 2006
    Messages:
    70
    Likes Received:
    1
    Trophy Points:
    158
    Awesome, thanks!

    -Michael
     
  8. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,204
    Likes Received:
    228
    Trophy Points:
    173
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @mvandemar

    You're most welcome! I'm glad its working as expected now and I'm glad I could help.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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