Page 1 of 1

Error updating system queue - Disk

Posted: Thu Jan 14, 2016 8:18 pm
by daniell
Hello,

Posted on Github but nothing has been said.

Everytime cron runs

Code: Select all

sudo /usr/local/vesta/bin/v-update-sys-queue disk
I get an email with error codes, same as when I run it manually via SSH.

Code: Select all

sudo /usr/local/vesta/bin/v-update-sys-queue disk
sed: -e expression #1, char 3: unknown command: `
'
sed: -e expression #1, char 3: unknown command: `
'
/usr/local/vesta/func/main.sh: line 485: 1
1: syntax error in expression (error token is "1")
/usr/local/vesta/func/main.sh: line 485: 1
1: syntax error in expression (error token is "1")
/usr/local/vesta/func/main.sh: line 485: 1
1: syntax error in expression (error token is "1")
I've checked the main.sh file (lines below are 483-487, bold is 485)

Code: Select all

fi
usage=$(grep "U_DISK_DIRS='" $USER_DATA/user.conf | cut -f 2 -d \')
[b]u_usage=$((u_usage + usage))[/b]
old=$(grep "U_DISK='" $USER_DATA/user.conf | cut -f 2 -d \')
sed -i "s/U_DISK='$old'/U_DISK='$u_usage'/g" $USER_DATA/user.conf
Cannot update disk usage because of this error, any help appreciated.

Re: Error updating system queue - Disk

Posted: Tue Jan 19, 2016 12:08 pm
by skurudo

Re: Error updating system queue - Disk

Posted: Sat Mar 05, 2016 5:35 pm
by Hruhoriy
the same error, how to fix?