Home Forums HDP on Linux – Installation Failed to start HMC

This topic contains 9 replies, has 2 voices, and was last updated by  Sasha J 2 years, 1 month ago.

  • Creator
    Topic
  • #9452

    Hi Sasha:

    I am newbie to HDP,so I seriously followed the Hortonworks Documentation to install the Hortonworks Management Center (HMC),
    but failed to start HMC.

    My Environments are shown as below :
    CPU:1 CPU quad core(Intel Core i5-3.2G)
    OS:CentOS6.3(64bit)
    Web Browsers: Mozilla Firefox ESR 10.0.5

    I found the Sytex Eror(SSLCertificateFile:: file ‘/var/lib/puppet/ssl/certs/hostjeff.pem’ does not exist or is empty) maybe the keypoint,
    so I trried to find the answer from the Forum ( Installation HDP FAQ).
    luckily, I found the recommentation as you(SASHA) posted on the Forum on July 20, 2012 at 2:39 pm :


    Q: Failed to start HMC : SSLCertificateFile: file ‘/var/lib/puppet/ssl/certs/.pem’ does not exist or is empty
    A: probably a bad hostname, or hostname has changed
    S: the easiest thing to do is to :
    1) first verify your hostname:
    # hostname -f
    > if this is invalid fix this before continuing
    2) reinstall hmc
    # yum -y remove hmc
    # yum -y remove puppet
    # yum -y install hmc
    3) restart hmc
    # service hmc start

    But after repeated these steps again and again, I still could not successfully started the HMC.
    What’s wrong ?Any suggestion?

    Below are my steps to install HMC,
    I was succefully installed on early satge, but failed at the final step ” service hmc start”.

    Step1: Install CentOS6.3 OK
    Setp2: Login as root OK
    Step3: Setup Password-Less SSH (Confirmed OK)
    Step4: Disable Selinux(Confirmed OK)
    Step5: Enable NTP OK
    Step6: DNS/Reverse DNS portion
    $vi /etc/Hosts…..OK
    Step7: Stop ipTable OK
    Step8: Setup the Bits OK
    8.1. #rpm -Uvh http://public-repo-1.hortonworks.com/HDP-1.0.1.14/repos/centos6/hdp-release-1.0.1.14-1.el6.noarch.rpm
    8.2.#yum install epel-release
    8.3.#install hmc
    8.4.#rpm -qa | grep hmc
    Setp9: service hmc start fail
    Below is the failure log

    [root@hostjeff ~]# service hmc start
    Starting HMC Installer
    Starting httpd: [Fri Sep 07 21:42:10 2012] [warn] The Alias directive in /etc/httpd/conf.d/hdp_mon_nagios_addons.conf at line 1 will probably never match because it overlaps an earlier Alias.
    Syntax error on line 35 of /etc/httpd/conf.d/puppetmaster.conf:
    SSLCertificateFile: file ‘/var/lib/puppet/ssl/certs/hostjeff.pem’ does not exist or is empty
    [FAILED]
    Failed to start HMC

    Why the suggestion below did not work ? I tried them again and again, but it jsut did not help after all.

    Q: Failed to start HMC : SSLCertificateFile: file ‘/var/lib/puppet/ssl/certs/.pem’ does not exist or is empty
    A: probably a bad hostname, or hostname has changed
    S: the easiest thing to do is to :
    1) first verify your hostname:
    # hostname -f
    > if this is invalid fix this before continuing
    2) reinstall hmc
    # yum -y remove hmc
    # yum -y remove puppet
    # yum -y install hmc
    3) restart hmc
    # service hmc start

    Regards,

    Jeff

Viewing 9 replies - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #9650

    Sasha J
    Moderator

    Jeff,
    have you been able to install it?

    Collapse
    #9608

    Dear Sasha:

    Very helpful, it can work now, Thank you very much!

    Regards,

    Jeff

    Collapse
    #9483

    Sasha J
    Moderator

    OK, your host name resolves as hostjeff.zyxel.com through DNS.
    This is something on Puppet site, it use system calls to get the host name and not use local hosts file as desired, even when all resolver configs set to use files first.
    Put full node name hostjeff.zyxel.com to your /etc/hosts file, as well as for the other hosts, add .zyxel.com to full name.
    So, your /etc/hosts file should looks like this:

    192.168.1.51 hostjeff.zyxel.com hostjeff
    192.168.1.101 host001.zyxel.com host001
    192.168.1.102 host002.zyxel.com host002
    192.168.1.103 host003.zyxel.com host003
    192.168.1.104 host004.zyxel.com host004

    Then HMC should starts normally.

    Sasha

    Collapse
    #9478

    Hi Sasha:

    [root@hostjeff ~]# cd /var/lib/puppet/ssl/certs
    [root@hostjeff certs]# ls
    ca.pem hostjeff.zyxel.com.pem
    [root@hostjeff certs]# ls -al
    total 16
    drwxr-xr-x. 2 puppet root 4096 Sep 6 21:24 .
    drwxrwx–x. 8 puppet root 4096 Sep 6 21:24 ..
    -rw-r–r–. 1 puppet root 843 Sep 6 21:24 ca.pem
    -rw-r–r–. 1 puppet root 948 Sep 6 21:24 hostjeff.zyxel.com.pem
    [root@hostjeff certs]#

    Regards,
    Jeff

    Collapse
    #9476

    Sasha J
    Moderator

    This all means problems on Puppet side, it is not generates correct certificate for some reasons.
    Most likely due to incorrect naming resolution.

    What is the content of /var/lib/puppet/ssl/certs directory?

    Sasha

    Collapse
    #9470

    Hi:

    Another information about DNS
    #cat /etc/resolv.conf
    # Generated by NetworkManager
    domain zyxel.com
    search zyxel.com
    nameserver 192.168.1.1

    Regards,
    Jeff

    Collapse
    #9469

    Sasha J
    Moderator

    This means problems on Puppet side, it is not generates correct certificate for some reasons…
    What is the content of /var/lib/puppet/ssl/certs directory?

    Sasha

    Collapse
    #9459

    1.[root@hostjeff ~]# hostname -f
    hostjeff

    2.the .pem file does not exist.

    3.[root@hostjeff ~]# cat /etc/hosts
    192.168.1.51 hostjeff
    192.168.1.101 host001
    192.168.1.102 host002
    192.168.1.103 host003
    192.168.1.104 host004

    Regards,

    Jeff

    Collapse
    #9453

    Sasha J
    Moderator

    Wen-Chich,

    What do you get when you run the ‘hostname -f’ command? And does the .pem file exist?

    Sasha

    Collapse
Viewing 9 replies - 1 through 9 (of 9 total)