Dedicated IP's missing from cPanel

Inovacije doo

Member
May 11, 2013
9
0
1
cPanel Access Level
Root Administrator
Hello to all,
i will describe my problem, and hope so someone can help me, because really i've tried everything and currently no one knows the solutions for this kind of problem.

I have a VPS with 1 main IP and 3 dedicated. Also i have 8 cores, 16gb od RAM, etc ... so it's not a server issue.
Currently there is a RELEASE version of cPanel installed and everything is working fine, but every then in some random time there is a issue.

I got reports from monitoring services that my all sites that are located on dedicated IP's are DOWN, and i can't ping the hostnames or the IP's. At first I thought that there is some DNS or apache problem, so i've been trying to restart the services, but without any luck. The problem was there.

After checking the apache logs, i didn't found anything wrong. Suddenly i've checked from cPanel IP usage, and there was no dedicated IP's, not even one! Just primary server ip was on that list, and ofcourse, all the sites on the primary IP were working, but no one on dedicated ip's.

I've tried to add the same ip's that existed on the server to IP pool, and i got meesage that that addresses were already entered. Strange...

I've googled, and tried to build and rebuild apache, but without success. The only solution i've found is to reboot the server, then everything works normally, but that's not a solution.

I've tried anything when the error occured, from restarting cpanel, to apache restart, cleaning up DNS zones, and so .. but nothing helped, only full server reboot worked fine.

Sorry for the long story but i wanted to describe fully the problem so you guys can provide quality answer and solutions to this problem.

Thanks, once again.
 

simonas

Well-Known Member
Apr 21, 2013
141
0
16
Lithuania
cPanel Access Level
Root Administrator
re: Dedicated IP's missing from cPanel

Hello,

try

ifconfig -a

And check if you see those IPs there.

If i were you i would be ringing hosting, usually it's their problem.
 
Last edited:

hgrg

Well-Known Member
Oct 4, 2010
90
0
56
cPanel Access Level
Root Administrator
re: Dedicated IP's missing from cPanel

I had a thing like this going on: my problem was that avahi removed the ip! solution was to remove the package and restarting the ipaliases service!
after that i still needed to restart the services which where using those ips:
service named restart
service apache restart
service nginx restart
service exim restart
 

Inovacije doo

Member
May 11, 2013
9
0
1
cPanel Access Level
Root Administrator
I had a thing like this going on: my problem was that avahi removed the ip! solution was to remove the package and restarting the ipaliases service!
after that i still needed to restart the services which where using those ips:
service named restart
service apache restart
service nginx restart
service exim restart
Thanks for the answer, but i don't have avahi service running, so it can't be that kind of problem. I've already tried to restart the services, but only entire server reboot helps.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello :)

Please check to see if restarting the "ipaliases" service resolves this issue. EX:

Code:
# service ipaliases restart
If this helps, we can proceed to check why the IP addresses are not consistently added to the system.

Thank you.
 

Inovacije doo

Member
May 11, 2013
9
0
1
cPanel Access Level
Root Administrator
Hello to All,

thanks for your efforts and answers. I think i found the solution for the problem.

There was an cPanel error, because when i've created (added) IP's through cPanel, it didn't created "ifcfg" files for any virtual NIC (IP Address) in /etc/sysconfig/network-scripts. Also it has wrongly named those virtual NIC's for example "eth0:cp1" instead of default "eth0:1". So i've added files named "eth0:x" for every virtual NIC (IP) with contents

DEVICE=eth0:x
ONBOOT=yes
IPADDR=xxx.xxx.xxx.xxx
NETMASK=255.255.255.0

where "x" on Device is the name of current Virtual NIC.

After that i've restarted the network service, and everything works fine. I will wait to see if everything will be fine in couple of days, but i think that this is permanent solution to this problem.

After all that i would suggest to cPanel stuff to modify the module for adding IP's, it should name virtual NIC's properly and it has to create a file with config for every NIC added.

Thanks,

Regards