The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Dedicated IP's missing from cPanel

Discussion in 'General Discussion' started by Inovacije doo, May 11, 2013.

  1. Inovacije doo

    Inovacije doo Member

    Joined:
    May 11, 2013
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. simonas

    simonas Well-Known Member

    Joined:
    Apr 21, 2013
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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.
     
    #2 simonas, May 11, 2013
    Last edited: May 12, 2013
  3. hgrg

    hgrg Well-Known Member

    Joined:
    Oct 4, 2010
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  4. Inovacije doo

    Inovacije doo Member

    Joined:
    May 11, 2013
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Now the problem has occured again. I've tried this and i can't see the other IP's. I can see "eth0" with main server ip and "lo" with localhost.
     
  5. Inovacije doo

    Inovacije doo Member

    Joined:
    May 11, 2013
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    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.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  7. Inovacije doo

    Inovacije doo Member

    Joined:
    May 11, 2013
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    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
     
Loading...

Share This Page