FoloToy / folotoy-server-self-hosting

Config files for self-hosting the FoloToy Server. Documents: https://docs.folotoy.com
https://tool.folotoy.com
GNU General Public License v3.0
443 stars 82 forks source link

仙人掌设置了3个角色,会提示wifi链接成功,电波对接成功,但是报错 #208

Open wshwhyu opened 1 month ago

wshwhyu commented 1 month ago

仙人掌设置了3个角色,会提示wifi链接成功,电波对接成功,但是报错:ConnectionRefusedError: [Errno 111] Connection refused 2024-07-18 01:34:05,269 - INFO - Sleep 2s to reconnect to emqx:1883 2024-07-18 01:34:07,271 - INFO - Speech server started(0.0.0.0:8085/udp) 2024-07-18 01:34:07,272 - INFO - Connected to MQTT Broker(emqx:1883)! 2024-07-18 01:35:11,968 - DEBUG - Received /user/folotoy/d8132aea0090/thing/event/post: message data: {'msgId': 1, 'identifier': 'login', 'outParams': {'role': 3}} 2024-07-18 01:35:11,968 - DEBUG - Publish topic: /user/folotoy/d8132aea0090/thing/command/call, msg: {"msgId": 0, "identifier": "updatetoken", "inputParams": {"token": "6514cb0099a14da6aca0c58086aaf179"}} 2024-07-18 01:35:11,969 - DEBUG - Publish topic: /user/folotoy/d8132aea0090/thing/command/call, msg: {"msgId": 1, "identifier": "updateconfig", "inputParams": {"speechUdpServerHost": "182.92.125.108", "speechUdpServerPort": 8085}} 2024-07-18 01:35:12,175 - DEBUG - Received /user/folotoy/d8132aea0090/thing/data/post: message data: {'msgId': 0, 'identifier': 'real_time_data', 'outParams': {'battery_level': 97, 'rssi': 0}} 2024-07-18 01:35:13,470 - DEBUG - Received /user/folotoy/d8132aea0090/thing/command/callAck: message data: {'msgId': 0, 'identifier': 'updatetoken', 'result': 1} 2024-07-18 01:35:13,470 - DEBUG - Command call ack: True, topic_tokens: {'#': [], '+': ['d8132aea0090']} 2024-07-18 01:35:14,428 - DEBUG - Received /user/folotoy/d8132aea0090/thing/data/post: message data: {'msgId': 2, 'identifier': 'data_config', 'outParams': {'hardware_ver': 'v0.6.0', 'software_version': '24.20.4.31', 'devicekey': 'd8132aea0090', 'voice_start_threshold': 50, 'voice_end_threshold': 45, 'record_type': 2, 'timeout': 30, 'open_tip_type': 1, 'volume': 32, 'role': 3, 'io_output': True}} 2024-07-18 01:35:14,581 - DEBUG - Received /user/folotoy/d8132aea0090/thing/command/callAck: message data: {'msgId': 1, 'identifier': 'updateconfig', 'result': 1} 2024-07-18 01:35:14,581 - DEBUG - Command call ack: True, topic_tokens: {'#': [], '+': ['d8132aea0090']} 2024-07-18 01:35:16,140 - DEBUG - Received /user/folotoy/d8132aea0090/thing/event/post: message data: {'msgId': 3, 'identifier': 'press_small_btn', 'outParams': {'keyCode': 3, 'changed': 1}} 2024-07-18 01:35:16,140 - DEBUG - Cannot find role config for sn=d8132aea0090, role=3 Exception in thread paho-mqtt-client-folotoy: Traceback (most recent call last): File "/usr/local/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self.run() File "/usr/local/lib/python3.11/threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4517, in _thread_main self.loop_forever(retry_first_connection=True) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 2291, in loop_forever rc = self._loop(timeout) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1680, in _loop rc = self.loop_read() ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 2094, in loop_read rc = self._packet_read() ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3137, in _packet_read rc = self._packet_handle() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3803, in _packet_handle return self._handle_publish() ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4140, in _handle_publish self._handle_on_message(message) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4496, in _handle_on_message on_message(self, self._userdata, message) File "core/folotoy_app.py", line 130, in core.folotoy_app.FolotoyApp.start.on_message File "core/folotoy_app.py", line 99, in core.folotoy_app.FolotoyApp.process_mqtt_message File "core/folotoy_msg_processor.py", line 212, in core.folotoy_msg_processor.FolotoyMsgProcessor.process_press_small_btn TypeError: 'NoneType' object is not iterable

wshwhyu commented 1 month ago

QQ_1721237937412

wshwhyu commented 1 month ago

roles.json为: {

"1": { "start_text": "Hi, I'm Victoria. Nice to meet you.", "prompt": "You're a knowledgeable and helpful AI named \"Victoria\". Your task is to chat with me. Please respond in English, keeping your answers brief – no more than 50 words each time!", "max_message_count": 0, "stt_type": "volcengine-asr", "stt_config": { "app_id": "3020621031", "cluster_id": "volcengine_input_common", "access_token": "HV4c6xxxxxxxxxxxgIym" },
"llm_type": "moonshot", "llm_config": { "api_base": "https://api.moonshot.cn/v1", "key": "sk-rc0cSdVxxxxxxxxxxxxxxxxxxxxxxxxOPdX3OI1ziV", "model": "moonshot-v1-32k", "max_tokens": 1024, "temperature": 0.7 },
"tts_type": "volcengine-tts", "tts_config": { "access_token": "HV4c6xxxxxxxxxxxxxxxxxxxiXnbuuBfgIym", "app_id": "3020621031", "cluster_id": "volcano_tts", "voice_type": "BV002_streaming" } }, "2": { "start_text": "Hi, 我是一位极具爱心、知识渊博,专为 0-6 岁儿童服务的智能教育伙伴,快来和我聊聊吧", "prompt": "你是一位极具爱心、知识渊博,专为 0-6 岁儿童服务的智能教育伙伴,擅长通过简单有趣、生动活泼的中英文交流,助力儿童提升语言能力、文化素养及基础数学知识水平", "max_message_count": 0, "stt_type": "volcengine-asr", "stt_config": { "app_id": "3020621031", "cluster_id": "volcengine_input_common", "access_token": "HV4c6xxxxxxxxxxxxxxxxxxxtjlcl4iXnbuuBfgIym" },
"llm_type": "moonshot", "llm_config": { "api_base": "https://api.moonshot.cn/v1", "key": "sk-rc0cSdV2uxxxxxxxxxxxxxxxxxxxxxxxxNxoJpj95pfb7Yy8MgOPdX3OI1ziV", "model": "moonshot-v1-32k", "max_tokens": 1024, "temperature": 0.7 },
"tts_type": "volcengine-tts", "tts_config": { "access_token": "HV4c6Dxxxxxxxxxxxxxxxxjlcl4iXnbuuBfgIym", "app_id": "3020621031", "cluster_id": "volcano_tts", "voice_type": "BV001_streaming" } }, "3": { "start_text": "你好,我是你的专属扣子仙人掌,我会讲笑话,想听什么笑话呢? 让我讲给你听", "prompt": "你的任务是陪我聊天讲笑话,请用简短的对话方式,用中文讲一段笑话,每次回答不超过50个字!", "max_message_count": 0, "stt_type": "volcengine-asr", "stt_config": { "app_id": "3020621031", "cluster_id": "volcengine_input_common", "access_token": "HV4c6Djxxxxxxxxxxxxxxxzwm0_9Gtjlcl4iXnbuuBfgIym" },
"llm_type": "moonshot", "llm_config": { "api_base": "https://api.moonshot.cn/v1", "key": "sk-rc0cSdxxxxxxxxxxxxxxxxoJpj95pfb7Yy8MgOPdX3OI1ziV", "model": "moonshot-v1-32k", "max_tokens": 1024, "temperature": 0.7 },
"tts_type": "volcengine-tts", "tts_config": { "access_token": "HV4c6xxxxxxxxxxxxxxxxxxtjlcl4iXnbuuBfgIym", "app_id": "3020621031", "cluster_id": "volcano_tts", "voice_type": "BV002_streaming" }
} }

wshwhyu commented 1 month ago

docker-compose.yml为: version: '3' volumes: emqx-etc: null emqx-data: null emqx-log: null services: emqx: image: emqx/emqx:latest restart: always ports:

wshwhyu commented 1 month ago

发送录音后报错: 2024-07-18 02:04:55,087 - DEBUG - Publish topic: /user/folotoy/d8132aea0090/thing/command/call, msg: {"msgId": 0, "identifier": "updatetoken", "inputParams": {"token": "bafea8a65d19421a87aa3bbb675d8b6c"}} 2024-07-18 02:04:55,087 - DEBUG - Publish topic: /user/folotoy/d8132aea0090/thing/command/call, msg: {"msgId": 1, "identifier": "updateconfig", "inputParams": {"speechUdpServerHost": "182.92.125.108", "speechUdpServerPort": 8085}} 2024-07-18 02:04:57,362 - WARNING - Read json file:/roles.json failed: [Errno 2] No such file or directory: '/roles.json' 2024-07-18 02:04:58,886 - INFO - FoloToy Server Version: v24.25.6.1-beta 2024-07-18 02:04:58,889 - INFO - Speech server started(0.0.0.0:8085/udp) 2024-07-18 02:04:58,890 - INFO - Connected to MQTT Broker(emqx:1883)! 2024-07-18 02:04:59,586 - DEBUG - Received /user/folotoy/d8132aea0090/thing/data/post: message data: {'msgId': 6, 'identifier': 'data_config', 'outParams': {'hardware_ver': 'v0.6.0', 'software_version': '24.20.4.31', 'devicekey': 'd8132aea0090', 'voice_start_threshold': 50, 'voice_end_threshold': 45, 'record_type': 2, 'timeout': 30, 'open_tip_type': 1, 'volume': 32, 'role': 3, 'io_output': True}} 2024-07-18 02:04:59,674 - DEBUG - Received /user/folotoy/d8132aea0090/thing/command/callAck: message data: {'msgId': 1, 'identifier': 'updateconfig', 'result': 1} 2024-07-18 02:04:59,674 - DEBUG - Command call ack: True, topic_tokens: {'#': [], '+': ['d8132aea0090']} 2024-07-18 02:05:02,044 - DEBUG - Received /user/folotoy/d8132aea0090/thing/event/post: message data: {'msgId': 7, 'identifier': 'press_small_btn', 'outParams': {'keyCode': 1, 'changed': 0}} 2024-07-18 02:05:02,045 - DEBUG - Publish topic: /user/folotoy/d8132aea0090/thing/command/call, msg: {"msgId": 0, "identifier": "updatetoken", "inputParams": {"token": "42316edbea5f46a591a4542c0c70ad68"}} 2024-07-18 02:05:02,252 - DEBUG - Received /user/folotoy/d8132aea0090/thing/command/callAck: message data: {'msgId': 0, 'identifier': 'updatetoken', 'result': 1} 2024-07-18 02:05:02,252 - DEBUG - Command call ack: True, topic_tokens: {'#': [], '+': ['d8132aea0090']} 2024-07-18 02:05:10,735 - DEBUG - Received /user/folotoy/d8132aea0090/thing/event/post: message data: {'msgId': 8, 'identifier': 'press_small_btn', 'outParams': {'keyCode': 2, 'changed': 1}} 2024-07-18 02:05:10,735 - DEBUG - Cannot find role config for sn=d8132aea0090, role=2 Exception in thread paho-mqtt-client-folotoy: Traceback (most recent call last): File "/usr/local/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self.run() File "/usr/local/lib/python3.11/threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4517, in _thread_main self.loop_forever(retry_first_connection=True) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 2291, in loop_forever rc = self._loop(timeout) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1680, in _loop rc = self.loop_read() ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 2094, in loop_read rc = self._packet_read() ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3137, in _packet_read rc = self._packet_handle() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3803, in _packet_handle return self._handle_publish() ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4140, in _handle_publish self._handle_on_message(message) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4496, in _handle_on_message on_message(self, self._userdata, message) File "core/folotoy_app.py", line 130, in core.folotoy_app.FolotoyApp.start.on_message File "core/folotoy_app.py", line 99, in core.folotoy_app.FolotoyApp.process_mqtt_message File "core/folotoy_msg_processor.py", line 212, in core.folotoy_msg_processor.FolotoyMsgProcessor.process_press_small_btn TypeError: 'NoneType' object is not iterable 2024-07-18 02:05:20,572 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 20B 2024-07-18 02:05:20,572 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,572 - DEBUG - Received frame type: b'\x02' 2024-07-18 02:05:20,628 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,628 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,628 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,637 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,638 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,638 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,655 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,655 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,655 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,681 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,681 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,681 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,688 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,689 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,689 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,710 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,710 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,710 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,730 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,730 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,730 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,741 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,741 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,741 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,758 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,759 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,759 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,775 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,775 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,775 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,792 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,793 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,793 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,812 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,812 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,812 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,835 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,835 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,835 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,844 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,844 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,844 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,862 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,862 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,862 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,880 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,880 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,880 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,895 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,896 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,896 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,917 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,917 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,917 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,940 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,940 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,941 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,947 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,948 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,948 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,965 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,965 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,965 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,988 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,988 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,988 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:20,999 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:20,999 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:20,999 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,020 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,020 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,021 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,042 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,042 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,042 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,051 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,051 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,051 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,074 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,074 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,074 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,092 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,092 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,092 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,102 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,102 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,103 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,122 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,122 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,122 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,144 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,144 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,144 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,154 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,154 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,155 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,175 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,175 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,175 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,194 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,194 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,195 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,206 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,206 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,206 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,225 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,225 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,225 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,248 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,248 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,248 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,258 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,258 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,258 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,277 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,277 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,277 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,297 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,297 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,297 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,309 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,309 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,309 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,327 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,327 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,327 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,350 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,350 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,350 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,370 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,370 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,370 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,392 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,392 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,392 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,399 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,399 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,399 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,418 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,418 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,418 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,433 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,433 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,433 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,459 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,459 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,459 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,469 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,469 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,469 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,483 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,483 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,484 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,502 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,502 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,502 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,519 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,519 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,519 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,602 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,602 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,602 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,603 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,603 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,603 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,608 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,608 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,608 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,615 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,615 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,615 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,620 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,620 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,620 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,690 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,690 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,690 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,704 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,704 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,704 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,724 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,724 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,724 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,737 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,737 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,737 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,737 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,737 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,737 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,767 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,767 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,767 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,768 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,768 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,768 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,768 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,769 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,769 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,769 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,769 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,769 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,780 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,780 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,780 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,790 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,790 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,790 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,815 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,815 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,815 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,866 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,866 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,866 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,867 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,867 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,867 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,868 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,868 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,868 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,885 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,885 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,886 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,896 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,896 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,896 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,913 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,913 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,913 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,929 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,929 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,929 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,974 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,974 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,974 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,975 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,975 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,975 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:21,988 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:21,988 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:21,988 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:22,013 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:22,013 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:22,013 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:22,023 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:22,023 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:22,023 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:22,027 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:22,027 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:22,027 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:22,103 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:22,103 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:22,103 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:22,111 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 1043B 2024-07-18 02:05:22,111 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:22,112 - DEBUG - Received frame type: b'\x01' 2024-07-18 02:05:22,117 - DEBUG - Peer: ('120.244.202.171', 17309) Len: 20B 2024-07-18 02:05:22,118 - DEBUG - Received token: 42316edbea5f46a591a4542c0c70ad68 RecordingId: 6 2024-07-18 02:05:22,118 - DEBUG - Received frame type: b'\x02' 2024-07-18 02:05:22,118 - DEBUG - Recording file created: /audio/recording-431ca9650ba1455488662274d621ce59.wav 2024-07-18 02:05:22,119 - DEBUG - Current dkey=d8132aea0090 role=2 2024-07-18 02:05:22,119 - WARNING - Dkey d8132aea0090: role=2 config not found, please check your roles.json 2024-07-18 02:05:22,119 - DEBUG - Publish topic: /user/folotoy/d8132aea0090/thing/command/call, msg: {"msgId": 2, "identifier": "audioplay_cmd", "inputParams": {"recordingId": 6, "total": 0}}

lewangdev commented 1 month ago

roles.json放在config目录下,并且检查是否有格式问题

wshwhyu commented 1 month ago

roles.json放在config目录下,并且检查是否有格式问题

最初拉取镜像的时候,是放在和docker-compose.yml同级目录了,后来我改成放在config中,重启服务器了。docker-compose.yml中的ROLES_FILE_PATH: /config/roles.json。还需要做别的操作吗,报错就是上边的报错

wshwhyu commented 1 month ago

还有就是仙人掌中roles.json 中必须定义 7 个角色吗

wshwhyu commented 1 month ago

image

火山引擎这里不是说有免费的吗,我暂停服务就不行了吧。我这开启我看是收费的。

lewangdev commented 1 month ago

选择试用