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

用docker部署 yml改为企微配置 启动后不显示绑定9898日志,个人微信启动正常 #2245

Open
2 tasks done
lichengdu opened this issue Aug 16, 2024 · 4 comments

Comments

@lichengdu
Copy link

前置确认

  • 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在FAQS中也未找到类似问题。

⚠️ 搜索issues中是否已存在类似问题

  • 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue

操作系统类型?

Linux

运行的python版本是?

python 3.7

使用的chatgpt-on-wechat版本是?

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

docker-compose.yml配置 剔除敏感信息
version: '2.0'
services:
chatgpt-on-wechat:
image: zhayujie/chatgpt-on-wechat
container_name: chatgpt-on-wechat
security_opt:
- seccomp:unconfined
environment:
OPEN_AI_API_KEY: 'fastgpt-oHLMB0Dq7tZ1nXjbQNvUGN2ryjwV36FvIo4IgajXY3a3lju8jQDzKMyWLRUrK1v'
OPEN_AI_API_BASE: 'http://xxxx/api/v1'
MODEL: 'gpt-3.5-turbo'
PROXY: ''
HOT_RELOAD: 'False'

  CHANNEL_TYPE: 'wechatcom_app'
  WECHATCOM_CORP_ID: 'xx'
  WECHATCOMAPP_AGENT_ID: 'xx'
  WECHATCOMAPP_SECRET: '--xx'
  WECHATCOMAPP_TOKEN: 'xx'
  WECHATCOMAPP_AES_KEY: 'x'
  WECHATCOMAPP_PORT: 9898
  IMAGE_CREATE_PREFIX: '["画", "看", "找"]'
  CONVERSATION_MAX_TOKENS: 1000
  SPEECH_RECOGNITION: 'False'
  CHARACTER_DESC: '你是ChatGPT, 一个由Snimay训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。'
  SUBSCRIBE_MSG: '感谢您的关注!\n这里是ChatGPT,可以自由对话。\n支持语音对话。\n支持图片输入。\n支持图片输出,画字开头的消息将按要求创作图片。\n支持tool、角色扮演和文字冒险等丰富的插件。\n输入{trigger_prefix}#help 查看详细指令。'
  EXPIRES_IN_SECONDS: 3600   
  USE_GLOBAL_PLUGIN_CONFIG: 'False'
  USE_LINKAI: 'False'
  LINKAI_API_KEY: ''
  LINKAI_APP_CODE: ''

然后使用docker-compose down 和docker-compose up -d
启动
查看docker
BaiduShurufa_2024-8-16_11-57-29

查看日志 未打印绑定9898
BaiduShurufa_2024-8-16_11-54-34

问题描述 😯

BaiduShurufa_2024-8-16_11-54-34

终端日志 📒

