[GH-ISSUE #128] docker部署无法使用SSH #31

Closed
opened 2026-02-28 00:38:26 +03:00 by kerem · 4 comments
Owner

Originally created by @gstory0404 on GitHub (Oct 23, 2023).
Original GitHub issue: https://github.com/team-ide/teamide/issues/128

docker部署后链接SSH报错误,提示 终端会话已关闭,输入回车重新连接!

Originally created by @gstory0404 on GitHub (Oct 23, 2023). Original GitHub issue: https://github.com/team-ide/teamide/issues/128 docker部署后链接SSH报错误,提示 终端会话已关闭,输入回车重新连接!
kerem closed this issue 2026-02-28 00:38:26 +03:00
Author
Owner

@team-ide commented on GitHub (Oct 24, 2023):

我这边测试是可以使用的,你进入容器中到 /opt/teamide/log ,看下 server.log 日志,是否有异常日志

<!-- gh-comment-id:1776612288 --> @team-ide commented on GitHub (Oct 24, 2023): 我这边测试是可以使用的,你进入容器中到 `/opt/teamide/log` ,看下 `server.log` 日志,是否有异常日志
Author
Owner

@gstory0404 commented on GitHub (Oct 24, 2023):

[2023-10-24 16:01:59.744] [ERROR] [module/api.go:DoApi:304] [处理操作异常] [{"action": "terminal/uploadWebsocket", "useTime": 0, "error": "websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header"}

这个异常一般什么原因导致 @team-ide

<!-- gh-comment-id:1776718065 --> @gstory0404 commented on GitHub (Oct 24, 2023): ``` [2023-10-24 16:01:59.744] [ERROR] [module/api.go:DoApi:304] [处理操作异常] [{"action": "terminal/uploadWebsocket", "useTime": 0, "error": "websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header"} ``` 这个异常一般什么原因导致 @team-ide
Author
Owner

@team-ide commented on GitHub (Oct 24, 2023):

你访问Team IDE是直接访问 还是通过nginx代理的,如果是nginx代码 需要添加支持 websocket的配置

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
<!-- gh-comment-id:1776761558 --> @team-ide commented on GitHub (Oct 24, 2023): 你访问Team IDE是直接访问 还是通过nginx代理的,如果是nginx代码 需要添加支持 websocket的配置 ```conf proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; ```
Author
Owner

@gstory0404 commented on GitHub (Oct 24, 2023):

好的 确实是由于没有打开websocket导致的 感谢

<!-- gh-comment-id:1776813334 --> @gstory0404 commented on GitHub (Oct 24, 2023): 好的 确实是由于没有打开websocket导致的 感谢
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/teamide-team-ide#31
No description provided.