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 Transfer Tool: Could not update .htaccess (XID) The supplied domain name is invalid.

Discussion in 'Data Protection' started by Benjamin D., Jul 24, 2018.

Tags:
  1. Benjamin D.

    Benjamin D. Well-Known Member

    Joined:
    Jan 28, 2016
    Messages:
    126
    Likes Received:
    17
    Trophy Points:
    18
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    After using the Transfer Tool, I've got many errors like this: Could not update .htaccess (XID) The supplied domain name is invalid.

    I went and checked on the new server FTP and indeed, many (maybe 20% of them) .htaccess files are missing! How do I force the Transfer Tool to copy the damn .htaccess file without automagically "taking care" of it (a.k.a. DROPPING IT)

    I have a hundred sites with errors like this, as much as possible, i don't want to manually copy each and every .htaccess file by hand!!

    Thanks for any pointers.
     
  2. Benjamin D.

    Benjamin D. Well-Known Member

    Joined:
    Jan 28, 2016
    Messages:
    126
    Likes Received:
    17
    Trophy Points:
    18
    Location:
    Canada
    cPanel Access Level:
    Root Administrator
    Was a permission issue on the parent folder, it's fixed. This can be closed, thanks.
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I'm glad to see you were able to solve the issue. Thank you for sharing the outcome.
     
  4. USA_Webmaster

    USA_Webmaster Well-Known Member

    Joined:
    Dec 10, 2015
    Messages:
    48
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    This too happened to me. WHM said backup restore transfer failed but when I asked client to confirm if everything was fixed.. they said it was good to go. I tried, before restoring the backup to rename folder and adding .BAK and deleting the .htaccess folder and also changing permission from 750 to 777 but it didn't matter. After several tries of wanting to overwrite and restore backup.. i still received error. i guess it didn't matter though.

    btw, if you have a failed restore, make sure you log into server and delete the TMP folders. I had several gigs of trash tmp folders that were never deleted..

    p.s. maybe dude before me said he fixed it with permissions, so maybe he tweaked the restore file permissions? not sure...
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi @USA_Webmaster,

    Can you browse to WHM >> Review Transfers and Restores and let us know the specific output that appears as it relates to error message?

    Thank you.
     
  6. USA_Webmaster

    USA_Webmaster Well-Known Member

    Joined:
    Dec 10, 2015
    Messages:
    48
    Likes Received:
    5
    Trophy Points:
    8
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Thanks for your time and patience Mr @cPanelMichael - I was overwriting existing user with full cpanel restore backup. I kept getting same error even though I would change the .htaccess file permissions before trying another backup restore... but nothing fixed it. Though.. client said account was restored just fine.

    Any tips or wisdom?

    Local Restore Summary:
    Code:
    RESTORE: 0 completed, 0 had warnings, and 1 failed.
    RESTORE: Account “user”: Account Restore Failed: “clean: Cannot cleanup top level directory: “/cpanelpkgrestore.TMP.work.d61cb98a ”. at /usr/local/cpanel/Whostmgr/Transfers/ArchiveManager.pm line 678. ”
    Could not update “/home/user/public_html/domain.com/.htaccess”: (XID mcx4hv) The supplied domain name is invalid.
     
    #6 USA_Webmaster, Nov 9, 2018
    Last edited: Nov 9, 2018
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,555
    Likes Received:
    2,182
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi @USA_Webmaster,

    Can you open a support ticket so we can take a closer look? You can post the ticket number here and we'll update this thread with the outcome.

    Thank you.
     
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