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

interface.music.163.com 的請求似乎都會失敗 #1134

Closed
5 tasks done
lekoOwO opened this issue Jun 20, 2023 · 19 comments
Closed
5 tasks done

interface.music.163.com 的請求似乎都會失敗 #1134

lekoOwO opened this issue Jun 20, 2023 · 19 comments
Labels
question Further information is requested

Comments

@lekoOwO
Copy link

lekoOwO commented Jun 20, 2023

Bug 描述

如題
架好之後,music.163.com 的請求沒問題 (music.163.com 的網頁正常),但 interface.music.163.com 的請求似乎都會失敗導致客戶端無法使用

预期行为

No response

实际行为

No response

复现步骤

No response

日志内容

INFO: (app) HTTP Server running @ http://0.0.0.0.:80
INFO: (app) HTTPS Server running @ http://0.0.0.0:443

网易云音乐歌曲链接

No response

网易云音乐版本号

2.10.10 Patch 1

操作系统

Windows 11

其他信息

Server 使用 Linux binary 版架設
LOG=debug NO_CACHE=true SIGN_CERT=/root/certs/server.crt SIGN_KEY=/root/certs/server.key ENABLE_FLAC=true /root/unblockneteasemusic-linux-x64 -o ytdlp bilibili -p 80:443 -s

使用軟體內代理會出現此情況
修改 Hosts 的話一開始會一直連接失敗,然後軟體就會 fallback 到他們伺服器的正常 IP 上。

问题排查

  • 我确认我使用的核心是由 UnblockNeteaseMusic 项目官方发行,不是其他任何 fork。
  • 我确认我已经升级到了最新的核心版本(推荐使用最新构建而不是 release)。
  • 我确认我已经启用了 HTTPS 端口。
  • 我确认我已经正确设置了 EndPoint。
  • 我确认我已经在对应的客户端正确安装了 CA 证书。
@lekoOwO lekoOwO added the bug Something isn't working label Jun 20, 2023
@1715173329
Copy link
Member

很抱歉目前我暂时没有 2.10.10 的环境。请问您的 binary 是从 actions 中下载的吗?

@lekoOwO
Copy link
Author

lekoOwO commented Jun 20, 2023

很抱歉目前我暂时没有 2.10.10 的环境。请问您的 binary 是从 actions 中下载的吗?

https://github.com/UnblockNeteaseMusic/server/releases/download/v0.27.1/unblockneteasemusic-linux-x64 這個版本

@1715173329
Copy link
Member

@lekoOwO
Copy link
Author

lekoOwO commented Jun 20, 2023

剛剛嘗試了,似乎沒有改善

@lekoOwO
Copy link
Author

lekoOwO commented Jun 20, 2023

更新:使用 evivedUnblockInstaller 可以使用

@lekoOwO
Copy link
Author

lekoOwO commented Jun 20, 2023

看起來使用 BetterNCM 版本的時候,請求都會正常發到 music.163.com
但是使用 linux 版的時候,請求都是往 interface.music.163.com 發,然後伺服器不回應就失敗了,我沒看懂原因是什麼

@1715173329
Copy link
Member

image

开了个虚拟机测了下似乎没有问题,如果你替换了默认的证书,请确保信任了你自己签发的根证书。
参考 #426

@1715173329 1715173329 added question Further information is requested and removed bug Something isn't working labels Jun 20, 2023
@lekoOwO
Copy link
Author

lekoOwO commented Jun 21, 2023

我確認我有信任我的證書

這個狀況我只在 linux 上的 server 版本能重現
本地跑個 windows 的就沒問題

@1715173329
Copy link
Member

我主要是在路由器上面运行的,也是 linux。不过我没有启用严格模式。
最新版本 v0.27.2 理论上已经默认开启 endpoint。

@1715173329
Copy link
Member

可能与 #1140 相关,可以试试

@lekoOwO
Copy link
Author

lekoOwO commented Jun 26, 2023

似乎跟 #1140 沒有關係

@lekoOwO
Copy link
Author

lekoOwO commented Jun 26, 2023

先前 LOG 參數下錯了

LOG_LEVEL=DEBUG 可以得到

