SOLVED [CPANEL-31980] Error in Restore a Home Directory Backup - @LongLink error

Denis.v

Member
Jun 9, 2019
6
0
1
Ukraine
cPanel Access Level
Root Administrator
Hello.
cPanel v86.0.13.
When executing 'Restore a Home Directory Backup' by a user, if there are files in the archive with a path length longer than 103 (or 108) characters, then we see an error:
  • (XID cthts2) The system failed to open the file “/home/username /./@LongLink” for writing because of an error: Permission denied
  • (XID k4jy28) The system failed to open the file “/home/username /./@LongLink” for writing because of an error: Permission denied
  • ...
After unpacking, total files name (with path) is truncated to a length approximately 103 characters. For example, there was a file "1234567890.php", it became "12345" or "12".
In the file “12345”, the path of this file and the characters “^ @” appear on the first line, for example: /public_html/catalog/controller/checkout/1234567890/1111111111111111/12345678901234567890aaaaaaa/1234567890.php^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@, and the "@LongLink" file is created in the /home/username directory (modify 1970-01-01 03: 00: 00.000000000 +0300, access rights 000), with the path of one of these files inside.
Manual unpacking of archives backup file occurs without any errors.
What is this strange behavior and how to fix it?
Steps for reproduce:
- create file(s) in homedir/public_html with long path (total length more than 104 symbols);
- create backup file (Download a Home Directory Backup) in cPanel Backup;
- Restore a Home Directory Backup.
1584370514668.png
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!
 

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,983
159
368
SLC
cPanel Access Level
DataCenter Provider
Had a client have the same issue the other day
just had him upload the tar.gz to the home /home/user dir and used the file manger decompress & worked without issue
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hello,

Thank you for opening a ticket. It looks your ticket spawned an internal case CPANEL-31980. We also created the following article: cPanel-31980 (use your cPanel/manage2/store account to login and view the article)

We'll update here when the internal case has been resolved.
 
Last edited:

peterallcdn

Member
Feb 4, 2004
16
0
151
What's happening with this? I had a site down for 10 hours yesterday because of this problem. Thanks to dalem's post I was able to get the site up and running but this problem definitely needs to be fixed. Being able to properly and reliably restore backups is kinda important.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
Hello,

The article linked includes the only supported workaround currently. This issue is not resolved at this time and when it is we will update both the article and the thread here.
 

peterallcdn

Member
Feb 4, 2004
16
0
151
Hello,

The article linked includes the only supported workaround currently. This issue is not resolved at this time and when it is we will update both the article and the thread here.
I tried to read the article but when I visit the page linked a full screen login prompt appears. When I try to log-in it tells me my email address or password is wrong. So I try to reset my password but I never get an email with the reset link. Because I never get the email(s), it would imply the email address I was trying to log-in with is incorrect/not in the sytem. So I try to create an account with the email address that apparently isn't on file... only to have the system tell me that my email address is already in use!!!

Long story short, I can't view the article because your website is messed up.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston