Skip to content

gateway报404 #2180

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

Open
YK-hastur opened this issue May 7, 2025 · 9 comments
Open

gateway报404 #2180

YK-hastur opened this issue May 7, 2025 · 9 comments

Comments

@YK-hastur
Copy link

docker run -d --rm --name higress-ai -v ${PWD}:/data -p 30110:8001 -p 30111:8080 -p 30112:8443 higress-registry.cn-hangzhou.cr.aliyuncs.com/higress/all-in-one:latest
使用上述命令进行docker部署,配置好llm的路由后,gateway报404

Image

@CH3CHO
Copy link
Collaborator

CH3CHO commented May 7, 2025

请提供完整的配置信息和测试请求信息。

@YK-hastur
Copy link
Author

YK-hastur commented May 7, 2025

模型配置
Image
路由配置
Image
请求命令
Image

@CH3CHO
Copy link
Collaborator

CH3CHO commented May 7, 2025

鉴于只有一条路由,你把模型匹配这个规则去掉看看呢

@YK-hastur
Copy link
Author

去掉之后通了,这是啥原理

@CH3CHO
Copy link
Collaborator

CH3CHO commented May 7, 2025

去掉之后通了,这是啥原理

你的机器能访问外网吗?看看 gateway 的日志,前面有没有拉取插件之类的错误。

@YK-hastur
Copy link
Author

Image
这是gateway日志,起服务的是内网,无法连接外网

@YK-hastur
Copy link
Author

cannot fetch Wasm module oci://higress-registry.cn-hangzhou.cr.aliyuncs.com/plugins/ai-statistics:1.0.0: could not fetch Wasm OCI image
是不是这个的锅

@CH3CHO
Copy link
Collaborator

CH3CHO commented May 7, 2025

那就是这个原因了。模型匹配是依赖 model-router 插件的。你的内网环境无法下载插件,所以报错了。你可以使用这个脚本下载插件的 Wasm 文件,然后参考下面两个文档修改插件的镜像地址:

@YK-hastur
Copy link
Author

好的我试一下,感谢感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants