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.

VPS Installation takes more than 24 hours

Discussion in 'General Discussion' started by ensermo, Feb 1, 2007.

  1. ensermo

    ensermo Active Member

    Joined:
    Apr 24, 2004
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Delft
    I have a very strange problem.

    We use Xen Virtualisation on a server.
    I installed a basic minimal CentOS OS image on the server.

    When we run the cPanel installer it does quite some things and then starts showing

    .......
    .......
    .......
    .......

    This takes FOREVER.
    It has been running 28 hours and still nothing happens. The server did not hang nor the installation as it keeps showing more and more ......

    The virtual machine has 512MB RAM reserverd and 10GB Diskspace.

    Because we thought it was a problem with the VPS we created another. The same situation.
    I tested it on another Xen machine (another physical server) same issue but with Debian.

    Any idea why it takes so long? On our dedicated servers it takes 1-2 hours. ?

    Thanks in advance.
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    Most likely your resources are hitting its limit set by the vps. I usually make the account unlimited and increase the resources 10 fold or unlimited for the install then revert back to the proper allocation.
     
  3. ensermo

    ensermo Active Member

    Joined:
    Apr 24, 2004
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Delft
    No there are no limits. We also create unlimited accounts. Strange thing is that other control panels (on other vps's) do install.

    I managed to Ctrl-C one of the installations and then ran /scripts/upcp
    MySQL did not start but after fixing that it seems like the installation was successfull.

    Still this is not the way I would like to do this.

    Any ideas if we can monitor WHAT those ...... are?
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Install logs are created in /var/log Check those.

    If it is CentOS 3.8, and you didn't isntall Lynx during OS installation, then it's likely dying on perl-CGI (os is it perl-CPAN?) That is a problem with RedHat's RPMs. I've only encountered it on CentOS 3.8 (not on prior versions of CentOS 3).
     
  5. ensermo

    ensermo Active Member

    Joined:
    Apr 24, 2004
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Delft
    Hmm I didn't find any info on the Lynx thing in the installation manual.

    I only have yum installed and basic OS stuff. (And perl)

    Installation has been tried out on CentOS 4.4. and Debian

    I see these two files

    cpanel-install-thread0.log
    cpanel-install-thread1.log

    Is cpanel-install-thread1.log the last one?

    (tail cpanel-install-thread1.log shows:

    fieldset><legend>httpd status</legend>
    <table width="100%" border="0" cellspacing="1" cellpadding="0">
    <tr>
    <td><font size="-1"><pre>
    </pre></font></td>
    </tr>
    </table>
    </fieldset>
    <br>
    httpd has failed, please contact the sysadmin.
    ^[[A
    -bash-3.00# tail -30 /var/log/cpanel-install-thread1.log
    <table border="0" width="100%">
    <tr>
    <td>Attempting to restart httpd</td>
    <td><img src=/gears.gif></td>
    </tr>
    </table>
    Waiting for httpd to restart....
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    finished.

    <br /><br />
    <fieldset><legend>httpd status</legend>
    <table width="100%" border="0" cellspacing="1" cellpadding="0">
    <tr>
    <td><font size="-1"><pre>
    </pre></font></td>
    </tr>
    </table>
    </fieldset>
    <br>
    httpd has failed, please contact the sysadmin.


    ---------------------------------------------------
    tail of cpanel-install-thread0.log shows:

    error reading information on service apmd: No such file or directory
    error reading information on service atd: No such file or directory
    error reading information on service gpm: No such file or directory
    error reading information on service innd: No such file or directory
    error reading information on service pcmcia: No such file or directory
    error reading information on service smb: No such file or directory
    error reading information on service xfs: No such file or directory
    error reading information on service ypbind: No such file or directory
    chown: cannot access `~cpanel/base/cgiwrap*': No such file or directory
    chmod: cannot access `~cpanel/base/cgiwrap*': No such file or directory
    inetd: no process killed
    Shutting down kernel logger: [ OK ]
    Shutting down system logger: [ OK ]
    Starting system logger: [ OK ]
    Starting kernel logger: [ OK ]
    open3: exec of /etc/rc.d/init.d/antirelayd start failed at ./install line 675
    sendmail: no process killed
    open3: exec of /etc/rc.d/init.d/exim stop failed at ./install line 675
    open3: exec of /etc/rc.d/init.d/exim start failed at ./install line 675
    open3: exec of /etc/rc.d/init.d/proftpd start failed at ./install line 675
    open3: exec of /etc/rc.d/init.d/antirelayd start failed at ./install line 675
    If you are getting an "undefined catalog error", please run:
    /scripts/rebuildinterchangecfg; /usr/local/cpanel/bin/startinterchange
    Found hostname to be noname0001.mkeweb.net, which resolves to 84.244.170.173
    httpd: no process killed
    error reading information on service proftpd: No such file or directory
    error reading information on service exim: No such file or directory
    error reading information on service cpanel: No such file or directory
    error reading information on service bandmin: No such file or directory
    Starting sshd:[ OK ]
     
  6. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The Lynx thing is new, and only happens on CentOS 3.8 systems. Even then, it's inconsistent.

    From what you posted, it looks like a lot of things failed during install.

    Also, Debian is not a supported OS (http://www.cpanel.net/products/cPanelandWHM/linux/sys_requirements.htm)
     
  7. ensermo

    ensermo Active Member

    Joined:
    Apr 24, 2004
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Delft
    Thanks for your reply.

    I tought cPanel took care of everything and you needed a basic OS install.

    Could you tell me what other software should be installed apart from perl and yum?

    I also followed the VPS install guide even though Xen acts more like a dedicated server.
    http://www.cpanel.net/docs/vps/

    I could create an account for you (VPS) and let you check it out.
     
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    We do. The roblem with the Lynx dependency is beyond our control as it is something the OS vendor messed upn. Their perl-CPAN package depends upon a lynx package that doesn't exist. As mentioned though, this only afflicts CentOS 3.8, and not consistently.

    When I do installs for the lab, I only install the Base packages (removing all server, XWindow, etc packages) and the Developer tools and libraries (because it makes the cpanel install go faster, don't worry we also keep OS images that only have the base packages installed to make certain dependencies are handled properly).


    Another thing to try, if you VPS allows it: switch to another console (or create a new SSH session) and list the running processes. That will often give you a great idea what it's stuck on.

    If oyu want me to peek on your VPS, pm me the details. No guarantees, but I'll try to work in time for a peek.
     
  9. ensermo

    ensermo Active Member

    Joined:
    Apr 24, 2004
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Delft
    Thanks. I sent you a PM with login info for a VPS server.
     
  10. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    It worked for me, isntalling in just over 45 minutes. Here is what I did:

    1. after login, run yum update and install everything (kernels are excluded)
    2. wget http://layer1.cpanel.net/latest (note: it doesn't matter which server you get this file from, theyr are all the same)
    3. sh latest
    4. wait


    Since the above worked, and the only different step is #1, my thought is there is some race condition being caused by yum update and the install. During cPanel installation, the install script executes a yum update. it's possible the yum update is replacing something cPanel install needs.

    I always find it most helpful to do a yum update before running an install. We are in the process of rewriting/clarifying some of our documentation. I'll attempt to get the install docs improved.
     
Loading...

Share This Page