I had an unexpected power outage today and after booting my proxmox machine I wasn't able to load the web GUI.
After some digging around I managed to track the problem to a corrupted config.db file thanks to another thread on this forum.
When I ran
So after that I tried running
Does this mean my config.db file is badly corrupted, is there anyway to restore ?
If anyone can help me I would greatly appreciate it.
After some digging around I managed to track the problem to a corrupted config.db file thanks to another thread on this forum.
When I ran
journalctl -b -u pve-cluster
I got the following:
Bash:
-- Journal begins at Sun 2022-03-20 21:55:25 IST, ends at Tue 2023-01-17 21:17:55 IST. --
Jan 17 20:09:43 pve systemd[1]: Starting The Proxmox VE cluster filesystem...
Jan 17 20:09:43 pve pmxcfs[1026]: [database] crit: inode has no name (inode = 000000002C027209)
Jan 17 20:09:43 pve pmxcfs[1026]: [database] crit: DB load failed
Jan 17 20:09:43 pve pmxcfs[1026]: [database] crit: inode has no name (inode = 000000002C027209)
Jan 17 20:09:43 pve pmxcfs[1026]: [database] crit: DB load failed
Jan 17 20:09:43 pve pmxcfs[1026]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
Jan 17 20:09:43 pve pmxcfs[1026]: [main] notice: exit proxmox configuration filesystem (-1)
Jan 17 20:09:43 pve pmxcfs[1026]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
Jan 17 20:09:43 pve pmxcfs[1026]: [main] notice: exit proxmox configuration filesystem (-1)
Jan 17 20:09:43 pve systemd[1]: pve-cluster.service: Control process exited, code=exited, status=255/EXCEPTION
Jan 17 20:09:43 pve systemd[1]: pve-cluster.service: Failed with result 'exit-code'.
Jan 17 20:09:43 pve systemd[1]: Failed to start The Proxmox VE cluster filesystem.
Jan 17 20:09:43 pve systemd[1]: pve-cluster.service: Scheduled restart job, restart counter is at 1.
Jan 17 20:09:43 pve systemd[1]: Stopped The Proxmox VE cluster filesystem.
Jan 17 20:09:43 pve systemd[1]: Starting The Proxmox VE cluster filesystem...
Jan 17 20:09:43 pve pmxcfs[1142]: [database] crit: inode has no name (inode = 000000002C027209)
Jan 17 20:09:43 pve pmxcfs[1142]: [database] crit: DB load failed
Jan 17 20:09:43 pve pmxcfs[1142]: [database] crit: inode has no name (inode = 000000002C027209)
Jan 17 20:09:43 pve pmxcfs[1142]: [database] crit: DB load failed
Jan 17 20:09:43 pve pmxcfs[1142]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
Jan 17 20:09:43 pve pmxcfs[1142]: [main] notice: exit proxmox configuration filesystem (-1)
Jan 17 20:09:43 pve pmxcfs[1142]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
Jan 17 20:09:43 pve pmxcfs[1142]: [main] notice: exit proxmox configuration filesystem (-1)
Jan 17 20:09:43 pve systemd[1]: pve-cluster.service: Control process exited, code=exited, status=255/EXCEPTION
Jan 17 20:09:43 pve systemd[1]: pve-cluster.service: Failed with result 'exit-code'.
Jan 17 20:09:43 pve systemd[1]: Failed to start The Proxmox VE cluster filesystem.
Jan 17 20:09:44 pve systemd[1]: pve-cluster.service: Scheduled restart job, restart counter is at 2.
Jan 17 20:09:44 pve systemd[1]: Stopped The Proxmox VE cluster filesystem.
lines 1-29...skipping...
-- Journal begins at Sun 2022-03-20 21:55:25 IST, ends at Tue 2023-01-17 21:17:55 IST. --
Jan 17 20:09:43 pve systemd[1]: Starting The Proxmox VE cluster filesystem...
Jan 17 20:09:43 pve pmxcfs[1026]: [database] crit: inode has no name (inode = 000000002C027209)
Jan 17 20:09:43 pve pmxcfs[1026]: [database] crit: DB load failed
Jan 17 20:09:43 pve pmxcfs[1026]: [database] crit: inode has no name (inode = 000000002C027209)
Jan 17 20:09:43 pve pmxcfs[1026]: [database] crit: DB load failed
Jan 17 20:09:43 pve pmxcfs[1026]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
Jan 17 20:09:43 pve pmxcfs[1026]: [main] notice: exit proxmox configuration filesystem (-1)
Jan 17 20:09:43 pve pmxcfs[1026]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
Jan 17 20:09:43 pve pmxcfs[1026]: [main] notice: exit proxmox configuration filesystem (-1)
Jan 17 20:09:43 pve systemd[1]: pve-cluster.service: Control process exited, code=exited, status=255/EXCEPTION
Jan 17 20:09:43 pve systemd[1]: pve-cluster.service: Failed with result 'exit-code'.
Jan 17 20:09:43 pve systemd[1]: Failed to start The Proxmox VE cluster filesystem.
Jan 17 20:09:43 pve systemd[1]: pve-cluster.service: Scheduled restart job, restart counter is at 1.
Jan 17 20:09:43 pve systemd[1]: Stopped The Proxmox VE cluster filesystem.
Jan 17 20:09:43 pve systemd[1]: Starting The Proxmox VE cluster filesystem...
Jan 17 20:09:43 pve pmxcfs[1142]: [database] crit: inode has no name (inode = 000000002C027209)
Jan 17 20:09:43 pve pmxcfs[1142]: [database] crit: DB load failed
Jan 17 20:09:43 pve pmxcfs[1142]: [database] crit: inode has no name (inode = 000000002C027209)
Jan 17 20:09:43 pve pmxcfs[1142]: [database] crit: DB load failed
Jan 17 20:09:43 pve pmxcfs[1142]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
Jan 17 20:09:43 pve pmxcfs[1142]: [main] notice: exit proxmox configuration filesystem (-1)
Jan 17 20:09:43 pve pmxcfs[1142]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
Jan 17 20:09:43 pve pmxcfs[1142]: [main] notice: exit proxmox configuration filesystem (-1)
Jan 17 20:09:43 pve systemd[1]: pve-cluster.service: Control process exited, code=exited, status=255/EXCEPTION
Jan 17 20:09:43 pve systemd[1]: pve-cluster.service: Failed with result 'exit-code'.
Jan 17 20:09:43 pve systemd[1]: Failed to start The Proxmox VE cluster filesystem.
Jan 17 20:09:44 pve systemd[1]: pve-cluster.service: Scheduled restart job, restart counter is at 2.
Jan 17 20:09:44 pve systemd[1]: Stopped The Proxmox VE cluster filesystem.
Jan 17 20:09:44 pve systemd[1]: Starting The Proxmox VE cluster filesystem...
Jan 17 20:09:44 pve pmxcfs[1146]: [database] crit: inode has no name (inode = 000000002C027209)
Jan 17 20:09:44 pve pmxcfs[1146]: [database] crit: DB load failed
Jan 17 20:09:44 pve pmxcfs[1146]: [database] crit: inode has no name (inode = 000000002C027209)
Jan 17 20:09:44 pve pmxcfs[1146]: [database] crit: DB load failed
Jan 17 20:09:44 pve pmxcfs[1146]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
Jan 17 20:09:44 pve pmxcfs[1146]: [main] notice: exit proxmox configuration filesystem (-1)
Jan 17 20:09:44 pve pmxcfs[1146]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
Jan 17 20:09:44 pve pmxcfs[1146]: [main] notice: exit proxmox configuration filesystem (-1)
Jan 17 20:09:44 pve systemd[1]: pve-cluster.service: Control process exited, code=exited, status=255/EXCEPTION
Jan 17 20:09:44 pve systemd[1]: pve-cluster.service: Failed with result 'exit-code'.
Jan 17 20:09:44 pve systemd[1]: Failed to start The Proxmox VE cluster filesystem.
Jan 17 20:09:44 pve systemd[1]: pve-cluster.service: Scheduled restart job, restart counter is at 3.
Jan 17 20:09:44 pve systemd[1]: Stopped The Proxmox VE cluster filesystem.
Jan 17 20:09:44 pve systemd[1]: Starting The Proxmox VE cluster filesystem...
Jan 17 20:09:44 pve pmxcfs[1151]: [database] crit: inode has no name (inode = 000000002C027209)
Jan 17 20:09:44 pve pmxcfs[1151]: [database] crit: inode has no name (inode = 000000002C027209)
Jan 17 20:09:44 pve pmxcfs[1151]: [database] crit: DB load failed
Jan 17 20:09:44 pve pmxcfs[1151]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
Jan 17 20:09:44 pve pmxcfs[1151]: [main] notice: exit proxmox configuration filesystem (-1)
Jan 17 20:09:44 pve pmxcfs[1151]: [database] crit: DB load failed
Jan 17 20:09:44 pve pmxcfs[1151]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
Jan 17 20:09:44 pve pmxcfs[1151]: [main] notice: exit proxmox configuration filesystem (-1)
Jan 17 20:09:44 pve systemd[1]: pve-cluster.service: Control process exited, code=exited, status=255/EXCEPTION
Jan 17 20:09:44 pve systemd[1]: pve-cluster.service: Failed with result 'exit-code'.
Jan 17 20:09:44 pve systemd[1]: Failed to start The Proxmox VE cluster filesystem.
Jan 17 20:09:44 pve systemd[1]: pve-cluster.service: Scheduled restart job, restart counter is at 4.
Jan 17 20:09:44 pve systemd[1]: Stopped The Proxmox VE cluster filesystem.
Jan 17 20:09:44 pve systemd[1]: Starting The Proxmox VE cluster filesystem...
Jan 17 20:09:44 pve pmxcfs[1155]: [database] crit: inode has no name (inode = 000000002C027209)
Jan 17 20:09:44 pve pmxcfs[1155]: [database] crit: inode has no name (inode = 000000002C027209)
Jan 17 20:09:44 pve pmxcfs[1155]: [database] crit: DB load failed
Jan 17 20:09:44 pve pmxcfs[1155]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
Jan 17 20:09:44 pve pmxcfs[1155]: [main] notice: exit proxmox configuration filesystem (-1)
Jan 17 20:09:44 pve pmxcfs[1155]: [database] crit: DB load failed
Jan 17 20:09:44 pve pmxcfs[1155]: [main] crit: memdb_open failed - unable to open database '/var/lib/pve-cluster/config.db'
Jan 17 20:09:44 pve pmxcfs[1155]: [main] notice: exit proxmox configuration filesystem (-1)
Jan 17 20:09:44 pve systemd[1]: pve-cluster.service: Control process exited, code=exited, status=255/EXCEPTION
Jan 17 20:09:44 pve systemd[1]: pve-cluster.service: Failed with result 'exit-code'.
Jan 17 20:09:44 pve systemd[1]: Failed to start The Proxmox VE cluster filesystem.
Jan 17 20:09:45 pve systemd[1]: pve-cluster.service: Scheduled restart job, restart counter is at 5.
Jan 17 20:09:45 pve systemd[1]: Stopped The Proxmox VE cluster filesystem.
Jan 17 20:09:45 pve systemd[1]: pve-cluster.service: Start request repeated too quickly.
Jan 17 20:09:45 pve systemd[1]: pve-cluster.service: Failed with result 'exit-code'.
Jan 17 20:09:45 pve systemd[1]: Failed to start The Proxmox VE cluster filesystem.
So after that I tried running
sqlite3 /var/lib/pve-cluster/config.db 'PRAGMA integrity_check'
for a sanity check, but I got:
Bash:
NULL value in tree.parent
NULL value in tree.version
NULL value in tree.writer
NULL value in tree.mtime
NULL value in tree.type
NULL value in tree.name
CHECK constraint failed in tree
Does this mean my config.db file is badly corrupted, is there anyway to restore ?
If anyone can help me I would greatly appreciate it.