(Cannot open file /etc/redhat-release)
my server system is centos using whmcs
Whenever I login to whm I recieved an error below
undef error - exit level [die] [pid=44379] (Cannot open file /etc/redhat-release)
I have some Idea how to fix
1. update yum
2. uninstall yum
3. reinstall yum
4. update rpm
what could possibly go wrong it is not proceeding
-
What happens when you issue this at command line: cat /etc/redhat-release0 -
Does the file exist? I opened mine and it only contains CentOS Linux release 7.9.2009 (Core)0 -
Hey there! Checking the file itself as mentioned above is a good idea. The output from "uname -s -r" may also help us get you pointed in the right direction. 0 -
# uname -s -r Linux 3.10.0-514.21.2.e17.x86_64 as per cat /etc/redhat-release it says No such file or directory 0 -
Thanks for the additional details. It might be best to speak to your hosting provider or datacenter as there may be issues with the operating system itself at a lower level than the cPanel or WHMCS software. Can you work with them to get that resolved? 0 -
ok if I migrate this to somewhere does it solve the issue? i mean to another server? 0 -
Please run yum -y install centos-release
That should fix your issue0 -
@Ernesto Dionisio - I don't believe migrating is a good solution to this issue, unless you confirm with your host there is additional damage to the operating system that can't be fixed. Checking the centos-release package as @gnusys mentioned is a good step, and may get you moving in the right direction. You could also try a more general "yum update" to see if there are other packages missing or updates available for the machine. 0
Please sign in to leave a comment.
Comments
8 comments