Page 1 of 1

Error on /usr/local/vesta/bin/v-update-sys-queue backup

Posted: Sat Apr 04, 2020 8:42 am
by daross
Hi all,

I am getting the following errors anytime the cron runs and when I run these commands on the server:
sudo /usr/local/vesta/bin/v-update-sys-queue backup
sudo /usr/local/vesta/bin/v-update-sys-queue letsencrypt


The errors I'm getting:
/usr/local/vesta/bin/v-update-sys-queue: 21: /usr/local/vesta/bin/v-update-sys-queue: source: not found
/usr/local/vesta/bin/v-update-sys-queue: 24: /usr/local/vesta/bin/v-update-sys-queue: source: not found
/usr/local/vesta/bin/v-update-sys-queue: 25: /usr/local/vesta/bin/v-update-sys-queue: source: not found
/usr/local/vesta/bin/v-update-sys-queue: 35: /usr/local/vesta/bin/v-update-sys-queue: check_args: not found


line 21: source /etc/profile
line 24: source $VESTA/func/main.sh
line 25: source $VESTA/conf/vesta.conf
line 35: check_args '1' "$#" 'QUEUE'


Can anyone help?

Re: Error on /usr/local/vesta/bin/v-update-sys-queue backup

Posted: Thu Apr 09, 2020 1:51 am
by plutocrat
I'm guessing the $VESTA environment variable isn't set to /usr/local/vesta/, which means it can't find the files to source.
Check it as a logged in user with the command env, and look for VESTA=/user/local/vesta

You can set it manually to test
VESTA=/usr/local/vesta
sudo /usr/local/vesta/bin/v-my-command

Re: Error on /usr/local/vesta/bin/v-update-sys-queue backup

Posted: Sat Jun 06, 2020 8:38 am
by daross
Thanks for your reply. I have checked and it looks like it is there and exists as:

VESTA=/usr/local/vesta