cdfmlr / muvtuber

Makes your AI vtuber
445 stars 75 forks source link

使用docker搭建后,没有音频输出 #47

Closed darkpulie closed 1 year ago

darkpulie commented 1 year ago

如题,obs添加浏览器的时候,勾选了“通过OBS控制音频”,url为:http://127.0.0.1:51082/?controller=ws://127.0.0.1:51081/

以下是日志信息:

2023-06-01 18:08:49 muvtuber-live2ddriver-1       | 2023/06/01 10:08:49 INFO fwd msg: {"motion":"flick_head"} -> http://localhost:51070 (chan 0xc00011e420).
2023-06-01 18:08:49 muvtuber-live2ddriver-1       | 2023/06/01 10:08:49 WARN may be a OpenMouth after emo-motion, ignore: {"motion":"flick_head"}
2023-06-01 18:09:19 muvtuber-live2ddriver-1       | 2023/06/01 10:09:19 INFO fwd msg: {"motion":"idle"} -> http://localhost:51070 (chan 0xc00011e420).
2023-06-01 18:09:24 muvtuber-live2ddriver-1       | 2023/06/01 10:09:24 INFO fwd msg: {} -> http://localhost:51070 (chan 0xc00011e420).
2023-06-01 18:12:04 muvtuber-externalsayer-1      | 2023/06/01 10:12:04 Receive term signal. Gracefully shutdown...
2023-06-01 18:09:19 muvtuber-musharing_chatbot-1  | 2023-06-01 10:09:19 INFO [chatterbot.response_selection]: Selecting first response from list of 3 options.
2023-06-01 18:09:24 muvtuber-live2ddriver-1       | 2023/06/01 10:09:24 INFO fwd msg: {"motion":"flick_head"} -> http://localhost:51070 (chan 0xc00011e420).
2023-06-01 18:08:46 muvtuber-muvtuberdriver-1     | 2023/06/01 10:08:46 INFO [dm] TextInFromDm:  author=繁星Starry_Q priority=0 content=hello
2023-06-01 18:08:46 muvtuber-blivechat-1          | 2023-06-01 10:08:46 INFO [services.avatar]: Failed to fetch avatar: code=-799 请求过于频繁,请稍后再试 uid=40115114
2023-06-01 18:09:19 muvtuber-musharing_chatbot-1  | 2023-06-01 10:09:19 INFO [root]: ChatbotGrpcServer.Chat: (OK) Hi
2023-06-01 18:08:49 muvtuber-muvtuberdriver-1     | 2023/06/01 10:08:49 INFO [PriorityReduceFilter] outputMaxPriorityOne boost Priority -> Highest author=繁星Starry_Q content=hello priority=2
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 1#1: signal 3 (SIGQUIT) received, shutting down
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | ERROR:grpc._server:Exception calling application: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdc3a0e6a40>: Failed to establish a new connection: [Errno -2] Name or service not known')))
2023-06-01 18:08:49 muvtuber-muvtuberdriver-1     | 2023/06/01 10:08:49 INFO [audioController] sendPlayCmd to audioview cmd=playVocal track=d41d8cd...
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | Traceback (most recent call last):
2023-06-01 18:12:04 muvtuber-blivechat-1          | 2023-06-01 10:12:04 INFO [api.chat]: client=172.18.0.10 disconnected, room=24402566
2023-06-01 18:09:19 muvtuber-muvtuberdriver-1     | 2023/06/01 10:09:19 INFO [allInOneSayer] say: done. text=hello
2023-06-01 18:09:19 muvtuber-muvtuberdriver-1     | 2023/06/01 10:09:19 INFO [PrioritizedChatbot] Chat(繁星Starry_Q): "hello"
2023-06-01 18:12:04 muvtuber-blivechat-1          | 2023-06-01 10:12:04 INFO [services.chat]: room=24402566 removed client 172.18.0.10, 0 clients
2023-06-01 18:09:19 muvtuber-muvtuberdriver-1     | 2023/06/01 10:09:19 INFO [chatbot] SessionClient Chat: got textIn: chatbotName=ChatGPTChatbot textin=hello
2023-06-01 18:09:54 muvtuber-live2ddriver-1       | 2023/06/01 10:09:54 INFO fwd msg: {"motion":"idle"} -> http://localhost:51070 (chan 0xc00011e420).
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     conn = connection.create_connection(
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 25#25: gracefully shutting down
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 1#1: signal 3 (SIGQUIT) received, shutting down
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 26#26: gracefully shutting down
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 25#25: exiting
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 26#26: exiting
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 27#27: gracefully shutting down
2023-06-01 18:12:20 muvtuber-live2ddriver-1       | 2023/06/01 10:12:20 (out) Listening WebSocket on 0.0.0.0:9001/live2d...
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
2023-06-01 18:12:20 muvtuber-live2ddriver-1       | 2023/06/01 10:12:20 (in) Shizuku Driver Listening on 0.0.0.0:9004...
2023-06-01 18:12:20 muvtuber-live2ddriver-1       | 2023/06/01 10:12:20 (in) Forwarding messages from HTTP (0.0.0.0:9002/live2d) to WebSocket clients...
2023-06-01 18:12:14 muvtuber-blivechat-1          | 2023-06-01 10:12:14 INFO [services.chat]: room=24402566 removing client room
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 23#23: gracefully shutting down
2023-06-01 18:12:20 muvtuber-musharing_chatbot-1  | 2023-06-01 10:12:20 INFO [root]: gRPC reflection enabled.
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 26#26: gracefully shutting down
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 24#24: gracefully shutting down
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 27#27: gracefully shutting down
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 23#23: exiting
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 23#23: gracefully shutting down
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 26#26: exiting
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 28#28: gracefully shutting down
2023-06-01 18:09:19 muvtuber-muvtuberdriver-1     | 2023/06/01 10:09:19 WARN [chatbot] ChatGPTChatbot Chat() failed. The SessionClient will be released if successive failures: serAddr=chatgpt_chatbot:50052 failures=0/3 err=NewSession(addr=chatgpt_chatbot:50052) failed: rpc error: code = Unknown desc = Exception calling application: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdc3a0e6a40>: Failed to establish a new connection: [Errno -2] Name or service not known')))
2023-06-01 18:09:19 muvtuber-muvtuberdriver-1     | 2023/06/01 10:09:19 WARN [PrioritizedChatbot] *chatbot.chatGPTChatbot.Chat(&{繁星Starry_Q hello 2}) failed: Chat() failed. The SessionClient will be released if successive failures: serAddr=chatgpt_chatbot:50052 failures=0/3 err=NewSession(addr=chatgpt_chatbot:50052) failed: rpc error: code = Unknown desc = Exception calling application: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdc3a0e6a40>: Failed to establish a new connection: [Errno -2] Name or service not known'))), try next chatbot
2023-06-01 18:09:19 muvtuber-muvtuberdriver-1     | 2023/06/01 10:09:19 INFO [chatbot] SessionClient Chat: got textIn: chatbotName=MusharingChatbot textin=hello
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/socket.py", line 955, in getaddrinfo
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | socket.gaierror: [Errno -2] Name or service not known
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | 
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | During handling of the above exception, another exception occurred:
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | 
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | Traceback (most recent call last):
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 700, in urlopen
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     self._prepare_proxy(conn)
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 996, in _prepare_proxy
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     conn.connect()
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 363, in connect
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     self.sock = conn = self._new_conn()
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     raise NewConnectionError(
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fdc3a0e6a40>: Failed to establish a new connection: [Errno -2] Name or service not known
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | 
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | During handling of the above exception, another exception occurred:
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | 
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | Traceback (most recent call last):
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     resp = conn.urlopen(
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     retries = retries.increment(
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
2023-06-01 18:12:19 muvtuber-externalsayer-1      | 2023/06/01 10:12:19 INFO gRPC API server started. addr=localhost:50010 sayer=*azuresayer.AzureSayer pid=1
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     raise MaxRetryError(_pool, url, error or ResponseError(cause))
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 27#27: exiting
2023-06-01 18:12:14 muvtuber-blivechat-1          | 2023-06-01 10:12:14 INFO [services.chat]: room=24402566 clearing 0 clients
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdc3a0e6a40>: Failed to establish a new connection: [Errno -2] Name or service not known')))
2023-06-01 18:09:19 muvtuber-muvtuberdriver-1     | 2023/06/01 10:09:19 INFO [chatbot] SessionClient Chat success. chatbot=MusharingChatbot sessionID=eae0310... textin=hello textout=Hi
2023-06-01 18:09:19 muvtuber-muvtuberdriver-1     | 2023/06/01 10:09:19 INFO [PrioritizedChatbot] Chat(繁星Starry_Q): "hello" => (MusharingChatbot): "Hi"
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 28#28: exiting
2023-06-01 18:09:24 muvtuber-muvtuberdriver-1     | 2023/06/01 10:09:24 INFO [PriorityReduceFilter] outputMaxPriorityOne boost Priority -> Highest author=MusharingChatbot content=Hi priority=2
2023-06-01 18:12:14 muvtuber-blivechat-1          | 2023-06-01 10:12:14 INFO [services.chat]: room=24402566 client room removed, 0 client rooms
2023-06-01 18:12:14 muvtuber-blivechat-1          | 2023-06-01 10:12:14 INFO [services.chat]: room=24402566 removing live client
2023-06-01 18:12:14 muvtuber-blivechat-1          | 2023-06-01 10:12:14 INFO [services.chat]: room=24402566 live client removed, 0 live clients
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 24#24: exiting
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 27#27: exiting
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 24#24: exit
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 27#27: exit
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 26#26: exit
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 23#23: exit
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 25#25: gracefully shutting down
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 25#25: exiting
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 25#25: exit
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 22#22: gracefully shutting down
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 22#22: exiting
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 22#22: exit
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 1#1: signal 17 (SIGCHLD) received from 23
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 1#1: worker process 23 exited with code 0
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 1#1: worker process 25 exited with code 0
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 1#1: worker process 26 exited with code 0
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 1#1: signal 29 (SIGIO) received
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 1#1: signal 17 (SIGCHLD) received from 27
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 1#1: worker process 27 exited with code 0
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 1#1: signal 29 (SIGIO) received
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 23#23: exiting
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | 
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 1#1: signal 17 (SIGCHLD) received from 22
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 25#25: exit
2023-06-01 18:09:24 muvtuber-muvtuberdriver-1     | 2023/06/01 10:09:24 INFO [textOut] author=MusharingChatbot priority=2 content=Hi
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 26#26: exit
2023-06-01 18:12:20 muvtuber-blivechat-1          | 2023-06-01 10:12:20 INFO [__main__]: Server started: 0.0.0.0:12450
2023-06-01 18:09:24 muvtuber-muvtuberdriver-1     | 2023/06/01 10:09:24 INFO [audioController] sendPlayCmd to audioview cmd=playVocal track=d41d8cd...
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 27#27: exit
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 1#1: worker process 22 exited with code 0
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 28#28: exit
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 1#1: worker process 24 exited with code 0
2023-06-01 18:12:04 muvtuber-live2dview-1         | 2023/06/01 10:12:04 [notice] 1#1: exit
2023-06-01 18:12:20 muvtuber-blivechat-1          | 2023-06-01 10:12:20 INFO [api.chat]: client=172.18.0.10 connected
2023-06-01 18:12:19 muvtuber-live2dview-1         | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 23#23: exit
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 24#24: gracefully shutting down
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 24#24: exiting
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 24#24: exit
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 1#1: signal 17 (SIGCHLD) received from 28
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 1#1: worker process 23 exited with code 0
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 1#1: worker process 25 exited with code 0
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 1#1: worker process 27 exited with code 0
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 1#1: worker process 28 exited with code 0
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 1#1: signal 29 (SIGIO) received
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 1#1: signal 17 (SIGCHLD) received from 26
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 1#1: worker process 26 exited with code 0
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 1#1: signal 29 (SIGIO) received
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 1#1: signal 17 (SIGCHLD) received from 24
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 1#1: worker process 24 exited with code 0
2023-06-01 18:12:04 muvtuber-audioview-1          | 2023/06/01 10:12:04 [notice] 1#1: exit
2023-06-01 18:12:19 muvtuber-audioview-1          | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
2023-06-01 18:12:19 muvtuber-audioview-1          | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
2023-06-01 18:12:19 muvtuber-audioview-1          | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
2023-06-01 18:12:19 muvtuber-audioview-1          | 10-listen-on-ipv6-by-default.sh: info: IPv6 listen already enabled
2023-06-01 18:12:19 muvtuber-audioview-1          | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
2023-06-01 18:12:19 muvtuber-audioview-1          | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
2023-06-01 18:12:19 muvtuber-audioview-1          | /docker-entrypoint.sh: Configuration complete; ready for start up
2023-06-01 18:12:19 muvtuber-audioview-1          | 2023/06/01 10:12:19 [notice] 1#1: using the "epoll" event method
2023-06-01 18:12:19 muvtuber-audioview-1          | 2023/06/01 10:12:19 [notice] 1#1: nginx/1.23.3
2023-06-01 18:12:19 muvtuber-audioview-1          | 2023/06/01 10:12:19 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r4) 
2023-06-01 18:12:19 muvtuber-audioview-1          | 2023/06/01 10:12:19 [notice] 1#1: OS: Linux 5.15.49-linuxkit-pr
2023-06-01 18:12:19 muvtuber-audioview-1          | 2023/06/01 10:12:19 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023-06-01 18:12:19 muvtuber-audioview-1          | 2023/06/01 10:12:19 [notice] 1#1: start worker processes
2023-06-01 18:12:19 muvtuber-audioview-1          | 2023/06/01 10:12:19 [notice] 1#1: start worker process 22
2023-06-01 18:12:19 muvtuber-audioview-1          | 2023/06/01 10:12:19 [notice] 1#1: start worker process 23
2023-06-01 18:12:19 muvtuber-audioview-1          | 2023/06/01 10:12:19 [notice] 1#1: start worker process 24
2023-06-01 18:12:19 muvtuber-audioview-1          | 2023/06/01 10:12:19 [notice] 1#1: start worker process 25
2023-06-01 18:12:19 muvtuber-audioview-1          | 2023/06/01 10:12:19 [notice] 1#1: start worker process 26
2023-06-01 18:12:19 muvtuber-audioview-1          | 2023/06/01 10:12:19 [notice] 1#1: start worker process 27
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | During handling of the above exception, another exception occurred:
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | 
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | Traceback (most recent call last):
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/grpc/_server.py", line 444, in _call_behavior
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     response_or_iterator = behavior(argument, context)
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/app/chatgpt/grpcapi.py", line 37, in NewSession
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     session_id = self.multiChatGPT.new_session(config)
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/app/chatgpt/chatbot.py", line 289, in new_session
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     self.chatgpts[session_id] = ChatGPTProxy(
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/app/chatgpt/chatbot.py", line 189, in __init__
2023-06-01 18:09:54 muvtuber-muvtuberdriver-1     | 2023/06/01 10:09:54 INFO [allInOneSayer] say: done. text=Hi
2023-06-01 18:12:20 muvtuber-blivechat-1          | 2023-06-01 10:12:20 INFO [api.chat]: client=172.18.0.10 joining room 24402566
2023-06-01 18:12:20 muvtuber-blivechat-1          | 2023-06-01 10:12:20 INFO [services.chat]: room=24402566 creating client room
2023-06-01 18:12:20 muvtuber-blivechat-1          | 2023-06-01 10:12:20 INFO [services.chat]: room=24402566 client room created, 1 client rooms
2023-06-01 18:12:19 muvtuber-live2dview-1         | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
2023-06-01 18:12:19 muvtuber-live2dview-1         | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
2023-06-01 18:12:19 muvtuber-live2dview-1         | 10-listen-on-ipv6-by-default.sh: info: IPv6 listen already enabled
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     self.renew()
2023-06-01 18:12:19 muvtuber-live2dview-1         | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
2023-06-01 18:12:20 muvtuber-blivechat-1          | 2023-06-01 10:12:20 INFO [services.chat]: room=24402566 creating live client
2023-06-01 18:12:19 muvtuber-live2dview-1         | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
2023-06-01 18:12:20 muvtuber-blivechat-1          | 2023-06-01 10:12:20 INFO [services.chat]: room=24402566 live client created, 1 live clients
2023-06-01 18:12:20 muvtuber-blivechat-1          | 2023-06-01 10:12:20 INFO [services.chat]: room=24402566 addding client 172.18.0.10
2023-06-01 18:12:20 muvtuber-blivechat-1          | 2023-06-01 10:12:20 INFO [services.chat]: room=24402566 added client 172.18.0.10, 1 clients
2023-06-01 18:12:19 muvtuber-live2dview-1         | /docker-entrypoint.sh: Configuration complete; ready for start up
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     | 2023/06/01 10:12:20 INFO Reading config file. configFile=/app/config/config.yaml
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     | 2023/06/01 10:12:20 INFO Config loaded:
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/app/chatgpt/chatbot.py", line 193, in renew
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     | blivedm:
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     self.chatgpt = self._new_chatgpt(self.config)
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/app/chatgpt/chatbot.py", line 207, in _new_chatgpt
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     new_chatgpt = ChatGPTv3(config={
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |     server: ws://blivechat:12450/api/chat
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |     roomid: 24402566
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     | textouthttp:
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |     server: ""
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |     droprate: 0
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     | live2d:
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |     driver: http://live2ddriver:9004/driver
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |     forwarder: http://live2ddriver:9002/live2d
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     | chatbot:
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |     musharing:
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |         server: musharing_chatbot:50051
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |         disabled: false
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |     chatgpt:
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |         server: chatgpt_chatbot:50052
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |         configs:
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |             - version: 3
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |               accesstoken: ""
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |               apikey: 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
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |               initialprompt: You are muli, an AI VTuber live streaming.
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |         cooldown: 15
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |         disabled: false
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     | sayer:
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |     server: externalsayer:50010
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |     role: miku
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     | listen:
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |     textinhttp: 0.0.0.0:51080
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |     audiocontrollerws: 0.0.0.0:51081
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     | readdm: true
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/app/chatgpt/chatbot.py", line 94, in __init__
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     self.chatbot = ChatbotV3(
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/revChatGPT/V3.py", line 68, in __init__
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     if self.get_token_count("default") > self.max_tokens:
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/revChatGPT/V3.py", line 116, in get_token_count
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     encoding = tiktoken.encoding_for_model(self.engine)
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/tiktoken/model.py", line 75, in encoding_for_model
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     return get_encoding(encoding_name)
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/tiktoken/registry.py", line 63, in get_encoding
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     enc = Encoding(**constructor())
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/tiktoken_ext/openai_public.py", line 64, in cl100k_base
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     mergeable_ranks = load_tiktoken_bpe(
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/tiktoken/load.py", line 114, in load_tiktoken_bpe
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     contents = read_file_cached(tiktoken_bpe_file)
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/tiktoken/load.py", line 46, in read_file_cached
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     contents = read_file(blobpath)
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/tiktoken/load.py", line 24, in read_file
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     return requests.get(blobpath).content
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 73, in get
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     return request("get", url, params=params, **kwargs)
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 59, in request
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     return session.request(method=method, url=url, **kwargs)
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     resp = self.send(prep, **send_kwargs)
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     r = adapter.send(request, **kwargs)
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     | reduceduration: 5
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 559, in send
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     | toolong:
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    |     raise ProxyError(e, request=request)
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |     maxwords: 500
2023-06-01 18:09:19 muvtuber-chatgpt_chatbot-1    | requests.exceptions.ProxyError: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fdc3a0e6a40>: Failed to establish a new connection: [Errno -2] Name or service not known')))
2023-06-01 18:12:20 muvtuber-chatgpt_chatbot-1    | INFO:root:gRPC reflection enabled.
2023-06-01 18:12:19 muvtuber-live2dview-1         | 2023/06/01 10:12:19 [notice] 1#1: using the "epoll" event method
2023-06-01 18:12:19 muvtuber-live2dview-1         | 2023/06/01 10:12:19 [notice] 1#1: nginx/1.23.3
2023-06-01 18:12:19 muvtuber-live2dview-1         | 2023/06/01 10:12:19 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r4) 
2023-06-01 18:12:19 muvtuber-live2dview-1         | 2023/06/01 10:12:19 [notice] 1#1: OS: Linux 5.15.49-linuxkit-pr
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |     quibbles:
2023-06-01 18:12:19 muvtuber-live2dview-1         | 2023/06/01 10:12:19 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023-06-01 18:12:19 muvtuber-live2dview-1         | 2023/06/01 10:12:19 [notice] 1#1: start worker processes
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |         - 太长了,不想说。
2023-06-01 18:12:19 muvtuber-live2dview-1         | 2023/06/01 10:12:19 [notice] 1#1: start worker process 21
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |         - 禁則事項です。
2023-06-01 18:12:19 muvtuber-live2dview-1         | 2023/06/01 10:12:19 [notice] 1#1: start worker process 22
2023-06-01 18:12:19 muvtuber-live2dview-1         | 2023/06/01 10:12:19 [notice] 1#1: start worker process 23
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     |         - 爬。
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     | 2023/06/01 10:12:20 INFO set COOLDOWN_INTERVAL from config value. COOLDOWN_INTERVAL=15s
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     | 2023/06/01 10:12:20 INFO [dm] TextInFromDm: create newBlivedmClient to room. roomid=24402566
2023-06-01 18:12:20 muvtuber-muvtuberdriver-1     | 2023/06/01 10:12:20 INFO [dm] chatClient started
2023-06-01 18:12:19 muvtuber-live2dview-1         | 2023/06/01 10:12:19 [notice] 1#1: start worker process 24
2023-06-01 18:12:19 muvtuber-live2dview-1         | 2023/06/01 10:12:19 [notice] 1#1: start worker process 25
2023-06-01 18:12:19 muvtuber-live2dview-1         | 2023/06/01 10:12:19 [notice] 1#1: start worker process 26
2023-06-01 18:12:21 muvtuber-blivechat-1          | 2023-06-01 10:12:21 INFO [services.chat]: room=24402566 (24402566) live client init succeeded
2023-06-01 18:12:27 muvtuber-live2ddriver-1       | 2023/06/01 10:12:27 Start ForwardMessageTo: http://localhost:51070 by chan 0xc00009c1e0.
2023-06-01 18:12:53 muvtuber-blivechat-1          | 2023-06-01 10:12:53 INFO [services.avatar]: Failed to fetch avatar: code=-799 请求过于频繁,请稍后再试 uid=40115114
2023-06-01 18:12:53 muvtuber-muvtuberdriver-1     | 2023/06/01 10:12:53 INFO [dm] TextInFromDm:  author=繁星Starry_Q priority=0 content=你好
2023-06-01 18:12:55 muvtuber-muvtuberdriver-1     | 2023/06/01 10:12:55 INFO [PriorityReduceFilter] outputMaxPriorityOne boost Priority -> Highest author=繁星Starry_Q content=你好 priority=2
2023-06-01 18:12:55 muvtuber-live2ddriver-1       | 2023/06/01 10:12:55 INFO fwd msg: {"motion":"flick_head"} -> http://localhost:51070 (chan 0xc00009c1e0).
2023-06-01 18:12:55 muvtuber-live2ddriver-1       | 2023/06/01 10:12:55 WARN may be a OpenMouth after emo-motion, ignore: {"motion":"flick_head"}
2023-06-01 18:12:55 muvtuber-muvtuberdriver-1     | 2023/06/01 10:12:55 INFO [audioController] sendPlayCmd to audioview cmd=playVocal track=d41d8cd...
2023-06-01 18:13:03 muvtuber-live2dview-1         | 172.18.0.1 - - [01/Jun/2023:10:13:03 +0000] "GET /shizuku/sounds/flickHead_01.mp3 HTTP/1.1" 304 0 "http://localhost:51070/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36" "-"
2023-06-01 18:13:07 muvtuber-live2dview-1         | 172.18.0.1 - - [01/Jun/2023:10:13:07 +0000] "GET /shizuku/sounds/flickHead_00.mp3 HTTP/1.1" 304 0 "http://localhost:51070/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36" "-"
2023-06-01 18:13:18 muvtuber-live2dview-1         | 172.18.0.1 - - [01/Jun/2023:10:13:18 +0000] "GET /shizuku/sounds/flickHead_02.mp3 HTTP/1.1" 304 0 "http://localhost:51070/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36" "-"
2023-06-01 18:13:25 muvtuber-muvtuberdriver-1     | 2023/06/01 10:13:25 INFO [allInOneSayer] say: done. text=你好
2023-06-01 18:13:25 muvtuber-muvtuberdriver-1     | 2023/06/01 10:13:25 INFO [PrioritizedChatbot] Chat(繁星Starry_Q): "你好"
2023-06-01 18:13:25 muvtuber-muvtuberdriver-1     | 2023/06/01 10:13:25 INFO [chatbot] SessionClient Chat: got textIn: chatbotName=ChatGPTChatbot textin=你好
2023-06-01 18:13:25 muvtuber-live2ddriver-1       | 2023/06/01 10:13:25 INFO fwd msg: {"motion":"idle"} -> http://localhost:51070 (chan 0xc00009c1e0).
2023-06-01 18:13:25 muvtuber-muvtuberdriver-1     | 2023/06/01 10:13:25 INFO [chatbot] SessionClient Chat: NewClient created. chatbot=ChatGPTChatbot addr=chatgpt_chatbot:50052
2023-06-01 18:13:25 muvtuber-muvtuberdriver-1     | 2023/06/01 10:13:25 WARN [chatbot] ChatGPTChatbot Chat() failed. The SessionClient will be released if successive failures: serAddr=chatgpt_chatbot:50052 failures=0/3 err=NewSession(addr=chatgpt_chatbot:50052) failed: rpc error: code = Unknown desc = Exception calling application: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f622a2f0>: Failed to establish a new connection: [Errno -2] Name or service not known')))
2023-06-01 18:13:25 muvtuber-muvtuberdriver-1     | 2023/06/01 10:13:25 WARN [PrioritizedChatbot] *chatbot.chatGPTChatbot.Chat(&{繁星Starry_Q 你好 2}) failed: Chat() failed. The SessionClient will be released if successive failures: serAddr=chatgpt_chatbot:50052 failures=0/3 err=NewSession(addr=chatgpt_chatbot:50052) failed: rpc error: code = Unknown desc = Exception calling application: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f622a2f0>: Failed to establish a new connection: [Errno -2] Name or service not known'))), try next chatbot
2023-06-01 18:13:25 muvtuber-muvtuberdriver-1     | 2023/06/01 10:13:25 INFO [chatbot] SessionClient Chat: got textIn: chatbotName=MusharingChatbot textin=你好
2023-06-01 18:13:25 muvtuber-muvtuberdriver-1     | 2023/06/01 10:13:25 INFO [chatbot] SessionClient Chat: NewClient created. chatbot=MusharingChatbot addr=musharing_chatbot:50051
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | ERROR:grpc._server:Exception calling application: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f622a2f0>: Failed to establish a new connection: [Errno -2] Name or service not known')))
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | Traceback (most recent call last):
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     conn = connection.create_connection(
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/socket.py", line 955, in getaddrinfo
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | socket.gaierror: [Errno -2] Name or service not known
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | 
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | During handling of the above exception, another exception occurred:
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | 
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | Traceback (most recent call last):
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 700, in urlopen
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     self._prepare_proxy(conn)
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 996, in _prepare_proxy
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     conn.connect()
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 363, in connect
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     self.sock = conn = self._new_conn()
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     raise NewConnectionError(
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fa8f622a2f0>: Failed to establish a new connection: [Errno -2] Name or service not known
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | 
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | During handling of the above exception, another exception occurred:
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | 
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | Traceback (most recent call last):
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     resp = conn.urlopen(
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     retries = retries.increment(
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     raise MaxRetryError(_pool, url, error or ResponseError(cause))
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f622a2f0>: Failed to establish a new connection: [Errno -2] Name or service not known')))
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | 
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | During handling of the above exception, another exception occurred:
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | 
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | Traceback (most recent call last):
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/grpc/_server.py", line 444, in _call_behavior
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     response_or_iterator = behavior(argument, context)
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/app/chatgpt/grpcapi.py", line 37, in NewSession
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     session_id = self.multiChatGPT.new_session(config)
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/app/chatgpt/chatbot.py", line 289, in new_session
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     self.chatgpts[session_id] = ChatGPTProxy(
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/app/chatgpt/chatbot.py", line 189, in __init__
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     self.renew()
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/app/chatgpt/chatbot.py", line 193, in renew
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     self.chatgpt = self._new_chatgpt(self.config)
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/app/chatgpt/chatbot.py", line 207, in _new_chatgpt
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     new_chatgpt = ChatGPTv3(config={
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/app/chatgpt/chatbot.py", line 94, in __init__
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     self.chatbot = ChatbotV3(
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/revChatGPT/V3.py", line 68, in __init__
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     if self.get_token_count("default") > self.max_tokens:
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/revChatGPT/V3.py", line 116, in get_token_count
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     encoding = tiktoken.encoding_for_model(self.engine)
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/tiktoken/model.py", line 75, in encoding_for_model
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     return get_encoding(encoding_name)
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/tiktoken/registry.py", line 63, in get_encoding
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     enc = Encoding(**constructor())
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/tiktoken_ext/openai_public.py", line 64, in cl100k_base
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     mergeable_ranks = load_tiktoken_bpe(
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/tiktoken/load.py", line 114, in load_tiktoken_bpe
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     contents = read_file_cached(tiktoken_bpe_file)
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/tiktoken/load.py", line 46, in read_file_cached
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     contents = read_file(blobpath)
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/tiktoken/load.py", line 24, in read_file
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     return requests.get(blobpath).content
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 73, in get
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     return request("get", url, params=params, **kwargs)
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/requests/api.py", line 59, in request
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     return session.request(method=method, url=url, **kwargs)
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     resp = self.send(prep, **send_kwargs)
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     r = adapter.send(request, **kwargs)
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |   File "/usr/local/lib/python3.10/site-packages/requests/adapters.py", line 559, in send
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    |     raise ProxyError(e, request=request)
2023-06-01 18:13:25 muvtuber-chatgpt_chatbot-1    | requests.exceptions.ProxyError: HTTPSConnectionPool(host='openaipublic.blob.core.windows.net', port=443): Max retries exceeded with url: /encodings/cl100k_base.tiktoken (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fa8f622a2f0>: Failed to establish a new connection: [Errno -2] Name or service not known')))
2023-06-01 18:13:26 muvtuber-musharing_chatbot-1  | 2023-06-01 10:13:26 INFO [root]: ChatbotGrpcServer.NewSession: (OK) session_id=52a11990-1145-4af0-91c7-0e9eff509b7e
2023-06-01 18:13:26 muvtuber-muvtuberdriver-1     | 2023/06/01 10:13:26 INFO [chatbot] SessionClient Chat: NewSession created. chatbot=MusharingChatbot addr=musharing_chatbot:50051 sessionID=52a11990-1145-4af0-91c7-0e9eff509b7e
2023-06-01 18:13:26 muvtuber-musharing_chatbot-1  | 2023-06-01 10:13:26 INFO [chatterbot.response_selection]: Selecting first response from list of 4 options.
2023-06-01 18:13:26 muvtuber-musharing_chatbot-1  | 2023-06-01 10:13:26 INFO [root]: ChatbotGrpcServer.Chat: (OK) 你好
2023-06-01 18:13:26 muvtuber-muvtuberdriver-1     | 2023/06/01 10:13:26 INFO [chatbot] SessionClient Chat success. chatbot=MusharingChatbot sessionID=52a1199... textin=你好 textout=你好
2023-06-01 18:13:26 muvtuber-muvtuberdriver-1     | 2023/06/01 10:13:26 INFO [PrioritizedChatbot] Chat(繁星Starry_Q): "你好" => (MusharingChatbot): "你好"
2023-06-01 18:13:30 muvtuber-muvtuberdriver-1     | 2023/06/01 10:13:30 INFO [PriorityReduceFilter] outputMaxPriorityOne boost Priority -> Highest author=MusharingChatbot content=你好 priority=2
2023-06-01 18:13:30 muvtuber-muvtuberdriver-1     | 2023/06/01 10:13:30 INFO [textOut] author=MusharingChatbot priority=2 content=你好
2023-06-01 18:13:30 muvtuber-emotext-1            | Building prefix dict from the default dictionary ...
2023-06-01 18:13:30 muvtuber-emotext-1            | Loading model from cache /tmp/jieba.cache
2023-06-01 18:13:30 muvtuber-emotext-1            | Loading model cost 0.454 seconds.
2023-06-01 18:13:30 muvtuber-emotext-1            | Prefix dict has been built successfully.
2023-06-01 18:13:30 muvtuber-live2ddriver-1       | 2023/06/01 10:13:30 INFO fwd msg: {} -> http://localhost:51070 (chan 0xc00009c1e0).
2023-06-01 18:13:30 muvtuber-live2ddriver-1       | 2023/06/01 10:13:30 INFO fwd msg: {"motion":"flick_head"} -> http://localhost:51070 (chan 0xc00009c1e0).
2023-06-01 18:13:30 muvtuber-muvtuberdriver-1     | 2023/06/01 10:13:30 INFO [audioController] sendPlayCmd to audioview cmd=playVocal track=d41d8cd...
2023-06-01 18:14:00 muvtuber-live2ddriver-1       | 2023/06/01 10:14:00 INFO fwd msg: {"motion":"idle"} -> http://localhost:51070 (chan 0xc00009c1e0).
2023-06-01 18:14:00 muvtuber-muvtuberdriver-1     | 2023/06/01 10:14:00 INFO [allInOneSayer] say: done. text=你好
cdfmlr commented 1 year ago

分析了日志。注意到其中包含一次服务组重启,并且缺失 audioview 连接到 controller 的标志性日志:

muvtuber-muvtuberdriver-1  | 2023/06/02 02:49:27 INFO audioController websocket client connected remoteAddr=172.19.0.1:43926

推测是重启后前端的 audioview 因故未能自动重连服务器。可以尝试在 OBS 上,点击 来源 > audioview,然后刷新,强制其重新连接。


如果仍然无效,那我暂时无法判断问题来源,需要你帮助:

  1. externalsayer 是否有正确配置?
  2. 如果使用浏览器打开 http://127.0.0.1:51082/?controller=ws://127.0.0.1:51081/ 是否能正常播放声音?

关于日志中发现的其他问题:

  1. 你在日志中泄漏了 OpenAI key,如非有意为之,请尽快重置。
  2. ChatGPT 代理未正确配置。可以参考 README 相关部分进行配置。
darkpulie commented 1 year ago

extrenalsayer应该是正确配置了的 extrenalsayer内的config.yaml配置如下 image muvtuberdriver内的config.yaml配置如下 image


1.OpenAI的Key和代理应该无关紧要,因为已经过期了,并且我看项目好像有另外一个聊天机器人是可以回复信息的,所以我没有去解决这个问题 2.我访问 http://127.0.0.1:51082/?controller=ws://127.0.0.1:51081/ 并不能听到声音 我的测试方式是:

进入直播间,发送一条弹幕 image 看到有回显之后,网页也没有听到声音

cdfmlr commented 1 year ago

访问 http://127.0.0.1:51082/?controller=ws://127.0.0.1:51081/ 并不能听到声音

对 audioview 进行调试操作一般如下:

  1. 在浏览器访问该地址;
  2. 打开开发者工具(右键 > 检查);
  3. 开发者工具中选择「网络」,勾选「停用缓存」;
  4. 刷新页面;
  5. 看到一项名称 127.0.0.1,状态 101,类型 WebSocket 的请求,点击查看;
  6. 选择「消息」可以看到 WebSocket 通信的消息;
  7. 尝试发送弹幕,出发语音,观察是否收到 WebSocket 消息,同时注意「控制台」是否有错误日志输出。

如果一切正常,应该观察到的结果类似于:

websocket 消息流截图 控制台日志截图

1.OpenAI的Key和代理应该无关紧要,因为已经过期了,并且我看项目好像有另外一个聊天机器人是可以回复信息的,所以我没有去解决这个问题

如果不使用 ChatGPT,可以在配置中将其禁用:

    chatgpt:
        ...
        disabled: true
darkpulie commented 1 year ago

打开调试,发送弹幕之后,并没有看到有report操作 image image


以下是muvtuberdriver容器的日志 image

cdfmlr commented 1 year ago

你的 audioview 接收到的 websocket 播放消息是空的耶。你看那个 data base64 啥的后面就没了,如果正常的话这里应该是很长的一大段音频文件的二进制内容的。

所以应该还是这个 extrenalsayer 的问题。会不会是 role 不能用啥的,可能不同地区可用的角色不一样?😫


焯,这里一点日志都没有。不知道当时写的时候咋想的 🤬 实在不行等我先加一些日志点方便调试。

darkpulie commented 1 year ago

行叭,那就等大佬操作,我换了地区,好像也没解决

cdfmlr commented 1 year ago

我已经加了很多日志了,你可以拉最新的代码试试

😭 就很奇怪我这边一直都可以的

darkpulie commented 1 year ago

那我试试叭

cdfmlr commented 1 year ago

Review: #44, #47 & #49 are the same issue. It is finally fixed by 269b6b9a2c910fbf49978a6e8223ab48eb8eb3e7 (v0.3.6).