ERROR: Login to API failed

Hello!

ERROR: Login to API failed and The request sent by the client was syntactically incorrect.
Storage: Dell SC Series 
Enterprise Manager 2015 R3 [Build: 15.3.1.300]
Perl:v6.5
I have hashed the password in etc/storage-list.cfg by perl ./bin/spasswd.pl:
Config storage-list.cfg: compellent01:COMPELLENT:10.10.1.10:3033:admin:KT4mXVI9N0BUPjZdVQo=

After ./bin/config_check.sh:

=========================
STORAGE: compellent01: COMPELLENT
=========================
TCP connection to "10.10.1.10" on port "3033" is ok
/usr/bin/perl /home/stor2rrd/stor2rrd/bin/compellent_apitest.pl "admin" XXXXX "10.10.1.10" "3033"
ERROR: Login to API failed :
<html><head><title>JBoss Web/7.2.0.Final - JBWEB000064: Error report</title><style><!--H1 {font-family:Ta            homa,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,            sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;            color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:bla            ck;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}             P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.            name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 400 - jav            a.io.EOFException: No content to map to Object due to end of input</h1><HR size="1" noshade="noshade"><p>            <b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u>java.io.EOFExcep            tion: No content to map to Object due to end of input</u></p><p><b>JBWEB000069: description</b> <u>JBWEB0            00120: The request sent by the client was syntactically incorrect.</u></p><HR size="1" noshade="noshade">            <h3>JBoss Web/7.2.0.Final</h3></body></html> :

Cookie is not defined! :
  connection failed!!

I can connect to https://10.10.1.10:3033 without password (image attached):

Please HELP!

«1

