Domain_data.tar.zst: Cannot open: Permission denied

Hello,

At the moment I am using Ubuntu 22.04 but I had same problem with 24.04.

  • Hestia Control Panel v1.9.2
  • Operating SystemUbuntu 22.04 (x86_64)

When I run command:

root@7uodegos:/backup# v-restore-user user user.2025-02-19_05-20-35.tar

I get error:

(child): /backup/tmp.WflYiBI2i6/web/domain.lt/domain_data.tar.zst: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Error: Can’t unpack domain.lt data tarball
root@7uodegos:/backup# root@7uodegos:/backup# v-restore-user user user.2025-02-19_05-20-35.tar

I am using root user. Any advice how to solve this?
I did:

sudo chmod 777 /backup/user.2025-02-19_05-20-35.tar
sudo chown -R root:root /backup
sudo chmod -R 755 /backup

try chmod 777 to /backup

I did try that:

root@7uodegos:/backup# sudo chmod 777 /backup/user.2025-02-19_05-20-35.tar
root@7uodegos:/backup# sudo chmod 777 /backup
root@7uodegos:/backup# v-restore-user user user.2025-02-19_05-20-35.tar

– WEB –
2025-02-20 12:36:22 domain.lt
tar (child): /backup/tmp.4NBnUCpWvz/web/domain.lt/domain_data.tar.zst: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
Error: Can’t unpack domain.lt data tarball

I extracted the back up to a test folder.
Made all files and folders 777.
Writed a command inside test folder: “tar -cvf new_backup.tar .”

it created a new backup with relative path.
Moved new_backup.tar to /backup dir.
after “v-restore-user user new_backup.tar” worked without any problem.

File permission of original:
-rw-rw---- root/root 486651566 2025-02-19 05:14 ./web/domain.lt/domain_data.tar.zst

I did try to do same on 24.04 ubuntu it didn’t went so good.

I got an error on wordpress website: Error establishing a database connection

Is the user name still the same?

If not you need to update the wp-config file

On an old hestiaCP server I had administrator user name as admin, and 2nd user fry who was handling wordpress site.
On new 24.04 I made fry as administrator. No other changes was made.

What should I update on wp-config?