Error on /usr/local/vesta/bin/v-update-sys-queue backup
Error on /usr/local/vesta/bin/v-update-sys-queue backup
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?
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
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
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
Thanks for your reply. I have checked and it looks like it is there and exists as:
VESTA=/usr/local/vesta
VESTA=/usr/local/vesta