Comments

  • Hello,

    try this test script:


    Gunzip it and copy to /home/stor2rrd/stor2rrd/bin (755, stor2rrd owner)
    -rwxr-xr-x 1 stor2rrd stor2rrd 12185 24. čec 09.32 compellent_apitest.pl
    If your web browser gunzips it automatically then just rename it: mv compellent_apitest.pl.gz compellent_apitest.pl


    You will send us output these commands

    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir
    ./bin/config_check.sh compellent01


    Thank you
  • [lpar2rrd@xoruxibm stor2rrd]$ whoami
    lpar2rrd
    [lpar2rrd@xoruxibm stor2rrd]$ pwd
    /home/lpar2rrd/stor2rrd
    [lpar2rrd@xoruxibm stor2rrd]$ ./bin/config_check.sh compellent01

    =========================
    STORAGE: compellent01: COMPELLENT
    =========================
    TCP connection to "10.10.1.10" on port "3033" is ok
    /usr/bin/perl /home/lpar2rrd/stor2rrd/bin/compellent_apitest.pl "admin" XXXXX "10.10.1.10" "3033"
    ERROR: Login to API failed :
    <html><head><title>JBoss Web/7.2.0.Final - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 400 - java.io.EOFException: No content to map to Object due to end of input</h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u>java.io.EOFException: No content to map to Object due to end of input</u></p><p><b>JBWEB000069: description</b> <u>JBWEB000120: The request sent by the client was syntactically incorrect.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.2.0.Final</h3></body></html> :

    Cookie is not defined! :
      connection failed!!

  • Try this curl command for testing login and you will send us output

    curl -k -i https://10.10.1.10:3033/api/rest/ApiConnection/Login -X POST -d '{}' -u admin:<password> -H 'content-type: application/json' -H 'x-dell-api-version: 2.0'


    where <password> is password of admin user


    thank you.
  • [lpar2rrd@xoruxibm stor2rrd]$ curl -k -i https://10.10.1.10:3033/api/rest/ApiConnection/Login -X POST -d '{}' -u admin:password -H 'content-type: application/json' -H 'x-dell-api-version: 2.0'
    HTTP/1.1 200 OK
    Server: Apache-Coyote/1.1
    Set-Cookie: JSESSIONID=mhQYxtIQDivGaMeIvU3vceF1; Path=/api; Secure
    Content-Type: application/json
    Transfer-Encoding: chunked
    Date: Tue, 24 Jul 2018 10:31:26 GMT

    {"hostName":"10.10.1.10","connected":true,"locale":"en_US","apiBuild":311,"commandLine":false,"useHttps":false,"provider":"EnterpriseManager","userName":"admin","source":"REST","sessionKey":1532326992887,"application":"","apiVersion":"2.2","userId":434227,"providerVersion":"15.3.1.300","minApiVersion":"0.1","webServicesPort":3033,"connectionKey":"","secureString":"","applicationVersion":"","instanceId":"0","objectType":"ApiConnection","instanceName":"ApiConnection"}[lpar2rrd@xoruxibm stor2rrd]$

  • hm. please one more output curl command (x-api-version 3.1)
    curl -k -i https://10.10.1.10:3033/api/rest/ApiConnection/Login -X POST -d '{}' -u admin:<password> -H 'content-type: application/json' -H 'x-dell-api-version: 3.1'

    Thank you.

  • [lpar2rrd@xoruxibm stor2rrd]$ curl -k -i https://10.10.1.10:3033/api/rest/ApiConnection/Login -X POST -d '{}' -u admin:password -H 'content-type: application/json' -H 'x-dell-api-version: 3.1'
    HTTP/1.1 400 Bad Request
    Server: Apache-Coyote/1.1
    Set-Cookie: JSESSIONID=VOPoyOC-+FP-h9ZUiHYs5B5e; Path=/api; Secure
    Content-Type: application/json
    Transfer-Encoding: chunked
    Date: Tue, 24 Jul 2018 11:28:15 GMT
    Connection: close

    {"result":"Requested API version (3.1) is not supported.  Supported version(s): 0.1 to 2.2"}[lpar2rrd@xoruxibm stor2rrd]$
  • edited July 2018
    Thank you, Lukas, for attention to my problem and the spent time.
    How it is possible to provide compatibility?
  • We working on it. Did you use this script http://download.stor2rrd.com/patch/compellent_apitest.pl.gz (before run ./bin/config_check.sh compellent01)?

    please outputs from commands

    perl -v
    ls -l /home/lpar2rrd/stor2rrd/bin/compellent_apitest.pl

    Thank you.
  • edited July 2018
    Sorry, initially I provided the incorrect version information perl and the script (http://download.stor2rrd.com/patch/compellent_apitest.pl.gz) not on the necessary way supposed (in "/home/lpar2rrd/stor2rrd/" in exchange "/home/lpar2rrd/stor2rrd/bin").

    Now script (http://download.stor2rrd.com/patch/compellent_apitest.pl.gz) in /home/lpar2rrd/stor2rrd/bin, and output /home/lpar2rrd/stor2rrd/bin/config_check.sh:
    =========================
    STORAGE: compellent01: COMPELLENT
    =========================
    TCP connection to "10.10.1.10" on port "3033" is ok
    /usr/bin/perl /home/lpar2rrd/stor2rrd/bin/compellent_apitest.pl "admin" XXXXX "10.10.1.10" "3033"
    ERROR: Login to API failed :
    <html><head><title>JBoss Web/7.2.0.Final - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 400 - java.io.EOFException: No content to map to Object due to end of input</h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u>java.io.EOFException: No content to map to Object due to end of input</u></p><p><b>JBWEB000069: description</b> <u>JBWEB000120: The request sent by the client was syntactically incorrect.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.2.0.Final</h3></body></html> :

    Cookie is not defined! :
      connection failed!!



    [lpar2rrd@xoruxibm stor2rrd]$ perl -v

    This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
    (with 33 registered patches, see perl -V for more detail)

    Copyright 1987-2012, Larry Wall

    Perl may be copied only under the terms of either the Artistic License or the
    GNU General Public License, which may be found in the Perl 5 source kit.

    Complete documentation for Perl, including FAQ lists, should be found on
    this system using "man perl" or "perldoc perl".  If you have access to the
    Internet, point your browser at http://www.perl.org/, the Perl Home Page.

    [lpar2rrd@xoruxibm stor2rrd]$ ls -l /home/lpar2rrd/stor2rrd/bin/compellent_apitest.pl
    -rwxr-xr-x 1 lpar2rrd root 12185 Jul 24 14:07 /home/lpar2rrd/stor2rrd/bin/compellent_apitest.pl



  • [lpar2rrd@xoruxibm stor2rrd]$ ls -l /home/lpar2rrd/stor2rrd/bin/compellent_apitest.pl
    -rwxr-xr-x 1 lpar2rrd lpar2rrd 12185 May 24 14:23 /home/lpar2rrd/stor2rrd/bin/compellent_apitest.pl

    This is an old file (May 24). You have to use this one


    copy script to  /home/lpar2rrd/stor2rrd/bin

    then run ./bin/config_check.sh compellent01

    Thank you.


  • edited July 2018


    [lpar2rrd@xoruxibm stor2rrd]$ ls -l /home/lpar2rrd/stor2rrd/bin/compellent_apitest.pl
    -rwxr-xr-x 1 lpar2rrd root 12185 Jul 24 14:07 /home/lpar2rrd/stor2rrd/bin/compellent_apitest.pl



    =========================
    STORAGE: compellent01: COMPELLENT
    =========================
    TCP connection to "10.10.1.10" on port "3033" is ok
    /usr/bin/perl /home/lpar2rrd/stor2rrd/bin/compellent_apitest.pl "admin" XXXXX "10.10.1.10" "3033"
    ERROR: Login to API failed :
    <html><head><title>JBoss Web/7.2.0.Final - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 400 - java.io.EOFException: No content to map to Object due to end of input</h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u>java.io.EOFException: No content to map to Object due to end of input</u></p><p><b>JBWEB000069: description</b> <u>JBWEB000120: The request sent by the client was syntactically incorrect.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.2.0.Final</h3></body></html> :

    Cookie is not defined! :
      connection failed!!

  • Is the compellent01 storage assigned to admin user? Do you see any performance graphs in Enterprise manager under admin user? please send us the outputs of these commands:


    cookie=`curl -k -i https://10.10.1.10:3033/api/rest/ApiConnection/Login -X POST -d '{}' -u admin:<password> -H 'content-type: application/json' -H 'x-dell-api-version: 2.0' 2>curlerr  | grep Cookie | awk '{print $2}'`
    curl -k -i https://10.10.1.10:3033/api/rest/StorageCenter/StorageCenter/GetList -X POST -d '{}' -H "cookie: $cookie" -H 'content-type: application/json' -H 'x-dell-api-version: 2.0'

    where <password> is password of admin user

    Thank you
  • >>Is the compellent01 storage assigned to admin user?

    I can log in to Enterprice Manager and Storage Client under admin user. I don't know how to check  assigned or no.

    >>Do you see any performance graphs in Enterprise manager under admin user?

    Yes (image attached) . Through Storage Client (under admin user) which is connected to Enterprice Manager I can see performance graphs.

    Datacollector Manager is using File system for store logs.

    It is quite admissible that I was tangled somewhere with accounting entries and a problem in it as not everything is clear to me in architecture of Compellent.

    lpar2rrd@xoruxibm stor2rrd]$ cookie=`curl -k -i https://10.10.1.10:3033/api/rest/ApiConnection/Login -X POST -d '{}' -u admin:password -H 'content-type: application/json' -H 'x-dell-api-version: 2.0' 2>curlerr  | grep Cookie | awk '{print $2}'`
    [lpar2rrd@xoruxibm stor2rrd]$ curl -k -i https://10.10.1.10:3033/api/rest/StorageCenter/StorageCenter/GetList -X POST -d '{}' -H "cookie: $cookie" -H 'content-type: application/json' -H 'x-dell-api-version: 2.0'                          HTTP/1.1 200 OK
    Server: Apache-Coyote/1.1
    Content-Type: application/json
    Transfer-Encoding: chunked
    Date: Fri, 27 Jul 2018 13:54:20 GMT

    [{"name":"SC44292","location":"","connected":true,"serialNumber":44292,"version":"6.5.10.68","userName":"bsadmin","hostOrIpAddress":"10.10.11.234","notes":"","flashOptimizedConfigured":false,"dataProgressionRunning":false,"userConnected":true,"modelSeries":"Sc4000Series","portsBalanced":false,"userPasswordExpired":false,"managementIpv6Address":"::","raidRebalanceRunning":false,"managementIp":"10.10.11.234","nonFlashOptimizedConfigured":true,"userPasswordExpiring":false,"connectionError":"","operationMode":"Normal","managementIpv6AddressPrefix":96,"status":"Degraded","statusMessage":"Controller ports are unbalanced","scName":"SC44292","scSerialNumber":44292,"instanceId":"44292","objectType":"StorageCenter","instanceName":"SC44292"}][lpar2rrd@xoruxibm stor2rrd]$

    /home/lpar2rrd/stor2rrd/etc/storage-list.cfg:

    compellent01:COMPELLENT:10.10.1.10:3033:admin:<hash password>

    [lpar2rrd@xoruxibm stor2rrd]$ ./bin/config_check.sh compellent01

    =========================
    STORAGE: compellent01: COMPELLENT
    =========================
    TCP connection to "10.8.1.201" on port "3033" is ok
    /usr/bin/perl /home/lpar2rrd/stor2rrd/bin/compellent_apitest.pl "admin" XXXXX "10.8.1.201" "3033"
    ERROR: Login to API failed :
    <html><head><title>JBoss Web/7.2.0.Final - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 400 - java.io.EOFException: No content to map to Object due to end of input</h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u>java.io.EOFException: No content to map to Object due to end of input</u></p><p><b>JBWEB000069: description</b> <u>JBWEB000120: The request sent by the client was syntactically incorrect.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.2.0.Final</h3></body></html> :

    Cookie is not defined! :
      connection failed!!


  • /home/lpar2rrd/stor2rrd/etc/storage-list.cfg:

    compellent01:COMPELLENT:10.10.1.10:3033:admin:<hash password>

    [lpar2rrd@xoruxibm stor2rrd]$ ./bin/config_check.sh compellent01

    =========================
    STORAGE: compellent01: COMPELLENT
    =========================
    TCP connection to "10.10.1.10" on port "3033" is ok
    /usr/bin/perl /home/lpar2rrd/stor2rrd/bin/compellent_apitest.pl "admin" XXXXX "10.10.1.10" "3033"
    ERROR: Login to API failed :
    <html><head><title>JBoss Web/7.2.0.Final - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 400 - java.io.EOFException: No content to map to Object due to end of input</h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u>java.io.EOFException: No content to map to Object due to end of input</u></p><p><b>JBWEB000069: description</b> <u>JBWEB000120: The request sent by the client was syntactically incorrect.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.2.0.Final</h3></body></html> :

    Cookie is not defined! :
      connection failed!!


  • Hello,

    It is strange that the curl login command is to work fine, but login does not work through perl.

    try this test script:

    Gunzip it and copy to /home/stor2rrd/stor2rrd/bin (755, stor2rrd owner)
    -rwxr-xr-x 1 stor2rrd stor2rrd 12315 Jul 31 12:56 compellent_apitest.pl
    If your web browser gunzips it automatically then just rename it: mv compellent_apitest.pl.gz compellent_apitest.pl


    You will send us output these commands

    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir
    ./bin/config_check.sh compellent01


    . /home/stor2rrd/stor2rrd/etc/stor2rrd.cfg
    $PERL -MLWP -e 'print "LWP Version: $LWP::VERSION\n"'


    Thank you very much.
  • Hello,

    Any news? Did you try last test script?

    Thank you
  • Hello, Lukas! Sorry.


    >[lpar2rrd@xoruxibm bin]$ cd /home/lpar2rrd/stor2rrd
    [lpar2rrd@xoruxibm stor2rrd]$ ./bin/config_check.sh compellent01

    =========================
    STORAGE: compellent01: COMPELLENT
    =========================
    TCP connection to "10.8.1.201" on port "3033" is ok
    /usr/bin/perl /home/lpar2rrd/stor2rrd/bin/compellent_apitest.pl "admin" XXXXX "10.8.1.201" "3033"
    ERROR: Login to API failed :
    <html><head><title>JBoss Web/7.2.0.Final - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 400 - java.io.EOFException: No content to map to Object due to end of input</h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u>java.io.EOFException: No content to map to Object due to end of input</u></p><p><b>JBWEB000069: description</b> <u>JBWEB000120: The request sent by the client was syntactically incorrect.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.2.0.Final</h3></body></html> :

    Cookie is not defined! :
    URL: https://10.8.1.201:3033/api/rest/ApiConnection/Login


    $VAR1 = \bless( {
                       '_content' => '',
                       '_uri' => bless( do{\(my $o = 'https://10.8.1.201:3033/api/rest/ApiConnection/Login')}, 'URI::https' ),
                       '_headers' => bless( {
                                              'x-dell-api-version' => '2.0',
                                              'content-type' => 'application/json; charset=utf-8',
                                              'accept' => 'application/json',
                                              'authorization' => 'Basic YWRtaW46UXdlcnR5MTIz',
                                              '::std_case' => {
                                                                'x-dell-api-version' => 'X-Dell-Api-Version'
                                                              }
                                            }, 'HTTP::Headers' ),
                       '_method' => 'POST'
                     }, 'HTTP::Request' );
    $VAR1 = \bless( {
                       '_msg' => 'Bad Request',
                       '_content' => '<html><head><title>JBoss Web/7.2.0.Final - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 400 - java.io.EOFException: No content to map to Object due to end of input</h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u>java.io.EOFException: No content to map to Object due to end of input</u></p><p><b>JBWEB000069: description</b> <u>JBWEB000120: The request sent by the client was syntactically incorrect.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.2.0.Final</h3></body></html>',
                       '_protocol' => 'HTTP/1.1',
                       '_headers' => bless(

  • {
                                              'connection' => 'close',
                                              'set-cookie' => 'JSESSIONID=ydobmbcDLmEvoNi1BQkQ79c0; Path=/api; Secure',
                                              'date' => 'Wed, 15 Aug 2018 09:33:01 GMT',
                                              'client-ssl-cert-issuer' => '/C=US/ST=Minnesota/L=Eden Prairie/O=Dell Inc/CN=veeam_trial2.corp.nb.rk',
                                              'client-ssl-cipher' => 'ECDHE-RSA-AES128-SHA256',
                                              'client-peer' => '10.8.1.201:3033',
                                              'client-date' => 'Wed, 15 Aug 2018 09:33:01 GMT',
                                              'client-ssl-warning' => 'Peer certificate not verified',
                                              'content-type' => 'text/html;charset=utf-8',
                                              'server' => 'Apache-Coyote/1.1',
                                              'client-ssl-socket-class' => 'IO::Socket::SSL',
                                              'client-response-num' => 1,
                                              'content-length' => '1199',
                                              '::std_case' => {
                                                               
  • 'client-response-num' => 'Client-Response-Num',
                                                                'set-cookie' => 'Set-Cookie',
                                                                'client-ssl-cert-issuer' => 'Client-SSL-Cert-Issuer',
                                                                'client-ssl-cipher' => 'Client-SSL-Cipher',
                                                                'client-peer' => 'Client-Peer',
                                                                'client-date' => 'Client-Date',
                                                                'client-ssl-warning' => 'Client-SSL-Warning',
                                                                'client-ssl-cert-subject' => 'Client-SSL-Cert-Subject',
                                                                'title' => 'Title',
                                                                'client-ssl-socket-class' => 'Client-SSL-Socket-Class'
                                                              },
                                              'client-ssl-cert-subject' => '/C=US/ST=Minnesota/L=Eden Prairie/O=Dell Inc/CN=veeam_trial2.corp.nb.rk',
                                              'title' => 'JBoss Web/7.2.0.Final - JBWEB000064: Error report'
                                            }, 'HTTP::Headers' ),
                       '_rc' => '400',
                       '_request' => bless( {
                                             
  •  '_content' => '',
                                              '_uri' => bless( do{\(my $o = 'https://10.8.1.201:3033/api/rest/ApiConnection/Login')}, 'URI::https' ),
                                              '_headers' => bless( {
                                                                     'user-agent' => 'libwww-perl/6.05',
                                                                     'x-dell-api-version' => '2.0',
                                                                     'content-type' => 'application/json; charset=utf-8',
                                                                     'accept' => 'application/json',
                                                                     'authorization' => 'Basic YWRtaW46UXdlcnR5MTIz',
                                                                     '::std_case' => {
                                                                                       'x-dell-api-version' => 'X-Dell-Api-Version',
                                                                                       'if-ssl-cert-subject' => 'If-SSL-Cert-Subject'
                                                                                     }
                                                                   }, 'HTTP::Headers' ),
                                              '_method' => 'POST',
                                              '_uri_canonical' => ${$VAR1}->{'_request'}->{'_uri'}
                                            }, 'HTTP::Request' )
                     }, 'HTTP::Response' );
      connection failed!!

    [lpar2rrd@xoruxibm bin]$ $PERL -MLWP -e 'print "LWP Version: $LWP::VERSION\n"'
    LWP Version: 6.05

  • Hello,

    please try this test script and you will send us output


    http://download.stor2rrd.com/patch/compellent_apitest.pl.gz
    Gunzip it and copy to /home/stor2rrd/stor2rrd/bin (755, stor2rrd owner)
    -rwxr-xr-x 1 stor2rrd stor2rrd 12355 Aug 15 15:49 compellent_apitest.pl
    If your web browser gunzips it automatically then just rename it: mv compellent_apitest.pl.gz compellent_apitest.pl

    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir
    ./bin/config_check.sh compellent01


    You will send us output from this command

    curl -v -k -i https://10.10.1.10:3033/api/rest/ApiConnection/Login -X POST -d '' -u admin:<password> -H 'content-type: application/json' -H 'x-dell-api-version: 2.0'


    where <password> is password of admin user


    thank you.
  • Hello, Lukas!

    Output in attached file "output.txt".

    I tried to use the password as the normal password and as a hash.

  • Hello,

    Are you sure you used the latest version of compellent_apitest.pl (12355)?
    ls -l bin/compellent_apitest.pl

    Can you confirm that curl commands (password is standard, not encoded)

    curl -v -k -i https://10.10.1.10:3033/api/rest/ApiConnection/Login -X POST -d '' -u admin:<password> -H 'content-type: application/json' -H 'x-dell-api-version: 2.0'
    curl -v -k -i https://10.10.1.10:3033/api/rest/ApiConnection/Login -X POST -d '{}' -u admin:<password> -H 'content-type: application/json' -H 'x-dell-api-version: 2.0'

    give different output? The 1st command will not work. 2nd command works


    thank you

  • [root@xoruxibm stor2rrd]# ls -l bin/compellent_apitest.pl
    -rwxr-xr-x 1 lpar2rrd root 12315 Jul 31 17:40 bin/compellent_apitest.pl
    [root@xoruxibm stor2rrd]#
  • Hello,

    We finally found the cause of the problem. Please try this test script and you will send us output. It should work.


    http://download.stor2rrd.com/patch/compellent_apitest.pl.gz
    Gunzip it and copy to /home/stor2rrd/stor2rrd/bin (755, stor2rrd owner)
    -rwxr-xr-x 1 stor2rrd stor2rrd 12981 16. srp 12.41 compellent_apitest.pl
    If your web browser gunzips it automatically then just rename it: mv compellent_apitest.pl.gz compellent_apitest.pl

    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir
    ./bin/config_check.sh compellent01



    Thank you very much.
  • Output in attached file "Output3.txt".
  • Do you use the latest script? I do not think so.


    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir
    ls -l bin/compellent_apitest.pl

    -rwxr-xr-x 1 stor2rrd lpar2rrd 12981 16. srp 12.41 bin/compellent_apitest.pl

    cat bin/compellent_apitest.pl | wc -l
    457

  • edited August 2018

    Please can you check latest script in you in link: http://download.stor2rrd.com/patch/compellent_apitest.pl.gz, because script size is 12315 (no 12981).

    [lpar2rrd@xoruxibm stor2rrd]$ ls -l bin/compellent_apitest.pl
    -rwxr-xr-x 1 lpar2rrd root 12315 Jul 31 17:40 bin/compellent_apitest.pl
    [lpar2rrd@xoruxibm stor2rrd]$ cat bin/compellent_apitest.pl | wc -l
    420
    [lpar2rrd@xoruxibm stor2rrd]$

    5.JPG 42.9K
  • edited August 2018



    The script is attached.

  • Output in attached file "Output4.txt".
Sign In or Register to comment.