Open channingbreeze opened 1 month ago
镜像都起来了
命令:docker ps -a
返回:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d11aae8df851 nginx:latest "/docker-entrypoint.…" 5 days ago Up 5 days 0.0.0.0:8082->80/tcp folotoy-server-nginx-1
593748a0c632 lewangdev/folotoy-server:latest "python3 folotoy/mai…" 5 days ago Up 5 days 0.0.0.0:8085->8085/udp folotoy-server-folotoy-1
372cb7c66f6d emqx/emqx:latest "/usr/bin/docker-ent…" 5 days ago Up 5 days 4369-4370/tcp, 5369/tcp, 6369-6370/tcp, 0.0.0.0:1883->1883/tcp, 8081/tcp, 8084/tcp, 8883/tcp, 0.0.0.0:8083->8083/tcp, 0.0.0.0:18083->18083/tcp, 11883/tcp folotoy-server-emqx-1
各个镜像的日志:
命令:docker logs d11aae8df851
返回:
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2024/07/15 01:23:40 [notice] 1#1: using the "epoll" event method
2024/07/15 01:23:40 [notice] 1#1: nginx/1.21.5
2024/07/15 01:23:40 [notice] 1#1: built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
2024/07/15 01:23:40 [notice] 1#1: OS: Linux 3.10.0-123.9.3.el7.x86_64
2024/07/15 01:23:40 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/07/15 01:23:40 [notice] 1#1: start worker processes
2024/07/15 01:23:40 [notice] 1#1: start worker process 30
命令:docker logs 593748a0c632
2024-07-15 09:23:46,491 - INFO - FoloToy Server Version: v24.25.6.1-beta
2024-07-15 09:23:46,582 - ERROR - Run error: [Errno 111] Connection refused
Traceback (most recent call last):
File "core/folotoy_app.py", line 141, in core.folotoy_app.FolotoyApp.start
File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1429, in connect
return self.reconnect()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1592, in reconnect
self._sock = self._create_socket()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4598, in _create_socket
sock = self._create_socket_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4623, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
2024-07-15 09:23:46,596 - INFO - Sleep 2s to reconnect to emqx:1883
2024-07-15 09:23:48,597 - ERROR - Run error: [Errno 111] Connection refused
Traceback (most recent call last):
File "core/folotoy_app.py", line 141, in core.folotoy_app.FolotoyApp.start
File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1429, in connect
return self.reconnect()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1592, in reconnect
self._sock = self._create_socket()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4598, in _create_socket
sock = self._create_socket_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 4623, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/socket.py", line 851, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.11/socket.py", line 836, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
2024-07-15 09:23:48,598 - INFO - Sleep 2s to reconnect to emqx:1883
2024-07-15 09:23:50,600 - INFO - Speech server started(0.0.0.0:8085/udp)
2024-07-15 09:23:50,602 - INFO - Connected to MQTT Broker(emqx:1883)!
命令:docker logs 372cb7c66f6d
listener.ssl.external.acceptors = "32"
listener.ssl.external.max_connections = "102400"
listener.tcp.external.acceptors = "64"
listener.tcp.external.max_connections = "1024000"
listener.ws.external.acceptors = "16"
listener.ws.external.max_connections = "102400"
listener.wss.external.acceptors = "16"
listener.wss.external.max_connections = "102400"
log.to = "console"
node.max_ets_tables = "2097152"
node.max_ports = "1048576"
node.name = "emqx@node1.emqx.io"
node.process_limit = "2097152"
rpc.port_discovery = "manual"
Starting emqx on node emqx@node1.emqx.io
Start mqtt:tcp:internal listener on 127.0.0.1:11883 successfully.
Start mqtt:tcp:external listener on 0.0.0.0:1883 successfully.
Start mqtt:ws:external listener on 0.0.0.0:8083 successfully.
Start mqtt:ssl:external listener on 0.0.0.0:8883 successfully.
Start mqtt:wss:external listener on 0.0.0.0:8084 successfully.
Start http:management listener on 8081 successfully.
Start http:dashboard listener on 18083 successfully.
EMQ X Broker 4.3.11 is running now!
现象:
用官方提供的服务器都没问题,连接自己的服务器,输入ip,过一会儿出现“蹬蹬”声,后面没有反应,按住说话也没反应,日志和audio文件夹里也没有任何东西
同时浏览器输入ip:18083,网站打不开,出现无法访问此网站
不知道如何排查,求助官方
使用1panel的吗,把帐号发我一下 lewang.dev@gmail.com,我登录看一下
不是的,用的阿里云的ecs
搭建的方式是用的1 panel还是docker?
自建服务器,仙人掌连接后,一声“蹬蹬”音后无反应,emqx后台在浏览器也无法打开
端口测试已经联通 测试方案: tcp端口:1883、8082、18083、8083
命令:
telnet <ip> <port>
返回:
1~2s后
Connection closed by foreign host.
udp端口:8085
命令:
nc -uvz <ip> <port>
返回:
Connection to <ip> port <port> [udp/*] succeeded!
服务器文件目录结构
命令:
tree
返回:roles.json内容:
docker-compose.yml内容