Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Cannot create Cluster over WebUI - SSH Keys Ids exchange failed #103

Open
BaraCoding opened this issue Aug 24, 2021 · 3 comments
Open

Cannot create Cluster over WebUI - SSH Keys Ids exchange failed #103

BaraCoding opened this issue Aug 24, 2021 · 3 comments

Comments

@BaraCoding
Copy link

BaraCoding commented Aug 24, 2021

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! root@192.168.0.110
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.

@emiliocampos-zevenet
Copy link
Contributor

emiliocampos-zevenet commented Aug 24, 2021 via email

@BaraCoding
Copy link
Author

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.

@emiliocampos-zevenet
Copy link
Contributor

emiliocampos-zevenet commented Aug 25, 2021 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants