Closed samyeei closed 3 weeks ago
找到症结所在了, [Errno 13] Permission denied: './plugins/config.json',群晖docker中无法取得plugins目录的写入权限,请问我可以直接在docker-compose.yml文件中配置相关api信息吗?这样就不用写入plugins目录了
我也是这个问题,请问应该如何解决呀
找到症结所在了, [Errno 13] Permission denied: './plugins/config.json',群晖docker中无法取得plugins目录的写入权限,请问我可以直接在docker-compose.yml文件中配置相关api信息吗?这样就不用写入plugins目录了
不行,需要映射的,可以尝试其他docker部署方式。映射config.json实测是可以配置插件的
前置确认
⚠️ 搜索issues中是否已存在类似问题
操作系统类型?
Docker
运行的python版本是?
python 3.7
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wx(个人微信, itchat)
复现步骤 🕹
No response
问题描述 😯
首先我在docker-compose.yml文件中加入了调用插件volumes, version: '2.0' services: chatgpt-on-wechat: image: zhayujie/chatgpt-on-wechat container_name: chatgpt-on-wechat volumes:
"alapi_token": "03V1vjh86qc7hbXN", "morning_news_text_enabled": false }, 结果返回的还是[Godcmd] 因未设置口令,本次的临时口令为6573。而且插件的api一个都连不上,应该是无法连接到插件配置文件,请问我该怎么处理?谢谢。
终端日志 📒
sudo docker logs -f chatgpt-on-wechat [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: linkai_api_key= [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: group_chat_prefix=["@bot"] [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: image_create_prefix=["画", "看", "找"] [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: single_chat_reply_prefix=" " [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: conversation_max_tokens=1000 [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: expires_in_seconds=3600 [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: single_chat_prefix=[""] [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: model=gpt-3.5-turbo [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: use_linkai=False [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: proxy= [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: character_desc= [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: linkai_app_code= [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: speech_recognition=False [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: group_name_white_list=["AI"] [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: use_global_plugin_config=True [INFO][2023-12-20 03:30:17][config.py:230] - [INIT] override config by environ a rgs: open_ai_api_key=sk- [INFO][2023-12-20 03:30:17][config.py:245] - [INIT] load config: {'channel_type' : 'wx', 'model': 'gpt-3.5-turbo', 'open_ai_api_key': 'sk-', 'text_to_image': 'dall-e-2', 'voice_to_text': 'opena i', 'text_to_voice': 'openai', 'proxy': '', 'hot_reload': False, 'single_chat_pr efix': [''], 'single_chat_reply_prefix': ' ', 'group_chat_prefix': ['@bot'], 'gr oup_name_white_list': ['AI群', ''], 'gr oup_chat_in_one_session': ['ChatGPT测试群'], 'image_create_prefix': ['画', '看', '找'], 'speech_recognition': False, 'group_speech_recognition': False, 'voice_r eply_voice': False, 'conversation_max_tokens': 1000, 'expires_in_seconds': 3600, 'character_desc': '你是旭', 'temperature': 0.7, 'top_p': 1, 'subscrib e_msg': '感谢您的关注!\n这里是ChatGPT,可以自由对话。\n支持语音对话。\n支持图片 输入。\n支持图片输出,画字开头的消息将按要求创作图片。\n支持tool、角色扮演和文字 冒险等丰富的插件。\n输入{trigger_prefix}#help 查看详细指令。', 'use_linkai': Fal se, 'linkai_api_key': '', 'linkai_app_code': '', 'use_global_plugin_config': Tru e} [INFO][2023-12-20 03:30:17][config.py:195] - [Config] User datas file not found, ignore. [WARNING][2023-12-20 03:30:19][audio_convert.py:9] - import pysilk failed, wecha ty voice message will not be supported. [INFO][2023-12-20 03:30:19][plugin_manager.py:50] - Loading plugins config... [INFO][2023-12-20 03:30:19][plugin_manager.py:88] - Scaning plugins ... [INFO][2023-12-20 03:30:19][plugin_manager.py:41] - Plugin Banwords_v1.0 registe red, path=./plugins/banwords [INFO][2023-12-20 03:30:19][plugin_manager.py:41] - Plugin BDunit_v0.1 registere d, path=./plugins/bdunit [INFO][2023-12-20 03:30:19][plugin_manager.py:41] - Plugin Dungeon_v1.0 register ed, path=./plugins/dungeon [INFO][2023-12-20 03:30:19][plugin_manager.py:41] - Plugin Finish_v1.0 registere d, path=./plugins/finish [INFO][2023-12-20 03:30:19][plugin_manager.py:41] - Plugin Godcmd_v1.0 registere d, path=./plugins/godcmd [INFO][2023-12-20 03:30:19][plugin_manager.py:41] - Plugin Hello_v0.1 registered , path=./plugins/hello [INFO][2023-12-20 03:30:19][plugin_manager.py:41] - Plugin Keyword_v0.1 register ed, path=./plugins/keyword [INFO][2023-12-20 03:30:19][plugin_manager.py:41] - Plugin linkai_v0.1.0 registe red, path=./plugins/linkai [INFO][2023-12-20 03:30:19][plugin_manager.py:41] - Plugin Role_v1.0 registered, path=./plugins/role chatgpt-tool-hub version: 0.4.6 [INFO][2023-12-20 03:30:22][plugin_manager.py:41] - Plugin tool_v0.4 registered, path=./plugins/tool [INFO][2023-12-20 03:30:22][plugin_manager.py:123] - Plugin GODCMD not found in pconfig, adding to pconfig... [INFO][2023-12-20 03:30:22][plugin_manager.py:123] - Plugin KEYWORD not found in pconfig, adding to pconfig... [INFO][2023-12-20 03:30:22][plugin_manager.py:123] - Plugin BANWORDS not found i n pconfig, adding to pconfig... [INFO][2023-12-20 03:30:22][plugin_manager.py:123] - Plugin LINKAI not found in pconfig, adding to pconfig... [INFO][2023-12-20 03:30:22][plugin_manager.py:123] - Plugin TOOL not found in pc onfig, adding to pconfig... [INFO][2023-12-20 03:30:22][plugin_manager.py:123] - Plugin ROLE not found in pc onfig, adding to pconfig... [INFO][2023-12-20 03:30:22][plugin_manager.py:123] - Plugin DUNGEON not found in pconfig, adding to pconfig... [INFO][2023-12-20 03:30:22][plugin_manager.py:123] - Plugin BDUNIT not found in pconfig, adding to pconfig... [INFO][2023-12-20 03:30:22][plugin_manager.py:123] - Plugin HELLO not found in p config, adding to pconfig... [INFO][2023-12-20 03:30:22][plugin_manager.py:123] - Plugin FINISH not found in pconfig, adding to pconfig... [ERROR][2023-12-20 03:30:22][plugin_manager.py:85] - 'utf-8' codec can't decode byte 0xb2 in position 626: invalid start byte [INFO][2023-12-20 03:30:22][godcmd.py:194] - [Godcmd] 因未设置口令,本次的临时口 令为2469。 [INFO][2023-12-20 03:30:22][godcmd.py:210] - [Godcmd] inited [INFO][2023-12-20 03:30:22][keyword.py:40] - [keyword] {} [INFO][2023-12-20 03:30:22][keyword.py:42] - [keyword] inited. [WARNING][2023-12-20 03:30:22][banwords.py:54] - [Banwords] init failed, ignore or see https://github.com/zhayujie/chatgpt-on-wechat/tree/master/plugins/banword s . [WARNING][2023-12-20 03:30:22][plugin_manager.py:148] - Failed to init BANWORDS, diabled. [Errno 2] No such file or directory: '/app/plugins/banwords/banwords.t xt' [INFO][2023-12-20 03:30:22][linkai.py:33] - [LinkAI] inited, config={'groupapp map': {'测试群名1': 'default', '测试群名2': 'Kv2fXJcH'}, 'midjourney': {'enabled ': False, 'auto_translate': True, 'img_proxy': True, 'max_tasks': 3, 'maxtasks per_user': 1, 'use_image_create_prefix': True}, 'summary': {'enabled': False, 'g roup_enabled': True, 'max_file_size': 5000, 'type': ['FILE', 'SHARING']}} [INFO][2023-12-20 03:30:22][init.py:29] - [visual_dl] init failed, error_inf o: ModuleNotFoundError("No module named 'torch'") [INFO][2023-12-20 03:30:22][init.py:29] - [visual_dl] init failed, error_inf o: ModuleNotFoundError("No module named 'torch'") [INFO][2023-12-20 03:30:24][chatgpt.py:186] - proxy no find, directly request to chatgpt instead [INFO][2023-12-20 03:30:24][chatgpt.py:186] - proxy no find, directly request to chatgpt instead [INFO][2023-12-20 03:30:24][victorinox.py:86] - use_tools=['python', 'meteo-weat her', 'terminal', 'url-get'], params: {'debug': False, 'openai_api_key': 'sk-', 'open_ai_api_base': 'https://api .openai.com/v1', 'deployment_id': '', 'proxy': '', 'request_timeout': 120, 'mode l_name': 'gpt-3.5-turbo', 'no_default': False, 'top_k_results': 3, 'news_api_key ': '', 'bing_subscription_key': '', 'google_api_key': '', 'google_cse_id': '', ' searx_search_host': '', 'wolfram_alpha_appid': '', 'morning_news_api_key': '', ' cuda_device': 'cpu', 'think_depth': 3, 'arxiv_summary': True, 'morning_newsuse llm': False, 'llm_api_key': 'sk- ', 'llm_api_base_url': 'https://api.openai.com/v1'} [INFO][2023-12-20 03:30:24][tool.py:31] - [tool] inited [INFO][2023-12-20 03:30:24][role.py:69] - [Role] inited [INFO][2023-12-20 03:30:24][dungeon.py:56] - [Dungeon] inited [WARNING][2023-12-20 03:30:24][bdunit.py:42] - [BDunit] init failed, ignore [WARNING][2023-12-20 03:30:24][plugin_manager.py:148] - Failed to init BDUNIT, d iabled. config.json not found [INFO][2023-12-20 03:30:24][hello.py:24] - [Hello] inited [INFO][2023-12-20 03:30:24][finish.py:23] - [Finish] inited