Trellisを使用してワードプレスサイトをセットアップしました。最初にサーバーをセットアップし、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
見逃したステップはありますか?私はこれらの手順に従いました-
私はそれを解決しました。ボールトでもsudoユーザーのパスワードを変更しました。そのため、サーバーにsshを実行し、sudoパスワードをVaultに記載されているパスワードに変更し、プロビジョニングしてからデプロイすることで問題が解決しました。
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加