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.

After changing server IP's Accounts disappeared

Discussion in 'General Discussion' started by vincentg, Oct 9, 2013.

  1. vincentg

    vincentg Well-Known Member

    Joined:
    May 12, 2004
    Messages:
    140
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    new york
    This was not much fun

    Server has recent version of Centos 64 bit OS

    Changed the IP's and checked everything and after all looked perfect we changed the password and rebooted.

    Called in to get license updated to remove trial screen.

    Try to login again and find that only old IP was working.
    Try to login and could not as password old or new would not work.
    Got the password reset and found Cpanel decided to alter everything that was changed.

    The main server IP was reverted back and the User Account was gone.
    Folders in home missing.

    So we changed everything back to new settings and restarted the network and ipaliases
    Found IP's were missing in IP list entered all server IP's and restarted ipaliales
    Accounts gone again

    in /usr/cpanel/ user files gone - cache files gone

    Had to restore accounts from backup

    It's working now but if this is what happens when you try to change server IP's then it's best to re-install OS.

    Is this a new feature of Cpanel?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    What user files were located here? There is no /usr/cpanel/ directory. Users are located in /home/
     
  3. vincentg

    vincentg Well-Known Member

    Joined:
    May 12, 2004
    Messages:
    140
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    new york
    Sorry it was
    /var/cpanel/users

    Account files was missing in that folder and in users.cache/

    So restore from backup was the only way to get it back.
    The next day we find the server dns record had wrong IP and worse the clients website has a 500 error
    Found out that DBD:Mysql was gone
    Had to re-install that.

    Cpanel's finial word on this is they don't support changing Server IP's - they expect you to setup your IP's once and not change them.

    So based on that you need to do a clean OS install and a new install of Cpanel then go to backup.
    Hell of a way to run a railroad.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:

    Could you please provide me with the ticket ID where you were told that?

    Thanks.
     
  5. vincentg

    vincentg Well-Known Member

    Joined:
    May 12, 2004
    Messages:
    140
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    new york
    David Nelson - Ticket 4365901
    Thanks for the reply. Keep in mind that changing IP addresses isn't really supported; we can do our best to clean up afterwards, but cPanel operates under the assumptions that your main IP address isn't going to change, and IP addresses will never get removed.

    -----------------------------------------------------

    From my viewpoint even if some setting was not made correct it shouldn't have things disappear.
    It also shouldn't auto reset settings.
    Email the tech of the problem - log the problem and let the tech do the rest - that's what should happen
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,468
    Likes Received:
    196
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thank you for the update. I'll see about having someone clarify all of this for you proper, asap.
     
  7. Brian

    Brian Well-Known Member

    Joined:
    Dec 1, 2010
    Messages:
    117
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    I think David had some miscommunication there when trying to describe supporting server IP change. cPanel & WHM certainly does support changing the server's main IP address. That's why the Main Shared IP is editable under the "WHM -> Basic cPanel & WHM Setup" section and we have the IP Migration Wizard.

    What David was likely trying to communicate is that the network and OS level changes needed to effect a main shared IP change for the primary network interface is not something cPanel's support staff will directly assist with. It would be at the responsibility of the server owner to work with their hosting provider for those network level and OS level (/etc/sysconfig/network-scripts) changes to ensure the box is functional on the newly desired IP. None of those steps involve cPanel & WHM software.

    All things related to cPanel & WHM are of course supported.

    Reading through your ticket and the claimed loss of data and reverting of software versions, it really does sound like at some point you had connected to two different servers. This is something that sometimes occurs for users when they're trying to do exactly what you're doing and switch main IPs between servers. Despite that the IP you're connected to was the one you expected, perhaps the physical machine itself was not the one you expected to connect to. Were you ever trying to migrate between boxes? This would line up and explain every oddity you've itemized.

    Performing an IP change instantiates no code that would remove an account, revert Perl module versions, etc. The most plausible origin cause for such a massive reversal would simply be connecting to a different physical server than expected. That, or some other catastrophic system failure. I understand that it seems all too coincidental, but there simply is no code path that would be able to cause those changes when performing IP modifications. The only items that would even be modified would be items like: /etc/wwwacct.conf, /etc/named.conf/, /var/named/<domain>.db, /var/cpanel/userdata/, etc. It doesn't do any sweeping changes, upgrades, etc.
     
    Infopro likes this.
Loading...

Share This Page