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.

Transfer Tool - Inappropriate ioctl for device while reading flags

Discussion in 'Data Protection' started by lanquest-it, Oct 8, 2016.

Tags:
  1. lanquest-it

    lanquest-it Member

    Joined:
    Apr 9, 2008
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Hi All,

    I know this is an old thread but this seems to be the closest one in relation to the issue I currently have.

    Would someone be able to confirm the fix for this please? I've been searching the web all day and cannot find anything.

    My issue is related to the restore side of the Transfer Tool whilst migrating from one server to another.

    The files are being transferred as they should but the problem is with the restore.
    I get the same error shown below for ALL accounts being restored. Even when manually using the Restore a Full Backup/cpmove File option via WHM.

    Why can I not restore the accounts either manually or via the Transfer tool?

    Account Transfer
    Code:
    Starting “RESTORE” for “Account” “username”.
    Restore File: /home/cpmove-filename.tar.gz.part00001
    Restore Reseller Privs: yes
    Restricted mode: no
    Express mode: no
    Target “/home” on host “vps.domain-name.net” has 94.96 GB free and requires at least 760.97 MB free, which includes space for temporary files.
    Target “/home” on host “vps.domain-name.net” has 3,123,315 inodes free and requires at least 1 inode free, which includes space for temporary files.
    The “Account” restore module has the following areas disabled by request: “all”
    The “BandwidthData” restore module has the following areas disabled by request: “all”
    ArchiveManager
    Preparing archive for restoration …
    Calculating disk space needed …
    Done.
    Target “/home/cpanelpkgrestore.TMP.work.ql3QUAxOnkvad4E0/unsafe_to_read_archive” on host “vps.domain-name.net” has 94.96 GB free and requires at least 25.06 MB free, which includes space for temporary files.
    Target “/home/cpanelpkgrestore.TMP.work.ql3QUAxOnkvad4E0/unsafe_to_read_archive” on host “vps.domain-name.net” has 3,123,315 inodes free and requires at least 1 inode free, which includes space for temporary files.
    This archive’s payload appears to be in the archive’s “cpmove-cagencou” directory.
    ArchiveManager
    The system successfully prepared the archive for restoration.
    PreRestoreActions
    Temporarily lifting quota for existing user to ensure that all data is transferred.
    PreRestoreActions
    Account
    Account
    The “Account” restore module has been skipped because it was disabled by request.
    CpUser
    Restoring cPanel user file.
    Updating Caches …
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/userdomains
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/mailips
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/mailhelo
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/userbwlimits
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/dbowners
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/userplans
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/trueuserowners
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/mailbox_formats
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/trueuserdomains
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/domainusers
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/demousers
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/nocgiusers
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/email_send_limits
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/demouids
    /usr/bin/chattr: Inappropriate ioctl for device while reading flags on /etc/demodomains
    CpUser
    The subprocess “/usr/local/cpanel/scripts/updateuserdomains” reported error number 1 when it ended. at /usr/local/cpanel/Cpanel/Userdomains.pm line 22.
    Removing copied archive “/home/cpmove-username.tar.gz.part00001” from the local server …
    Failed: Account Restore Failed: “CpUser failure: The subprocess “/usr/local/cpanel/scripts/updateuserdomains” reported error number 1 when it ended. at /usr/local/cpanel/Cpanel/Userdomains.pm line 22. ”
    
    
    Many Thanks

    Michael
     
    #1 lanquest-it, Oct 8, 2016
    Last edited by a moderator: Oct 10, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,788
    Likes Received:
    665
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Servers using a non-ext filesystem (which do not work with /usr/bin/chattr) are unable to update /etc/userdomains, resulting in "/usr/bin/chattr: Inappropriate ioctl for device while reading flags" error messages during the transfer process. This is fixed in cPanel version 60:

    Implemented case CPANEL-7166: Use Cpanel::InternalDBS for Cpanel::Updatedomains::CORE.

    cPanel version 60 is currently available on the "Current" build tier. More information about the build tiers and the release process is available at:

    Product Versions and the Release Process - cPanel Knowledge Base - cPanel Documentation

    Thank you.
     
Loading...

Share This Page