Deleted /etc/* by accident. Need help.

Rez

New Member
Aug 3, 2015
3
0
1
Hi, I made a mistake, deleted /etc/* by accident, and am in need of some help.


We have three nodes in a cluster, all nodes running Proxmox 3.4-9. On node 3, I accidentally deleted all the files in /etc/*.
I tried to restore the contents of /etc/* from backup and ran apt-get update and apt-get upgrade and then restarted the physical server, but some things do not work correctly.


For example, when I try to log into node 1 or node 2 from the web browser, it says "Login Failed. Please try again"
All three nodes have the same root username and password. When I log into node 3, it works and I can login, but I do not see node 1 or node 2 listed in the tree on the left, I only see node 3.


Also, when I try to ssh into node 1, I get an error such as:
Unable to open /etc/pve/openvz/406239.conf: No such file or directory
Unable to open /etc/pve/openvz/406242.conf: No such file or directory
Unable to open /etc/pve/openvz/406243.conf: No such file or directory
Unable to open /etc/pve/openvz/406244.conf: No such file or directory
When I ssh into node 2 or node 3 I do not see the above messages.


Is there a way to fix it so that I can log into node 1 or node 2 from the web browser?
Also, how can I make node 3 show nodes 1 and 2 in the tree in the web browser?


Much thankful for you help.
 
Hum, difficult.
I would try to remove the nodes from the cluster ( there is documentation in the wiki) check if it solves your login problem, and then re-add the nodes to the cluster.
 
Hi, I made a mistake, deleted /etc/* by accident, and am in need of some help.


We have three nodes in a cluster, all nodes running Proxmox 3.4-9. On node 3, I accidentally deleted all the files in /etc/*.
I tried to restore the contents of /etc/* from backup and ran apt-get update and apt-get upgrade and then restarted the physical server, but some things do not work correctly.


For example, when I try to log into node 1 or node 2 from the web browser, it says "Login Failed. Please try again"
All three nodes have the same root username and password. When I log into node 3, it works and I can login, but I do not see node 1 or node 2 listed in the tree on the left, I only see node 3.


Also, when I try to ssh into node 1, I get an error such as:
Unable to open /etc/pve/openvz/406239.conf: No such file or directory
Unable to open /etc/pve/openvz/406242.conf: No such file or directory
Unable to open /etc/pve/openvz/406243.conf: No such file or directory
Unable to open /etc/pve/openvz/406244.conf: No such file or directory
When I ssh into node 2 or node 3 I do not see the above messages.


Is there a way to fix it so that I can log into node 1 or node 2 from the web browser?
Also, how can I make node 3 show nodes 1 and 2 in the tree in the web browser?


Much thankful for you help.

Hi,
do you remove the content recursive? (rm -r /etc/*)??
has /etc/pve/ on the other nodes content?
Code:
find /etc/pve -ls
If there is content, I think it's an good idea to make an additional backup on a running node (like "tar cvf /root/etc_pve.tar /etc/pve").

Udo
 
Thanks for the response.

I removed it recursive, rm -r /etc/*
/etc/pve does not have any contents on any of the nodes 1, 2, and 3.
Did removing the contents in /etc/pve/ on node 3 replicate to nodes 1 and 2? Should there be contents there in /etc/pve/? How can I bring it back?

I'll try the suggestion of removing the nodes from the cluster.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!