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.

Urgent Resyncing problem

Discussion in 'Data Protection' started by GloVine, Aug 22, 2005.

  1. GloVine

    GloVine Member

    Joined:
    Jul 5, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Hey,

    On the cpanel how to forum on ev1, theres one for restoring accounts from a damaged drive if its mounted as /old/.

    It says:
    What would happen, if you already have accounts on the main HDD that dont have backups. Are they deleted? or left alone?

    Right now, I have 3 accounts on the main HDD. This is because the HDD mounted as /old/ as taken out from another server of mine and mounted onto this server (Dont ask why as I didnt ask for it to be so) but anyway, these accounts were already created.

    Im worried Im going to be removing these accounts if I resync like it says to above.

    Can someone let me know asap?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It will efectively wipe out any accounts that you already have. The only realistic way of restoring would be from cPanel backups in that case, not from a disk to disk transfer. One way around the issue would be to backup the "live" accounts. Then delete them all in cPanel. Then do the data migration. Then restore the backup accounts.
     
  3. GloVine

    GloVine Member

    Joined:
    Jul 5, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Re

    Thanks

    The main account on the main HDD is the one set with the nameservers for the server. Would this affect the server in any way? Will i need to reset all the nameserver settings once Ive restored the backup?

    Also, just to make sure as I cant afford problems, I understand there will be a few bugs to clean up after the transfers and so forth, but will those commands above work? and work with CentOS ?
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    The procedure works fine for CentOS. You should expect to lose anything that you currently have configured in WHM when you follow that procedure and will have to set them back up again if they're different from when the data was restored from.

    One thing to remember is that once done your root password will revert to what is was on the old OS disk. I would also recommend a reboot to esnure that everything comes back up as expected after you'd done all the work.
     
  5. GloVine

    GloVine Member

    Joined:
    Jul 5, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Re

    Thanks

    Although I now have another problem that I hope you can help me with. It wasnt there before so its only appeared within a few days perhaps hours. Nothing that I know of, has been done to the server since.

    When creating an account on the main HDD. (this being before any rsyncing). These errors appear.

    Code:
    [a fatal error or timeout occurred while processing this directive][a fatal error or timeout occurred while processing this directive]WWWAcct 10.0 (c) 1997-2005 cPanel, Inc.
    
       +===================================+
       | New Account Info                  |
       +===================================+
       | Domain: blah.xxxxxx.xxx
       | Ip: xx.xxx.xx.xxx (n)
       | HasCgi: y
       | UserName: blah
       | PassWord: sdfsdf
       | CpanelMod: x
       | HomeRoot: /home
       | Quota: unlimited Meg
       | NameServer1: ns1.xxxxxxx.xxx
       | NameServer2: ns2.xxxxxxx.xxx
       | NameServer3: ns3.xxxxxxx.xxx
       | NameServer4: 
       | Contact Email: 
       +===================================+
    User blah added
    Changing password for blah
    Password for blah has been changed
    Removing Shell Access (n)
    Changing shell for blah.
    Shell changed.
    Copying skel files from /root/cpanel3-skel/ to /home/blah/
    [an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive][an error occurred while processing this directive]Added Entries to httpd.conf
    Bind reconfiguring on server using rndc
    Added Named File
    Using Frontpage 5.x!
    No Server found   
    
    Restarting apache
    Ftp Password Files synced
    Vhost Passwords synced
    wwwacct creation finished
    Account Creation Complete!!!
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    /scripts/upcp --force

    should fix that.
     
  7. GloVine

    GloVine Member

    Joined:
    Jul 5, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Re

    Thanks, worked.

    If i have anything else, I know who to turn to :)
     
  8. GloVine

    GloVine Member

    Joined:
    Jul 5, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Re

    I got this error when doing this command..

    # rsync -vrplogDtH /old/usr/local/cpanel /usr/local

    The error:
    rsync error: some files could not be transferred (code 23) at main.c (620)

    Alot of files and folders were copied, but just checking as I did get this error after it completed. Any idea whether this is just normal? maybe due to cpanel versions being different. I Dont know?
     
  9. GloVine

    GloVine Member

    Joined:
    Jul 5, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Re

    Also get .. when i run this command
    rsync -vrplogDtH /old/var/ssl /var

    link_stat /old/var/ssl: no such file or directory

    Also get.. when i run this command
    rsync -vrplogDtH /old/root/.my.cnf /root

    link_stat /old/root/.my.cnf : no such file or directory

    and... for command:
    rsync -vrplogDtH /old/etc/httpd/conf/httpd.conf /etc/httpd/conf

    link_stat /old/etc/httpd/conf/httpd.conf : no such file or directory

    and for the command:
    rsync -vrplogDtH /old/etc/sysconfig/network /etc/sysconfig

    link_stat /old/etc/sysconfig/network : no such file or directory
     
    #9 GloVine, Aug 22, 2005
    Last edited: Aug 22, 2005
  10. GloVine

    GloVine Member

    Joined:
    Jul 5, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Major problem

    More Bad news..

    When i try and run..

    # rsync -vrplogDtH secondarymx domainalias valiases vfilters exim* proftpd* pure-ftpd* passwd* group* *domain* *named* wwwacct.conf cpupdate.conf quota.conf shadow* *rndc* ips* ipaddrpool* ssl hosts /etc


    All of them come back as no such file or directory


    The server is of course, buggy now. No idea what to do
     
  11. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Did you actually mount the old OS disk as /old ?
     
  12. GloVine

    GloVine Member

    Joined:
    Jul 5, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Re

    the drive was already mounted as old by the datecenter
     
  13. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If you:

    cd /old
    ls -la


    Do you see a load of directories including:

    /etc
    /usr
    /var
     
  14. GloVine

    GloVine Member

    Joined:
    Jul 5, 2004
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Re

    Yep, all of them are there
     
  15. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It's possible that I may not be a problem, but it's difficult to know without seeing the state of the disk. I've sent you a PM.
     
  16. web12

    web12 Well-Known Member

    Joined:
    Nov 20, 2002
    Messages:
    240
    Likes Received:
    0
    Trophy Points:
    16
    Hi

    I seem to be getting the fatal error or timeout occurred messages on account creation since upgrading a couple of days ago.

    fatal error or timeout occurred while processing this directive][a fatal error or timeout occurred while processing this directive]WWWAcct 10.0 (c) 1997-2005 cPanel, Inc.

    +===================================+
    | New Account Info |
    +===================================+
    | Domain: domain.com
    | Ip: 11.22.33.44 (n)


    Ive tried a /scripts/upcp --force and current version is WHM 10.6.0 cPanel 10.6.0-R55 on Centos 3.5

    Is there anything else I should try?
     

Share This Page