yihong0618 / xiaogpt

Play ChatGPT and other LLM with Xiaomi AI Speaker
MIT License
6.03k stars 839 forks source link

长期运行中断必须重启 #340

Closed white586 closed 10 months ago

white586 commented 11 months ago

问题描述

docker版本,运行1天没问题,如果持续3-5天运行,会报下面错误。小爱就没有反应了。重启容器后正常。 音箱:使用小爱同学pro。

docker image信息

"Id": "sha256:b54a58cb4853b21f0e947bf893c59715af4abaf0bb7621f4c722e2af79e825bd", "RepoTags": [ "yihong0618/xiaogpt:latest" ], "RepoDigests": [ "yihong0618/xiaogpt@sha256:647f27a7e143613edeab8927d26d0dbf7f587fa8698f2ac8d36692ab9ea22ec1" ],

报错信息:

[09/21/23 19:26:30] ERROR 89.248.165.95 - code 400, message Bad xiaogpt.py:56 HTTP/0.9 request type ('\x03\x00\x00/à\x00\x00\x00\x00\x00 Cookie:') [09/21/23 22:09:06] ERROR 89.248.165.95 - code 400, message Bad xiaogpt.py:56 HTTP/0.9 request type ('\x03\x00\x00/à\x00\x00\x00\x00\x00 Cookie:') [09/22/23 09:03:33] ERROR 89.248.163.212 - code 400, message xiaogpt.py:56 Bad HTTP/0.9 request type ('\x03\x00\x00/*à\x00\x00\x00\x00\x00 Cookie:') [09/22/23 10:19:41] ERROR 94.102.56.151 - code 400, message Bad xiaogpt.py:56 request version ('T\x19ß\x99\x0f\x9eo\x00\x00\x82À0À, À(À$À\x14À') [09/22/23 10:51:06] ERROR 101.36.107.138 - code 404, message xiaogpt.py:56 File not found [09/22/23 12:44:54] ERROR 89.248.165.124 - code 400, message xiaogpt.py:56 Bad request syntax ('\x03\x00\x00\x13\x0eà\x00\x00\x00\x 00\x00\x01\x00\x08\x00\x02\x00\x00\x0 0') [09/23/23 07:22:57] ERROR 111.199.188.225 - code 404, message xiaogpt.py:56 File not found

yihong0618 commented 11 months ago

更新到最新代码试试?

white586 commented 11 months ago

感谢支持!! docker已经更新到 yihong0618/xiaogpt latest 72789bdf4e05 我再运行几天,回来报告

yihong0618 commented 11 months ago

好的

white586 commented 11 months ago

使用了最新的docker镜像,还是存在问题,必须重启容器后恢复正常,这个是容器版独有的问题,还是pip版本也有?在考虑是不是换pip运行的版本

image信息如下:

REPOSITORY TAG IMAGE ID CREATED SIZE yihong0618/xiaogpt latest 72789bdf4e05 2 weeks ago 238MB

日志如下:

Running xiaogpt now, 用请问/帮我开头来提问 或用开始持续对话开始持续对话 [09/25/23 08:18:26] ERROR 185.233.19.217 - code 400, message xiaogpt.py:56 Bad request syntax ('Info:Info') [09/25/23 08:18:27] ERROR 185.233.19.217 - code 400, message xiaogpt.py:56 Bad request version ('À\x13À') [09/25/23 08:18:28] ERROR 185.233.19.217 - code 400, message xiaogpt.py:56 Bad request version ('L\x8f`') [09/25/23 08:23:37] ERROR 101.36.107.138 - code 404, message xiaogpt.py:56 File not found [09/25/23 13:27:48] ERROR 111.199.188.225 - code 404, message xiaogpt.py:56 File not found [09/25/23 16:44:30] WARNING Execption when get latest ask from xiaogpt.py:243 xiaoai: [09/25/23 20:00:06] WARNING Execption when get latest ask from xiaogpt.py:243 xiaoai: Server disconnected [09/25/23 23:09:44] WARNING get latest ask from xiaoai error, xiaogpt.py:250 retry [09/25/23 23:09:45] WARNING get latest ask from xiaoai error, xiaogpt.py:250 retry WARNING get latest ask from xiaoai error, xiaogpt.py:250 retry Maybe outof date trying to re init it [09/26/23 20:58:28] ERROR 89.248.165.242 - code 400, message xiaogpt.py:56 Bad request syntax ('\x03\x00\x00\x13\x0eà\x00\x00\x00\x 00\x00\x01\x00\x08\x00\x02\x00\x00\x0 0') [09/27/23 19:07:34] ERROR 89.248.165.97 - code 400, message Bad xiaogpt.py:56 request syntax ('\x03\x00\x00\x13\x0eà\x00\x00\x00\x 00\x00\x01\x00\x08\x00\x02\x00\x00\x0 0') [09/28/23 11:11:48] ERROR 220.167.181.194 - code 400, message xiaogpt.py:56 Bad request syntax ('\x03\x00\x00\x13\x0eà\x00\x00\x00\x 00\x00\x01\x00\x08\x00\x03\x00\x00\x0 0') [09/28/23 16:54:29] ERROR 89.248.165.106 - code 400, message xiaogpt.py:56 Bad request syntax ('\x03\x00\x00\x13\x0eà\x00\x00\x00\x 00\x00\x01\x00\x08\x00\x02\x00\x00\x0 0') [09/29/23 12:19:05] ERROR 89.248.163.212 - code 400, message xiaogpt.py:56 Bad HTTP/0.9 request type ('\x03\x00\x00/à\x00\x00\x00\x00\x00 Cookie:') [09/30/23 04:22:11] ERROR 89.248.163.115 - code 400, message xiaogpt.py:56 Bad request syntax ('\x03\x00\x00\x13\x0eà\x00\x00\x00\x 00\x00\x01\x00\x08\x00\x02\x00\x00\x0 0') [09/30/23 11:32:08] ERROR 89.248.163.96 - code 400, message Bad xiaogpt.py:56 HTTP/0.9 request type ('\x03\x00\x00/à\x00\x00\x00\x00\x00 Cookie:') [09/30/23 17:18:34] ERROR 89.248.163.96 - code 400, message Bad xiaogpt.py:56 HTTP/0.9 request type ('\x03\x00\x00/*à\x00\x00\x00\x00\x00 Cookie:') [09/30/23 21:17:53] ERROR 183.136.225.29 - code 404, message xiaogpt.py:56 File not found ERROR 183.136.225.29 - code 404, message xiaogpt.py:56 File not found

yihong0618 commented 11 months ago

file not found 好像没见过这个报错,我们之后看一下。谢谢

yihong0618 commented 11 months ago

运行几天报到错呀

white586 commented 11 months ago

一般一天左右就报错不能用了

white586 commented 11 months ago

目前加了一个定时任务,一天重启一次docker容器,有缓解

VectorZhao commented 10 months ago

这个问题确实影响体验,

yihong0618 commented 10 months ago

@VectorZhao 更新到最新代码。

wavezhang commented 8 months ago

@VectorZhao 更新到最新代码。

用最新代码,使用 cookie 登录也有同样问题

yihong0618 commented 8 months ago

@VectorZhao 更新到最新代码。

用最新代码,使用 cookie 登录也有同样问题

我这几天不在电脑前,之后我看看