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 failure - permission denied

Discussion in 'Data Protection' started by bamnet, Mar 10, 2009.

  1. bamnet

    bamnet Member

    Joined:
    Feb 7, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    I've been getting a few account failures during my system backup for the last few weeks. Its not one consistent account failing each night, but maybe a handful of accounts that seem to rotate in failure... all with similar error messages all related to permissioning. Here's what my backup log says:

    Code:
    Copying homedir..../bin/gtar: ./.rnd: Cannot open: Permission denied
    /bin/gtar: Error exit delayed from previous errors
    
    and another night...

    Code:
    Copying homedir..../bin/gtar: ./perl: Cannot savedir: Permission denied
    /bin/gtar: Error exit delayed from previous errors
    
    and again...

    Code:
    Copying homedir..../bin/gtar: ./public_html/wordpress/wp-content/plugins/fresh-page/cache/index.php: Cannot stat: Permission denied
    /bin/gtar: ./public_html/wordpress/wp-content/plugins/fresh-page/modules/index.php: Cannot stat: Permission denied
    /bin/gtar: ./public_html/wordpress/wp-content/plugins/fresh-page/files_flutter/index.php: Cannot stat: Permission denied
    /bin/gtar: Error exit delayed from previous errors
    
    All of these error messages are relatively new in nature, starting on 2009-02-21.

    Is there anything I can do to prevent the backup of these accounts from failing? Whats strange is that the backup doesn't fail consistently on the same account, but it will never fail on more than one account... maybe just a coincidence.

    Any help would be greatly appreciated!
     
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,281
    Likes Received:
    37
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    They aren't necessarily failing.

    See this post: http://forums.cpanel.net/showpost.php?p=485773&postcount=10

    If you do a search you'll see others who reported this "problem" - In reality it is not a problem. Recently the Cpanel folks made it so that items like that which could not be copied were logged - they used to not be logged before.

    Those are items that are likely owned by some other user than the Cpanel user who is being backed up. They are probably files owned by 'nobody' or 'apache' or something - something that Apache has written into a directory that the Cpanel user (that is being backed up) does not have access to.

    Mike
     
  3. bamnet

    bamnet Member

    Joined:
    Feb 7, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    That makes sense, its throwing a permission error from tar but moving on.

    Is there a way to avoid getting these 'informational' messages from backup sent to me [currently via email]? I would really only like to know if a backup fails, not if the backup has informational messages, like this permission thing, for me or even the log indicating it completed.
     
  4. kamm

    kamm Active Member

    Joined:
    Jan 17, 2004
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
  5. kamm

    kamm Active Member

    Joined:
    Jan 17, 2004
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    In my case they were all either PHP session files being stored in non-default locations, cache files or other such temporary files.

    I guess my situation is easier to control as all accounts are sites developed by us...
     
  6. bamnet

    bamnet Member

    Joined:
    Feb 7, 2005
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Going through the accounts that fail and excluding the files certainly seems like a solution to the problem, though I would hate to exclude files that were broken now but permissioned fine tomorrow.
     
  7. ozace

    ozace Member

    Joined:
    Feb 25, 2006
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    so is it simply not backing up that file or is it failing to back up the whole homedir - ie will the backup for all the rest of homedir still happen ?

    Jim
     
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,460
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The message tar outputs, cryptic as it may be, means it cannot access that file. The rest of the files are included in the backup.

    I believe we added some filtering of those messages for cPanel 11.25 because they cause needless alarm.
     
  9. rwoody

    rwoody Member

    Joined:
    Jul 26, 2003
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Regarding backups and permissions

    As I manage directly a large number of accounts on my server - I often time do so when I'm logged in as root. I'm now having a ton of permission errors that are affecting the backups and other functionalities on the server.

    Prior to 9/16 - these issues did not present themselves. Now my systems are not backing up properly. There are new tars created but mysql is definitely not backing up and I also am getting the emails that there are permission errors, so certain account backups are failing.

    In addition when trying to do normal functions in backend management of some of my web apps, even though the file permissions are set correctly, I am getting errors - example - in using a systems (Joomla) installation for components and modules I now get permission errors (can't move files), when in fact the permissions have been set to 777 for that directory.

    How can I correct these ownership permission errors as I'm guessing that is what I'm dealing with or is maybe the question is really - is that the issue and if not what would cause these server wide permission errors.

    Thanks in advance

    Ruth
     
  10. l337ingDisorder

    l337ingDisorder Registered

    Joined:
    Dec 16, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Don't want to exclude

    I tend to agree with bamnet on this one. On my system the permission errors are with /home/(user)/smarty/cache and /home/(user)/smarty/templates, both of which should be backed up because they're changing constantly.

    So, I don't want to exclude the dirs.

    What's more, looking at the dirs they both have 777 permissions, so why would gtar get permission denied? In theory even 'nobody' should have read access.

    How can I fix gtar's permission errors while still backing up the given dirs?

    Thanks,
    Scott
     
Loading...

Share This Page