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

[Remote - Tunnels Bug] Cannot serve application from Tunnels extension as it just infinitely loads #8288

Closed
sck00ps opened this issue Mar 28, 2023 · 1 comment
Assignees
Labels

Comments

@sck00ps
Copy link

sck00ps commented Mar 28, 2023

  • VSCode Version: 1.76.2

  • Local OS Version: 1.76.2

  • Remote OS Version: 1.76.2

  • Remote Extension/Connection Type: Containers/WSL/Server

  • Logs:
    [2023-03-28 11:27:17] debug [russh::server::kex] key: RSA { (hidden) }
    [2023-03-28 11:27:17] debug [russh::server::encrypted] request: Ok("ssh-userauth")
    [2023-03-28 11:27:17] debug [russh::server::encrypted]
    [2023-03-28 11:27:17] debug [tunnels::connections::relay_tunnel_host]
    [2023-03-28 11:27:17] debug [tunnels::connections::relay_tunnel_host]
    [2023-03-28 11:27:17] debug [tunnels::connections::relay_tunnel_host]
    [2023-03-28 11:27:22] debug [tunnels::connections::relay_tunnel_host]
    host relay client session successfully authed
    Forwarded port to 127.0.0.1:4200
    Forwarded port to 127.0.0.1:4200
    EOF from TCP stream, ending
    [2023-03-28 11:27:22] debug [tunnels::connections::relay_tunnel_host] EOF from TCP stream, ending
    [2023-03-28 11:27:32] debug [russh::server::encrypted] handler.channel_close ChannelId(2)
    [2023-03-28 11:27:32] debug [russh::server::encrypted] handler.channel_close ChannelId(7)
    [2023-03-28 11:28:57] debug [tunnels::connections::relay_tunnel_host] Forwarded port to 127.0.0.1:4200
    [2023-03-28 11:28:58] debug [tunnels::connections::ws] received liveness pong
    name: "tunnel" Ok("ssh-connection") Ok("none")
    [2023-03-28 11:29:02] debug [tunnels::connections::relay_tunnel_host] EOF from TCP stream, ending
    [2023-03-28 11:29:12] debug [russh::server::encrypted] handler.channel_close ChannelId(3)
    [2023-03-28 11:29:50] debug [russh:: session] sender_window_size 512597, target 1048576
    [2023-03-28 11:30:58] debug [tunnels::connections::ws] received liveness pong
    [2023-03-28 11:31:00] debug [russh::server::session] break
    [2023-03-28 11:31:00] debug [russh::server::session]
    disconnected

Steps to Reproduce:

  1. Start tunnel on remote machine through tunnels extension
  2. Access tunnel on local machine through tunnels extension
  3. Navigate to Angular project
  4. Serve the angular project
  5. Navigate to generated URL from Tunnels extension
  6. Application will just hang and the connection will constantly connect and disconnect

Notes:
Originally I would get an error for "Error Connecting forwarding to 127.0.0.1:4200, no connection could be made because the target machine actively refused it." Firewall rules allow all ports and connection through for the sake of testing, but it wasn't until i added --host=127.0.0.1 to my launch command that it would allow the connection through. After that is where I ran into the issue of the application infinitely loading or just not loading at all.

@connor4312
Copy link
Member

Duplicates #7029

@github-actions github-actions bot locked and limited conversation to collaborators Jun 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants