OpenVZ Solution CPT ERR: c02fa000,73 :CPT: lock fd is closed incorrectly: 1 and vps-net_add ERROR: Unable to add route ip route add 192.168.5.2 dev venet0 -

OpenVZ Solution CPT ERR: c02fa000,73 :CPT: lock fd is closed incorrectly: 1 and vps-net_add ERROR: Unable to add route ip route add 192.168.5.2 dev venet0

The only solution after trying many suggestions was to simply restart the "vz" service (definitely not preferable).

Even doing an ifdown and ifup for venet0 did not help.

ifup venet0
Bringing up interface venet0:
Configuring interface venet0:
net.ipv4.conf.venet0.send_redirects = 0
RTNETLINK answers: Network is down

Some errors from log:

 

CPT ERR: d2dc6000,54819 :Failed ot lookup path '/dev/shm'
CPT ERR: d2dc6000,54819 :Failed to restore mount point: dev 'tmpfs', type 'tmpfs', path '/dev/shm'
CPT ERR: d2dc6000,54819 :rst_namespace: -2

 

=====================


CPT ERR: f3f70000,30222 :rst_file: -2 98752
CPT ERR: f3f70000,30222 :rst_files: -2
CPT ERR: f3f70000,30222 :make_baby: -2
CPT ERR: f3f70000,30222 :rst_clone_children
unregister net_device: 'tun0' not found
unregister net_device: 'tun1' not found
unregister net_device: 'tun2' not found
unregister net_device: 'tun3' not found
unregister net_device: 'tun4' not found
kobject_add failed for tun0 with -EEXIST, don't try to register things with the same name in the same directory.
 [<c04eec02>] kobject_add+0x141/0x167
 [<c0561c1c>] class_device_add+0x9d/0x3b4
 [<fc1ff49e>] __ve_dev_move+0x17f/0x1b4 [vzmon]
 [<fc1ff534>] fini_venet+0x61/0x81 [vzmon]
 [<fc200731>] env_cleanup+0x3e/0x185 [vzmon]
 [<fc2008a0>] vzmond_helper+0x28/0x34 [vzmon]
 [<fc200878>] vzmond_helper+0x0/0x34 [vzmon]
 [<c062d243>] kernel_thread_helper+0x7

 

CPT ERR: c02fa000,73 :CPT: lock fd is closed incorrectly: 1

Starting container...
Container is mounted
Adding IP address(es): 192.168.5.2
RTNETLINK answers: No such device
vps-net_add ERROR: Unable to add route ip route add 192.168.5.2 dev venet0
Container start failed (try to check kernel messages, e.g. "dmesg | tail")
Killing container ...
Container was stopped
Container is unmounted

Solution

service vz restart


  • How Do you Open/Extract .WARC Internet Archive Files on Linux Ubuntu/Mint/Centos?
  • How To Disable htaccess inheritance or exclude a directory
  • root/home directory has ownership changed to the wrong user/owner mysteriously
  • mdadm and lvm how to completely disable and remove vg/pv/lv
  • sshd[10470]: Authentication refused: bad ownership or modes for directory /root
  • LG Phoenix 2 Escape Disable AT&T Phonebook/Contacts Error Message
  • mdadm frozen and doesn't realize array is dead/missing failed due to unplugged drives
  • Unable to mount location Failed to retrieve share list from server: No such file or directory solution
  • mdadm how to make inactive array active
  • ImageMagick how to trim white space automatically in Linux
  • curl: (1) Protocol "https not supported or disabled in libcurl"
  • Centos 5 OpenSSL does not support TLS 1.2 Apache Error
  • DRBD Split-brain solution
  • How to Properly Secure SSL/TLS Apache Settings against Heartbleed Poodle (TLS) Poodle (SSLv3) FREAK BEAST CRIME
  • K9 Mail Android Cannot See or View E-mails Disappear after reading - with Dovecot server. Solution
  • The folder contents could not be displayed connection refused - solution
  • Setting Up System for First Use... Please Wait... - WHMCS Installer
  • ERROR 2013 (HY000): Lost connection to MySQL server during query
  • if script bash check if socket file (mysql.sock) exists
  • ioncube loader install howto on PHP/Centos