ERROR: Login to API failed (huawei-alias01) : Invalid argument

./bin/config_check.sh huawei-alias01

=========================
STORAGE: huawei-alias01: OCEANSTOR
=========================
Connection to "192.168.85.100" on port "8088" is ok
Connection to "192.168.85.101" on port "8088" is ok
/usr/bin/perl /home/stor2rrd/stor2rrd/bin/oceanstor_apitest.pl stor2rrd XXXXX 192.168.85.100 192.168.85.101 huawei-alias01

API Test 192.168.85.101

Login to API succesfull! (192.168.85.101)

API Test huawei-alias01

Fri Jun  1 14:37:18 2018: ERROR: Login to API failed (huawei-alias01) : Invalid argument
Fri Jun  1 14:37:18 2018: 500 Can't connect to huawei-alias01:8088 (Bad hostname 'huawei-alias01') : Invalid argument
Fri Jun  1 14:37:18 2018: ERROR: Token or Device_id or Cookie is not defined! : Invalid argument
Fri Jun  1 14:37:18 2018: ERROR: connection to "192.168.85.101 huawei-alias01" on port "8088" has failed! : Invalid argument
  connection failed!!

Comments

  • Version:
    V300R003C20
  • i see same error
    to fix the error, I updated pearl to version 6.0.5 (for https)
    errorlog just empty

    API host network connection: OK
    TCP connection to 1xx.xx.xx.xx:8088 is OK.
    TCP connection to xx.xx.xx.xx:8088 is OK.

    Crontab test: OK


    API authorization: NOK
    API Test xx.xx.xx.xx
    Login to API succesfull! (xx.xx.xx.xx)
    API Test 10.224.2.82 Login to API succesfull! (xx.xx.xx.xx)
    Tue Dec 1 17:54:04 2020: ERROR: Token or Device_id or Cookie is not defined! : Tue Dec 1 17:54:04 2020: ERROR: connection to "xx.xx.xx.xx xx.xx.xx.xx" on port "8088" has failed!
  • Hi,

    Do you mean LWP upgrade as per: https://stor2rrd.com/https.php ?

    Is it really working now? Do you storage in the UI with actual data in graphs? I see some errors ...

  • avantdil
    edited December 2020
    Yes i mean LWP upg.
    But after the update, the error changed to this one 

    FW version 
    V500R007C30                                         
    API Test xx.xx.xx.xx
    Login to API succesfull! (xx.xx.xx.xx)
    API Test 10.224.2.82 Login to API succesfull! (xx.xx.xx.xx)
    Tue Dec 1 17:54:04 2020: ERROR: Token or Device_id or Cookie is not defined! : Tue Dec 1 17:54:04 2020: ERROR: connection to "xx.xx.xx.xx xx.xx.xx.xx" on port "8088" has failed!
  • Hello,

    Do you try this debug script?

    https://download.stor2rrd.com/patch/7.04-6-24-ge9d2f/oceanstor_apitest.pl.gz

    Gunzip it and copy to /home/stor2rrd/stor2rrd/bin (755, stor2rrd owner)

    -rwxr-xr-x 1 stor2rrd stor2rrd 19329 Dec  2 11:15 oceanstor_apitest.pl

    If your web browser gunzips it automatically then just rename it: mv oceanstor_apitest.pl.gz oceanstor_apitest.pl

    Assure that file size is the same as on above example

    after copy script to bin directory

    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir

    ./bin/config_check.sh <storage name> > ocenastor_debug.txt

    Send us oceanstor_debug.txt via https://upload.stor2rrd.com

    Thank you
  • Lukas, I uploaded the file to https://upload.stor2rrd.com . Output just same like as error messages what i wrote past.
  • Hello,

    Yes you are right. my fault. can you try again?

    https://download.stor2rrd.com/patch/7.04-6-24-ge9d2f/oceanstor_apitest.pl.gz

    Gunzip it and copy to /home/stor2rrd/stor2rrd/bin (755, stor2rrd owner)

    -rwxr-xr-x 1 stor2rrd stor2rrd 19251 Dec  2 14:45 oceanstor_apitest.pl

    If your web browser gunzips it automatically then just rename it: mv oceanstor_apitest.pl.gz oceanstor_apitest.pl

    Assure that file size is the same as on above example

    after copy script to bin directory

    cd /home/stor2rrd/stor2rrd # or where is your STOR2RRD working dir

    ./bin/config_check.sh <storage name> > ocenastor_debug.txt

    Send us oceanstor_debug.txt via https://upload.stor2rrd.com

    Thank you
  • avantdil
    edited December 2020
    Hello!

    now I saw a problem - the user was blocked (apparently due to exceeding login attempts)
    I fixed it and test is okay
    -rwxr-xr-x 1 stor2rrd stor2rrd   19251 Dec  2 18:45 oceanstor_apitest.pl


    Thanks for help!
Sign In or Register to comment.