can't restore /etc folder.

nertskull

New Member
Sep 13, 2020
12
7
3
125
So through an act of carelessness I accidentally deleted my entire /etc folder in my system.

I have a copy of the folder in my backups though, so I tried to rsync the folder back from my backup to /etc. But I get a "failed: operation not permitted (1)" error

I tried stopping all of the services starting with pve* using systemctl. And then I can delete etc copy over the original /etc folders and files.

But then when I reboot, things don't work. The only errors I've found thus far (there could be others) are:

Journalctl -xe tells me " failed to start proxmox ve replication runner.

Syslog says a few things like. /Etc/pve/local/pve-ssl.key failed to load private key.

Ipcc_send_rec failed: connection refused

I feel like there should hopefully be a way to fix this, I have the files. My machines are all still there. I just can't figure out how to restore /etc. I guess worse case scenario I should be able to start fresh and add the vm .qcow images back in.

Sorry for not amazing log files, my pfsense is on this machines so I have no home network and I'm doing this all on my phone. But I can get full logs if needed.
 
There is a fuse system mounted to /etc from /var/lib/pve-cluster/config.db

You will have to replace all files in /etc and also replace /var/lib/pve-cluster/config.db with your backup.

Make sure to also stop the pve-cluster service.