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.

Backup Error

Discussion in 'Data Protection' started by Paulo Cesar, Oct 16, 2015.

  1. Paulo Cesar

    Paulo Cesar Member

    Joined:
    Oct 16, 2015
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Apucarana, PR - BR
    cPanel Access Level:
    Root Administrator
    Hi friends! I have a problem with my backup. I use NFS to backup my files and always worked well, but, today i received an email that said:

    Code:
    The system failed to set permissions on “/backup” to “0711” because of an error: Operação não permitida
    at /usr/local/cpanel/Cpanel/Exception.pm line 151.
    Cpanel::Exception::new("Cpanel::Exception::IO::ChmodError", HASH(0x1d7d110)) called at /usr/local/cpanel/Cpanel/Exception.pm line 57
    Cpanel::Exception::create("IO::ChmodError", HASH(0x1d7d110)) called at /usr/local/cpanel/Cpanel/Autodie.pm line 425
    Cpanel::Autodie::chmod(457, "/backup") called at /usr/local/cpanel/bin/backup line 863
    bin::backup::_mkdir_set_mode("/backup", 457) called at /usr/local/cpanel/bin/backup line 853
    bin::backup::setup_backup_directories("/backup") called at /usr/local/cpanel/bin/backup line 298
    bin::backup::run("bin::backup") called at /usr/local/cpanel/bin/backup line 101
    [2015-10-16 02:00:02 -0300] info [Autodie] Final state is Backup::Failure (0)
    
    
    Apparently Cpanel is trying to change the permissions of my dir. Someone can help me?

    Thanks!
     
    #1 Paulo Cesar, Oct 16, 2015
    Last edited by a moderator: Oct 16, 2015
  2. marketrends.net

    Joined:
    Feb 17, 2011
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    1
    I've received the same error, any way to turn off the chmoding?

    Adding "no_root_squash" to the nfs share fixed my issue, but I was trying to avoid having to do that. Would love to hear if there's a different solution.

    Thanks,
     
    #2 marketrends.net, Oct 17, 2015
    Last edited by a moderator: Oct 18, 2015
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Internal case CPANEL-2066 is open to address an issue where backup generations fail on cPanel version 11.52 if the attempt to update permissions on the backup directory fails. There's currently no specific time frame available on a resolution, but you can monitor our change log for this case number at:

    11.52 Change Log - Documentation - cPanel Documentation

    Thank you.
     
  4. ilanh

    ilanh Registered

    Joined:
    Mar 18, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi all,
    In our case a simple workaround did the trick, we have an NFS share for backup purposes and received the same error message regarding chmod 0711 to mounted folder.

    create a subdir inside the mounted folder and move all existing backup directories into it.
    mkdir /backup/mountedfolder/newsubdir
    cd /backup/mountedfolder/newsubdir
    mv ../monthly .
    mv ../weekly .
    mv ../2015* .​

    verify that:
    chmod 0711 /backup/mountedfolder/newsubdir​
    works ok and then change backup configuration in WHM to the new subdir.

    you can force run a backup by running:
    /usr/local/cpanel/bin/backup --force​

    let me know if it helped you
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I am happy to see you were able to implement a suitable workaround. To update, there's currently no time frame to provide for a resolution to this issue.

    Thank you.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    To update, the development on the resolution is complete and is expected for inclusion with cPanel version 11.52.1.2 (not yet released). Note you might see a newer version number when the update is pushed out. Please feel free to monitor our change log for the case number if you do not have automatic updates enabled.

    Thank you.
     
Loading...

Share This Page