Connection reset by peer at /usr/share/perl5/vendor_perl/LWP/Protocol/http.pm line 50.

when try adding powermax storage, it's failed with API authorization with the B/M error message: -

Connection reset by peer at /usr/share/perl5/vendor_perl/LWP/Protocol/http.pm line 50.

Comments

  • hello,

    any feedback

  • are you sure that network is open?

    Basically either powermax or firewall blocking the connection

    is this working?

    telnet <powermax> <port>

  • yes, port opened and telnet working fine.

    thanks for your feedback.

  • here is the output from xormon when test connectivity:


    Microservice test

    Device cfg

    API host network connection

    TCP connection to PmaxStorage:8443 is OK

    API authorization

    GET url : https:// PmaxStorage:8443/univmax/restapi/version

    Request error: 500 Can't connect to PmaxStorage:8443 (Connection reset by peer)

    Request error: Can't connect to PmaxStorage:8443 (Connection reset by peer)


    Connection reset by peer at /usr/share/perl5/vendor_perl/LWP/Protocol/http.pm line 50.


    GET url : https:// PmaxStorage:8443/univmax/restapi/90/system/version

    Request error: 500 Can't connect to PmaxStorage:8443 (Connection reset by peer)

    Request error: Can't connect to PmaxStorage:8443 (Connection reset by peer)


    Connection reset by peer at /usr/share/perl5/vendor_perl/LWP/Protocol/http.pm line 50.


    GET url : https:// PmaxStorage:8443/univmax/restapi/system/version

    Request error: 500 Can't connect to PmaxStorage:8443 (Connection reset by peer)

    Request error: Can't connect to PmaxStorage:8443 (Connection reset by peer)


    Connection reset by peer at /usr/share/perl5/vendor_perl/LWP/Protocol/http.pm line 50.


    Unisphere version has not been found!

    Connection failed!

  • Hi,


    can you try the following curl commands?

    Send us the output (hide the password).


    curl -i -X GET -k -u <user>:<password> -H "Content-Type: application/json" https://<Unisphere_IP_or_hostname>:8443/univmax/restapi/version
    curl -i -X GET -k -u <user>:<password> -H "Content-Type: application/json" https://<Unisphere_IP_or_hostname>:8443/univmax/restapi/90/system/version
    curl -i -X GET -k -u <user>:<password> -H "Content-Type: application/json" https://<Unisphere_IP_or_hostname>:8443/univmax/restapi/system/version
    
  • Thank you for your support.

    I ran the three commands mentioned above and received the same output:

    curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to PmaxStorage:8443
    

    However, I’m able to access the same endpoints through the web interface using the same credentials without any issues.

  • Hi,


    try the following commands and send us the outputs via email to support@xorux.com


    telnet <Unisphere_IP> 8443
    openssl s_client -connect <Unisphere_IP>:8443
    curl --tlsv1.2 -i -X GET -k -u <user>:<password> -H "Content-Type: application/json" https://<Unisphere_IP_or_hostname>:8443/univmax/restapi/version
    
  • kindly find the output:-

    $ telnet Unisphere_IP  8443
    Trying Unisphere_IP...
    Connected to Unisphere_IP.
    Escape character is '^]'.
    ^]
    telnet> quit
    Connection closed.
    $ openssl s_client -connect Unisphere_IP:8443
    Connecting to Unisphere_IP
    CONNECTED(00000003)
    write:errno=104
    ---
    no peer certificate available
    ---
    No client certificate CA names sent
    Negotiated TLS1.3 group: <NULL>
    ---
    SSL handshake has read 0 bytes and written 305 bytes
    Verification: OK
    ---
    New, (NONE), Cipher is (NONE)
    Protocol: TLSv1.3
    This TLS version forbids renegotiation.
    Compression: NONE
    Expansion: NONE
    No ALPN negotiated
    Early data was not sent
    Verify return code: 0 (ok)
    ---
    $ curl --tlsv1.2 -i -X GET -k -u username:password  -H "Content-Type: application/json" https://Unisphere_IP:8443/univmax/restapi/version
    curl: (35) OpenSSL SSL_connect: Connection reset by peer in connection to Unisphere_IP:8443
    
    


Sign In or Register to comment.