Page 1 of 2

Syntax error in domain.sh / Vesta not backing up all domains

Posted: Sun Nov 15, 2015 8:41 am
by stevetoza
Noticed that Vesta wasn't backing up all my domains it backs up 7 domains out of 15 checked the backup.log an can see the below error

Code: Select all

-- WEB --
2015-11-15 05:10:02 domain.com
2015-11-15 05:10:06 blog.domain.com
2015-11-15 05:10:12 domain.co.uk
2015-11-15 05:10:14 domain.com
2015-11-15 05:10:19 domain.co.uk
2015-11-15 05:10:20 domain.org.uk
2015-11-15 05:10:33 domain.co.uk
sed: invalid option -- '2'
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  --follow-symlinks
                 follow symlinks when processing in place
  -i[SUFFIX], --in-place[=SUFFIX]
                 edit files in place (makes backup if SUFFIX supplied)
  -c, --copy
                 use copy instead of rename when shuffling files in -i mode
  -b, --binary
                 does nothing; for compatibility with WIN32/CYGWIN/MSDOS/EMX (
                 open files in binary mode (CR+LFs are not treated specially))
  -l N, --line-length=N
                 specify the desired line-wrap length for the `l' command
  --posix
                 disable all GNU extensions.
  -r, --regexp-extended
                 use extended regular expressions in the script.
  -s, --separate
                 consider files as separate rather than as a single continuous
                 long stream.
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
  -z, --null-data
                 separate lines by NUL characters
  --help
                 display this help and exit
  --version
                 output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
sed: invalid option -- '2'
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  --follow-symlinks
                 follow symlinks when processing in place
  -i[SUFFIX], --in-place[=SUFFIX]
                 edit files in place (makes backup if SUFFIX supplied)
  -c, --copy
                 use copy instead of rename when shuffling files in -i mode
  -b, --binary
                 does nothing; for compatibility with WIN32/CYGWIN/MSDOS/EMX (
                 open files in binary mode (CR+LFs are not treated specially))
  -l N, --line-length=N
                 specify the desired line-wrap length for the `l' command
  --posix
                 disable all GNU extensions.
  -r, --regexp-extended
                 use extended regular expressions in the script.
  -s, --separate
                 consider files as separate rather than as a single continuous
                 long stream.
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
  -z, --null-data
                 separate lines by NUL characters
  --help
                 display this help and exit
  --version
                 output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
/usr/local/vesta/func/domain.sh: line 339: 3
61: syntax error in expression (error token is "61")
Wondering if there was a fix for this?

Thanks

Re: Syntax error in domain.sh / Vesta not backing up all dom

Posted: Sun Nov 15, 2015 4:19 pm
by skurudo
Do you have sed and expect packets in your system?

OS version? VestaCP version? Fresh install or not?

Re: Syntax error in domain.sh / Vesta not backing up all dom

Posted: Sun Nov 15, 2015 4:23 pm
by stevetoza
Hi,

Not sure what you mean by "Do you have sed and expect packets in your system"

OS is CentOS 7 64 bit. Its a fresh install of Vesta around 2 days ago. No customizations just added domains and transferred websites.

Thanks

Re: Syntax error in domain.sh / Vesta not backing up all dom

Posted: Sun Nov 15, 2015 5:11 pm
by skurudo
stevetoza wrote: Not sure what you mean by "Do you have sed and expect packets in your system"

Code: Select all

yum install sed expect
stevetoza wrote:OS is CentOS 7 64 bit. Its a fresh install of Vesta around 2 days ago. No customizations just added domains and transferred websites.
Not backuped have SSL may be? There is some differences?

Re: Syntax error in domain.sh / Vesta not backing up all dom

Posted: Sun Nov 15, 2015 5:21 pm
by stevetoza
Hello,

Just did yum install sed expect - looks like expect is not installed. I have installed it now.

One of the domains does have an SSL installed on it?

Thanks

Re: Syntax error in domain.sh / Vesta not backing up all dom

Posted: Sun Nov 15, 2015 5:29 pm
by skurudo
Try to make backup or wait for backup and please tell, how was it. (same error or no error)

Re: Syntax error in domain.sh / Vesta not backing up all dom

Posted: Sun Nov 15, 2015 6:53 pm
by stevetoza
Hello,

Just tried to make a backup getting the same error.

Thanks

Re: Syntax error in domain.sh / Vesta not backing up all dom

Posted: Sun Nov 15, 2015 7:01 pm
by skurudo
Can you pm me accesses to your server for users root and admin? Let's see, what we can do with this.

Re: Syntax error in domain.sh / Vesta not backing up all dom

Posted: Mon Nov 16, 2015 8:48 am
by sjoerdvdwielen
Same problem here on a fresh CentOS 7.1 64-bit VPS. Please let me know if you figured out the problem.

Re: Syntax error in domain.sh / Vesta not backing up all dom

Posted: Mon Nov 16, 2015 8:49 am
by skurudo
sjoerdvdwielen wrote:Same problem here on a fresh CentOS 7.1 64-bit VPS. Please let me know if you figured out the problem.
Show your logs first! ;-)