「ローカルの変更内容.... templates/postgres.template.yml」

Discourse が起動しません。コンテナのログには次のように表示されます。

ok: run: redis: (pid 47) 791s
ok: run: postgres: (pid 44) 791s
supervisor pid: 4051 unicorn pid: 4056
./config/unicorn_launcher: line 71: kill: (4056) - No such process
./config/unicorn_launcher: line 15: kill: (4056) - No such process
(4051) exiting
ok: run: redis: (pid 47) 793s
ok: run: postgres: (pid 44) 793s
supervisor pid: 4065 unicorn pid: 407

/var/discourse に移動して ./launcher rebuild app を実行しようとしましたが、次のようにループします。

Ensuring launcher is up to date
Updating Launcher...
Updating 721facb..34dd695
error: your local changes to the following files would be overwritten by merge: templates/postgres.template.yml
Please commit your changes or stash them before you merge.
Aborting
failed to update

これはなぜ発生し、どのように修正できますか?

「いいね!」 1

データベースサーバーはどこにありますか?

これにより、.\launcher rebuild appコマンドの後に必要な引数が決まります。

たとえば、ホスト(127.0.0.1)上のPostgresインスタンスを使用する場合:

ランチャー/リビルドをホストネットワーキングで実行する必要があります。

./launcher rebuild app --docker-args --net=host --skip-mac-address

私のデータベースサーバーはDiscourseと同じです。Discourseの公式インストールガイドを使用してDiscourseをインストールしました。

「いいね!」 1

そのコマンドは同じエラーを表示します。通常は問題なく動作するので、これは奇妙です。

@Ethsim2 ファイルをホームディレクトリにcpし、/templatesから削除しました。

これが新しい問題です: Discourse Online Updater & ./launcher rebuild app failed from Discourse gamification

free -h

は何を返しますか?

興味深いですね。標準インストールではリビルド引数は必要ないはずです。

あるいは、PostgreSQLサーバーが0.0.0.0にあり、DiscourseのDockerがネットワーク分離を維持するために適切な設定を行っている場合などです。

これは、関連するDiscourse Dockerコンテナで役立つようにapp.ymlにマウントする必要がありますが、推奨されません


ホストディレクトリ内のファイルをrmで削除できます。

「いいね!」 1

はい、rm /var/discourse/templates/postgres.template.yml を実行しました。これはテンプレートファイルなので、何も害はないはずですよね?

「いいね!」 1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.