Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion RHEL/CentOS
  • Search

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

RHEL/CentOS related topics
Locked
  • Print view
Advanced search
14 posts
  • 1
  • 2
  • Next
stevetoza
Posts: 12
Joined: Sun May 11, 2014 7:45 am

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

Post by stevetoza » Sun Nov 15, 2015 8:41 am

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Sun Nov 15, 2015 4:19 pm

Do you have sed and expect packets in your system?

OS version? VestaCP version? Fresh install or not?
Top

stevetoza
Posts: 12
Joined: Sun May 11, 2014 7:45 am

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

Post by stevetoza » Sun Nov 15, 2015 4:23 pm

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Sun Nov 15, 2015 5:11 pm

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?
Top

stevetoza
Posts: 12
Joined: Sun May 11, 2014 7:45 am

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

Post by stevetoza » Sun Nov 15, 2015 5:21 pm

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Sun Nov 15, 2015 5:29 pm

Try to make backup or wait for backup and please tell, how was it. (same error or no error)
Top

stevetoza
Posts: 12
Joined: Sun May 11, 2014 7:45 am

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

Post by stevetoza » Sun Nov 15, 2015 6:53 pm

Hello,

Just tried to make a backup getting the same error.

Thanks
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Sun Nov 15, 2015 7:01 pm

Can you pm me accesses to your server for users root and admin? Let's see, what we can do with this.
Top

sjoerdvdwielen
Posts: 3
Joined: Mon Nov 16, 2015 8:46 am

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

Post by sjoerdvdwielen » Mon Nov 16, 2015 8:48 am

Same problem here on a fresh CentOS 7.1 64-bit VPS. Please let me know if you figured out the problem.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

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

Post by skurudo » Mon Nov 16, 2015 8:49 am

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! ;-)
Top


Locked
  • Print view

14 posts
  • 1
  • 2
  • Next

Return to “RHEL/CentOS”



  • 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
 

 

cron

Login  •  Register

I forgot my password