canonical / lxd

Powerful system container and virtual machine manager
https://canonical.com/lxd
GNU Affero General Public License v3.0
4.38k stars 931 forks source link

LXD terminal not working when accessing by .local domain. #13961

Closed steveiliop56 closed 2 months ago

steveiliop56 commented 2 months ago

Required information

Issue description

So I have a split DNS setup in Tailscale that has a record pointing the Tailscale IP of my pi to the raspberrypi5.local domain, that works just fine for everything except the LXD terminal? When I open the LXD UI I can do everything just fine including making instances etc. The only thing that doesn't work is the terminal and console, when I click them I see The connection was closed abnormally, e.g., without sending or receiving a Close control frame which is really weird because it doesn't happen when I access the UI directly from the Tailscale IP address. I checked the console and there are a lot of websocket errors WebSocket connection to 'wss://raspberrypi5.local:8443/1.0/operations/d4d95b05-aa0e-4286-b11c-5ffa4e735194/websocket?secret=0a583d3c6852bdc4baddfaaf5a8ccde920280e68dce67df62c2078e5ad877a4c' failed:. I don't know why the issue is happening since all other apps using websockets and the Tailscale domain work perfectly fine.

Steps to reproduce

  1. Create a Split DNS record pointing somename.somedomain to the Tailscale IP of the machine
  2. Open the Web UI on https://somename.somedomain:8443
  3. Try to open the Terminal

Information to attach

steveiliop56 commented 2 months ago

Huh it works now I guess just a glitch?