日志如下
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: subscribe_msg=感谢您的关注!\n这里是ChatGPT,可以自由对话。\n支持语音对话。\n支持图片输入。\n支持图片输出,画字开头的消息将按要求创作图片。\n支持tool、角色扮演和文字冒险等丰富的插件。\n输入{trigger_prefix}#help 查看详细指令。
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: wechatcomapp_port=9898
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: linkai_api_key=
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: hot_reload=False
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: image_create_prefix=["画", "看", "找"]
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: conversation_max_tokens=1000
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: open_ai_api_base=http://xxxxx:3000/api/v1
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: expires_in_seconds=3600
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: model=gpt-3.5-turbo
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: use_linkai=False
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: wechatcomapp_secret=-xxx 
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: proxy=
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: channel_type=wechatcom_app
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: character_desc=你是ChatGPT, 一个由Snimay训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: linkai_app_code=
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: speech_recognition=False
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: wechatcom_corp_id=xxx
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: wechatcomapp_agent_id=xxx
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: wechatcomapp_aes_key=xx
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: use_global_plugin_config=True
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: wechatcomapp_token=xxx
[INFO][2024-08-16 03:11:37][config.py:282] - [INIT] override config by environ args: open_ai_api_key=xxxx
[INFO][2024-08-16 03:11:37][config.py:297] - [INIT] load config: {'channel_type': 'wechatcom_app', 'model': 'gpt-3.5-turbo', 'open_ai_api_key': 'fas*****K1v', 'claude_api_key': 'YOU*****KEY', 'text_to_image': 'dall-e-2', 'voice_to_text': 'openai', 'text_to_voice': 'openai', 'proxy': '', 'hot_reload': False, 'single_chat_prefix': ['bot', '@bot'], 'single_chat_reply_prefix': '[bot] ', 'group_chat_prefix': ['@bot'], 'group_name_white_list': ['ChatGPT测试群', 'ChatGPT测试群2'], 'image_create_prefix': ['画', '看', '找'], 'speech_recognition': False, 'group_speech_recognition': False, 'voice_reply_voice': False, 'conversation_max_tokens': 1000, 'expires_in_seconds': 3600, 'character_desc': '你是ChatGPT, 一个由训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。', 'temperature': 0.7, 'subscribe_msg': '感谢您的关注!\\n这里是ChatGPT,可以自由对话。\\n支持语音对话。\\n支持图片输入。\\n支持图片输出,画字开头的消息将按要求创作图片。\\n支持tool、角色扮演和文字冒险等丰富的插件。\\n输入{trigger_prefix}#help 查看详细指令。', 'use_linkai': False, 'linkai_api_key': '*****', 'linkai_app_code': '', 'wechatcomapp_port': 9898, 'open_ai_api_base': 'http://192.168.41.214:3000/api/v1', 'wechatcomapp_secret': '--Y*****Iwk', 'wechatcom_corp_id': 'wx0e56b24d954fd5a5', 'wechatcomapp_agent_id': 1000159, 'wechatcomapp_aes_key': 'awX*****SLR', 'use_global_plugin_config': True, 'wechatcomapp_token': 'xxx'}
[INFO][2024-08-16 03:11:37][config.py:223] - [Config] User datas file not found, ignore.
wx0e56b24d954fd5a5 --xxx 1000159 xxx xxx
[INFO][2024-08-16 03:11:38][wechatcomapp_channel.py:39] - [wechatcom] init: corp_id: xxxx, secret: xzxxxxx, agent_id: 1000159, token: xxxx, aes_key: xxxx
er.py:50] - Loading plugins config...
[INFO][2024-08-16 03:11:38][plugin_manager.py:88] - Scaning plugins ...
[INFO][2024-08-16 03:11:38][plugin_manager.py:41] - Plugin Banwords_v1.0 registered, path=./plugins/banwords
[INFO][2024-08-16 03:11:38][plugin_manager.py:41] - Plugin BDunit_v0.1 registered, path=./plugins/bdunit
[INFO][2024-08-16 03:11:38][plugin_manager.py:41] - Plugin Dungeon_v1.0 registered, path=./plugins/dungeon
[INFO][2024-08-16 03:11:38][plugin_manager.py:41] - Plugin Finish_v1.0 registered, path=./plugins/finish
[INFO][2024-08-16 03:11:38][plugin_manager.py:41] - Plugin Godcmd_v1.0 registered, path=./plugins/godcmd
[INFO][2024-08-16 03:11:38][plugin_manager.py:41] - Plugin Hello_v0.1 registered, path=./plugins/hello
[INFO][2024-08-16 03:11:38][plugin_manager.py:41] - Plugin Keyword_v0.1 registered, path=./plugins/keyword
[INFO][2024-08-16 03:11:38][plugin_manager.py:41] - Plugin linkai_v0.1.0 registered, path=./plugins/linkai
[INFO][2024-08-16 03:11:38][plugin_manager.py:41] - Plugin Role_v1.0 registered, path=./plugins/role
chatgpt-tool-hub version: 0.5.0
[INFO][2024-08-16 03:11:38][plugin_manager.py:41] - Plugin tool_v0.5 registered, path=./plugins/tool
[INFO][2024-08-16 03:11:38][plugin_manager.py:123] - Plugin GODCMD not found in pconfig, adding to pconfig...
[INFO][2024-08-16 03:11:38][plugin_manager.py:123] - Plugin KEYWORD not found in pconfig, adding to pconfig...
[INFO][2024-08-16 03:11:38][plugin_manager.py:123] - Plugin BANWORDS not found in pconfig, adding to pconfig...
[INFO][2024-08-16 03:11:38][plugin_manager.py:123] - Plugin LINKAI not found in pconfig, adding to pconfig...
[INFO][2024-08-16 03:11:38][plugin_manager.py:123] - Plugin TOOL not found in pconfig, adding to pconfig...
[INFO][2024-08-16 03:11:38][plugin_manager.py:123] - Plugin ROLE not found in pconfig, adding to pconfig...
[INFO][2024-08-16 03:11:38][plugin_manager.py:123] - Plugin DUNGEON not found in pconfig, adding to pconfig...
[INFO][2024-08-16 03:11:38][plugin_manager.py:123] - Plugin BDUNIT not found in pconfig, adding to pconfig...
[INFO][2024-08-16 03:11:38][plugin_manager.py:123] - Plugin HELLO not found in pconfig, adding to pconfig...
[INFO][2024-08-16 03:11:38][plugin_manager.py:123] - Plugin FINISH not found in pconfig, adding to pconfig...
[INFO][2024-08-16 03:11:38][godcmd.py:194] - [Godcmd] 因未设置口令,本次的临时口令为0764。
[INFO][2024-08-16 03:11:38][godcmd.py:210] - [Godcmd] inited
[INFO][2024-08-16 03:11:38][keyword.py:40] - [keyword] {}
[INFO][2024-08-16 03:11:38][keyword.py:42] - [keyword] inited.
[WARNING][2024-08-16 03:11:38][banwords.py:54] - [Banwords] init failed, ignore or see https://github.com/zhayujie/chatgpt-on-wechat/tree/master/plugins/banwords .
[WARNING][2024-08-16 03:11:38][plugin_manager.py:150] - Failed to init BANWORDS, diabled. [Errno 2] No such file or directory: '/app/plugins/banwords/banwords.txt'
[INFO][2024-08-16 03:11:38][linkai.py:35] - [LinkAI] inited, config={'group_app_map': {'测试群名1': 'default', '测试群名2': 'Kv2fXJcH'}, 'midjourney': {'enabled': False, 'auto_translate': True, 'img_proxy': True, 'max_tasks': 3, 'max_tasks_per_user': 1, 'use_image_create_prefix': True}, 'summary': {'enabled': False, 'group_enabled': True, 'max_file_size': 5000, 'type': ['FILE', 'SHARING']}}
[WARNING][2024-08-16 03:11:39][tool.py:27] - [tool] init failed, ignore 
[WARNING][2024-08-16 03:11:39][plugin_manager.py:150] - Failed to init TOOL, diabled. config.json not found
[INFO][2024-08-16 03:11:39][role.py:69] - [Role] inited
[INFO][2024-08-16 03:11:39][dungeon.py:56] - [Dungeon] inited
[WARNING][2024-08-16 03:11:39][bdunit.py:42] - [BDunit] init failed, ignore 
[WARNING][2024-08-16 03:11:39][plugin_manager.py:150] - Failed to init BDUNIT, diabled. config.json not found
[INFO][2024-08-16 03:11:39][hello.py:38] - [Hello] inited
[INFO][2024-08-16 03:11:39][finish.py:23] - [Finish] inited
后面就没有打印绑定0.0.0.0:9898
@zhuzhuyule
Copy link

zhuzhuyule commented Aug 16, 2024

同样没法使用企业微信
image
我启动后,没法连接页面。一直报这个错,已经配置了open_ai_api_base
后台使用的 one-api

{
  "channel_type": "wechatcom_app",   
  "open_ai_api_key": "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", 
  "open_ai_api_base": "https://xxxx.domain.cc/v1",
  "proxy": "",
  "model": "gpt-3.5-turbo", 
  "bot_type": "chatGPT",
  "wechatcom_corp_id": "",              
  "wechatcomapp_token": "xxxxxxxxxxxxxxx",             
  "wechatcomapp_secret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx",           
  "wechatcomapp_agent_id": "xxxxxxxxxxxxx",          
  "wechatcomapp_aes_key": "xxxxxxxxxxxxxxxxxxxxx",
  "wechatcomapp_port": 9898,
}

@MisakiYuuo
Copy link

docker拉取超时换了好多原都是如此

@qcoltma
Copy link

qcoltma commented Sep 18, 2024

我也是相同问题,请问有人找到原因了吗?

@dominicx
Copy link

dominicx commented Dec 3, 2024

看我的pull #2409

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants