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

Client web socket error in log on exit of web ui ssh sessions #49394

Open
stevenGravy opened this issue Nov 24, 2024 · 0 comments
Open

Client web socket error in log on exit of web ui ssh sessions #49394

stevenGravy opened this issue Nov 24, 2024 · 0 comments

Comments

@stevenGravy
Copy link
Contributor

stevenGravy commented Nov 24, 2024

Expected behavior:

Exiting a web session that is successful does not produce a error in the log.

Current behavior:

Upon exiting a ssh session from the web ui this appears in the log. No specific messages are occurring in the browser console. Confirmed on multiple browsers.

Nov 24 13:13:23 tele1c teleport[407]: 2024-11-24T13:13:23Z ERRO [WEBSOCKET] Unable to close client web socket. error:[
Nov 24 13:13:23 tele1c teleport[407]: ERROR REPORT:
Nov 24 13:13:23 tele1c teleport[407]: Original Error: trace.aggregate EOF
Nov 24 13:13:23 tele1c teleport[407]: Stack Trace:
Nov 24 13:13:23 tele1c teleport[407]:         github.com/gravitational/teleport/lib/web/terminal/terminal.go:596 github.com/gravitational/teleport/lib/web/terminal.(*Stream).Close
Nov 24 13:13:23 tele1c teleport[407]:         github.com/gravitational/teleport/lib/web/terminal.go:897 github.com/gravitational/teleport/lib/web.(*TerminalHandler).streamTerminal
Nov 24 13:13:23 tele1c teleport[407]:         github.com/gravitational/teleport/lib/web/terminal.go:479 github.com/gravitational/teleport/lib/web.(*TerminalHandler).handler
Nov 24 13:13:23 tele1c teleport[407]:         github.com/gravitational/teleport/lib/web/terminal.go:359 github.com/gravitational/teleport/lib/web.(*TerminalHandler).ServeHTTP
Nov 24 13:13:23 tele1c teleport[407]:         github.com/gravitational/teleport/lib/httplib/httplib.go:95 github.com/gravitational/teleport/lib/httplib.MakeTracingHandler.func1
Nov 24 13:13:23 tele1c teleport[407]:         net/http/server.go:2220 net/http.HandlerFunc.ServeHTTP
Nov 24 13:13:23 tele1c teleport[407]:         go.opentelemetry.io/contrib/instrumentation/net/http/[email protected]/handler.go:177 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.(*middleware).serveHTTP
Nov 24 13:13:23 tele1c teleport[407]:         go.opentelemetry.io/contrib/instrumentation/net/http/[email protected]/handler.go:65 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.NewMiddleware.func1.1
Nov 24 13:13:23 tele1c teleport[407]:         net/http/server.go:2220 net/http.HandlerFunc.ServeHTTP
Nov 24 13:13:23 tele1c teleport[407]:         github.com/gravitational/teleport/lib/web/apiserver.go:3610 github.com/gravitational/teleport/lib/web.(*Handler).siteNodeConnect
Nov 24 13:13:23 tele1c teleport[407]:         github.com/gravitational/teleport/lib/web/apiserver.go:4421 github.com/gravitational/teleport/lib/web.(*Handler).bindDefaultEndpoints.(*Handler).WithClusterAuthWebSocket.func27
Nov 24 13:13:23 tele1c teleport[407]:         github.com/gravitational/teleport/lib/httplib/httplib.go:127 github.com/gravitational/teleport/lib/web.(*Handler).bindDefaultEndpoints.(*Handler).WithClusterAuthWebSocket.MakeHandler.MakeHandlerWithErrorWriter.func197
Nov 24 13:13:23 tele1c teleport[407]:         github.com/julienschmidt/[email protected]/router.go:399 github.com/julienschmidt/httprouter.(*Router).ServeHTTP
Nov 24 13:13:23 tele1c teleport[407]:         net/http/server.go:2282 github.com/gravitational/teleport/lib/web.NewHandler.func1.StripPrefix.1
Nov 24 13:13:23 tele1c teleport[407]:         net/http/server.go:2220 net/http.HandlerFunc.ServeHTTP
Nov 24 13:13:23 tele1c teleport[407]:         github.com/gravitational/teleport/lib/web/apiserver.go:622 github.com/gravitational/teleport/lib/web.NewHandler.func1
Nov 24 13:13:23 tele1c teleport[407]:         net/http/server.go:2220 net/http.HandlerFunc.ServeHTTP
Nov 24 13:13:23 tele1c teleport[407]:         github.com/julienschmidt/[email protected]/router.go:460 github.com/julienschmidt/httprouter.(*Router).ServeHTTP
Nov 24 13:13:23 tele1c teleport[407]:         github.com/gravitational/teleport/lib/web/apiserver.go:450 github.com/gravitational/teleport/lib/web.(*APIHandler).ServeHTTP
Nov 24 13:13:23 tele1c teleport[407]:         github.com/gravitational/teleport/lib/limiter/internal/ratelimit/ratelimit.go:106 github.com/gravitational/teleport/lib/limiter/internal/ratelimit.(*TokenLimiter).ServeHTTP
Nov 24 13:13:23 tele1c teleport[407]:         github.com/gravitational/teleport/lib/limiter/connlimiter.go:82 github.com/gravitational/teleport/lib/limiter.(*ConnectionsLimiter).ServeHTTP
Nov 24 13:13:23 tele1c teleport[407]:         github.com/gravitational/teleport/lib/limiter/limiter.go:82 github.com/gravitational/teleport/lib/limiter.(*Limiter).ServeHTTP
Nov 24 13:13:23 tele1c teleport[407]:         github.com/gravitational/teleport/lib/httplib/httplib.go:104 github.com/gravitational/teleport/lib/httplib.MakeTracingHandler.func1
Nov 24 13:13:23 tele1c teleport[407]:         net/http/server.go:2220 net/http.HandlerFunc.ServeHTTP
Nov 24 13:13:23 tele1c teleport[407]:         go.opentelemetry.io/contrib/instrumentation/net/http/[email protected]/handler.go:177 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.(*middleware).serveHTTP
Nov 24 13:13:23 tele1c teleport[407]:         go.opentelemetry.io/contrib/instrumentation/net/http/[email protected]/handler.go:65 go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp.NewMiddleware.func1.1
Nov 24 13:13:23 tele1c teleport[407]:         net/http/server.go:2220 net/http.HandlerFunc.ServeHTTP
Nov 24 13:13:23 tele1c teleport[407]:         net/http/server.go:3210 net/http.serverHandler.ServeHTTP
Nov 24 13:13:23 tele1c teleport[407]:         net/http/server.go:2092 net/http.(*conn).serve
Nov 24 13:13:23 tele1c teleport[407]:         runtime/asm_amd64.s:1700 runtime.goexit
Nov 24 13:13:23 tele1c teleport[407]: User Message: EOF] session_id:7f52aed9-a1ee-417f-bde7-0abf8833e3f5 web/terminal.go:898

Bug details:

  • Teleport version: 17.0.1

  • Recreation steps

    1. Open SSH session in the Web UI
    2. Monitor log
    3. exit session
    4. Error will appear in log
@stevenGravy stevenGravy changed the title Client web socket error in log on successful web ui ssh sessions Client web socket error in log on exit of web ui ssh sessions Nov 24, 2024
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

1 participant