vatesfr / xen-orchestra

The global orchestration solution to manage and backup XCP-ng and XenServer.
https://xen-orchestra.com
Other
767 stars 262 forks source link

Error when attempting to add the xcp-ng hypervisor to Xen Orchestra (server.enable ) #7435

Closed navnair closed 6 months ago

navnair commented 6 months ago

Are you using XOA or XO from the sources?

XO from the sources

Which release channel?

latest

Provide your commit number

0b00c

Describe the bug

Attempting to add hypervisor results in following error. write EPROTO 0008552C287F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:355:

Error message

{
  "errno": -71,
  "code": "EPROTO",
  "syscall": "write",
  "originalUrl": "https://1.1.1.1:22/jsonrpc",
  "url": "https://1.1.1.1:22/jsonrpc",
  "call": {
    "method": "session.login_with_password",
    "params": "* obfuscated *"
  },
  "message": "write EPROTO 0008552C287F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:355:\n",
  "name": "Error",
  "stack": "Error: write EPROTO 0008552C287F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:355:\n\n    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)\n    at WriteWrap.callbackTrampoline (node:internal/async_hooks:128:17)"
}

To reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

Expected behavior

No response

Screenshots

No response

Node

v18.19.1

Hypervisor

xcp-ng-8.2.1-20231130

Additional context

Xen Orchestra is using self-signed certificates running over https.

julien-f commented 6 months ago

You are using port 22 which is likely SSH and not HTTPS.

navnair commented 6 months ago

Okay, it makes sense now. I'm coming from a vmware vcenter background and thought that the orchestra links it over port 22. I moved it to 443 and everything looks good now. Thanks much for the quick response.

julien-f commented 6 months ago

Simply put the host address and it will automatically select the best protocol/port.

navnair commented 6 months ago

cool .. thank you !