Erro ao criar o primeiro WP Erro no Banco de Dados

Olá Gabriel,

Estou no passo a passo de criar o WordPress em um servidor com WordOps.

No meu primeiro site de WordPress, apareceu o seguinte erro no banco de dados.

File “/opt/wo/lib/python3.11/site-packages/pymysql/connections.py”, line 633, in connect
sock.connect(self.unix_socket)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/bin/wo”, line 8, in
sys.exit(main())
^^^^^^
File “/opt/wo/lib/python3.11/site-packages/wo/cli/main.py”, line 102, in main
app.run()
File “/opt/wo/lib/python3.11/site-packages/cement/core/foundation.py”, line 882, in run
return_val = self.controller._dispatch()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/wo/lib/python3.11/site-packages/cement/core/controller.py”, line 471, in _dispatch
return func()
^^^^^^
File “/opt/wo/lib/python3.11/site-packages/cement/core/controller.py”, line 471, in _dispatch
return func()
^^^^^^
File “/opt/wo/lib/python3.11/site-packages/cement/core/controller.py”, line 477, in _dispatch
return func()
^^^^^^
File “/opt/wo/lib/python3.11/site-packages/wo/cli/plugins/site_create.py”, line 399, in default
wo_wp_creds = setupwordpress(self, data, vhostonly)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/wo/lib/python3.11/site-packages/wo/cli/plugins/site_functions.py”, line 288, in setupwordpress
data = setupdatabase(self, data)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/wo/lib/python3.11/site-packages/wo/cli/plugins/site_functions.py”, line 200, in setupdatabase
WOMysql.execute(self, “create database {0}
File “/opt/wo/lib/python3.11/site-packages/wo/core/mysql.py”, line 71, in execute
connection = WOMysql.connect(self)
^^^^^^^^^^^^^^^^^^^^^
File “/opt/wo/lib/python3.11/site-packages/wo/core/mysql.py”, line 34, in connect
connection = pymysql.connect(
^^^^^^^^^^^^^^^^
File “/opt/wo/lib/python3.11/site-packages/pymysql/connections.py”, line 358, in init
self.connect()
File “/opt/wo/lib/python3.11/site-packages/pymysql/connections.py”, line 711, in connect
raise exc
pymysql.err.OperationalError: (2003, “Can’t connect to MySQL server on ‘localhost’ ([Errno 111] Connection refused)”)

Ontem, durante o dia percebi diversos problemas com a rede de internet em geral. Inclusive o Mercado Livre estava off em alguns momentos.
Isso me leve a acreditar que o servidor, devido a falhas de rede não conseguiu fazer o download e atualização de alguns pacotes necessários para o WordOps.

Por isso, minha primeira recomendação é destruir esse server e tentar novamente com um server novo.

Olá Gabriel,

Tentei fazer a instalação pelo Ubuntu 22 e apareceu o mesmo erro abaixo, igual o erro no Debian.

Start : wo-kernel [OK]
Adding repository for MySQL, please wait…
Adding repository for NGINX, please wait…
Adding repository for PHP, please wait…
Updating apt-cache [OK]
Installing APT packages [OK]
Testing Nginx configuration [OK]
Restarting Nginx [OK]
Configuring Nginx [OK]
Testing Nginx configuration [OK]
Restarting Nginx [OK]
Restarting php8.2-fpm [OK]
Configuring php8.2-fpm [OK]
Tuning MySQL configuration [OK]
Restarting mariadb [OK]
Running pre-update checks [OK]
Setting up NGINX configuration [Done]
Setting up webroot [Done]
Downloading WordPress [Done]
Setting up database Traceback (most recent call last):
File “/opt/wo/lib/python3.10/site-packages/pymysql/connections.py”, line 633, in connect
sock.connect(self.unix_socket)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/bin/wo”, line 8, in
sys.exit(main())
File “/opt/wo/lib/python3.10/site-packages/wo/cli/main.py”, line 102, in main
app.run()
File “/opt/wo/lib/python3.10/site-packages/cement/core/foundation.py”, line 882, in run
return_val = self.controller._dispatch()
File “/opt/wo/lib/python3.10/site-packages/cement/core/controller.py”, line 471, in _dispatch
return func()
File “/opt/wo/lib/python3.10/site-packages/cement/core/controller.py”, line 471, in _dispatch
return func()
File “/opt/wo/lib/python3.10/site-packages/cement/core/controller.py”, line 477, in _dispatch
return func()
File “/opt/wo/lib/python3.10/site-packages/wo/cli/plugins/site_create.py”, line 399, in default
wo_wp_creds = setupwordpress(self, data, vhostonly)
File “/opt/wo/lib/python3.10/site-packages/wo/cli/plugins/site_functions.py”, line 288, in setupwordpress
data = setupdatabase(self, data)
File “/opt/wo/lib/python3.10/site-packages/wo/cli/plugins/site_functions.py”, line 200, in setupdatabase
WOMysql.execute(self, “create database {0}
File “/opt/wo/lib/python3.10/site-packages/wo/core/mysql.py”, line 71, in execute
connection = WOMysql.connect(self)
File “/opt/wo/lib/python3.10/site-packages/wo/core/mysql.py”, line 34, in connect
connection = pymysql.connect(
File “/opt/wo/lib/python3.10/site-packages/pymysql/connections.py”, line 358, in init
self.connect()
File “/opt/wo/lib/python3.10/site-packages/pymysql/connections.py”, line 711, in connect
raise exc
pymysql.err.OperationalError: (2003, “Can’t connect to MySQL server on ‘localhost’ ([Errno 111] Connection refused)”)
root@cloud:~#

Tudo indica ser um erro temporário devido a instabilidades de rede.
Já tentou novamente? Se sim, deu certo?