surya
November 22, 2024, 5:28am
1
I tried to restore a backup of a user account via terminal command but got the below error.
galler@server2:/backup$ v-restore-user synergy synergy.2024-11-01_05-10-45.tar
/usr/local/hestia/func/main.sh: line 1575: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
grep: /usr/local/hestia/data/users/admin/user.conf: Permission denied
mktemp: failed to create directory via template ‘/backup/tmp.XXXXXXXXXX’: Permission denied
sed: can't read /usr/local/hestia/data/queue/backup.pipe: Permission denied
Error: Can't create tmp dir
/usr/local/hestia/func/main.sh: line 102: /usr/local/hestia/log/error.log: Permission denied
surya
November 22, 2024, 5:31am
2
More errors if I use v-restore-web-domain cmd.
ronald
November 22, 2024, 7:20am
4
You are missing the required access rights. You could try to start the command with sudo or as root.
surya
November 22, 2024, 7:56am
5
with sudo or root,
sudo: v-restore-user: command not found
I think it’s not added to bash profile by default, need to add /usr/local/hestia/bin/ to PATH. It would be better if it’s added to profile by default in hestia
nu01
November 22, 2024, 8:24am
6
Agreed.
For the time being cd to that bin path and run the command over root/sudo su.
Ensure the /backup folder has the tar/backup file present.
Update: I checked my bash, and I can see it present:
if [ “${PATH#/usr/local/hestia/bin }” = “$PATH” ]; then
. /etc/profile.d/hestia.sh
fi
1 Like
eris
November 22, 2024, 9:14am
7
We add it on new installs for some time but never did before …
1 Like
system
Closed
December 22, 2024, 9:15am
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.