[SOLVED] Can't edit anything under /etc/pve

Matthew18

New Member
Oct 2, 2018
13
0
1
23
Hi,

I am trying to edit some configuration files under /etc/pve but whatever action I try to run from root it always tells me "Operation denied".

I have not configured a cluster, that node is standalone and Corosync or any other cluster features was never used, what could cause this?
 
what editor do you use?

I'm using nano to edit the files, also there was an issue with the server, which forced me to flash the BIOS and when I did that the date of the server was modified with a wrong one (around 2081) and now it shows that the files (like .clusterlogs) were modified in 1 Gen 1970, that's also preventing machine statuses from update, like for example, if I stop a machine, start it or create a new one, the icon won't update at all, it will just stay gray or won't even change the hostname in the list.

Is there any way to remove the readonly state from that folder? Because I am unable to do anything on those files
 
Look at these screenshots. (first one is the Cluster log and the second one is the VPS I have created right now, also that's not english, it would be "Jan 1" in the cluster logs)

that's referring to wrong dates.

Screenshot_1.png Screenshot_2.png
 
As you can see also here, there are wrong dates to the files all over the place.

Screenshot_3.png
 
Is there any data/VMs on this host?

yes, I have some clients already running on it, I can't reinstall it unfortunately, unless I maybe take a backup of everything, but isn't that possible to solve it without a reinstall?
 
Just to be on the safe side: Can you check the output of "pvecm status" and send that along?
 
Just to be on the safe side: Can you check the output of "pvecm status" and send that along?

Code:
pvecm status
Corosync config '/etc/pve/corosync.conf' does not exist - is this node part of a cluster?
Cannot initialize CMAP service

that's the output
 
Some files in /etc/pve having a date on 01.01.1970 is normal/expected behaviour (they have the same time on my system) - see https://pve.proxmox.com/pve-docs/chapter-pmxcfs.html .

which files do you try to edit? (some files are hardcoded to be readonly by pmxcfs)

does `touch /etc/pve/testfile` work? (does it create `/etc/pve/testfile`)

Setting the date to 2081 probably messed up the rrd-files for good (you won't get any updates in those file until after 2081) - the files get persisted in `/var/lib/rrdcached/db` - AFAIS - you could try to move them away (stop the rrdcached service, backup the whole /var/lib/rrdcached directory, move it away, try starting rrdcached again)
 
Some files in /etc/pve having a date on 01.01.1970 is normal/expected behaviour (they have the same time on my system) - see https://pve.proxmox.com/pve-docs/chapter-pmxcfs.html .

which files do you try to edit? (some files are hardcoded to be readonly by pmxcfs)

does `touch /etc/pve/testfile` work? (does it create `/etc/pve/testfile`)

Setting the date to 2081 probably messed up the rrd-files for good (you won't get any updates in those file until after 2081) - the files get persisted in `/var/lib/rrdcached/db` - AFAIS - you could try to move them away (stop the rrdcached service, backup the whole /var/lib/rrdcached directory, move it away, try starting rrdcached again)


RRD graphs are working fine after deleting those folders, but it's still not updating the status of the machines at all.
 
Hi,

while making backups it gave me this error:

Code:
RPCEnvironment init request failed: Unable to load access control list: Connection refused (500)


-- EDIT --

now if I try clearing up the cache it says "ERROR 501" and won't load the page at all.
 

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!