(Cannot open file /etc/redhat-release)

Aug 18, 2016
24
0
51
manila, philippines
cPanel Access Level
Root Administrator
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
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,307
2,440
363
cPanel Access Level
Root Administrator
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?
 

gnusys

Well-Known Member
Jan 18, 2013
62
20
58
cPanel Access Level
DataCenter Provider
Please run

Code:
yum -y install centos-release
That should fix your issue
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
15,307
2,440
363
cPanel Access Level
Root Administrator
@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.