Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In ipv6 enabled networks, xen orchestra fails to use happy eyeballs #8221

Open
braiam opened this issue Jan 5, 2025 · 3 comments
Open

In ipv6 enabled networks, xen orchestra fails to use happy eyeballs #8221

braiam opened this issue Jan 5, 2025 · 3 comments

Comments

@braiam
Copy link

braiam commented Jan 5, 2025

Are you using XOA or XO from the sources?

XOA

Which release channel?

stable

Provide your commit number

No response

Describe the bug

If there's a interface with global ipv6 address, xen orchestra will fail to connect to the internet and therefore registering

https://en.wikipedia.org/wiki/Happy_Eyeballs

Error message

✔  1/16 - Node version
✔  2/16 - Memory
✔  3/16 - xo-server config syntax
✖  4/16 - Appliance registration: not registered
✔  5/16 - Disk space for /
✔  6/16 - Disk space for /var
✔  7/16 - Native SMB support
✔  8/16 - Fetching VM UUID
✔  9/16 - XOA version
✔ 10/16 - /var is writable
✔ 11/16 - NTP synchronization
✔ 12/16 - xoa-support user
✔ 13/16 - local SSH server
✖ 14/16 - Internet connectivity: Error: connect ENETUNREACH 2a01:240:ab08::4:80
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) {
  errno: -101,
  code: 'ENETUNREACH',
  syscall: 'connect',
  address: '2a01:240:ab08::4',
  port: 80,
  url: 'http://xen-orchestra.com/'
}
✔ 15/16 - npm version
✖ 16/16 - XOA status: not up-to-date, please run xoa-updater

To reproduce

Install xoa in a ipv6 enabled network

Expected behavior

XOA should try to connect using both ipv4 and ipv6

Screenshots

No response

Node

18.20.2

Hypervisor

8.2.1

Additional context

No response

@julien-f
Copy link
Member

julien-f commented Jan 6, 2025

Likely related to the issue nodejs/node#48145

You can work around this by increasing the default autoSelectFamilyAttemptTimeout of 250 (miliseconds) in /etc/xoa-updater/config.autoSelectFamilyAttemptTimeout.json:

{
  "autoSelectFamilyAttemptTimeout": 1000
}

@julien-f
Copy link
Member

julien-f commented Jan 6, 2025

Also, you need to upgrade before being able to do that.

If you need help, please open a proper support ticket and a support tunnel.

@braiam
Copy link
Author

braiam commented Jan 6, 2025

you need to upgrade before being able to do that.

Upgrade to what? This is a fresh deployment of XOA. Should I move away from stable into latest? I can't do that if I can't register. So what I did was keeping a tight loop removing the ipv6 address and hoped it will hit the correct timing. It successfully did that, but it's still sticky trying to connect with ipv6, even with the file created:

  • node: 20.18.0
  • npm: 10.8.3
  • xen-orchestra-upload-ova: 0.1.6
  • xen-orchestra-web: 0.6.0
  • xo-server: 5.168.1
  • xo-server-telemetry: 0.7.0
  • xo-server-xoa: 0.29.3
  • xo-web-free: 5.167.0
  • xoa-cli: 0.40.0
  • xoa-updater: 0.50.6

I'm capable of following instructions, but it doesn't seem that nodejs is behaving as expected.

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

No branches or pull requests

2 participants