Few issues after migrating to new server
Few issues after migrating to new server
Hi,
I moved my VESTA accounts from old server (debian 7) to new one (debian 8) and i have few issues:
1. Every day i get e-mail from cron daemon containing errors like this one:
How can i fix this?
2. Mail aliases dont work (account is is undeliverable: Unrouteable address). I need to manualy delete and recreate mailboxes to make them work.
3. I have only one backup per account even if backups value in packages is set to greater value.
I moved my VESTA accounts from old server (debian 7) to new one (debian 8) and i have few issues:
1. Every day i get e-mail from cron daemon containing errors like this one:
Code: Select all
/usr/local/vesta/func/main.sh: line 291: 2:DB=djd_web: command not found
2. Mail aliases dont work (account is is undeliverable: Unrouteable address). I need to manualy delete and recreate mailboxes to make them work.
3. I have only one backup per account even if backups value in packages is set to greater value.
Re: Few issues after migrating to new server
maybe check main.sh on line 291 and post what is there. At my main.sh there is just the following part:uetam wrote:Hi,
I moved my VESTA accounts from old server (debian 7) to new one (debian 8) and i have few issues:
1. Every day i get e-mail from cron daemon containing errors like this one:How can i fix this?Code: Select all
/usr/local/vesta/func/main.sh: line 291: 2:DB=djd_web: command not found
Code: Select all
# Update object value
update_object_value() {
row=$(grep -nF "$2='$3'" $USER_DATA/$1.conf)
lnr=$(echo $row | cut -f 1 -d ':')
object=$(echo $row | sed "s/^$lnr://")
eval "$object" <==== That's my line 291 in main.sh
eval old="$4"
old=$(echo "$old" | sed -e 's/\\/\\\\/g' -e 's/&/\\&/g' -e 's/\//\\\//g')
new=$(echo "$5" | sed -e 's/\\/\\\\/g' -e 's/&/\\&/g' -e 's/\//\\\//g')
sed -i "$lnr s/${4//$/}='${old//\*/\\*}'/${4//$/}='${new//\*/\\*}'/g" \
$USER_DATA/$1.conf
}
Do you already tried to rebuild your user?uetam wrote:2. Mail aliases dont work (account is is undeliverable: Unrouteable address). I need to manualy delete and recreate mailboxes to make them work.
Code: Select all
v-rebuild-user username
same here, try to rebuild your user or switch the package to another, save, and then switch back.uetam wrote:3. I have only one backup per account even if backups value in packages is set to greater value.
Best Regards
Raphael
Re: Few issues after migrating to new server
I've found solution for issue 1 somewehere on forum - it was caused by duplicated entries in user.conf and backup.conf.
I will try to rebuild users and see if it will help with my backup issues.
thx
I will try to rebuild users and see if it will help with my backup issues.
thx