Beberapa waktu yang lalu, salah satu vps cpanel client mengalami kendala yakni tentang sysinfo.config. Dengan kendala tersebut server tidak mengenali OS sehingga beberapa fitur seperti yum, rpm dll tidak bisa dilakukan.
Pada header WHM muncul error:
ERROR: The system cannot update the /var/cpanel/sysinfo.config file because it cannot determine your distribution's major version. Run the following command: rpm -qf --queryformat '%{VERSION}\n' /etc/redhat-release Output other than the numbers 6 or 7 indicates a problem. Open a support ticket or resolve the issue manually.
Akhrinya pihak support cpanel langsung turun tangan, tidak lama setelah create ticket dan masalahnya bisa langsung diatasi.
Berikut reply ticket dari support cpanel semoga bisa menjadi referensi dikalan mengalami kendala serupa:
========
Hello,
I have corrected the issue with your sysinfo.config file. The problem was that your RPM database was corrupted:
[14:02:37 server root@9384005 ~]cPs# rpm -qa | grep release
rpmdb: Thread/process 17810/140608967227296 failed: Thread died in Berkeley DB library
error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 – (-30974)
error: cannot open Packages database in /var/lib/rpm
rpmdb: Thread/process 17810/140608967227296 failed: Thread died in Berkeley DB library
error: db3 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages database in /var/lib/rpm
[14:02:49 server root@9384005 ~]cPs#
To correct the issue, I first rebuilt your RPM database:
[14:02:52 server root@9384005 ~]cPs# mkdir /root/cptechs
[14:02:56 server root@9384005 ~]cPs# cd /var/lib/rpm
[14:03:00 server root@9384005 /var/lib/rpm]cPs# mv __db* /root/cptechs
[14:03:05 server root@9384005 /var/lib/rpm]cPs# rpm –rebuilddb
[14:03:49 server root@9384005 /var/lib/rpm]cPs#
Then the RPM database could queried for release information:
[14:03:59 server root@9384005 /var/lib/rpm]cPs# rpm -qa | grep release
centos-release-6-9.el6.12.3.x86_64
And then the sysinfo.config file could be generated properly:
[14:04:05 server root@9384005 /var/lib/rpm]cPs# /scripts/gensysinfo
[14:04:21 server root@9384005 /var/lib/rpm]cPs# cat /var/cpanel/sysinfo.config
# This values in this file are calculated and updated if necessary nightly. If you wish to override
# these values, populate lock= with a comma delimited list of keys you don’t want updated.
# This will allow you to change those values to suit your needs.
#
# Example: if you set lock like this, then rpm_dist and rpm_arch will not be updated nightly:
# lock=rpm_dist,rpm_arch
#
ises=2
lock=
release=6.9
rpm_arch=x86_64
rpm_dist=centos
rpm_dist_ver=6
[14:04:31 server root@9384005 /var/lib/rpm]cPs#
======
semoga bermanfaat ..
terinakasih mas atas share ilmunya