データベースシステムが適切にシャットダウンされなかったというエラーが発生し、再構築中です

==================== 深刻な問題!!!! ====================
アプリが実行されていません!
再構築を試みます
==================== 再構築ログ ====================
ランチャーが最新であることを確認中
origin を取得中
ランチャーは最新です
cd /pups && git pull && /pups/bin/pups --stdin
すでに最新です。
I, [2019-09-19T03:25:36.256661 #1]  INFO -- : --stdin を読み込み中
I, [2019-09-19T03:25:36.269059 #1]  INFO -- : > locale-gen $LANG && update-locale
I, [2019-09-19T03:25:36.322226 #1]  INFO -- : ロケールの生成中(時間がかかる場合があります)...
生成が完了しました。

I, [2019-09-19T03:25:36.322605 #1]  INFO -- : > mkdir -p /shared/postgres_run
I, [2019-09-19T03:25:36.328236 #1]  INFO -- :
I, [2019-09-19T03:25:36.328720 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run
I, [2019-09-19T03:25:36.333983 #1]  INFO -- :
I, [2019-09-19T03:25:36.334293 #1]  INFO -- : > chmod 775 /shared/postgres_run
I, [2019-09-19T03:25:36.337836 #1]  INFO -- :
I, [2019-09-19T03:25:36.338129 #1]  INFO -- : > rm -fr /var/run/postgresql
I, [2019-09-19T03:25:36.343137 #1]  INFO -- :
I, [2019-09-19T03:25:36.343429 #1]  INFO -- : > ln -s /shared/postgres_run /var/run/postgresql
I, [2019-09-19T03:25:36.347597 #1]  INFO -- :
I, [2019-09-19T03:25:36.347819 #1]  INFO -- : > socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
2019/09/19 03:25:36 socat[28] E connect(6, AF=1 "/shared/postgres_run/.s.PGSQL.5432", 36): No such file or directory
I, [2019-09-19T03:25:36.354672 #1]  INFO -- :
I, [2019-09-19T03:25:36.355006 #1]  INFO -- : > rm -fr /shared/postgres_run/.s*
I, [2019-09-19T03:25:36.359801 #1]  INFO -- :
I, [2019-09-19T03:25:36.360028 #1]  INFO -- : > rm -fr /shared/postgres_run/*.pid
I, [2019-09-19T03:25:36.365218 #1]  INFO -- :
I, [2019-09-19T03:25:36.365462 #1]  INFO -- : > mkdir -p /shared/postgres_run/10-main.pg_stat_tmp
I, [2019-09-19T03:25:36.370636 #1]  INFO -- :
I, [2019-09-19T03:25:36.370987 #1]  INFO -- : > chown postgres:postgres /shared/postgres_run/10-main.pg_stat_tmp
I, [2019-09-19T03:25:36.375238 #1]  INFO -- :
I, [2019-09-19T03:25:36.384014 #1]  INFO -- : ファイル > /etc/service/postgres/run  chmod: +x  chown:
I, [2019-09-19T03:25:36.391893 #1]  INFO -- : ファイル > /etc/service/postgres/log/run  chmod: +x  chown:
I, [2019-09-19T03:25:36.399904 #1]  INFO -- : ファイル > /etc/runit/3.d/99-postgres  chmod: +x  chown:
I, [2019-09-19T03:25:36.409011 #1]  INFO -- : ファイル > /root/upgrade_postgres  chmod: +x  chown:
I, [2019-09-19T03:25:36.409331 #1]  INFO -- : > chown -R root /var/lib/postgresql/10/main
I, [2019-09-19T03:25:39.272591 #1]  INFO -- :
I, [2019-09-19T03:25:39.272827 #1]  INFO -- : > [ ! -e /shared/postgres_data ] && install -d -m 0755 -o postgres -g postgres /shared/postgres_data && sudo -E -u postgres /usr/lib/postgresql/10/bin/initdb -D /shared/postgres_data || exit 0
I, [2019-09-19T03:25:39.276677 #1]  INFO -- :
I, [2019-09-19T03:25:39.276825 #1]  INFO -- : > chown -R postgres:postgres /shared/postgres_data
I, [2019-09-19T03:25:39.300652 #1]  INFO -- :
I, [2019-09-19T03:25:39.300913 #1]  INFO -- : > chown -R postgres:postgres /var/run/postgresql
I, [2019-09-19T03:25:39.305131 #1]  INFO -- :
I, [2019-09-19T03:25:39.305468 #1]  INFO -- : > /root/upgrade_postgres
I, [2019-09-19T03:25:39.315038 #1]  INFO -- :
I, [2019-09-19T03:25:39.315197 #1]  INFO -- : > rm /root/upgrade_postgres
I, [2019-09-19T03:25:39.318486 #1]  INFO -- :
I, [2019-09-19T03:25:39.318940 #1]  INFO -- : /etc/postgresql/10/main/postgresql.conf 内の data_directory = '/var/lib/postgresql/10/main' を data_directory = '/shared/postgres_data' に置換中
I, [2019-09-19T03:25:39.320086 #1]  INFO -- : /etc/postgresql/10/main/postgresql.conf 内の (?-mix:#?listen_addresses *=.*) を listen_addresses = '*' に置換中
I, [2019-09-19T03:25:39.322462 #1]  INFO -- : /etc/postgresql/10/main/postgresql.conf 内の (?-mix:#?synchronous_commit *=.*) を synchronous_commit = $db_synchronous_commit に置換中
I, [2019-09-19T03:25:39.324514 #1]  INFO -- : /etc/postgresql/10/main/postgresql.conf 内の (?-mix:#?shared_buffers *=.*) を shared_buffers = $db_shared_buffers に置換中
I, [2019-09-19T03:25:39.325648 #1]  INFO -- : /etc/postgresql/10/main/postgresql.conf 内の (?-mix:#?work_mem *=.*) を work_mem = $db_work_mem に置換中
I, [2019-09-19T03:25:39.326845 #1]  INFO -- : /etc/postgresql/10/main/postgresql.conf 内の (?-mix:#?default_text_search_config *=.*) を default_text_search_config = '$db_default_text_search_config' に置換中
I, [2019-09-19T03:25:39.328375 #1]  INFO -- : > install -d -m 0755 -o postgres -g postgres /shared/postgres_backup
I, [2019-09-19T03:25:39.334429 #1]  INFO -- :
I, [2019-09-19T03:25:39.334939 #1]  INFO -- : /etc/postgresql/10/main/postgresql.conf 内の (?-mix:#?max_wal_senders *=.*) を max_wal_senders = $db_max_wal_senders に置換中
I, [2019-09-19T03:25:39.335686 #1]  INFO -- : /etc/postgresql/10/main/postgresql.conf 内の (?-mix:#?wal_level *=.*) を wal_level = $db_wal_level に置換中
I, [2019-09-19T03:25:39.338130 #1]  INFO -- : /etc/postgresql/10/main/postgresql.conf 内の (?-mix:#?checkpoint_segments *=.*) を checkpoint_segments = $db_checkpoint_segments に置換中
I, [2019-09-19T03:25:39.341035 #1]  INFO -- : /etc/postgresql/10/main/postgresql.conf 内の (?-mix:#?logging_collector *=.*) を logging_collector = $db_logging_collector に置換中
I, [2019-09-19T03:25:39.342254 #1]  INFO -- : /etc/postgresql/10/main/postgresql.conf 内の (?-mix:#?log_min_duration_statement *=.*) を log_min_duration_statement = $db_log_min_duration_statement に置換中
I, [2019-09-19T03:25:39.343427 #1]  INFO -- : /etc/postgresql/10/main/pg_hba.conf 内の (?-mix:^#local +replication +postgres +peer$) を local replication postgres  peer に置換中
I, [2019-09-19T03:25:39.343950 #1]  INFO -- : /etc/postgresql/10/main/pg_hba.conf 内の (?-mix:^host.*all.*all.*127.*$) を host all all 0.0.0.0/0 md5 に置換中
I, [2019-09-19T03:25:39.345666 #1]  INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main
I, [2019-09-19T03:25:39.348666 #1]  INFO -- : > sleep 5
2019-09-19 03:25:39.378 UTC [51] LOG:  IPv4 アドレス "0.0.0.0"、ポート 5432 でリスニング中
2019-09-19 03:25:39.378 UTC [51] LOG:  IPv6 アドレス "::"、ポート 5432 でリスニング中
2019-09-19 03:25:39.384 UTC [51] LOG:  Unix ソケット "/var/run/postgresql/.s.PGSQL.5432" でリスニング中
2019-09-19 03:25:39.493 UTC [54] LOG:  データベースシステムは 2019-09-19 03:23:55 UTC にリカバリ中にシャットダウンされました
2019-09-19 03:25:39.493 UTC [54] LOG:  データベースシステムが正しくシャットダウンされませんでした。自動リカバリを実行中
2019-09-19 03:25:39.509 UTC [54] LOG:  リド開始位置: 1003/5E792F0
I, [2019-09-19T03:25:44.352528 #1]  INFO -- :
I, [2019-09-19T03:25:44.352957 #1]  INFO -- : > su postgres -c 'createdb discourse' || true
2019-09-19 03:25:44.438 UTC [58] postgres@postgres FATAL:  データベースシステムが起動中です
2019-09-19 03:25:44.439 UTC [59] postgres@template1 FATAL:  データベースシステムが起動中です
createdb: データベース template1 に接続できませんでした: FATAL:  データベースシステムが起動中です
I, [2019-09-19T03:25:44.442572 #1]  INFO -- :
I, [2019-09-19T03:25:44.443122 #1]  INFO -- : > su postgres -c 'psql discourse -c "create user discourse;"' || true
2019-09-19 03:25:44.525 UTC [70] postgres@discourse FATAL:  データベースシステムが起動中です
psql: FATAL:  データベースシステムが起動中です
I, [2019-09-19T03:25:44.527564 #1]  INFO -- :
I, [2019-09-19T03:25:44.527978 #1]  INFO -- : > su postgres -c 'psql discourse -c "grant all privileges on database discourse to discourse;"' || true
2019-09-19 03:25:44.617 UTC [81] postgres@discourse FATAL:  データベースシステムが起動中です
psql: FATAL:  データベースシステムが起動中です
I, [2019-09-19T03:25:44.619389 #1]  INFO -- :
I, [2019-09-19T03:25:44.619732 #1]  INFO -- : > su postgres -c 'psql discourse -c "alter schema public owner to discourse;"'
2019-09-19 03:25:44.699 UTC [92] postgres@discourse FATAL:  データベースシステムが起動中です
psql: FATAL:  データベースシステムが起動中です
I, [2019-09-19T03:25:44.701755 #1]  INFO -- :
I, [2019-09-19T03:25:44.702510 #1]  INFO -- : 非同期プロセスを終了中
I, [2019-09-19T03:25:44.702584 #1]  INFO -- : HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/10/bin/postmaster -D /etc/postgresql/10/main の pid 51 に INT を送信中
2019-09-19 03:25:44.702 UTC [51] LOG:  高速シャットダウン要求を受信しました
2019-09-19 03:25:44.745 UTC [95] LOG:  シャットダウン中
2019-09-19 03:25:44.926 UTC [51] LOG:  データベースシステムがシャットダウンしました


失敗
--------------------
Pups::ExecError: su postgres -c 'psql discourse -c "alter schema public owner to discourse;"' が失敗しました。戻り値: #<Process::Status: pid 82 exit 2>
失敗の場所: /pups/lib/pups/exec_command.rb:112:in `spawn'
以下のパラメータで exec が失敗しました: "su postgres -c 'psql $db_name -c \"alter schema public owner to $db_user;\"'"
e3c609d02d8197f6efd84dd0ecf99456ed566b02fd3a09d87e286696496e56c8
** ブートストラップに失敗しました ** 上記をスクロールして、より早期のエラーメッセージを確認してください。複数のエラーが発生している可能性があります。
./discourse-doctor で問題を診断できるかもしれません。
> 

このエラーは最後のアップデート後に発生しました

  • 非公式プラグインはすでに削除済みです
  • 空き容量は十分にあります(600GB 以上)
  • スワップファイル 2GB

データベースに問題があります

 2019-09-19 03:25:39.493 UTC [54] LOG: データベースシステムが正しくシャットダウンされませんでした。自動復旧を実行中

以下の手順を試してみてください。

. /launcher start app

しばらく待っていると復旧が完了し、その後再構築が可能になる場合があります。

素早い返信ありがとうございます。しかし、まだエラーがあります:

./launcher start app の後

WARNING: We are about to start downloading the Discourse base image
This process may take anywhere between a few minutes to an hour, depending on your network speed

Please be patient

Unable to find image 'discourse/base:2.0.20190906-0522' locally
2.0.20190906-0522: Pulling from discourse/base
1ab2bdfe9778: Pulling fs layer
a313ca07f056: Pulling fs layer
1ab2bdfe9778: Download complete
1ab2bdfe9778: Pull complete
a313ca07f056: Verifying Checksum
a313ca07f056: Download complete
a313ca07f056: Pull complete
Digest: sha256:8c58bd323c80b464b2634d2aa8c322772d0c7bff3e08eff06cf2b66d37fe623d
Status: Downloaded newer image for discourse/base:2.0.20190906-0522

Unable to find image 'local_discourse/app:latest' locally
/usr/bin/docker: Error response from daemon: pull access denied for local_discourse/app, repository does not exist or may require 'docker login'.
See '/usr/bin/docker run --help'.

Discourse ベースイメージのダウンロードを開始しようとしています
この処理には、ネットワーク速度によっては数分から 1 時間程度かかる場合があります

少々お待ちください

ローカルに 'discourse/base:2.0.20190906-0522' のイメージが見つかりません
discourse/base から 2.0.20190906-0522 をプル中
1ab2bdfe9778: ファイルシステムレイヤーのプル中
a313ca07f056: ファイルシステムレイヤーのプル中
1ab2bdfe9778: ダウンロード完了
1ab2bdfe9778: プル完了
a313ca07f056: チェックサムの検証中
a313ca07f056: ダウンロード完了
a313ca07f056: プル完了
ダイジェスト:sha256:8c58bd323c80b464b2634d2aa8c322772d0c7bff3e08eff06cf2b66d37fe623d
ステータス:discourse/base:2.0.20190906-0522 の新しいイメージをダウンロードしました

ローカルに 'local_discourse/app:latest' のイメージが見つかりません
/usr/bin/docker: デーモンからのエラー応答:local_discourse/app へのプルアクセスが拒否されました。リポジトリが存在しないか、'docker login' が必要かもしれません。
'/usr/bin/docker run --help' を参照してください。

おっと、動作しているコンテナがないようです。

バックアップがある場合は、postgres_data ディレクトリを削除して再構築し、バックアップから復元するのが簡単な解決策です。バックアップがない場合は、2コンテナ構成の「揺るがない」設定へ移行する方法があるかもしれません。

既存のデータを新しいコンテナに移行する方法について、その手順が明確になっているかどうかはわかりません。

500 ドルいただければ、問題の修正を行います。もし修正できなければ、お返金いたします(私の時間を無駄にしてしまい、お返金する可能性もかなり高いですが)。連絡先はプロフィールに記載しています。