Proxmox non fa partire le VM con errore ipcc send rec failed

From RVM Wiki
Jump to navigation Jump to search
  • Spesso il problema avviene dopo un arreso anomalo.
  • Oltre all'errore indicato si vede anche
Feb 08 11:03:06 proxmox pmxcfs[1654]: [database] crit: found entry with duplicate name (inode = 0000000000BDAACC, parent = 0000000000000008, name=authorized_keys
Feb 08 11:03:06 proxmox pmxcfs[1654]: [database] crit: found entry with duplicate name (inode = 0000000000BDAACC, parent = 0000000000000008, name=authorized_keys
Feb 08 11:03:06 proxmox pmxcfs[1654]: [database] crit: DB load failed
Feb 08 11:03:06 proxmox pmxcfs[1654]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
  • /etc/pve è vuota
  • il campo name= indica qualel è la key duplicata, in questo caso
authorized_keys
  • Verificare quali sono i valori duplicati:
sqlite3 /var/lib/pve-cluster/config.db 'SELECT inode,parent,mtime,type,name FROM tree WHERE name = "authorized_keys"'
12425152|8|1612728778|8|authorized_keys
12430028|8|1612736567|8|authorized_keys


sqlite3 /var/lib/pve-cluster/config.db 'SELECT inode,parent,mtime,type,name FROM tree WHERE parent = (SELECT parent FROM tree WHERE inode = 12430028)'
16|8|1571839943|4|lock
27|8|1571839946|8|pve-root-ca.key
31|8|1571839946|8|pve-root-ca.srl
6072567|8|1601042357|8|shadow.cfg
6072650|8|1601042464|8|tfa.cfg
12418364|8|1612715928|8|authkey.key
12425152|8|1612728778|8|authorized_keys
12430028|8|1612736567|8|authorized_keys
12430031|8|1612736567|8|known_hosts
  • backup the whole /var/lib/pve-cluster/ folder just to be sure, as root you can do:
tar czf pve-cluster-bak.tgz -C /var/lib/pve-cluster ./
  • Drop the duplicate with the older modification time, that would be the entry with inode `12425152`:
sqlite3 /var/lib/pve-cluster/config.db 'DELETE FROM tree WHERE inode = 12425152'
  • Start pve-cluster again:
systemctl reset-failed pve-cluster
systemctl start pve-cluster
service pvestatd restart
service pveproxy restart
service pvedaemon restart


Riferimenti