Rest API error 1111 : File does not exist: SSL negotiation failed

Hello,

I have a problem with lpar2rrd 6.02 (AIX 7.1) and REST connection to vHMC 9.21.
There is no problem with perl moduls:
bash-4.3$ . etc/lpar2rrd.cfg; $PERL bin/perl_modules_check.pl
bash-4.3$

And HMC user is super admin.
Here is an error:

bash-4.3$ /home/lpar2rrd/lpar2rrd/load_hmc_rest_api.sh
Start vhmc1 Data Fetch
hmc_rest_api.pl pid:14942402
Started hmc_rest_api.pl pid:14942402 vhmc1
Host Config loaded pid:14942402 vhmc1
Rest API       2019-03-29 08:42:53        : Logging out of sessions from vhmc1
Get Session Error : File does not exist: SSL negotiation failed:  at /home/lpar2rrd/lpar2rrd/lib/LWP/Protocol/http.pm line 21
 at /home/lpar2rrd/lpar2rrd/lib/LWP/Protocol/http.pm line 21
;  at /home/lpar2rrd/lpar2rrd/lib/LWP/Protocol/http.pm line 21
;  at /home/lpar2rrd/lpar2rrd/lib/LWP/Protocol/http.pm line 21
;  at /home/lpar2rrd/lpar2rrd/lib/LWP/Protocol/http.pm line 21
 at /home/lpar2rrd/lpar2rrd/bin/hmc_rest_api.pl line 2047

AIX Max Processes (lsattr -El sys0 -a maxuproc) : maxuproc 512 Maximum number of PROCESSES allowed per user True

API Error (general) at https://vhmc1:12443/rest/api/uom/ManagementConsole File: /home/lpar2rrd/lpar2rrd/bin/hmc_rest_api.pl:2111
Rest API error 1111 : File does not exist: SSL negotiation failed:  at /home/lpar2rrd/lpar2rrd/lib/LWP/Protocol/http.pm line 21
 at /home/lpar2rrd/lpar2rrd/lib/LWP/Protocol/http.pm line 21
;  at /home/lpar2rrd/lpar2rrd/lib/LWP/Protocol/http.pm line 21
;  at /home/lpar2rrd/lpar2rrd/lib/LWP/Protocol/http.pm line 21
;  at /home/lpar2rrd/lpar2rrd/lib/LWP/Protocol/http.pm line 21
 at /home/lpar2rrd/lpar2rrd/bin/hmc_rest_api.pl line 2145

LPAR2RRD free version 6.02 ()
Host           :
HMC            : vhmc1
date start     : vhmc1 Fri Mar 29 08:42:54 2019
RRDp    version: 1.4008
RRDtool version: 1.4.8
Perl version   : 5.008008
All chld finish: vhmc1
Skip get_cfg_server sub. use rest api
creating m_hmc : vhmc1:d
creating m_hmc : vhmc1:w
creating m_hmc : vhmc1:m
creating m_hmc : vhmc1:y
creating l_hmc : vhmc1:d - LPARs aggregated per a HMC
                        skipped this time : ( 1553845374 - 1553842960 ) < 18000
                        skipped this time : ( 1553845374 - 1553828403 ) < 39600
                        skipped this time : ( 1553845374 - 1553788114 ) < 86400
date end       : vhmc1 Fri Mar 29 08:42:54 2019
load_hmc_rest_api.sh end 8650786
Permission denied
/home/lpar2rrd/lpar2rrd/load_alert.sh[61]: /home/lpar2rrd/lpar2rrd/tmp/load_alert.sh.pid: cannot create
LPAR2RRD alert script v:6.02, started: Fri Mar 29 08:42:54 2019
Alert configuration :etc/alert.cfg
Finished       : Fri Mar 29 08:42:55 2019, run time: 1 secs
bash-4.3$ Name "main::Dumer" used only once: possible typo at /home/lpar2rrd/lpar2rrd/bin/hmc_rest_api.pl line 4062.
hmc_rest_api.pl pid:15663276
Started hmc_rest_api.pl pid:15663276 vhmc1
Host Config loaded pid:15663276 vhmc1
Rest API       2019-03-29 08:42:55 

Is this some kind of bug or just miss-configuration ?