INFO: (app) HTTP Server running @ http://10.121.124.13:80
INFO: (app) HTTPS Server running @ http://10.121.124.13:443
DEBUG: (server) TUNNEL
    url: "s6.music.126.net:443"
DEBUG: (server) TUNNEL
    url: "st.music.163.com:443"
DEBUG: (server) TUNNEL
    url: "10.121.124.13:443"
DEBUG: (server) TUNNEL
    url: "10.121.124.13:443"
DEBUG: (server) TUNNEL
    url: "10.121.124.13:443"
DEBUG: (server) TUNNEL
    url: "10.121.124.13:443"
DEBUG: (server) TUNNEL
    url: "10.121.124.13:443"
DEBUG: (server) TUNNEL
    url: "10.121.124.13:443"
DEBUG: (server) TUNNEL
    url: "10.121.124.13:443"
DEBUG: (server) TUNNEL
    url: "ac.dun.163yun.com:443"
DEBUG: (server) TUNNEL
    url: "ac.dun.163yun.com:443"
DEBUG: (server) TUNNEL
    url: "ac.dun.163yun.com:443"

之類的 log,不過還是相同錯誤
客戶端很多都是 net::ERR_EMPTY_RESPONSE 的錯誤

@pan93412
Copy link
Member

沒有 MITM 只有 TUNNEL 很有可能是因為你 TLS 憑證沒有裝好……

@lekoOwO
Copy link
Author

lekoOwO commented Jun 26, 2023

image

應該不是

@lekoOwO
Copy link
Author

lekoOwO commented Jun 26, 2023

我觀察到的情況是很多 music.163.com 下的網頁要轉很久,甚至載入錯誤
感覺 server 愛理不理的

@lekoOwO
Copy link
Author

lekoOwO commented Jun 26, 2023

用安卓版的 代理指向伺服器 好像也是只有 TUNNEL

@rsp4jack rsp4jack mentioned this issue Jul 1, 2023
5 tasks
@SakuraKoi
Copy link

SakuraKoi commented Jun 4, 2024

先前 LOG 參數下錯了

LOG_LEVEL=DEBUG 可以得到

INFO: (app) HTTP Server running @ http://10.121.124.13:80
INFO: (app) HTTPS Server running @ http://10.121.124.13:443
DEBUG: (server) TUNNEL
    url: "s6.music.126.net:443"
DEBUG: (server) TUNNEL
    url: "st.music.163.com:443"
DEBUG: (server) TUNNEL
    url: "10.121.124.13:443"
DEBUG: (server) TUNNEL
    url: "10.121.124.13:443"
DEBUG: (server) TUNNEL
    url: "10.121.124.13:443"
DEBUG: (server) TUNNEL
    url: "10.121.124.13:443"
DEBUG: (server) TUNNEL
    url: "10.121.124.13:443"
DEBUG: (server) TUNNEL
    url: "10.121.124.13:443"
DEBUG: (server) TUNNEL
    url: "10.121.124.13:443"
DEBUG: (server) TUNNEL
    url: "ac.dun.163yun.com:443"
DEBUG: (server) TUNNEL
    url: "ac.dun.163yun.com:443"
DEBUG: (server) TUNNEL
    url: "ac.dun.163yun.com:443"

之類的 log,不過還是相同錯誤 客戶端很多都是 net::ERR_EMPTY_RESPONSE 的錯誤

同样的问题, 有找到解决方案么
使用的最新开发分支编译的版本

@SakuraKoi
Copy link

SakuraKoi commented Jun 4, 2024

破案了, music.163.com的dns解析走梯子了, 解析到了个连不上的ip

> ping music.163.com
PING overseasv4.music.ntes53.netease.com (103.126.92.133) 56(84) bytes of data.
^C
--- overseasv4.music.ntes53.netease.com ping statistics ---
9 packets transmitted, 0 received, 100% packet loss, time 8231ms

添加-f参数手动指定网易云服务器ip后解决

@lekoOwO
Copy link
Author

lekoOwO commented Jun 4, 2024

哎,我的也是走梯子了,感謝

@lekoOwO lekoOwO closed this as completed Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants