Open ozil56 opened 2 months ago
发一下服务器的日志
sudo docker compose logs -f
发一下服务器的日志
sudo docker compose logs -f
WARN[0000] /root/folotoy-server/docker-compose.yml: version
is obsolete
emqx-1 | WARNING: Default (insecure) Erlang cookie is in use.
emqx-1 | WARNING: Configure node.cookie in /opt/emqx/etc/emqx.conf or override from environment variable EMQX_NODECOOKIE
emqx-1 | WARNING: NOTE: Use the same cookie for all nodes in the cluster.
emqx-1 | EMQX_RPC__PORT_DISCOVERY [rpc.port_discovery]: manual
emqx-1 | EMQX_NODENAME [node.name]: emqx@node1.emqx.io
emqx-1 | Listener ssl:default on 0.0.0.0:8883 started.
emqx-1 | Listener tcp:default on 0.0.0.0:1883 started.
emqx-1 | Listener ws:default on 0.0.0.0:8083 started.
emqx-1 | Listener wss:default on 0.0.0.0:8084 started.
emqx-1 | Listener http:dashboard on :18083 started.
emqx-1 | EMQX 5.6.0 is running now!
nginx-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx-1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx-1 | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
nginx-1 | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
nginx-1 | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx-1 | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: using the "epoll" event method
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: nginx/1.25.4
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14)
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: OS: Linux 6.2.0-37-generic
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: start worker processes
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: start worker process 29
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: start worker process 30
folotoy-1 | 2024-04-10 23:52:40,792 - WARNING - Read json file:/config/roles.json failed: 'utf-8' codec can't decode byte 0xc4 in position 34: invalid continuation byte
folotoy-1 | /usr/local/lib/python3.11/site-packages/pydub/utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
folotoy-1 | warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
folotoy-1 | 2024-04-10 23:52:42,286 - INFO - FoloToy Server Version: v24.13.4.4-beta
folotoy-1 | 2024-04-10 23:52:42,289 - INFO - Speech server started(0.0.0.0:8085/udp)
folotoy-1 | 2024-04-10 23:52:42,290 - INFO - Connected to MQTT Broker(emqx:1883)!
folotoy-1 | 2024-04-10 23:52:42,302 - DEBUG - Peer: ('121.225.23.243', 25637) Len: 1043B
folotoy-1 | 2024-04-10 23:52:42,302 - DEBUG - Received token: 6525a3db8cd64ba08a6b4abf80e11d48 RecordingId: 3
folotoy-1 | 2024-04-10 23:52:42,302 - WARNING - Token:[6525a3db8cd64ba08a6b4abf80e11d48] is unknown, need further action, block the peer: ('121.225.23.243', 25637)?
folotoy-1 | 2024-04-10 23:52:42,336 - DEBUG - Peer: ('121.225.23.243', 25637) Len: 1043B
folotoy-1 | 2024-04-10 23:52:42,336 - DEBUG - Received token: 6525a3db8cd64ba08a6b4abf80e11d48 RecordingId: 3
folotoy-1 | 2024-04-10 23:52:42,336 - WARNING - Token:[6525a3db8cd64ba08a6b4abf80e11d48] is unknown, need further action, block the peer: ('121.225.23.243', 25637)?
然后就是一大堆的重复: folotoy-1 | 2024-04-10 23:52:42,336 - DEBUG - Peer: ('121.225.23.243', 25637) Len: 1043B folotoy-1 | 2024-04-10 23:52:42,336 - DEBUG - Received token: 6525a3db8cd64ba08a6b4abf80e11d48 RecordingId: 3 folotoy-1 | 2024-04-10 23:52:42,336 - WARNING - Token:[6525a3db8cd64ba08a6b4abf80e11d48] is unknown, need further action, block the peer: ('121.225.23.243', 25637)?
把玩具关掉重开一下,另外日志尽量多一些
关掉重新试了一下,多了一些日志:
folotoy-1 | 2024-04-11 00:49:57,483 - DEBUG - Received /user/folotoy/e465b82b9ec8/thing/event/post: message data: {'msgId': 0, 'identifier': 'login', 'outParams': {'role': 1}} folotoy-1 | 2024-04-11 00:49:57,483 - DEBUG - Publish topic: /user/folotoy/e465b82b9ec8/thing/command/call, msg: {"msgId": 0, "identifier": "updatetoken", "inputParams": {"token": "cd5c43c5a5cb4fab9c3793e3ef564b9e"}} folotoy-1 | 2024-04-11 00:49:57,483 - DEBUG - Publish topic: /user/folotoy/e465b82b9ec8/thing/command/call, msg: {"msgId": 1, "identifier": "updateconfig", "inputParams": {"speechUdpServerHost": "xx.xx.xx.xx", "speechUdpServerPort": 8085}} folotoy-1 | 2024-04-11 00:49:58,711 - DEBUG - Received /user/folotoy/e465b82b9ec8/thing/command/callAck: message data: {'msgId': 0, 'identifier': 'updatetoken', 'result': 1} folotoy-1 | 2024-04-11 00:49:58,711 - DEBUG - Command call ack: True, topic_tokens: {'#': [], '+': ['e465b82b9ec8']} folotoy-1 | 2024-04-11 00:50:00,389 - DEBUG - Received /user/folotoy/e465b82b9ec8/thing/data/post: message data: {'msgId': 1, 'identifier': 'data_config', 'outParams': {'hardware_ver': '0.8.1.3', 'software_version': '24.13.3.281.1', 'devicekey': 'e465b82b9ec8', 'voice_threshold': 70, 'record_type': 2, 'timeout': 30, 'open_tip_type': 1, 'volume': 100, 'role': 1, 'led_brightness': 255}} folotoy-1 | 2024-04-11 00:50:00,538 - DEBUG - Received /user/folotoy/e465b82b9ec8/thing/command/callAck: message data: {'msgId': 1, 'identifier': 'updateconfig', 'result': 1} folotoy-1 | 2024-04-11 00:50:00,538 - DEBUG - Command call ack: True, topic_tokens: {'#': [], '+': ['e465b82b9ec8']} folotoy-1 | 2024-04-11 00:50:00,538 - DEBUG - Received /user/folotoy/e465b82b9ec8/thing/event/post: message data: {'msgId': 2, 'identifier': 'press_small_btn', 'outParams': {'keyCode': 1, 'changed': 1}} folotoy-1 | 2024-04-11 00:50:00,538 - DEBUG - Cannot find role config for sn=e465b82b9ec8, role=1 folotoy-1 | Exception in thread paho-mqtt-client-folotoy: folotoy-1 | Traceback (most recent call last): folotoy-1 | File "/usr/local/lib/python3.11/threading.py", line 1038, in _bootstrap_inner folotoy-1 | self.run() folotoy-1 | File "/usr/local/lib/python3.11/threading.py", line 975, in run folotoy-1 | self._target(*self._args, **self._kwargs) folotoy-1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4517, in _thread_main folotoy-1 | self.loop_forever(retry_first_connection=True) folotoy-1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 2291, in loop_forever folotoy-1 | rc = self._loop(timeout) folotoy-1 | ^^^^^^^^^^^^^^^^^^^ folotoy-1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1680, in _loop folotoy-1 | rc = self.loop_read() folotoy-1 | ^^^^^^^^^^^^^^^^ folotoy-1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 2094, in loop_read folotoy-1 | rc = self._packet_read() folotoy-1 | ^^^^^^^^^^^^^^^^^^^ folotoy-1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3137, in _packet_read folotoy-1 | rc = self._packet_handle() folotoy-1 | ^^^^^^^^^^^^^^^^^^^^^ folotoy-1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3803, in _packet_handle folotoy-1 | return self._handle_publish() folotoy-1 | ^^^^^^^^^^^^^^^^^^^^^^ folotoy-1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4140, in _handle_publish folotoy-1 | self._handle_on_message(message) folotoy-1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4496, in _handle_on_message folotoy-1 | on_message(self, self._userdata, message) folotoy-1 | File "core/folotoy_app.py", line 128, in core.folotoy_app.FolotoyApp.start.on_message folotoy-1 | File "core/folotoy_app.py", line 99, in core.folotoy_app.FolotoyApp.process_mqtt_message folotoy-1 | File "core/folotoy_msg_processor.py", line 169, in core.folotoy_msg_processor.FolotoyMsgProcessor.process_press_small_btn folotoy-1 | TypeError: 'NoneType' object is not iterable folotoy-1 | 2024-04-11 00:50:02,308 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 20B folotoy-1 | 2024-04-11 00:50:02,309 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,309 - DEBUG - Received frame type: b'\x02' folotoy-1 | 2024-04-11 00:50:02,397 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,398 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,398 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,417 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,417 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,417 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,417 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,417 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,417 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,467 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,467 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,467 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,467 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,467 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,467 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,480 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,481 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,481 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,500 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,500 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,500 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,513 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,513 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,513 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,525 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,525 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,526 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,545 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,545 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,545 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,560 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,560 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,560 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,579 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,579 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,580 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,595 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,596 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,596 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,613 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,613 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,613 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,629 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,630 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,630 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,647 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,647 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,647 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,665 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,666 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,666 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,690 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,690 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,690 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,704 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,704 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,704 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,725 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,725 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,725 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,740 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,740 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,740 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,756 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,756 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,756 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,772 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,772 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,772 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,790 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,790 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,790 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,807 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,807 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,807 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,825 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,826 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,826 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,841 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,841 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,841 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,857 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,857 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,857 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,876 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,876 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,876 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,893 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,893 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,894 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,912 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,912 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,912 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,930 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,930 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,930 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,946 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,946 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,946 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,963 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,963 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,964 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:02,990 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:02,990 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:02,990 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,006 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,006 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,006 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,018 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,018 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,018 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,035 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,035 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,035 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,054 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,054 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,054 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,070 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,070 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,070 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,094 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,094 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,094 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,105 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,105 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,105 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,122 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,122 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,122 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,140 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,140 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,140 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,155 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,156 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,156 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,173 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,173 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,173 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,193 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,193 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,193 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,211 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,212 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,212 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,230 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,230 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,230 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,244 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,244 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,244 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,262 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,263 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,263 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,280 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,280 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,280 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,304 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,304 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,304 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,316 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,316 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,316 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,340 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,340 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,340 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,351 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,351 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,351 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,369 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,369 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,369 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,385 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,386 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,386 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,406 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,406 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,406 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,422 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,422 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,422 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,440 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,440 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,440 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,454 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,454 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,454 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,472 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,472 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,472 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,490 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,490 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,490 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,508 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,509 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,509 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,529 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,529 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,529 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,544 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,545 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,545 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,562 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,562 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,562 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,584 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,584 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,584 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,603 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,603 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,603 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,626 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,627 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,627 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,634 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,634 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,634 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,652 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,652 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,652 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,668 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,668 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,668 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,684 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,685 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,685 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,705 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,705 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,705 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,729 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,729 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,729 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,738 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,738 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,738 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,755 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,755 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,755 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,772 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,772 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,772 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,791 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 1043B folotoy-1 | 2024-04-11 00:50:03,791 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,791 - DEBUG - Received frame type: b'\x01' folotoy-1 | 2024-04-11 00:50:03,806 - DEBUG - Peer: ('121.225.23.243', 29054) Len: 20B folotoy-1 | 2024-04-11 00:50:03,806 - DEBUG - Received token: cd5c43c5a5cb4fab9c3793e3ef564b9e RecordingId: 1 folotoy-1 | 2024-04-11 00:50:03,806 - DEBUG - Received frame type: b'\x02' folotoy-1 | 2024-04-11 00:50:03,807 - DEBUG - Recording file created: /audio/recording-6556a0da9f374b7aa2c539672c55e3c1.wav folotoy-1 | 2024-04-11 00:50:03,807 - DEBUG - Current dkey=e465b82b9ec8 role=1 folotoy-1 | 2024-04-11 00:50:03,808 - WARNING - Dkey e465b82b9ec8: role=1 config not found, please check your roles.json folotoy-1 | 2024-04-11 00:50:03,808 - DEBUG - Publish topic: /user/folotoy/e465b82b9ec8/thing/command/call, msg: {"msgId": 2, "identifier": "audioplay_cmd", "inputParams": {"recordingId": 1, "total": 0}}
WARNING - Dkey e465b82b9ec8: role=1 config not found, please check your roles.json
没有找到配置文件 roles.json
我把roles.json改成了utf-8格式,重新保存 发现可以读取它了 但还有新的问题
WARN[0000] /root/folotoy-server/docker-compose.yml: version
is obsolete
emqx-1 | WARNING: Default (insecure) Erlang cookie is in use.
emqx-1 | WARNING: Configure node.cookie in /opt/emqx/etc/emqx.conf or override from environment variable EMQX_NODECOOKIE
emqx-1 | WARNING: NOTE: Use the same cookie for all nodes in the cluster.
emqx-1 | EMQX_RPC__PORT_DISCOVERY [rpc.port_discovery]: manual
emqx-1 | EMQX_NODENAME [node.name]: emqx@node1.emqx.io
emqx-1 | Listener ssl:default on 0.0.0.0:8883 started.
emqx-1 | Listener tcp:default on 0.0.0.0:1883 started.
emqx-1 | Listener ws:default on 0.0.0.0:8083 started.
emqx-1 | Listener wss:default on 0.0.0.0:8084 started.
emqx-1 | Listener http:dashboard on :18083 started.
emqx-1 | EMQX 5.6.0 is running now!
folotoy-1 | /usr/local/lib/python3.11/site-packages/pydub/utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
folotoy-1 | warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
folotoy-1 | 2024-04-11 01:00:59,020 - INFO - FoloToy Server Version: v24.13.4.4-beta
folotoy-1 | 2024-04-11 01:00:59,022 - INFO - Speech server started(0.0.0.0:8085/udp)
nginx-1 | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
nginx-1 | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
nginx-1 | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
nginx-1 | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
nginx-1 | /docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
nginx-1 | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
nginx-1 | /docker-entrypoint.sh: Configuration complete; ready for start up
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: using the "epoll" event method
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: nginx/1.25.4
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14)
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: OS: Linux 6.2.0-37-generic
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: start worker processes
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: start worker process 29
nginx-1 | 2024/04/10 12:43:25 [notice] 1#1: start worker process 30
folotoy-1 | 2024-04-11 01:00:59,023 - INFO - Connected to MQTT Broker(emqx:1883)!
folotoy-1 | 2024-04-11 01:01:12,333 - DEBUG - Received /user/folotoy/e465b82b9ec8/thing/event/post: message data: {'msgId': 1, 'identifier': 'login', 'outParams': {'role': 1}}
folotoy-1 | 2024-04-11 01:01:12,334 - DEBUG - Publish topic: /user/folotoy/e465b82b9ec8/thing/command/call, msg: {"msgId": 0, "identifier": "updatetoken", "inputParams": {"token": "a90365a6e38547a6aea1205eb979efbd"}}
folotoy-1 | 2024-04-11 01:01:12,334 - DEBUG - Publish topic: /user/folotoy/e465b82b9ec8/thing/command/call, msg: {"msgId": 1, "identifier": "updateconfig", "inputParams": {"speechUdpServerHost": "xx.xx.xx.xx", "speechUdpServerPort": 8085}}
folotoy-1 | 2024-04-11 01:01:12,538 - DEBUG - Received /user/folotoy/e465b82b9ec8/thing/data/post: message data: {'msgId': 0, 'identifier': 'real_time_data', 'outParams': {'battery_level': 94, 'rssi': 0}}
folotoy-1 | 2024-04-11 01:01:13,456 - DEBUG - Received /user/folotoy/e465b82b9ec8/thing/command/callAck: message data: {'msgId': 0, 'identifier': 'updatetoken', 'result': 1}
folotoy-1 | 2024-04-11 01:01:13,456 - DEBUG - Command call ack: True, topic_tokens: {'#': [], '+': ['e465b82b9ec8']}
folotoy-1 | 2024-04-11 01:01:14,068 - DEBUG - Received /user/folotoy/e465b82b9ec8/thing/data/post: message data: {'msgId': 2, 'identifier': 'data_config', 'outParams': {'hardware_ver': '0.8.1.3', 'software_version': '24.13.3.281.1', 'devicekey': 'e465b82b9ec8', 'voice_threshold': 70, 'record_type': 2, 'timeout': 30, 'open_tip_type': 1, 'volume': 100, 'role': 1, 'led_brightness': 255}}
folotoy-1 | 2024-04-11 01:01:14,216 - DEBUG - Received /user/folotoy/e465b82b9ec8/thing/command/callAck: message data: {'msgId': 1, 'identifier': 'updateconfig', 'result': 1}
folotoy-1 | 2024-04-11 01:01:14,216 - DEBUG - Command call ack: True, topic_tokens: {'#': [], '+': ['e465b82b9ec8']}
folotoy-1 | 2024-04-11 01:01:14,216 - DEBUG - Received /user/folotoy/e465b82b9ec8/thing/event/post: message data: {'msgId': 3, 'identifier': 'press_small_btn', 'outParams': {'keyCode': 1, 'changed': 1}}
folotoy-1 | 2024-04-11 01:01:15,436 - DEBUG - TTS(azure-tts) request time cost: 1.22s
folotoy-1 | 2024-04-11 01:01:15,436 - DEBUG - Speech synthesized with for ssml [
另外,audio文件夹中的录音音频文件,噪音极大,这是不是硬件上的话筒有问题?
recording-2acb3d579a8f4d6a8b6da685043dfbc4.zip 发现问题所在了。 原来 #Azure OpenAI设置段中, AZURE_OPENAI_API_VERSION: "2024-02-01"的值必须带上双引号。 已经调试成功。 但是音频质量问题还是令人担忧,你看一下附件这种声音,应该是很不正常。
folotoy-1 | httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://azure-openai-api.fingerhacker007.workers.dev/chat/completions' folotoy-1 | For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404
url是否正确
另外,audio文件夹中的录音音频文件,噪音极大,这是不是硬件上的话筒有问题?
模拟话筒效果是这样的,没有降噪,模型识别的时候会自动降噪
又发现一个问题:
AZURE_OPENAI_KEY: b72b6929d0c1cccccccccccccccc
AZURE_OPENAI_ENDPOINT: https://xxxxxxxxx.openai.azure.com
AZURE_OPENAI_API_VERSION: "2024-02-01"
AZURE_OPENAI_MODEL: gpt-4
AZURE_OPENAI_MAX_TOKENS: 4000
最后一行是我手动加上去的,发现max_tokens设置无效。提交的时候仍然是按400来提交的。
参考这里;https://docs.folotoy.com/zh/docs/configuration/llm/azure-openai
又发现一个问题:
#Azure OpenAI AZURE_OPENAI_KEY: b72b6929d0c1cccccccccccccccc AZURE_OPENAI_ENDPOINT: https://xxxxxxxxx.openai.azure.com AZURE_OPENAI_API_VERSION: "2024-02-01" AZURE_OPENAI_MODEL: gpt-4 AZURE_OPENAI_MAX_TOKENS: 4000 最后一行是我手动加上去的,发现max_tokens设置无效。提交的时候仍然是按400来提交的。
我有另外一个问题,因为我服务器比较小,dify平台我本地部署的。然后用了内网穿透调用接口,所以就出现了我这边儿dify请求成功,但是玩具这边儿请求超时,判断应该是请求接口的超时时间小于模型的回复时间,但是这个属性我又没找到在哪儿改。 玩具有时候会回复,有时候不会回复。不会回复的时候就是下面的错误 这是我的logs信息:
folotoy-1 | 2024-06-03 20:28:02,313 - DEBUG - LLM TYPE is dify folotoy-1 | 2024-06-03 20:28:02,313 - DEBUG - Request to dify: http://我的域名/v1/chat-messages, payload={'inputs': {}, 'user': 'ec64c98edcf0', 'query': '你要什么名字', 'conversation_id': '', 'response_mode': 'streaming'} folotoy-1 | 2024-06-03 20:28:02,313 - DEBUG - load_ssl_context verify=True cert=None trust_env=True http2=False folotoy-1 | 2024-06-03 20:28:02,313 - DEBUG - load_verify_locations cafile='/usr/local/lib/python3.11/site-packages/certifi/cacert.pem' folotoy-1 | 2024-06-03 20:28:02,320 - DEBUG - connect_tcp.started host='域名' port=80 local_address=None timeout=5.0 socket_options=None folotoy-1 | 2024-06-03 20:28:03,185 - DEBUG - connect_tcp.complete return_value=<httpcore._backends.sync.SyncStream object at 0x7f7b0e70fa90> folotoy-1 | 2024-06-03 20:28:03,185 - DEBUG - send_request_headers.started request=<Request [b'POST']> folotoy-1 | 2024-06-03 20:28:03,185 - DEBUG - send_request_headers.complete folotoy-1 | 2024-06-03 20:28:03,185 - DEBUG - send_request_body.started request=<Request [b'POST']> folotoy-1 | 2024-06-03 20:28:03,186 - DEBUG - send_request_body.complete folotoy-1 | 2024-06-03 20:28:03,186 - DEBUG - receive_response_headers.started request=<Request [b'POST']> folotoy-1 | 2024-06-03 20:28:08,190 - DEBUG - receive_response_headers.failed exception=ReadTimeout(TimeoutError('timed out')) folotoy-1 | 2024-06-03 20:28:08,190 - DEBUG - response_closed.started folotoy-1 | 2024-06-03 20:28:08,191 - DEBUG - response_closed.complete folotoy-1 | 2024-06-03 20:28:08,191 - WARNING - Request dify failed: timed out, data: {'inputs': {}, 'user': 'ec64c98edcf0', 'query': '你要什么名字', 'conversation_id': '', 'response_mode': 'streaming'} folotoy-1 | 2024-06-03 20:28:08,192 - DEBUG - ChatCompletion request time cost: 5.88s folotoy-1 | 2024-06-03 20:28:08,192 - DEBUG - Publish topic: /user/folotoy/ec64c98edcf0/thing/command/call, msg: {"msgId": 23, "identifier": "audioplay_cmd", "inputParams": {"recordingId": 22, "total": 0}} folotoy-1 | 2024-06-03 20:28:08,560 - DEBUG - Received /user/folotoy/ec64c98edcf0/thing/command/callAck: message data: {'msgId': 23, 'identifier': 'audioplay_cmd', 'result': 1} folotoy-1 | 2024-06-03 20:28:08,560 - DEBUG - Command call ack: True, topic_tokens: {'#': [], '+': ['ec64c98edcf0']} root@lxc:~/folotoy-server-self-hosting/config#
docker-compose.yml 加个 HTTPX_TIMEOUT:20 变量
G6实时日志: I: record start button pressed FSM=====================idle_exit================================== FSM=====================atob======================================== FSM=====================record_enter================================== I: [EVENT] ROBOT_LISTEN [I] AnalogAudio.h : 58 - bool audio_tools::AnalogAudioStream::begin(audio_tools::AnalogConfig) [I] AnalogAudioESP32.h : 48 - virtual bool audio_tools::AnalogDriverESP32::begin(audio_tools::AnalogConfig) [I] AudioTypes.h : 88 - sample_rate: 32000 [I] AudioTypes.h : 89 - channels: 1 [I] AudioTypes.h : 90 - bits_per_sample: 16 [I] AnalogAudioBase.h : 79 - input pin1: 35 [I] AnalogAudioESP32.h : 52 - auto_center [I] AnalogAudioESP32.h : 95 - RX_MODE [I] StreamCopy.h : 139 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops [I] StreamCopy.h : 139 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops 此处省略N行 [I] StreamCopy.h : 139 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops [I] StreamCopy.h : 139 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops
[I] StreamCopy.h : 139 - StreamCopy::copy 1024 -> 1024 -> 1024 bytes - in 1 hops I: record end button pressed FSM=====================record_exit================================== [I] AnalogAudio.h : 64 - virtual void audio_tools::AnalogAudioStream::end() [I] AnalogAudioESP32.h : 137 - end FSM=====================atob======================================== FSM=====================wait_enter================================== I: local I: [EVENT] ROBOT_THINK audio url:/recordover.mp3 I: local audio change:0
Timeout for 30 seconds! FSM=====================wait_exit================================== FSM=====================atob======================================== FSM=====================idle_enter================================== I: [EVENT] ROBOT_IDLE
docker-compose.yml配置: version: '3' volumes: emqx-etc: emqx-data: emqx-log: services: emqx: image: emqx/emqx:latest restart: always ports:
./config:/config environment: TZ: Asia/Shanghai
LOG_LEVEL: DEBUG
ROLES_FILE_PATH: /config/roles.json
Default STT(Sound To Text) type
Options: [openai-whisper, azure-whisper, azure-stt, dify-stt, aliyun-asr]
STT_TYPE: azure-whisper
Azure Whisper
AZURE_WHISPER_API_BASE: https://xxxxxxxxx.openai.azure.com AZURE_WHISPER_KEY: cc87cd87f4a54cxxxxxxxxxxxxxxxxxxxxxxx AZURE_WHISPER_DEPLOYMENT_NAME: whisper AZURE_WHISPER_API_VERSION: 2023-09-01-preview
Azure STT
AZURE_STT_KEY: 87de5a80993e4xxxxxxxxxxxxxxxxxxxx AZURE_STT_language: zh-CN AZURE_STT_SERVICE_REGION: eastus
Default LLM(Large Language Model) type
Options: ['openai', 'azure-openai', 'gemini', 'dify', 'qianfan', 'xiaodu',
'ollama', 'groq', 'moonshot', 'anthropic', 'zhipu', 'lingyiwanwu',
'dashscope', 'spark-desk', 'minimax', 'aws-bedrock']
LLM_TYPE: azure-openai
Azure OpenAI
AZURE_OPENAI_KEY: b72b6929d0c1aaaaaaaaaaaaaaaaaaaaa AZURE_OPENAI_ENDPOINT: https://xxxxxxx.openai.azure.com AZURE_OPENAI_API_VERSION: 2024-02-01 AZURE_OPENAI_MODEL: gpt-3.5-turbo AZURE_OPENAI_max_tokens: 4000
If your elevenlabs is a free account, keep 2 here
VOICE_EXECUTOR_MAX_WORKERS: 2
Default TTS(Text to Sound) type
Options: [openai-tts, azure-openai-tts, azure-tts, dify-tts, elevenlabs, edge-tts, aliyun-tts]
edge-tts is Free but slow
TTS_TYPE: azure-tts
Azure TTS
AZURE_TTS_KEY: 7cf2c6a41ded4aaaaaaaaaaaaaaaaaaaaa AZURE_TTS_SERVICE_REGION: eastasia AZURE_TTS_VOICE_NAME: zh-CN-XiaoxiaoMultilingualNeural
Azure Openai TTS
AZURE_OPENAI_TTS_API_BASE: https://xxxxxx.openai.azure.com/ AZURE_OPENAI_TTS_API_VERSION: 2024-02-15-preview AZURE_OPENAI_TTS_DEPLOYMENT_NAME: tts-hd AZURE_OPENAI_TTS_KEY: cc87cd87f4a54aaaaaaaaaaaaaaaaaa AZURE_OPENAI_TTS_MODEL: tts-hd
AUDIO_DOWNLOAD_URL: http://1xx.xx.xx.xx:8082 AUDIO_SAVE_PATH: /audio
MQTT Broker
MQTT_BROKER_HOST: emqx MQTT_BROKER_PORT: 1883 MQTT_CLIENT_ID: folotoy MQTT_USERNAME: folotoy MQTT_PASSWORD: folotoy
SPEECH_UDP_SERVER_HOST: 1xx.xx.xx.xx SPEECH_UDP_SERVER_PORT: 8085
roles.json暂时没有修改,直接使用原始文件。
可以确定: 1、已经连上自建服务器,因为它已经在服务器上的/folotoy-server/audio中,成功地创建了若干个recording文件 2、相关端口已经开放,ufw status命令: Status: active
To Action From
22 ALLOW Anywhere
80 ALLOW Anywhere
443 ALLOW Anywhere
1883/tcp ALLOW Anywhere
8082/tcp ALLOW Anywhere
18083/tcp ALLOW Anywhere
8083/tcp ALLOW Anywhere
8085/udp ALLOW Anywhere
22 (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
443 (v6) ALLOW Anywhere (v6)
1883/tcp (v6) ALLOW Anywhere (v6)
8082/tcp (v6) ALLOW Anywhere (v6)
18083/tcp (v6) ALLOW Anywhere (v6)
8083/tcp (v6) ALLOW Anywhere (v6)
8085/udp (v6) ALLOW Anywhere (v6)
3、LLM使用的Azure OpenAI是可用的,因为我已经在其他项目上成功使用了这一部署配置。
怀疑的点包括: 1、Azure申请的语音服务资源,默认支持stt和tts,在Speech Studio中似乎不需要额外的部署,我尝试配置STT_TYPE: azure-stt、TTS_TYPE: azure-tts,使用它的endpoint和key,无效,我怀疑是我在Azure上部署的问题,但Azure Speech Studio中看不到清晰的提示。 2、我在Azure上申请的Openai whisper,位于瑞典中部地区(Sweden Central),部署了whisper、tts-hd两个模型,但尝试配置STT_TYPE: azure-whisper、TTS_TYPE: azure-openai-tts,也是无效。
我怀疑我在Azure上的配置有问题,但没有便捷的测试手段。 当然,也可能是docker-compose.yml问题。
请帮忙看看,多谢!