-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
docker部署后运行无法登录MiService #22
Comments
修改后的文件上传到哪里呢? |
root@localhost: |
目测你的配置文件有问题,或者压根就没生效。请提供具体的容器内错误日志,否则我爱莫能助。 |
而且我发现每运行一次docker run就多一个容器出来,现在migpt下面的容器已经六七个了。。。 |
env里API那几个变量值不用引号包起来是吧 |
每次 run 都是创建一个新的 docker 实例出来 |
字符串里没空格,加不加引号都行 |
那我能删了所有gpt的实例重新run吗? |
建议删掉,只跑一个 |
你试试在小米官网,用你现在填的账号密码能正常登录不 |
可以的 |
删除这个项目然后重新部署docker会有帮助吗? |
和我遇到的问题一样,我试在华为云服务器上跑的 |
Country:United States State/Region:California City:Los Angeles 无vpn可以访问 |
可以参考这个问题 yihong0618/xiaogpt#332 在本地运行 docker run -d --env-file $(pwd)/.env \
-v $(pwd)/.migpt.js:/app/.migpt.js \
-v $(pwd)/.mi.json:/app/.mi.json \
idootop/mi-gpt:latest |
咦?重新部署了一个container,好了,奇怪,看来不用点那个链接,在本地翻墙登录一下小米账号就好了 |
.mi.json 可以打开 docker desktop 查看运行容器内的 files 目录,是在 /app/.mi.json 路径下面存放的。 |
一样的作用,应该只要在外网环境授权登录过小米账号就 OK。那个错误提示链接是直达授权页面,有登录时效的,过个几分钟就会失效。 |
感谢老板,我看star上升很快,可以开个交流 |
@MaoAnmi 谢谢你的建议,不过我暂时没有多余的精力创建和管理交流群哈。如果其他人有创建交流群,可以在这里贴一下,我开个 issue pin 一下,方便大家交流问题。 |
为什么等了30分钟还是报错呀。重新登陆是啥意思,是再次输入docker run --env-file |
@zhangfeishui 重启docker重新登录,如果还是同样的错误,继续等吧。 |
感谢。等了30分钟成功了。看来就是不能急啊。提前重启会重置验证时间。 |
@mfksss FAQ 有答案,自行搜索。 |
大佬是说让我本地先登陆这个办法?因为我都是在国外.然后VPS又是在意大利。本地的话也就只有NAS上试下 然后看看怎么获取这个.mi.json . 如果是NAS上的话也不算本地了吧 如果在NAS上登陆我需要怎么样获取?谢谢! |
@mfksss 在你电脑上运行即可,提示异地登录就直接在你电脑上登录下小米账号,然后等个 1,2 个小时,再重新登录获取凭证即可。 |
到最后还是没成功 因为我人在西班牙 目前用的VPS是意大利的 试了几天了一直还是异地登陆验证 我试过本地电脑登陆 也试过复制 记录里的链接 然后等了一小时两小时半天一天 还是不成功 最后我使用NAS一健就成功了 或下次我使用西班牙马德里的的VPS试一下 能不能成功 谢谢 还想请问一下GTP 3.5支持吗?就是现在免费的?有没有办法连接免费的模型? |
支持,自行查阅 FAQ。PS: gpt-3.5 也是付费的。 |
连着三天验证过不下十次了,notificationUrl,和日志内emoji后指向的验证URL都验证过了,确定验证地址已被代理,验证用过服务器IP,美国家宽,香港家宽,就始终没出现过跨境传输协议同意的页面,距离第一次验证超过48小时了,每次验证都是清cookie的,始终也登不上去,服务器IP挺干净,普通机房IP,美国鸡,ping0风控值<30,想问一下有没有别的解决办法?只能本地运行在搬上去嘛 |
❌ 登录失败 { |
你好 我用旁路由N1装的istore系统自带docker , shh连接后 运行 root@iStoreOS:~# docker run -d --env-file |
@aiqing14475 把配置文件和.env文件上传到你的 istore 系统,假设路径是 /usr/migpt/xxx,那就是替换成 /usr/migpt/xxx,不要带括号。 |
好的,谢谢大佬------------------ 原始邮件 ------------------发件人: Del ***@***.***>发送时间: 2024年9月7日 15:28收件人: idootop/mi-gpt ***@***.***>抄送: aiqing14475 ***@***.***>, Mention ***@***.***>主题: Re: [idootop/mi-gpt] docker部署后运行无法登录MiService (Issue #22)
@aiqing14475 把配置文件和.env文件上传到你的 istore 系统,假设路径是 /usr/migpt/xxx,那就是替换成 /usr/migpt/xxx,不要带括号。
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#22 (comment)",
"url": "#22 (comment)",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
一样遇到这个 |
❌ 登录失败 { |
完整报错如下:
/ $$ /$$ /$$ /$$$$$$ /$$$$$$$ /$$$$$$$$$
❌ 登录失败 { |
解决了么 我也遇到这个问题了 |
解决了,检查一下,就是简单的路径还是什么问题,仔细检查一下。
…----- 原始邮件 -----
发件人:ring0li ***@***.***>
收件人:idootop/mi-gpt ***@***.***>
抄送人:hcling97 ***@***.***>, Comment ***@***.***>
主题:Re:_[idootop/mi-gpt]_docker部署后运行无法登录MiService_(Issue_#22)
日期:2024年12月11日 20点26分
完整报错如下: ***@***.***:~/mi-gpt# docker run --name migpt --env-file ( p w d ) / . e n v − v (pwd)/.migpt.js:/app/.migpt.js migpt:latest
***@***.*** start
node ./app.js
/ $$ /$$ /$$ /$$$$$$ /$$$$$$$ /$$$$$$$$$ | $$$ /$$$|/ /$$ $$| Missing open brace for subscript $$__ $$|__ $$/ | $$$$ /$$$$ /$$| $$ _/| $$ \ $$ | $$ | $$ $$/$$ $$| $$| $$ /$$$$| $$$$$$$/ | $$ | $$ $$$| $$| $$| $$| $$| Missing open brace for subscript $$____/ | $$ | $$\ $ | | | $$ \ | | $$ | $$ / | | | $$$$$$/| $$ | $$ |/ |/|/ __/ |/ |/
MiGPT v4.2.0 by: del.wang
❌ 登录失败 { isError: true, code: 'ECONNABORTED', message: 'timeout of 5000ms exceeded', error: { request: { method: 'get', url: 'https://account.xiaomi.com/pass/serviceLogin?sid=micoapi&_json=true&_locale=zh_CN', headers: '{"Accept":"application/json, text/plain, /","Content-Type":"application/x-www-form-urlencoded","Accept-Encoding":"gzip, deflate","User-Agent":"Dalvik/2.1.0 (Linux; U; Android 10; RMX2111 Build/QP1A.190711.020) APP/xiaomi.mico APPV/2004040 MK/Uk1YMjExMQ== PassportSDK/3.8.3 passport-ui/3.8.3","Cookie":"userId=1155192416; deviceId=android_5d8ec752-6d79-42b0-99e5-2dd0db65adf4; passToken=;"}', data: '{}' }, response: undefined } } ❌ 登录失败 { isError: true, code: 'ECONNABORTED', message: 'timeout of 5000ms exceeded', error: { request: { method: 'get', url: 'https://account.xiaomi.com/pass/serviceLogin?sid=xiaomiio&_json=true&_locale=zh_CN', headers: '{"Accept":"application/json, text/plain, /","Content-Type":"application/x-www-form-urlencoded","Accept-Encoding":"gzip, deflate","User-Agent":"Dalvik/2.1.0 (Linux; U; Android 10; RMX2111 Build/QP1A.190711.020) APP/xiaomi.mico APPV/2004040 MK/Uk1YMjExMQ== PassportSDK/3.8.3 passport-ui/3.8.3","Cookie":"userId=1155192416; deviceId=android_507be3a0-328a-48e0-959b-9030dfce83d6; passToken=;"}', data: '{}' }, response: undefined } } 2024/10/02 15:10:44 Speaker ❌ 初始化 Mi Services 失败 2024/10/02 15:10:44 database ❌ Error: ❌ Assertion failed at _LoggerManager.assert (/app/dist/index.cjs:282:13) at __Logger.assert (/app/dist/index.cjs:319:19) at AISpeaker.initMiServices (/app/dist/index.cjs:499:17) at runNextTicks (node:internal/process/task_queues:60:5) at listOnTimeout (node:internal/timers:540:9) at process.processTimers (node:internal/timers:514:7) at async AISpeaker.run (/app/dist/index.cjs:771:5) at async main (file:///app/app.js:6:3) 各位大佬,有知道原因的么?
解决了么 我也遇到这个问题了
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
看了一下,最终排查出来时网络问题。排查最终结果是网络问题,采用--net=host即可解决。docker run -d --net=host --name migpt --env-file $(pwd)/.env -v $(pwd)/.migpt.js:/app/.migpt.js migpt:latest
…----- 原始邮件 -----
发件人:ring0li ***@***.***>
收件人:idootop/mi-gpt ***@***.***>
抄送人:hcling97 ***@***.***>, Comment ***@***.***>
主题:Re:_[idootop/mi-gpt]_docker部署后运行无法登录MiService_(Issue_#22)
日期:2024年12月11日 20点26分
完整报错如下: ***@***.***:~/mi-gpt# docker run --name migpt --env-file ( p w d ) / . e n v − v (pwd)/.migpt.js:/app/.migpt.js migpt:latest
***@***.*** start
node ./app.js
/ $$ /$$ /$$ /$$$$$$ /$$$$$$$ /$$$$$$$$$ | $$$ /$$$|/ /$$ $$| Missing open brace for subscript $$__ $$|__ $$/ | $$$$ /$$$$ /$$| $$ _/| $$ \ $$ | $$ | $$ $$/$$ $$| $$| $$ /$$$$| $$$$$$$/ | $$ | $$ $$$| $$| $$| $$| $$| Missing open brace for subscript $$____/ | $$ | $$\ $ | | | $$ \ | | $$ | $$ / | | | $$$$$$/| $$ | $$ |/ |/|/ __/ |/ |/
MiGPT v4.2.0 by: del.wang
❌ 登录失败 { isError: true, code: 'ECONNABORTED', message: 'timeout of 5000ms exceeded', error: { request: { method: 'get', url: 'https://account.xiaomi.com/pass/serviceLogin?sid=micoapi&_json=true&_locale=zh_CN', headers: '{"Accept":"application/json, text/plain, /","Content-Type":"application/x-www-form-urlencoded","Accept-Encoding":"gzip, deflate","User-Agent":"Dalvik/2.1.0 (Linux; U; Android 10; RMX2111 Build/QP1A.190711.020) APP/xiaomi.mico APPV/2004040 MK/Uk1YMjExMQ== PassportSDK/3.8.3 passport-ui/3.8.3","Cookie":"userId=1155192416; deviceId=android_5d8ec752-6d79-42b0-99e5-2dd0db65adf4; passToken=;"}', data: '{}' }, response: undefined } } ❌ 登录失败 { isError: true, code: 'ECONNABORTED', message: 'timeout of 5000ms exceeded', error: { request: { method: 'get', url: 'https://account.xiaomi.com/pass/serviceLogin?sid=xiaomiio&_json=true&_locale=zh_CN', headers: '{"Accept":"application/json, text/plain, /","Content-Type":"application/x-www-form-urlencoded","Accept-Encoding":"gzip, deflate","User-Agent":"Dalvik/2.1.0 (Linux; U; Android 10; RMX2111 Build/QP1A.190711.020) APP/xiaomi.mico APPV/2004040 MK/Uk1YMjExMQ== PassportSDK/3.8.3 passport-ui/3.8.3","Cookie":"userId=1155192416; deviceId=android_507be3a0-328a-48e0-959b-9030dfce83d6; passToken=;"}', data: '{}' }, response: undefined } } 2024/10/02 15:10:44 Speaker ❌ 初始化 Mi Services 失败 2024/10/02 15:10:44 database ❌ Error: ❌ Assertion failed at _LoggerManager.assert (/app/dist/index.cjs:282:13) at __Logger.assert (/app/dist/index.cjs:319:19) at AISpeaker.initMiServices (/app/dist/index.cjs:499:17) at runNextTicks (node:internal/process/task_queues:60:5) at listOnTimeout (node:internal/timers:540:9) at process.processTimers (node:internal/timers:514:7) at async AISpeaker.run (/app/dist/index.cjs:771:5) at async main (file:///app/app.js:6:3) 各位大佬,有知道原因的么?
解决了么 我也遇到这个问题了
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
我也加了这个参数,但还是同样的失败错误 |
我在Debian里安装了docker container,但。。。本项目根目录。。。在哪里。。。看了var/lib/docker/container,但没有找到mi-gpt。。。
The text was updated successfully, but these errors were encountered: