Closed bincooo closed 1 year ago
网络问题,用的库需要从网络加载文件。
网络问题,用的库需要从网络加载文件。
我升级到最新版后,也是遇到这个问题。 可以改成从本地加载吗。 我把one-api跑在serverless环境下, 启动速度比较关键。
可以的,你本地跑起来后把下面的这个文件夹内容复制过去试一下呢
Last failed login: Mon Mar 4 22:11:47 CST 2024 from 118.163.63.23 on ssh:notty There were 24 failed login attempts since the last successful login. Last login: Mon Mar 4 21:44:42 2024 from 127.0.0.1 -bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8) [root@VM-20-4-centos ~]# [root@VM-20-4-centos one-api]# Last login: Mon Mar 4 22:15:31 2024 from 127.0.0.1 cd /www/wwwroot/oneapi.lesu66.com/one-api -bash: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8) [root@VM-20-4-centos ~]# cd /www/wwwroot/oneapi.lesu66.com/one-api [root@VM-20-4-centos one-api]# chmod u+x one-api [root@VM-20-4-centos one-api]# ./one-api --port 3000 --log-dir ./logs [SYS] 2024/03/04 - 22:15:40 | One API v0.0.0 started [SYS] 2024/03/04 - 22:15:40 | SQL_DSN not set, using SQLite as database [SYS] 2024/03/04 - 22:15:40 | database migration started [SYS] 2024/03/04 - 22:15:40 | database migrated [SYS] 2024/03/04 - 22:15:40 | REDIS_CONN_STRING not set, Redis is not enabled [SYS] 2024/03/04 - 22:15:40 | using theme default [SYS] 2024/03/04 - 22:15:40 | initializing token encoders [SYS] 2024/03/04 - 22:15:40 | token encoders initialized
例行检查
问题描述 如题,启动后卡在
initializing token encoders
要等很久才加载完毕以上日志算快的,有时卡着20分钟都没有初始化完成。 这是什么原因?
复现步骤
预期结果
相关截图 如果没有的话,请删除此节。