OpenVZ Forum


Home » General » Support » error /sbin/ip: 1: Syntax error: Unterminated quoted string
error /sbin/ip: 1: Syntax error: Unterminated quoted string [message #37712] Tue, 13 October 2009 15:33 Go to next message
lowlow2
Messages: 7
Registered: March 2009
Location: Belgium
Junior Member
Hi all,

I have a problem. I manually copied files to the host /var/lib/private/201 to copy the setting from one container to another.
Then, when trying 'vzctl start 201' I had an error, the same error as I have now and you can see below.
Now I cannot start the other container anymore, I haven't even touched. What can I do ? Thanks in advance!

PS: please check the output of 'vzctl start 101' (=VEid)

login as: root
root@192.168.0.236's password:
Last login: Tue Oct 13 18:57:15 2009 from 192.168.0.189
Linux zimbratest 2.6.24-24-openvz #1 SMP Sat Aug 22 04:13:57 UTC 2009 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
root@zimbratest:~# vzctl destroy 201
Destroying VE private area: /var/lib/vz/private/201
VE private area was destroyed
root@zimbratest:~# sudo vzctl create 201 --ostemplate ubuntu-8.04-x86 --config vps.basic
Creating VE private area (ubuntu-8.04-x86)
Performing postcreate actions
VE private area was created
root@zimbratest:~# vzctl set 201 --nameserver 192.168.0.2 --nameserver 192.168.0.3 --save
Saved parameters for VE 201
root@zimbratest:~# vzctl set 201 --onboot yes --save                            Saved parameters for VE 201
root@zimbratest:~# vzctl set 201 --hostname wiki.ixx.iyy.be --save        Saved parameters for VE 201
root@zimbratest:~# vzctl set 201 --numothersock 120 --save                      Saved parameters for VE 201
root@zimbratest:~# vzctl set 201 --ipadd 192.168.0.233 --save                   Saved parameters for VE 201
root@zimbratest:~# vzctl start 201
Starting VE ...
VE is mounted
Adding IP address(es): 192.168.0.233
/sbin/ip: 1: Syntax error: Unterminated quoted string
arpsend: unknown iface vps-net_add : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.233 vps-net_add FAILED
arpsend: unknown iface WARNING: : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.233 WARNING: FAILED
arpsend: unknown iface Device : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.233 Device FAILED
arpsend: unknown iface list : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.233 list FAILED
arpsend: unknown iface is : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.233 is FAILED
arpsend: unknown iface empty : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.233 empty FAILED
cat: /proc/sys/net/ipv4/conf/vps-net_add/proxy_arp: No such file or directory
[: 42: 0: unexpected operator
cat: /proc/sys/net/ipv4/conf/WARNING:/proxy_arp: No such file or directory
[: 42: 0: unexpected operator
cat: /proc/sys/net/ipv4/conf/Device/proxy_arp: No such file or directory
[: 42: 0: unexpected operator
cat: /proc/sys/net/ipv4/conf/list/proxy_arp: No such file or directory
[: 42: 0: unexpected operator
cat: /proc/sys/net/ipv4/conf/is/proxy_arp: No such file or directory
[: 42: 0: unexpected operator
cat: /proc/sys/net/ipv4/conf/empty/proxy_arp: No such file or directory
[: 42: 0: unexpected operator
/sbin/ip: 1: Syntax error: Unterminated quoted string
/sbin/ip: 1: Syntax error: Unterminated quoted string
vps-net_add ERROR: Unable to add route /sbin/ip route add 192.168.0.233 dev venet0
VE start failed
Stopping VE ...
VE was stopped
VE is unmounted
root@zimbratest:~# /sbin/ip: 1: Syntax error: Unterminated quoted string
arpsend: unknown iface vps-net_add : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.233 vps-net_add FAILED
-bash: /sbin/ip:: No such file or directory
arpsend: unknown iface WARNING: : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.233 WARNING: FAILED
arpsend: unknown iface Device : No such device
root@zimbratest:~# arpsend: unknown iface vps-net_add : No such device
-bash: arpsend:: command not found
root@zimbratest:~# vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.233 vps-net_add FAILED
-bash: vps-net_add: command not found
root@zimbratest:~# arpsend: unknown iface WARNING: : No such device
-bash: arpsend:: command not found
root@zimbratest:~# vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.233 WARNING: FAILED
-bash: vps-net_add: command not found
root@zimbratest:~# arpsend: unknown iface Device : No such device
-bash: arpsend:: command not found
root@zimbratest:~# vzlist
VE not found
root@zimbratest:~# vzctl start 101
Starting VE ...
vzquota : (warning) Quota is running for id 101 already
VE is mounted
Adding IP address(es): 192.168.0.232
/sbin/ip: 1: Syntax error: Unterminated quoted string
arpsend: unknown iface vps-net_add : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.232 vps-net_add FAILED
arpsend: unknown iface WARNING: : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.232 WARNING: FAILED
arpsend: unknown iface Device : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.232 Device FAILED
arpsend: unknown iface list : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.232 list FAILED
arpsend: unknown iface is : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.232 is FAILED
arpsend: unknown iface empty : No such device
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.0.232 empty FAILED
cat: /proc/sys/net/ipv4/conf/vps-net_add/proxy_arp: No such file or directory
[: 42: 0: unexpected operator
cat: /proc/sys/net/ipv4/conf/WARNING:/proxy_arp: No such file or directory
[: 42: 0: unexpected operator
cat: /proc/sys/net/ipv4/conf/Device/proxy_arp: No such file or directory
[: 42: 0: unexpected operator
cat: /proc/sys/net/ipv4/conf/list/proxy_arp: No such file or directory
[: 42: 0: unexpected operator
cat: /proc/sys/net/ipv4/conf/is/proxy_arp: No such file or directory
[: 42: 0: unexpected operator
cat: /proc/sys/net/ipv4/conf/empty/proxy_arp: No such file or directory
[: 42: 0: unexpected operator
/sbin/ip: 1: Syntax error: Unterminated quoted string
/sbin/ip: 1: Syntax error: Unterminated quoted string
vps-net_add ERROR: Unable to add route /sbin/ip route add 192.168.0.232 dev venet0
VE start failed
Stopping VE ...
VE was stopped
VE is unmounted
root@zimbratest:~#

[Updated on: Wed, 14 October 2009 08:00]

Report message to a moderator

Re: error /sbin/ip: 1: Syntax error: Unterminated quoted string [message #37716 is a reply to message #37712] Tue, 13 October 2009 21:48 Go to previous messageGo to next message
ramjet is currently offline  ramjet
Messages: 16
Registered: September 2009
Junior Member
Some command is returning the string "vps-net_add Warning: Device list is empty" and then each word is treated as a network device.

How does your 101.conf and 201.conf files look like?

What does ls /var/lib/vz/private output?

Quote:
I manually copied files to the host /var/lib/private/201


Did something go wrong with your copy command. Above command has no vz in path.

It seems you somehow have changed a globally configuration file or setting.
Re: error /sbin/ip: 1: Syntax error: Unterminated quoted string [message #37717 is a reply to message #37716] Wed, 14 October 2009 07:58 Go to previous messageGo to next message
lowlow2
Messages: 7
Registered: March 2009
Location: Belgium
Junior Member
ramjet wrote on Tue, 13 October 2009 17:48
Some command is returning the string "vps-net_add Warning: Device list is empty" and then each word is treated as a network device.

How does your 101.conf and 201.conf files look like?

What does ls /var/lib/vz/private output?

Quote:
I manually copied files to the host /var/lib/private/201


Did something go wrong with your copy command. Above command has no vz in path.

It seems you somehow have changed a globally configuration file or setting.


Thx. The command 'ls /var/lib/vz/private' returns 101 and 201; my two containers. Also the structure/content of the this two subfolders is fine.

Maybe I wasn't very clear before but what I did was: I was trying to make a sort of clone of a VE on another machine so I copied the files manually. When I saw that I got errors I decided to undo my operation. I restarted the host, destroyed the VE (succesfully) and made a new VE (id: 201).
I've never touched container 101 so find it weird it doesn't start anymore.
Below the 201.conf ; which seems okay?

PS: the same error persists when starting both the containers

Thanks in advance

#  Copyright (C) 2000-2007 SWsoft. All rights reserved.
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

ONBOOT="yes"

# UBC parameters (in form of barrier:limit)
KMEMSIZE="11055923:11377049"
LOCKEDPAGES="256:256"
PRIVVMPAGES="65536:69632"
SHMPAGES="21504:21504"
NUMPROC="240:240"
PHYSPAGES="0:2147483647"
VMGUARPAGES="33792:2147483647"
OOMGUARPAGES="26112:2147483647"
NUMTCPSOCK="360:360"
NUMFLOCK="188:206"
NUMPTY="16:16"
NUMSIGINFO="256:256"
TCPSNDBUF="1720320:2703360"
TCPRCVBUF="1720320:2703360"
OTHERSOCKBUF="1126080:2097152"
DGRAMRCVBUF="262144:262144"
NUMOTHERSOCK="120:120"
DCACHESIZE="3409920:3624960"
NUMFILE="9312:9312"
AVNUMPROC="180:180"
NUMIPTENT="128:128"

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="1048576:1153024"
DISKINODES="200000:220000"
QUOTATIME="0"

# CPU fair sheduler parameter
CPUUNITS="1000"


VE_ROOT="/var/lib/vz/root/$VEID"
VE_PRIVATE="/var/lib/vz/private/$VEID"
OSTEMPLATE="ubuntu-8.04-x86"
ORIGIN_SAMPLE="vps.basic"
NAMESERVER="192.168.0.2 192.168.0.3"
HOSTNAME="wiki.ixx.iyy.be"
IP_ADDRESS="192.168.0.233"
Re: error /sbin/ip: 1: Syntax error: Unterminated quoted string [message #37718 is a reply to message #37717] Wed, 14 October 2009 08:50 Go to previous messageGo to next message
ramjet is currently offline  ramjet
Messages: 16
Registered: September 2009
Junior Member
Looking closer at

/usr/lib/vzctl/scripts/vps-net_add
/usr/lib/vzctl/scripts/vps-functions

and your error messages I think the problem is with your host ip command /sbin/ip.

What does the command
/sbin/ip addr list
give as output?

Could it be that your host /sbin/ip from the iproute package have been overwritten with garbage?
Re: error /sbin/ip: 1: Syntax error: Unterminated quoted string [message #37725 is a reply to message #37718] Wed, 14 October 2009 12:50 Go to previous message
lowlow2
Messages: 7
Registered: March 2009
Location: Belgium
Junior Member
ramjet wrote on Wed, 14 October 2009 04:50
Looking closer at

/usr/lib/vzctl/scripts/vps-net_add
/usr/lib/vzctl/scripts/vps-functions

and your error messages I think the problem is with your host ip command /sbin/ip.

What does the command
/sbin/ip addr list
give as output?

Could it be that your host /sbin/ip from the iproute package have been overwritten with garbage?


Thanks for the input ramjet. Most of the commands I tried gave back an error that the directory didn't exist. I've formatted the server and reinstalled OpenVZ, 2 containers and Zimbra. It works fine now.
I guess it's bad idea to mess with the files via the host. (maybe for one or two files, it's no problem, but not the /etc /dev ...ETC... folders)
Previous Topic: nf_conntrack on container ?
Next Topic: Urgent/important vzdump error
Goto Forum:
  


Current Time: Sat Jul 27 16:53:42 GMT 2024

Total time taken to generate the page: 0.02672 seconds