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.

Failing instalation

Discussion in 'Workarounds and Optimization' started by HelgeR, Jul 15, 2009.

  1. HelgeR

    HelgeR Member

    Joined:
    Jul 15, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    and there it hangs, the first part of this is quite disturbing though also.. Any thaughts?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I recommend letting our technical analysts assist you with this: http://tickets.cPanel.net/submit
     
  3. HelgeR

    HelgeR Member

    Joined:
    Jul 15, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Running on trial, am I entitled to support from techsupport then? I see I am asked for a support access number.

    Just doing a test run on a freshly installed Red Hat Enterprise Linux 5.3 Desktop. Getting a lot of weird errors about packages (when it uses yum during install) that it doesnt find and errors like:
    "
    Restarting spamassassin....Done <-- hangs here after 15mins I hit control + c)
    warn [cPScript::NameServer::Utils::BIND] named-checkconf not located on system. Check your Bind installation.
    warn [cPScript::NameServer::Utils::BIND] named-checkconf not located on system. Check your Bind installation.
    Securing the /tmp and /var/tmp directories....Securing /tmp & /var/tmp
    "

    Logs saying:
    "
    The Apache conf is missing! Please check your system. at /scripts/fixmailmanwithsuexec line 34.
    Named could not be restarted, any obvious config errors should show up below this line.
    error reading information on service proftpd: No such file or directory
    error reading information on service cpanel: No such file or directory
    Starting sshd: [ OK ]
    Starting exim: [ OK ]
    Starting exim-smtps: [ OK ]
    The Apache conf is missing! Please check your system. at /scripts/fixmailmanwithsuexec line 34.
    checkyum version 20.5
    "

    Install guide doesnt tell me to do anything pre-install, so I guess a freshly installed Red Hat server after first boot, just start cpanel installer? Also saw during install that Cpan failed cause it went in to a loop when it didnt have a default region and I had to exit cpanel installer and run "cpan" manually first to go trough the cpan startup wizard and then run cpanel installer again...
     
    #3 HelgeR, Jul 15, 2009
    Last edited: Jul 15, 2009
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Yes, you are entitled to support even on a test license. If the command-line command for retrieving a support number doesn't work, just submit it as a customer service ticket and we'll route it over to our technical analysts.

    Our installation guides include comprehensive information regarding pre-installation procedures. Are you using our Quick-Start Installation guide posted at: Quick Start Installation Guide ? Or our Advanced Installation Guide posted at: cPanel Installation Guide ? Or are you referring to something else?
     
  5. HelgeR

    HelgeR Member

    Joined:
    Jul 15, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Yeah I'm following the quickstart guide, and saw after this post that, yes, one should only install minimal packages and fire up cPanel installer and it will do the rest, except for disable selinux.

    I just did a reinstall of the vmware guest and will give the installer another go. This time doing the cpan firsttime wizard before running cPanel installer, hopefully I dont have to stop the cPanel installer this time, maybe it goes smoother then...
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you leave SELinux enabled, you will be unable to access the cPanel and WHM interfaces given SELinux's default configuration.
     
  7. acenetryan

    acenetryan Well-Known Member
    PartnerNOC

    Joined:
    Aug 21, 2005
    Messages:
    197
    Likes Received:
    1
    Trophy Points:
    18
    Hope I'm not hijacking this thread, but HelgeR touched on this:

    cPanel installs today are hanging on the CPAN installation. The install gets through Perl and then starts the CPAN section where various questions are asked. The installer correctly autofills most of the questions and then gets to:

    Code:
    First, pick a nearby continent and country (you can pick several of
    each, separated by spaces, or none if you just want to keep your
    existing selections). Then, you will be presented with a list of URLs
    of CPAN mirrors in the countries you selected, along with previously
    selected URLs. Select some of those URLs, or just keep the old list.
    Finally, you will be prompted for any extra URLs -- file:, ftp:, or
    http: -- that host a CPAN mirror.
    
    (1) Africa
    (2) Asia
    (3) Australasia
    (4) Central America
    (5) Europe
    (6) North America
    (7) Oceania
    (8) South America
    Select your continent (or several nearby continents) [] 4
    Sorry! since you don't have any existing picks, you must make a
    geographic selection.
    
    After answering 4 (Central America), this happens:

    Code:
    (1) Costa Rica
    Select your country (or several nearby countries) [] 4
    invalid items entered, try again
    (1) Costa Rica
    Select your country (or several nearby countries) [] 4
    invalid items entered, try again
    (1) Costa Rica
    Select your country (or several nearby countries) [] 4
    invalid items entered, try again
    (1) Costa Rica
    Select your country (or several nearby countries) [] 4
    invalid items entered, try again
    (1) Costa Rica
    ...
    ...
    
    Forever. I've killed the installer and manually installed CPAN. I'm rerunning the install now. Will post progress...

    So far I've had this happen on one XenServer VPS and one dedicated machine.

    I'm surprised this is only briefly mentioned in this forums thread today. Would think lots of others would be complaining that cPanel installs are failing. Unless this is isolated to us and HelgeR due to special circumstances?
     
  8. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I recommend letting our technical analysts take a look at the situation: http://tickets.cPanel.net/submit

    If it is special circumstances, they can let you know what those circumstances are. If these circumstances are readily reproducable, then our technical analysts can recommend a long-term solution to our developers for resolving this issue.
     
  9. HelgeR

    HelgeR Member

    Joined:
    Jul 15, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Just an update, after the reinstall I got stuck at the exact same stage as before..

    "
    checking for SSL/TLS toolkit includes... configure: error: OpenSSL headers not found
    !! './configure --enable-expires --enable-headers --enable-info --enable-logio --enable-proxy --enable-rewrite --enable-ssl --enable-suexec --prefix=/usr/local/apache --with-included-apr --with-suexec-caller=nobody --with-suexec-docroot=/ --with-suexec-gidmin=100 --with-suexec-logfile=/usr/local/apache/logs/suexec_log --with-suexec-uidmin=100 --with-suexec-userdir=public_html' failed with exit code '256' !!
    !! Restoring original working apache !!
    !! Executing '/scripts/initsslhttpd' !!
    !! Restarting 'httpd' ... !!
    !! Failed to restart Apache. !!
    !! Executing '/scripts/initfpsuexec' !!
    !! Executing '/scripts/initsslhttpd' !!
    Compiling report...
    Sending report (37484 bytes)...
    !! If you want to create a support ticket with cPanel regarding this please reference 'BuildAP Report Id': '2257553' !!
    Stopping portmap: [ OK ]
    error reading information on service lpd: No such file or directory
    Stopping atd: [ OK ]
    Shutting down console mouse services: [ OK ]
    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
    Shutting down xfs: [ OK ]
    Shutting down NIS services: [FAILED]
    chown: cannot access `/usr/local/cpanel/base/cgiwrap*': No such file or directory
    inetd: no process killed
    ^AShutting down kernel logger: [ OK ]
    sendmail: no process killed
    open3: exec of /etc/rc.d/init.d/exim stop failed at ./install line 1049
    open3: exec of /etc/rc.d/init.d/exim start failed at ./install line 1049
    open3: exec of /etc/rc.d/init.d/proftpd start failed at ./install line 1049
    If you are getting an "undefined catalog error", please run:
    The Apache conf is missing! Please check your system. at /scripts/fixmailmanwithsuexec line 34.
    Named could not be restarted, any obvious config errors should show up below this line.
    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 ]
    Cannot open /etc/chkserv.d at /scripts/restartsrv_exim line 99.
    "

    Opening a ticket..
     
  10. HelgeR

    HelgeR Member

    Joined:
    Jul 15, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Have tried to reinstall the OS as well :)

    It doesnt seem to complete the Apache instalation for some reason..
     
  11. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    You got bigger issues to be concerned about if you are getting that message!

    The /scripts/fixmailmanwithsuexec script at line 34 does a simple check
    to see if the main Apache configuration file (httpd.conf) exists in the
    normal default /usr/local/apache/conf folder used on Cpanel servers.

    I can only see 2 possibilities for that one ....

    A) You are running your install scripts from some other account than 'root'
    or are in jailshell in which case I'd slap you upside the head. ;)

    B) Your Apache is broken or missing in which case you need to see about
    resolving that issue before addressing everything else; Possibly reinstall
    cpanel clean or running /scripts/EasyApache to rebuild Apache.
     
  12. HelgeR

    HelgeR Member

    Joined:
    Jul 15, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Did some digging..

    Code:
    root@cp [/home]# /scripts/easyapache
    !! Pre allocation testing was successfully able to allocate 90MB !!
    !!
    Ouput from '/bin/sh -c "ulimit -a"':
    core file size          (blocks, -c) 0
    data seg size           (kbytes, -d) unlimited
    scheduling priority             (-e) 0
    file size               (blocks, -f) unlimited
    pending signals                 (-i) 24576
    max locked memory       (kbytes, -l) 32
    max memory size         (kbytes, -m) 524288
    open files                      (-n) 1024
    pipe size            (512 bytes, -p) 8
    POSIX message queues     (bytes, -q) 819200
    real-time priority              (-r) 0
    stack size              (kbytes, -s) 10240
    cpu time               (seconds, -t) unlimited
    max user processes              (-u) 24576
    virtual memory          (kbytes, -v) 524288
    file locks                      (-x) unlimited
    !!
    Can't locate Curses.pm in @INC (@INC contains: /scripts/../lib /var/cpanel/easy/apache/custom_opt_mods /usr/local/cpanel /var/cpanel/perl/easy /scripts /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/site_perl/5.8.8/Curses/UI/Common.pm line 20.
    BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.8/Curses/UI/Common.pm line 20.
    Compilation failed in require at (eval 2507) line 3.
            ...propagated at /usr/local/lib/perl5/5.8.8/base.pm line 85.
    BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.8/Curses/UI.pm line 2.
    Compilation failed in require at /var/cpanel/perl/easy/Cpanel/Easy/Apache/UI/CLI/Config.pm line 5.
    BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Apache/UI/CLI/Config.pm line 5.
    Compilation failed in require at /var/cpanel/perl/easy/Cpanel/Easy/Apache/UI/CLI.pm line 404.
    root@cp [/home]#

    ok some more digging, need Curses::UI

    Code:
    root@cp [/home]# /scripts/realperlinstaller --force Curses::UI
    ......
    ......
    Curses-UI-0.9607/t/lorem.pl
    CPAN: File::Temp loaded ok (v0.22)
    CPAN: YAML loaded ok (v0.68)
    
      CPAN.pm: Going to build M/MD/MDXI/Curses-UI-0.9607.tar.gz
    
    Cannot determine perl version info from lib/Curses/UI.pm
    WARNING: 'All rights reserved' in copyright may invalidate Open Source license.
    *** Module::AutoInstall version 1.03
    *** Checking for Perl dependencies...
    [Core Features]
    - Curses        ...missing.
    - Term::ReadKey ...loaded. (2.30)
    ==> Auto-install the 1 mandatory module(s) from CPAN? [y]
    
    *** Since we're running under CPANPLUS, I'll just let it take care
        of the dependency's installation later.
    *** Module::AutoInstall configuration finished.
    Checking if your kit is complete...
    Looks good
    Warning: prerequisite Curses 0 not found.
    Writing Makefile for Curses::UI
    ---- Unsatisfied dependencies detected during ----
    ----       MDXI/Curses-UI-0.9607.tar.gz       ----
        Curses [requires]
    Shall I follow them and prepend them to the queue
    of modules we are processing right now? [yes]
    ....
    ....
    function 'scr_set' NOT found
    function 'scroll' NOT found
    function 'wscrl' NOT found
    function 'slk_init' NOT found
    function 'slk_set' NOT found
    function 'slk_refresh' NOT found
    function 'slk_noutrefresh' NOT found
    function 'slk_label' NOT found
    function 'slk_clear' NOT found
    function 'slk_restore' NOT found
    function 'slk_touch' NOT found
    function 'slk_attron' NOT found
    function 'slk_attrset' NOT found
    function 'slk_attr' NOT found
    function 'slk_attroff' NOT found
    function 'slk_color' NOT found
    ...
    ...
    Manifying blib/man3/Curses::UI::Dialog::Dirbrowser.3
    Manifying blib/man3/Curses::UI::Dialog::Calendar.3
      MDXI/Curses-UI-0.9607.tar.gz
      /usr/bin/make -- OK
    Running make install
    /usr/local/bin/perl "-Iinc" Makefile.PL --config= --installdeps=Curses,0
    Cannot determine perl version info from lib/Curses/UI.pm
    WARNING: 'All rights reserved' in copyright may invalidate Open Source license.
    
    *** Since we're running under CPANPLUS, I'll just let it take care
        of the dependency's installation later.
    Writing /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/auto/Curses/UI/.packlist
    Appending installation info to /usr/local/lib/perl5/5.8.8/i686-linux/perllocal.pod
      MDXI/Curses-UI-0.9607.tar.gz
      /usr/bin/make install UNINST=1 -- OK
    perlmod--Install done
    But no matter how many times I run that command it always says: - Curses ...missing.

    and the same error when running /scripts/easyapache
     
  13. PixyMisa

    PixyMisa Registered

    Joined:
    Aug 24, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1

    This exact thing is happening to me: Installing on OpenVZ, CentOS 5 x86_64.

    Everything works great, then it flies off to Costa Rica and never returns.

    Have tried it three or four times now, happens every single time.

    Update: Manually configuring CPAN first doesn't help. Restarting the CPanel installer doesn't help. Destroying and re-creating the VPS doesn't help. Already have 3 CPanel VPSes installed on this server, running the same CentOS 5 x86_64 template.

    Update: Updated CPAN to latest version, configured it, and starting a fresh install now. Let's see how that goes.

    Update: Doesn't work.
     
    #13 PixyMisa, Jul 16, 2009
    Last edited: Jul 16, 2009
  14. HelgeR

    HelgeR Member

    Joined:
    Jul 15, 2009
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Just an update on my part of the problem:

    As I am running a trial I decided to go with the cheapest Red Hat Enterprise Linux license available, the Desktop edition with Basic Support agreement.
    This version doesnt have almost any developer packages in it and missing tons of other packages as well. Thus the cPanel installer will only find about 30-40% of the packages it should find during install.

    I upgraded my license to a Desktop+Workstation subscription and a bunch of packages got installed during 2nd run with the installer, among other things openssl-devel which was quite essential according to tech support.
    A tech support I must say have been extremly helpful and extremly quick to help out, which is very important for me in the future as a potential customer. Knowing that if something goes horrible wrong down the road, tech support will be helping out quickly and professionaly.

    Now only thing missing is to get my license activated so I can start playing around with the UI.

    Oh, on a final note, the CPAN instalation should get focus from cPanel, as thats not working at least not on Red Hat EL 5.3 desktop+workstation, have reinstalled the server OS 2 times and both times the CPAN installer went in to a loop when it came to region settings, so I had to kill the cPanel installer, run cpan and answer the startup wizard questions, quit CPAN once it started and fire up the cPanel installer again.
     
  15. PixyMisa

    PixyMisa Registered

    Joined:
    Aug 24, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    It looks like if you install Perl using the CPanel Perl installer first, the main install runs okay. It hasn't finished yet, so I don't know for sure that it's all worked correctly, but it's certainly gotten past the CPAN Costa Rica event horizon.

    Perl installer instructions here: PerlFAQ < AllDocumentation/AllFAQ < TWiki

    Update: Not sure it worked properly; I'm getting some odd errors from Perl and elsewhere. Bleh.
     
    #15 PixyMisa, Jul 16, 2009
    Last edited: Jul 16, 2009
  16. ccarlson-ges

    ccarlson-ges Registered

    Joined:
    Dec 16, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    perl5.8.8 installer not fuctioning correctly

    I discovered this morning that the automatic cpanel update was caught in a loop while trying to update perl's SpamAssassing module. The server was acting link Perl wasn't even installed anymore. My daily backups had all failed due to perl script errors and Configserver's lfd firewall was not running.

    I forced a cpanel update from the command prompt and that got things working again.
    After the forced update, I received an email with the subject "[checkperlmodules] perl version too old (v5.8.8 required, v5.8.5 is installed.)." and proceded to follow the instructions:

    perl -MCPAN -e 'autobundle'

    Once completed, you should see the following output before getting
    returned to the shell:

    'Wrote bundle file /home/.cpan/Bundle/Snapshot_2007_08_16_00.pm'

    Once you've made note of this file name, you can proceed with the update.

    On linux based systems, you should be able to update Perl using
    the installer provided at layer1.cpanel.net:

    cd /root
    wget http://layer1.cpanel.net/perl588installer.tar.gz
    tar -zxf perl588installer.tar.gz
    cd perl588installer
    ./install -optimize-memory

    I had the same issue as listed below.

    While it was stuck in the loop, I started searching the forums and found this thread. There didn't seem to be a definitive solution here, yet ... so I figured I would have to end the installer and find out just how broken things were. When I hit CTRL + C , the loop ended and the installer continued. It just finished -- and seemed to finish without further errors. (11:02 central time US)

    I executed perl -MCPAN -e 'install Bundle::Snapshot_2009_07_16_00' which finished without errors (11:47 central time US).

    I executed /usr/local/cpanel/bin/checkperlmodules and all modules passed. I also restarted cpanel with no errors. (11:48 central time US).


    There is definately a problem with the perl5.8.8 installer from layer1.cpanel.net and it should be corrected. It seems like I got lucky. My results probably aren't typical.
     
  17. acenetryan

    acenetryan Well-Known Member
    PartnerNOC

    Joined:
    Aug 21, 2005
    Messages:
    197
    Likes Received:
    1
    Trophy Points:
    18
    After testing the CPAN issue noted in this thread, cPanel staff identified there was a problem with the cPanel installer. They do not have an ETA for the fix to be pushed, but advised that in the meantime we should continue installing Perl and CPAN prior to installing cPanel. We're running through a cPanel install right now and so far it appears to be going through without a problem. It definitely has made it past the "Costa Rica" CPAN section.
     
  18. dhalsiim

    dhalsiim Registered

    Joined:
    Jul 18, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    The installer script is getting stuck while running 'expect'.

    You can kill that thread to move forward:

    ps aux | pgrep expect | xargs kill -9

    You can view the progress of the installer in the following log file:

    tail -f /var/log/cpanel*0.log

    Our problems are also occurring on CentOS 5.2/5.3. Not sure what you mean by install Perl and CPAN before the installer. Don't they come by default with a CentOS installation?
     
  19. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You need to install the developer tools in CentOS to have Perl and CPAN.

    I also recommend configuring CPAN and just using the default options before running the cPanel/WHM installer (again). I did that this weekend when provisioning a server and that's how I got past this issue.
     
  20. skatebored

    skatebored Member

    Joined:
    Sep 3, 2007
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    costarica stuff

    halu...

    nice info up there...

    thank you...
     

Share This Page