zlb icon indicating copy to clipboard operation
zlb copied to clipboard

Cannot create Cluster over WebUI - SSH Keys Ids exchange failed

Open BaraCoding opened this issue 2 years ago • 3 comments

Hello, i have changed my password on both machines first to -TestLB1111-L0T! After that i have configured my Network for the Cluster and than i have tryed to connect the cluster over the WebUI (Zevenet 6.1). I got the following error:

Aug 24 08:42:56 LB1 enterprise.bin[2100]: (INFO) Login successful for user: root Aug 24 08:42:56 LB1 enterprise.bin[2100]: (INFO) STATUS: 200 REQUEST: POST /zapi/v4.0/zapi.cgi/session Aug 24 08:42:56 LB1 enterprise.bin[2116]: (INFO) webgui :: STATUS: 200 REQUEST: GET /zapi/v4.0/zapi.cgi/rbac/menus Aug 24 08:42:56 LB1 enterprise.bin[2117]: (INFO) webgui :: STATUS: 200 REQUEST: GET /zapi/v4.0/zapi.cgi/certificates/activation/info Aug 24 08:42:56 LB1 enterprise.bin[2192]: (INFO) webgui :: STATUS: 200 REQUEST: GET /zapi/v4.0/zapi.cgi/system/info Aug 24 08:42:56 LB1 enterprise.bin[2195]: (INFO) webgui :: STATUS: 200 REQUEST: GET /zapi/v4.0/zapi.cgi/system/dns Aug 24 08:43:01 LB1 enterprise.bin[2236]: (INFO) webgui :: STATUS: 200 REQUEST: GET /zapi/v4.0/zapi.cgi/system/cluster Aug 24 08:43:01 LB1 enterprise.bin[2236]: (INFO) webgui :: There is no cluster configured on this node. Aug 24 08:43:02 LB1 enterprise.bin[2258]: (INFO) webgui :: STATUS: 200 REQUEST: GET /zapi/v4.0/zapi.cgi/interfaces Aug 24 08:43:32 LB1 enterprise.bin[2430]: (INFO) api :: POST DATA: {"local_ip":"192.168.0.109","remote_ip":"192.168.0.110","remote_password":"*******"} Aug 24 08:43:32 LB1 enterprise.bin[2430]: (INFO) rbac :: Request from root to POST /system/cluster. Action allowed Aug 24 08:43:32 LB1 enterprise.bin[2430]: (ERROR) system :: enterprise.bin running: HOME="/root" /usr/local/zevenet/bin/ssh-copy-id.sh -TestLB1111-L0T! [email protected] Aug 24 08:43:32 LB1 enterprise.bin[2430]: (ERROR) error :: out: /usr/bin/expect: invalid option -- 'T' Aug 24 08:43:32 LB1 enterprise.bin[2430]: (ERROR) error :: usage: expect [-div] [-c cmds] [[-f] cmdfile] [args] Aug 24 08:43:32 LB1 enterprise.bin[2430]: (ERROR) system :: last command failed! Aug 24 08:43:32 LB1 enterprise.bin[2430]: (ERROR) cluster :: An error happened copying the Id key to the host 192.168.0.110 Aug 24 08:43:32 LB1 enterprise.bin[2430]: (ERROR) cluster :: SSH Keys Ids exchange failed Aug 24 08:43:32 LB1 enterprise.bin[2430]: (ERROR) webgui :: Enabling cluster: SSH Keys Ids exchange failed Aug 24 08:43:32 LB1 enterprise.bin[2430]: (INFO) webgui :: STATUS: 400 REQUEST: POST /zapi/v4.0/zapi.cgi/system/cluster Aug 24 08:43:32 LB1 enterprise.bin[2430]: (INFO) webgui :: SSH Keys Ids exchange failed

If i changed my Passwort back to admin1234 the process work like a charm. There is an errror in the SSH-Key creating script that does not work with my previeus password.

BaraCoding avatar Aug 24 '21 07:08 BaraCoding

Maybe some strange character in the password? If you could confirm we can have a use case to reproduce.

Thanks!

El mar, 24 ago 2021 a las 9:08, BaraCoding @.***>) escribió:

Hello, i have changed my password on both machines first to -TestLB1111-L0T! After that i have configured my Network for the Cluster and than i have tryed to connect the cluster over the WebUI (Zevenet 6.1). I got the following error:

Aug 24 08:42:56 LB1 enterprise.bin[2100]: (INFO) Login successful for user: root Aug 24 08:42:56 LB1 enterprise.bin[2100]: (INFO) STATUS: 200 REQUEST: POST /zapi/v4.0/zapi.cgi/session Aug 24 08:42:56 LB1 enterprise.bin[2116]: (INFO) webgui :: STATUS: 200 REQUEST: GET /zapi/v4.0/zapi.cgi/rbac/menus Aug 24 08:42:56 LB1 enterprise.bin[2117]: (INFO) webgui :: STATUS: 200 REQUEST: GET /zapi/v4.0/zapi.cgi/certificates/activation/info Aug 24 08:42:56 LB1 enterprise.bin[2192]: (INFO) webgui :: STATUS: 200 REQUEST: GET /zapi/v4.0/zapi.cgi/system/info Aug 24 08:42:56 LB1 enterprise.bin[2195]: (INFO) webgui :: STATUS: 200 REQUEST: GET /zapi/v4.0/zapi.cgi/system/dns Aug 24 08:43:01 LB1 enterprise.bin[2236]: (INFO) webgui :: STATUS: 200 REQUEST: GET /zapi/v4.0/zapi.cgi/system/cluster Aug 24 08:43:01 LB1 enterprise.bin[2236]: (INFO) webgui :: There is no cluster configured on this node. Aug 24 08:43:02 LB1 enterprise.bin[2258]: (INFO) webgui :: STATUS: 200 REQUEST: GET /zapi/v4.0/zapi.cgi/interfaces Aug 24 08:43:32 LB1 enterprise.bin[2430]: (INFO) api :: POST DATA: {"local_ip":"192.168.0.109","remote_ip":"192.168.0.110","remote_password":"****"} Aug 24 08:43:32 LB1 enterprise.bin[2430]: (INFO) rbac :: Request from root to POST /system/cluster. Action allowed Aug 24 08:43:32 LB1 enterprise.bin[2430]: (ERROR) system :: enterprise.bin running: HOME="/root" /usr/local/zevenet/bin/ssh-copy-id.sh -TestLB1111-L0T! @. Aug 24 08:43:32 LB1 enterprise.bin[2430]: (ERROR) error :: out: /usr/bin/expect: invalid option -- 'Z' Aug 24 08:43:32 LB1 enterprise.bin[2430]: (ERROR) error :: usage: expect [-div] [-c cmds] [[-f] cmdfile] [args] Aug 24 08:43:32 LB1 enterprise.bin[2430]: (ERROR) system :: last command failed! Aug 24 08:43:32 LB1 enterprise.bin[2430]: (ERROR) cluster :: An error happened copying the Id key to the host 192.168.0.110 Aug 24 08:43:32 LB1 enterprise.bin[2430]: (ERROR) cluster :: SSH Keys Ids exchange failed Aug 24 08:43:32 LB1 enterprise.bin[2430]: (ERROR) webgui :: Enabling cluster: SSH Keys Ids exchange failed Aug 24 08:43:32 LB1 enterprise.bin[2430]: (INFO) webgui :: STATUS: 400 REQUEST: POST /zapi/v4.0/zapi.cgi/system/cluster Aug 24 08:43:32 LB1 enterprise.bin[2430]: (INFO) webgui :: SSH Keys Ids exchange failed

If i changed my Passwort back to admin1234 the process work like a charm. There is an errror in the SSH-Key creating script that does not work with my previeus password.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zevenet/zlb/issues/103, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBQEPBZJ3H5E4Y7EVEFUL3T6NAPPANCNFSM5CWFZNJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

-- Emilio CamposZEVENET Teamwww.zevenet.com

Review ZEVENET Product at Gartner Insights https://gtnr.io/LfXtqnsSr https://www.linkedin.com/company/zevenet https://twitter.com/zevenet https://www.facebook.com/zevenet https://github.com/zevenet [image: ZEVENET] https://www.zevenet.com/signature/

DISCLAIMER: This message contains confidential information and is intended only for the individual named. If you are not the named addressee please notify the sender immediately by email if you have received it by mistake and delete it from your system, you should not disseminate, distribute or copy this email in whole or in part.

emiliocampos-zevenet avatar Aug 24 '21 11:08 emiliocampos-zevenet

Hi,

i have figured out that the first hyphen (-) caused the problem. The script "/usr/local/zevenet/bin/ssh-copy-id.sh" interpretes with the hyphen the first letter as an option for the script.

BaraCoding avatar Aug 25 '21 10:08 BaraCoding

Thanks for the update.

El mié, 25 ago 2021 a las 12:14, BaraCoding @.***>) escribió:

Hi,

i have figured out that the first hyphen (-) caused the problem. The script "/usr/local/zevenet/bin/ssh-copy-id.sh" interpretes with the hyphen the first letter as an option for the script.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/zevenet/zlb/issues/103#issuecomment-905368326, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFBQEPHGWGJPWZWODA4ILADT6S67PANCNFSM5CWFZNJQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

-- Emilio CamposZEVENET Teamwww.zevenet.com

Review ZEVENET Product at Gartner Insights https://gtnr.io/LfXtqnsSr https://www.linkedin.com/company/zevenet https://twitter.com/zevenet https://www.facebook.com/zevenet https://github.com/zevenet [image: ZEVENET] https://www.zevenet.com/signature/

DISCLAIMER: This message contains confidential information and is intended only for the individual named. If you are not the named addressee please notify the sender immediately by email if you have received it by mistake and delete it from your system, you should not disseminate, distribute or copy this email in whole or in part.

emiliocampos-zevenet avatar Aug 25 '21 10:08 emiliocampos-zevenet