We only had one (1) IP bound to eth0 so we wanted to add a /27 to one of our cPanel boxes and the tech typo'd the netmask and screwed things up. I got the IPs removed by removing them from /etc/ipaddrpool and /etc/ips (no help to the 'Show/Delete IP' screen since there was no way to actually remove them).
Ran 'service network restart' and 'service ipaliases restart'.
Now, when checking the IPs, the screen comes up blank, and when listing accounts, we get this:
Obviously WHM is trying to call a file that doesn't fit with it's expected result. Rebooted and still nothing - same errors. 'Show IP Address Usage' shows nothing, 'Show/Edit Reserved IPs' shows this error:
/etc/ipaddrpool and /etc/ips are empty since neither contained our original single IP. Something went haywire - not sure where, or what to do. Tried rebooting; no difference. Websites work, mail flows.
Where to look? What to do?
Ran 'service network restart' and 'service ipaliases restart'.
Now, when checking the IPs, the screen comes up blank, and when listing accounts, we get this:
Code:
Can't use an undefined value as a HASH reference at /usr/local/cpanel/Cpanel/NAT/Object.pm line 54.
at /usr/local/cpanel/Cpanel/NAT/Object.pm line 54.
Cpanel::NAT::Object::load_file(Cpanel::NAT::Object=HASH(0x51483f0)) called at /usr/local/cpanel/Cpanel/NAT/Object.pm line 27
Cpanel::NAT::Object::new("Cpanel::NAT::Object") called at /usr/local/cpanel/Cpanel/NAT.pm line 20
Cpanel::NAT::cpnat() called at /usr/local/cpanel/Cpanel/NAT.pm line 29
Cpanel::NAT::get_public_ip("208.110.131.31") called at whostmgr/bin/whostmgr4.pl line 389
main::listaccts() called at whostmgr/bin/whostmgr4.pl line 163
Code:
undef error - Can't use an undefined value as a HASH reference at /usr/local/cpanel/Cpanel/NAT/Object.pm line 54.
Where to look? What to do?