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

无法访问到one-api #1415

Open
luommy opened this issue May 8, 2024 · 5 comments
Open

无法访问到one-api #1415

luommy opened this issue May 8, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@luommy
Copy link

luommy commented May 8, 2024

例行检查

  • [ x ] 我已确认目前没有类似 issue
  • [ x ] 我已确认我已升级到最新版本
  • [ x] 我已完整查看过项目 README,尤其是常见问题部分
  • [ x] 我理解并愿意跟进此 issue,协助测试和提供反馈
  • [ x] 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述
使用docker-compose编排启动后无法访问连接到One-api3001,FastGPT3000却可以访问到,这点很奇怪 ;
我尝试排查端口、防火墙、容器日志并未发现问题;
系统:centOS7.9

其中one-api容器日志如下: 清一色的这种,个人感觉不像是影响访问的问题
FATAL] 2024/05/08 - 06:52:25 | [failed to get gpt-3.5-turbo token encoder: Get "https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken": dial tcp: lookup openaipublic.blob.core.windows.net on 127.0.0.11:53: server misbehaving]
[SYS] 2024/05/08 - 06:52:25 | One API v0.6.6-alpha.15 started
[SYS] 2024/05/08 - 06:52:25 | using MySQL as database
[SYS] 2024/05/08 - 06:52:25 | database migration started
[SYS] 2024/05/08 - 06:52:25 | database migrated
[SYS] 2024/05/08 - 06:52:25 | REDIS_CONN_STRING not set, Redis is not enabled
[SYS] 2024/05/08 - 06:52:25 | using theme default
[SYS] 2024/05/08 - 06:52:25 | memory cache enabled
[SYS] 2024/05/08 - 06:52:25 | sync frequency: 600 seconds
[SYS] 2024/05/08 - 06:52:25 | channels synced from database
[SYS] 2024/05/08 - 06:52:25 | batch update enabled with interval 10s
[SYS] 2024/05/08 - 06:52:25 | initializing token encoders
[SYS] 2024/05/08 - 06:52:35 | batch update started
[SYS] 2024/05/08 - 06:52:35 | batch update finished
[FATAL] 2024/05/08 - 06:52:41 | [failed to get gpt-3.5-turbo token encoder: Get "https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken": dial tcp: lookup openaipublic.blob.core.windows.net on 127.0.0.11:53: server misbehaving]
[SYS] 2024/05/08 - 06:52:42 | One API v0.6.6-alpha.15 started
[SYS] 2024/05/08 - 06:52:42 | using MySQL as database
[SYS] 2024/05/08 - 06:52:42 | database migration started
[SYS] 2024/05/08 - 06:52:42 | database migrated
[SYS] 2024/05/08 - 06:52:42 | REDIS_CONN_STRING not set, Redis is not enabled
[SYS] 2024/05/08 - 06:52:42 | using theme default
[SYS] 2024/05/08 - 06:52:42 | memory cache enabled
[SYS] 2024/05/08 - 06:52:42 | sync frequency: 600 seconds
[SYS] 2024/05/08 - 06:52:42 | channels synced from database
[SYS] 2024/05/08 - 06:52:42 | batch update enabled with interval 10s
[SYS] 2024/05/08 - 06:52:42 | initializing token encoders
[SYS] 2024/05/08 - 06:52:52 | batch update started
[SYS] 2024/05/08 - 06:52:52 | batch update finished
复现步骤

预期结果

相关截图
image
image

@luommy luommy added the bug Something isn't working label May 8, 2024
@QAbot-zh
Copy link

QAbot-zh commented May 8, 2024

有个日志:[FATAL] 2024/05/08 - 06:52:41 | [failed to get gpt-3.5-turbo token encoder: Get "https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken": dial tcp: lookup openaipublic.blob.core.windows.net on 127.0.0.11:53: server misbehaving]
这是部署没成功啊,如果一直报这个编码器下载错误的话

@luommy
Copy link
Author

luommy commented May 8, 2024

有个日志:[FATAL] 2024/05/08 - 06:52:41 | [failed to get gpt-3.5-turbo token encoder: Get "https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken": dial tcp: lookup openaipublic.blob.core.windows.net on 127.0.0.11:53: server misbehaving]有个日志:[FATAL] 2024/05/08 - 06:52:41 |[无法获取 GPT-3.5-Turbo 令牌编码器:获取“https://openaipublic.blob.core.windows.net/encodings/cl100k_base.tiktoken”:拨号 tcp:在 127.0.0.11:53 上查找 openaipublic.blob.core.windows.net:服务器行为异常] 这是部署没成功啊,如果一直报这个编码器下载错误的话

那这是为什么呢,我尝试了好几次都是一直报这个,我有仔细看过文档,如果没启动成功的话,添加--privileged=true可以解决吗? 但我看的#482和我报的问题并不一样

@Lovening
Copy link

image
我也有这个问题.... 解决这个是不是要去修改源码

@luommy
Copy link
Author

luommy commented May 20, 2024

tiktoken
改源码应该可以的,我没有尝试,我改的是配置,见可解决
image

@luommy
Copy link
Author

luommy commented May 20, 2024

image 我也有这个问题.... 解决这个是不是要去修改源码

这个确实挺坑的,对离线部署十分不友好,我也搞了好多天才弄好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants