BeyondDimension / BeyondDimension/SteamTools

🐛[BUG] 与nginx有冲突

Open
#3,267 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
26.8k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

### 🐛 描述

系统环境:5.15.0-100-generic #110~20.04.1-Ubuntu SMP Tue Feb 13 14:25:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
桌面环境:gnome 3.36
系统安装了nginx,在运行nginx的时候使用加速时提示特权操作需要认证:pkexec[179273]: erika: Executing command [USER=root] [TTY=unknown] [CWD=/home/erika] COMMAND=/usr/sbin/setcap cap_net_bind_service=+eip /home/erika/.local/lib/watt-tools/modules/Accelerator/Steam++.Accelerator]
完成认证后软件提示 StartProxyFailed: BindPortError
我的nginx只监听了80和443
除自带的插件外未安装任何其他的插件

如果停止nginx然后开始加速则不显示特权操作认证,此时
如果使用system模式加速,此时显示开始加速,但无效,与此同时可以启动nginx
如果使用hosts模式加速,则可以正常加速,但此时启动nginx或报错提示80和443端口被占用

希望能和nginx一起使用,比如监听其他端口,然后由nginx反代

### 📷 复现步骤

1. 启动nginx(开机自动启动,由systemctl控制)
2. 开启watt toolkit
3. 勾选需要的网站,加速模式选择system,开始一键加速
4. 出现特权操作认证
5. 输入密码认证成功后,软件出现错误提示StartProxyFailed: BindPortError

### 📄 日志信息
我看了下日志,只有最开始hosts无权限的错误记录,之后直接chown之后就没报过错,删除日志文件,再次复现故障的时候就没有日志文件输出了,只有空文件

### 🖼 截图

![image](https://github.com/BeyondDimension/SteamTools/assets/46079468/c7c1fedb-3d7a-4d95-869f-73c5a96104b0)

### 🚑 其他信息

- 处理器体系结构:amd ryzen 5800h
- 系统版本号:Ubuntu 20.04.1 LTS
- 下载渠道:Github
- 程序版本:3.0.0-rc.5 for ubuntu (x64)
- 是否包含独立运行时:不清楚,第一次运行Steam++.sh的时候会自己下载dotnet依赖
![image](https://github.com/BeyondDimension/SteamTools/assets/46079468/43bba1b1-8f77-4f58-90e1-1eecd02d3f3b)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the system-mode acceleration failure with nginx listening on ports 80 and 443 on Ubuntu 20.04, then inspect the accelerator proxy startup and its logs around StartProxyFailed: BindPortError. Done means acceleration can run while nginx remains active, with the proxy using another port suitable for reverse proxying.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, linux, nginx
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.