The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CPbackup fails with cpanel.config.cache

Discussion in 'Data Protection' started by Cyberbest, Jul 9, 2012.

  1. Cyberbest

    Cyberbest Member

    Joined:
    Sep 18, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Some nights the backup fails with this error:
    /bin/gtar: /var/cpanel/cpanel.config.cache: Cannot stat: No such file or directory
    Other times it's just fine. I can never find this cpanel.config.cache file and this only happens on one of my servers. I have no idea where this is coming from and a search of the forum don't indicate this is a know problem? Luckily, this only affects the full backup of /var/cpanel

    Anyone have any ideas? I already updated CPanel to the latest, with no help.

    Thanks,
    Joe
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. Cyberbest

    Cyberbest Member

    Joined:
    Sep 18, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I don't think it's a quota issue as we seem to have plenty of disk space and i-nodes:


    Server: ~# df -ih
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/xvda5 19M 277K 19M 2% /
    /dev/xvda3 501K 123 501K 1% /tmp
    /dev/xvda1 128K 51 128K 1% /boot
    tmpfs 183K 1 183K 1% /dev/shm

    Server: ~# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/xvda5 72G 33G 36G 48% /
    /dev/xvda3 1.9G 88M 1.8G 5% /tmp
    /dev/xvda1 494M 29M 440M 7% /boot
    tmpfs 1.1G 0 1.1G 0% /dev/shm

    But then again, considering I don't know the answer I won't rule anything out.

    Thanks,
    Joe
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    During the backup if you see the message:

    This simply means that the file existed during the backup and no longer exists when the gtar program created the archive. Because the file /var/cpanel/cpanel.config.cache is created and deleted automatically by cPanel and only a cache file, it is not necessary for your backups because it is simply a compressed copy of the /var/cpanel/cpanel.config file (and that file itself is being backed up).

    You probably also see the following:

    This message would simply mean that the file previously indicated as not archiving is missing. If the only missing file was /var/cpanel/cpanel.config.cache, then this error can be disregarded as it only refers to a temporary file that was deleted before the archive was completed.
     
  5. Cyberbest

    Cyberbest Member

    Joined:
    Sep 18, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Okay, thanks.. Sort of what I figured. But strangely I have never seen this error on any other servers. and the 'error' triggers my log watching script. Seems to me that if you don't want to backup temp or cache files they would be excluded from the backup list on the fly? Anyway, thanks for the answer and I'll change my log watcher script to disregard this error.

    Joe
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hi Joe,

    Do you happen to have any messages on that specific server around that time for waiting for load to go down? If the backup of that directory takes long enough, it is more likely to happen. This is most often seen when the load is high enough to cause the backups to wait to continue.

    Thanks!
     
  7. Cyberbest

    Cyberbest Member

    Joined:
    Sep 18, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Not really.. But this is a VPS and I only have one other VPS.. the rest are full servers. So maybe thats it. Here's the header of the backup from last evening:

    [cpbackup] Started at Tue Jul 10 01:00:01 2012
    [cpbackup] Setting I/O priority to reduce system load: best-effort: prio 3
    [cpbackup] backup point /backup/cpbackup/daily is 0.95 days old
    [cpbackup] backup point /backup/cpbackup/weekly is 6.94 days old
    [cpbackup] backup point /backup/cpbackup/monthly is 10.96 days old
    [cpbackup] Starting full MySQL database backups
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: /var/lib/mysql/mysql.sock: socket ignored
    [cpbackup] The following backups will be updated: daily,weekly
    [cpbackup] Running dir & file backup with target : /backup/cpbackup/daily
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: /var/cpanel/cpanel.config.cache: Cannot stat: No such file or directory
    /bin/gtar: Removing leading `/' from hard link targets
    /bin/gtar: Error exit delayed from previous errors
    [cpbackup] Failed to perform full backup of /var/cpanel/ to /backup/cpbackup/daily/dirs/_var_cpanel.tar.gz
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    /bin/gtar: Removing leading `/' from member names
    [cpbackup] Running account backup with target : /backup/cpbackup/daily

    Thanks,
    Joe
     
Loading...

Share This Page