Soulter / AstrBot

QQ、Telegram、微信 等多平台兼容的支持 LLM 聊天的机器人平台。支持自定义插件扩展。
GNU Affero General Public License v3.0
597 stars 60 forks source link

nohup挂后台会失败 #141

Closed louis26wq closed 9 months ago

louis26wq commented 9 months ago

前台运行正常。 使用nohup python3 -u main.py > test.log 2>&1 &

[12-16 23:56:36] [INFO] [System]: 🎉 项目启动完成。

Exception in thread Thread-1 (main): Traceback (most recent call last): File "/usr/local/python3/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self.run() File "/usr/local/python3/lib/python3.11/threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "/root/qqchangpt/AstrBot/main.py", line 48, in main qqBot.initBot(cfg, provider) File "/root/qqchangpt/AstrBot/cores/qqbot/core.py", line 426, in initBot asyncio.get_event_loop().run_until_complete(cli()) File "/usr/local/python3/lib/python3.11/asyncio/base_events.py", line 650, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/root/qqchangpt/AstrBot/cores/qqbot/core.py", line 434, in cli prompt = input(">>> ") ^^^^^^^^^^^^^ OSError: [Errno 9] 错误的文件描述符

Soulter commented 9 months ago

hello,近期我会推一版支持可视化界面的版本,这个版本将会解决你提到的问题。

Soulter commented 9 months ago

已修复