Comments

  • Hi,

    ls -l /home/lpar2rrd/lpar2rrd/tmp/load_alert.sh.pid
    What is yoru LWP version?




  • edited March 29

    Hello,

    bash-4.3$ ls -l /home/lpar2rrd/lpar2rrd/tmp/load_alert.sh.pid
    -rw-r--r--    1 root     system            9 Jul 23 2014  /home/lpar2rrd/lpar2rrd/tmp/load_alert.sh.pid

    bash-4.3$ $PERL -MLWP -e 'use LWP::Protocol::https; print "LWP Version: $LWP::VERSION\n"'
    LWP Version: 6.06

    I am using VMware SDK 6.7

    bash-4.3$ echo $PERL
    /opt/freeware/bin/perl

    bash-4.3$ echo $PERL5LIB
    /home/lpar2rrd/lpar2rrd/bin:/home/lpar2rrd/lpar2rrd/vmware-lib:/home/lpar2rrd/lpar2rrd/lib:/opt/freeware/lib/perl/5.8.8:/usr/opt/perl5/lib/site_perl/5.8.8/aix-thread-multi:/opt/freeware/lib/perl5/vendor_perl/5.8.8/ppc-thread-multi

  • 1.
    rm /home/lpar2rrd/lpar2rrd/tmp/load_alert.sh.pid

    check if there is not other root owned file:
    find . | grep root


    2.
    export LIBPATH=/usr/lib:/opt/freeware/lib:$LIBPATH
    . etc/lpar2rrd.cfg; $PERL bin/perl_modules_check.pl

    when same SSL error then this output:
    rpm -qa| grep -i openssl




  • edited March 29
    pid deleted
    bash-4.3$ ls -l /home/lpar2rrd/lpar2rrd/tmp/load_alert.sh.pid
    -rw-r--r--    1 lpar2rrd staff             9 Mar 29 16:40 /home/lpar2rrd/lpar2rrd/tmp/load_alert.sh.pid


    #/home/lpar2rrd/lpar2rrd> find . | grep root
    #/home/lpar2rrd/lpar2rrd>

    find /home/lpar2rrd/ -user root // this is ok as well

    bash-4.3$ export LIBPATH=/usr/lib:/opt/freeware/lib:$LIBPATH
    bash-4.3$ . etc/lpar2rrd.cfg; $PERL bin/perl_modules_check.pl
    bash-4.3$

    bash-4.3$ rpm -qa| grep -i openssl
    openssl-1.0.1l-1

    After "export LIBPATH" now my RRDtool version is unknown

    bash-4.3$ /home/lpar2rrd/lpar2rrd/load_hmc_rest_api.sh
    [...]
    LPAR2RRD free version 6.02 ()
    Host           :
    HMC            : vhmc1
    date start     : vhmc1 Fri Mar 29 16:38:55 2019
    RRDp    version: 1.4008
    RRDtool version: Unknown
    Perl version   : 5.008008
    All chld finish: vhmc1
    [...]





  • can you try to remove openssl?

    System openssl persist (lslpp -L | grep -i ssl), just rpm can be deleted as it came as rrdtool prerequisite

    rpm -e openssl-1.0.1l-1     --nodeps


  • :/home/lpar2rrd/lpar2rrd> rpm -e openssl-1.0.1l-1 --nodeps
    cannot remove /opt/freeware/64/lib - directory not empty
    cannot remove /opt/freeware/64 - directory not empty
    You have mail in /usr/spool/mail/root
    :/home/lpar2rrd/lpar2rrd>

    root@scriptor:/home/lpar2rrd/lpar2rrd> lslpp -L | grep -i ssl
      openssl.base            0.9.8.2400    C     F    Open Secure Socket Layer
      openssl.license         0.9.8.2400    C     F    Open Secure Socket License
      openssl.man.en_US       0.9.8.2400    C     F    Open Secure Socket Layer
      jbigkit-libs                 2.0-2    C     R    JBIG1 lossless image
      perl-Crypt-SSLeay           0.57-2    C     R    Crypt-SSLeay - OpenSSL support
      perl-Net_SSLeay.pm          1.55-3    C     R    Net_SSLeay.pm - Perl extension
                                                       for using OpenSSL (/bin/rpm)

    Still getting same error
    bash-4.3$ /home/lpar2rrd/lpar2rrd/load_hmc_rest_api.sh
    Start vhmc1 Data Fetch
    hmc_rest_api.pl pid:18415762
    Started hmc_rest_api.pl pid:18415762 vhmc1
    Host Config loaded pid:18415762 vhmc1
    Rest API       2019-03-30 10:24:00        : Logging out of sessions from vhmc1
    Get Session Error : File does not exist: SSL negotiation failed:  at /home/lpar2rrd/lpar2rrd/lib/LWP/Protocol/http.pm line 21
     at /home/lpar2rrd/lpar2rrd/lib/LWP/Protocol/http.pm line 21
    [...]


  • I gave up, and reinstalled it on Linux, now everything works.
  • ok, this is the best choice
Sign In or Register to comment.