Page 1 of 1

Few issues after migrating to new server

Posted: Wed Sep 21, 2016 9:01 am
by uetam
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:

Code: Select all

/usr/local/vesta/func/main.sh: line 291: 2:DB=djd_web: command not found
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.

Re: Few issues after migrating to new server

Posted: Thu Sep 29, 2016 11:10 am
by ScIT
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:

Code: Select all

/usr/local/vesta/func/main.sh: line 291: 2:DB=djd_web: command not found
How can i fix this?
maybe check main.sh on line 291 and post what is there. At my main.sh there is just the following part:

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
}
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.
Do you already tried to rebuild your user?

Code: Select all

 v-rebuild-user username 
uetam wrote:3. I have only one backup per account even if backups value in packages is set to greater value.
same here, try to rebuild your user or switch the package to another, save, and then switch back.

Best Regards
Raphael

Re: Few issues after migrating to new server

Posted: Thu Sep 29, 2016 5:58 pm
by uetam
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