华为欧拉部署seatable时出错

虚拟机安装华为欧拉,新部署seatable时进行到如图就卡住不动,等待很长时间也没有反应,应如何检查?



root@4355bb01cdea:/templates# /templates/seatable.sh init-sql
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
waiting for mysql server to be ready: %s (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)
^CTraceback (most recent call last):
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/pymysql/connections.py”, line 614, in connect
(self.host, self.port), self.connect_timeout, **kwargs
File “/usr/lib/python3.7/socket.py”, line 727, in create_connection
raise err
File “/usr/lib/python3.7/socket.py”, line 716, in create_connection
sock.connect(sa)
OSError: [Errno 113] No route to host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/templates/init_sql.py”, line 12, in wait_for_mysql
pymysql.connect(host=‘db’, port=3306, user=‘root’, passwd=‘dada200*’)
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/pymysql/connections.py”, line 353, in init
self.connect()
File “/opt/seatable/seatable-server-latest/dtable-web/thirdpart/pymysql/connections.py”, line 664, in connect
raise exc
pymysql.err.OperationalError: (2003, “Can’t connect to MySQL server on ‘db’ ([Errno 113] No route to host)”)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/templates/init_sql.py”, line 21, in
wait_for_mysql()
File “/templates/init_sql.py”, line 15, in wait_for_mysql
time.sleep(2)
KeyboardInterrupt

iptables配置允许mysql远程访问

vi /etc/sysconfig/iptables

iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT

service iptables save
service iptables restart

开通3306 端口的行必须在icmp-host-prohibited前