alibaba / alibaba/arthas

web-console通过nginx反向代理连接agent失败

Open
#2,012 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
37.5k
Forks
7.6k
Avg merge
1d 22h
Merged PRs (30d)
4

Description

- [ ] 我已经在 [issues](https://github.com/alibaba/arthas/issues) 里搜索,没有重复的issue。

### 环境信息

* `arthas-boot.jar` 的版本: 3.5.4
* arthas-tunnel-server 版本: 3.5.4
* 操作系统版本: windows10
* 目标进程的JVM版本: 1.8

### 重现问题的步骤
我在自己电脑部署arthas-boot,然后部署tunnel-server,通过nginx反向代理进入server页面,输入agentid,请求nginx,nginx根据反向代理ws路径转发到7777就报这个错
![image](https://user-images.githubusercontent.com/42529011/138561279-c793e90c-0a75-4118-ab09-ef743a8f4387.png)
nginx的location配置有问题么,按照nginx官网websocket配置的
![image](https://user-images.githubusercontent.com/42529011/138561374-314f7fa7-de36-4230-ab20-d08e145b8a5f.png)

### 期望的结果

arthas-tunnel-server通过agentId连接到arthas-boot服务这个agent

### 实际运行的结果

实际运行结果,最好有详细的日志,异常栈。尽量贴文本。
后台没有接收到请求,在与nginx通信进行握手时候被返回301失败
![image](https://user-images.githubusercontent.com/42529011/138561279-c793e90c-0a75-4118-ab09-ef743a8f4387.png)
```
把异常信息贴到这里
```

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by reproducing the arthas-boot 3.5.4 to tunnel-server 3.5.4 connection through the reported nginx WebSocket location on Windows 10, and inspect the handshake response that returns 301. Done means the agentId connection reaches the agent without a redirect and the tunnel server receives the request.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, nginx
Domain
backend, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.