Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta Web Interface
  • Search

autoupdate generates a cron error

Questions regarding the Web Interface
GUI
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
mephivio
Posts: 198
Joined: Thu Mar 27, 2014 7:35 am

Os: Debian 8x
Web: nginx + php-fpm
autoupdate generates a cron error
  • Quote

Post by mephivio » Tue May 06, 2014 11:26 am

perimeter : Vestacp 0.9.8-8 - Ubuntu 12.04

Team,

i have activate the new function <enable autoupdate> from the "Updates menu"
it generates a new cron task (and i had the omit star like i discovered previously) for sudo /usr/local/vesta/bin/v-update-sys-vesta-all

I check the script and all seems to be fine BUT i receive a cron log every day with :
/usr/local/vesta/bin/v-update-sys-vesta-all: line 13: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-update-sys-vesta-all: line 14: /conf/vesta.conf: No such file or directory
/usr/local/vesta/bin/v-update-sys-vesta-all: line 23: /v-update-sys-vesta: No such file or directory
/usr/local/vesta/bin/v-update-sys-vesta-all: line 23: /v-update-sys-vesta: No such file or directory
/usr/local/vesta/bin/v-update-sys-vesta-all: line 23: /v-update-sys-vesta: No such file or directory

Any idea ? why the $VESTA is not processed ?

i don't have any trouble with the others cron tasks

Thanks for your help

Mephivio
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: autoupdate generates a cron error
  • Quote

Post by imperio » Tue May 06, 2014 11:55 am

Do you have this files ?

Code: Select all

usr/local/vesta/conf/vesta.conf
usr/local/vesta/func/main.sh
usr/local/vesta/bin//v-update-sys-vesta
Top

mephivio
Posts: 198
Joined: Thu Mar 27, 2014 7:35 am

Os: Debian 8x
Web: nginx + php-fpm
Re: autoupdate generates a cron error
  • Quote

Post by mephivio » Tue May 06, 2014 12:32 pm

yes of course
(if it is not i can't use the others scripts)
Top

Affliction
Posts: 1
Joined: Wed Jul 02, 2014 2:41 pm

Re: autoupdate generates a cron error
  • Quote

Post by Affliction » Wed Jul 02, 2014 2:42 pm

I am also having the same problem...I'm using CentOS 6.5 64-Bit and receive the same cron error as OP does.
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: autoupdate generates a cron error
  • Quote

Post by imperio » Wed Jul 02, 2014 2:47 pm

This bug wiil be solved in the next release
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: autoupdate generates a cron error
  • Quote

Post by imperio » Wed Jul 02, 2014 6:11 pm

Now you can disable auto update for vestacp
Top

reshet
Posts: 1
Joined: Wed Jul 23, 2014 7:42 pm

Re: autoupdate generates a cron error
  • Quote

Post by reshet » Wed Jul 23, 2014 7:46 pm

I fixed it by modifying file /usr/local/vesta/bin/v-update-sys-vesta-all

Code: Select all

#!/bin/bash
# info: update all vesta packages
# options: USER [RESTART]
#
# The function of updating all vesta packages


#----------------------------------------------------------#
#                    Variable&Function                     #
#----------------------------------------------------------#

# Importing system enviroment  as we run this script
# mostly by cron wich not read it by itself
source /etc/profile

# Includes
source $VESTA/func/main.sh
source $VESTA/conf/vesta.conf


#----------------------------------------------------------#
#                       Action                             #
#----------------------------------------------------------#

# Starting update loop
for package in vesta vesta-nginx vesta-php; do
    $VESTA/bin/v-update-sys-vesta "$package"
done

#----------------------------------------------------------#
#                       Vesta                              #
#----------------------------------------------------------#

exit
Top

xtc
Posts: 1
Joined: Mon Aug 18, 2014 12:03 pm

Re: autoupdate generates a cron error
  • Quote

Post by xtc » Mon Aug 18, 2014 12:07 pm

For me the problem was the lack of a definition of $VESTA.

To fix this in any of the scripts, add the following to the top:

Code: Select all

source /etc/profile
$VESTA is defined in /etc/profile.d/vesta.sh which will be loaded each time /etc/profile is sourced.
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “Web Interface”



  • 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