cPanel error “not a reference at /usr/local/cpanel/Cpanel/DIp/MainIP.pm line 198, Carp::croak(‘not a reference’) called at /usr/lib/perl5/site_perl/5.6.2/x86_64-linux/Storable.pm line 76”


Today I encountered an  error when I log into cpanel and click on “expand stats” as below :

Error :

==========================================================
not a reference at /usr/local/cpanel/Cpanel/DIp/MainIP.pm line 198
Carp::croak(‘not a reference’) called at /usr/lib/perl5/site_perl/5.6.2/x86_64-linux/Storable.pm line 76
Storable::logcroak(‘not a reference’) called at /usr/lib/perl5/site_perl/5.6.2/x86_64-linux/Storable.pm line 244
=========================================================

Solution :

Run and check the permission for “/”  “/sbin/”  “/sbin/ifconfig” file :

# stat / /sbin/ /sbin/ifconfig | egrep -i “File:|(Access|Mode):.*id.*”
You will see output somwhat like below :
==============
# stat / /sbin/ /sbin/ifconfig | egrep -i “File:|(Access|Mode):.*id.*”
File: `/’
Access: (0711/drwx–x–x)  Uid: (    0/    root)   Gid: (    0/    root)
File: `/sbin/’
Access: (0711/drwx–x–x)  Uid: (    0/    root)   Gid: (    0/    root)
File: `/sbin/ifconfig’
Access: (0700/-rwx——)  Uid: (    0/    root)   Gid: (    0/    root)
==============
try resetting permission for the /sbin/ifconfig to 711 as below :

# chmod -vv 0711 /sbin/ifconfig

and restart cPanel

# service cpanel restart.

Error should be fixed now!!!!!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: