Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion Debian/Ubuntu
  • Search

Few issues after migrating to new server

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
uetam
Posts: 11
Joined: Tue Jul 29, 2014 6:01 pm

Few issues after migrating to new server
  • Quote

Post by uetam » Wed Sep 21, 2016 9:01 am

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.
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Few issues after migrating to new server
  • Quote

Post by ScIT » Thu Sep 29, 2016 11:10 am

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
Top

uetam
Posts: 11
Joined: Tue Jul 29, 2014 6:01 pm

Re: Few issues after migrating to new server
  • Quote

Post by uetam » Thu Sep 29, 2016 5:58 pm

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
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Debian/Ubuntu”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password