我使用Trellis建立了一个wordpress网站。最初,我是在不加密vault.yml的情况下设置服务器并进行部署的。 一切正常后,我更改了vault.yml中的密码并加密了文件。但是我的部署现在失败了。 我收到以下错误-
TASK [deploy : WordPress Installed?]
**************************
System info:
Ansible 2.6.3; Darwin
Trellis version (per changelog): "Allow customizing Nginx `worker_connections`"
---------------------------------------------------
non-zero return code
Error: Error establishing a database connection. This either means that
the username and password information in your `wp-config.php` file is
incorrect or we can’t contact the database server at `localhost`. This
could mean your host’s database server is down.
fatal: [mysite.org]: FAILED! => {"changed": false,
"cmd": ["wp", "core", "is-installed", "--skip-plugins", "--skip-
themes", "--require=/srv/www/mysite.org/shared/tmp_multisite_constants.php"], "delta":
"0:00:00.224955", "end": "2019-01-04 16:59:01.531111",
"failed_when_result": true, "rc": 1, "start": "2019-01-04
16:59:01.306156", "stderr_lines": ["Error: Error establishing a
database connection. This either means that the username and password
information in your `wp-config.php` file is incorrect or we can’t
contact the database server at `localhost`. This could mean your host’s
database server is down."], "stdout": "", "stdout_lines": []}
to retry, use: --limit
@/Users/praneethavelamuri/Desktop/path/to/my/project/trellis/deploy.retry
我错过了任何一步吗?我遵循了这些步骤-
答案 0 :(得分:0)
我解决了。我在Vault中也更改了sudo用户密码。因此ssh进入服务器并将sudo密码更改为Vault中提到的密码,然后对其进行配置和部署解决了该问题。