私は公式の方法でインストールされた単一のコンテナです。
ログはこちらです。
PostgreSQL をバージョン 13 から 15 にアップグレードしています
このデータベースシステムのファイルはユーザー「postgres」が所有します。
このユーザーはサーバープロセスも所有する必要があります。
データベースクラスターはロケール「en_US.UTF-8」で初期化されます。
デフォルトのデータベースエンコーディングは「UTF8」に設定されました。
デフォルトの全文検索設定は「english」に設定されます。
データページチェックサムは無効になっています。
既存のディレクトリ /shared/postgres_data_new の権限を修正中 ... OK
サブディレクトリを作成中 ... OK
動的共有メモリの実装を選択中 ... posix
デフォルトの最大接続数を選択中 ... 100
デフォルトの共有バッファを選択中 ... 128MB
デフォルトのタイムゾーンを選択中 ... Etc/UTC
設定ファイルを作成中 ... OK
ブートストラップスクリプトを実行中 ... OK
ブートストラップ後の初期化を実行中 ... OK
データをディスクに同期中 ... OK
成功しました。これでデータベースサーバーを開始できます。
/usr/lib/postgresql/15/bin/pg_ctl -D /shared/postgres_data_new -l logfile start
取得:1 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
取得:2 https://deb.nodesource.com/node_22.x nodistro InRelease [12.1 kB]
取得:3 http://deb.debian.org/debian bookworm-backports InRelease [59.0 kB]
取得:4 http://deb.debian.org/debian bookworm InRelease [151 kB]
取得:5 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
取得:6 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
取得:7 https://dl.yarnpkg.com/debian stable/main amd64 Packages [10.9 kB]
取得:8 https://dl.yarnpkg.com/debian stable/main all Packages [10.9 kB]
取得:9 https://deb.nodesource.com/node_22.x nodistro/main amd64 Packages [5,416 B]
取得:10 http://deb.debian.org/debian bookworm-backports/main amd64 Packages [283 kB]
取得:11 http://deb.debian.org/debian bookworm/main amd64 Packages [8,792 kB]
取得:12 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [13.5 kB]
取得:13 http://deb.debian.org/debian bookworm-security/main amd64 Packages [245 kB]
取得:14 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg InRelease [129 kB]
取得:15 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg/main amd64 Packages [360 kB]
10.2 MB を 24 秒で取得 (417 kB/s)
パッケージリストの読み込み中...
パッケージリストの読み込み中...
依存関係ツリーの構築中...
状態情報の読み込み中...
以下の追加パッケージがインストールされます:
postgresql-client-13
提案パッケージ:
postgresql-doc-13
以下のパッケージが新たにインストールされます:
postgresql-13 postgresql-13-pgvector postgresql-client-13
アップグレードなし、新規インストール 3、削除対象 0、保留 3。
17.3 MB のアーカイブを取得する必要があります。
この操作の後、追加で 56.7 MB のディスク容量が使用されます。
取得:1 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg/main amd64 postgresql-client-13 amd64 13.18-1.pgdg120+1 [1,523 kB]
取得:2 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg/main amd64 postgresql-13 amd64 13.18-1.pgdg120+1 [15.4 MB]
取得:3 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg/main amd64 postgresql-13-pgvector amd64 0.8.0-1.pgdg120+1 [297 kB]
17.3 MB を 1分 12秒で取得 (238 kB/s)
以前に選択されていなかったパッケージ postgresql-client-13 を選択しています。
(データベースを読み込み中 ... 現在 33363 個のファイルとディレクトリがインストールされています。)
.../postgresql-client-13_13.18-1.pgdg120+1_amd64.deb の展開準備中 ...
postgresql-client-13 (13.18-1.pgdg120+1) を展開中...
以前に選択されていなかったパッケージ postgresql-13 を選択しています。
.../postgresql-13_13.18-1.pgdg120+1_amd64.deb の展開準備中 ...
postgresql-13 (13.18-1.pgdg120+1) を展開中...
以前に選択されていなかったパッケージ postgresql-13-pgvector を選択しています。
.../postgresql-13-pgvector_0.8.0-1.pgdg120+1_amd64.deb の展開準備中 ...
postgresql-13-pgvector (0.8.0-1.pgdg120+1) を展開中...
postgresql-client-13 (13.18-1.pgdg120+1) の設定中 ...
postgresql-13 (13.18-1.pgdg120+1) の設定中 ...
新しい PostgreSQL クラスター 13/main を作成中 ...
/usr/lib/postgresql/13/bin/initdb -D /var/lib/postgresql/13/main --auth-local peer --auth-host md5
このデータベースシステムのファイルはユーザー「postgres」が所有します。
このユーザーはサーバープロセスも所有する必要があります。
データベースクラスターはロケール「C.UTF-8」で初期化されます。
デフォルトのデータベースエンコーディングは「UTF8」に設定されました。
デフォルトの全文検索設定は「english」に設定されます。
データページチェックサムは無効になっています。
既存のディレクトリ /var/lib/postgresql/13/main の権限を修正中 ... OK
サブディレクトリを作成中 ... OK
動的共有メモリの実装を選択中 ... posix
デフォルトの最大接続数を選択中 ... 100
デフォルトの共有バッファを選択中 ... 128MB
デフォルトのタイムゾーンを選択中 ... Etc/UTC
設定ファイルを作成中 ... OK
ブートストラップスクリプトを実行中 ... OK
ブートストラップ後の初期化を実行中 ... OK
データをディスクに同期中 ... OK
成功しました。これでデータベースサーバーを開始できます。
pg_ctlcluster 13 main start
invoke-rc.d: 現在のランレベルを判断できませんでした
invoke-rc.d: policy-rc.d が開始の実行を拒否しました。
postgresql-13-pgvector (0.8.0-1.pgdg120+1) の設定中 ...
postgresql-common (267.pgdg120+1) のトリガー処理中...
インストールされている myspell/hunspell パッケージから PostgreSQL 辞書を構築中...
古い辞書ファイルを削除中:
PostgreSQL 13 データベースサーバーを停止中: main.
PostgreSQL 15 データベースサーバーを停止中: main.
整合性チェックを実行中
-----------------------------
クラスターバージョンのチェック中 ok
ソースクラスターはクリーンにシャットダウンされませんでした。
失敗、終了します
-------------------------------------------------------------------------------------
POSTGRES のアップグレードに失敗しました
-------------------------------------------------------------------------------------
サポートについては https://meta.discourse.org/t/postgresql-15-update/349515 をご覧ください。
それまでの間、./launcher start app でアプリを再起動できます。
-------------------------------------------------------------------------------------
失敗しました
--------------------
Pups::ExecError: if [ -f /root/install_postgres ]; then
/root/install_postgres && rm -f /root/install_postgres
elif [ -e /shared/postgres_run/.s.PGSQL.5432 ]; then
socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1
fi
failed with return #<Process::Status: pid 18 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"tag"=>"db", "cmd"=>"if [ -f /root/install_postgres ]; then\n /root/install_postgres && rm -f /root/install_postgres\nelif [ -e /shared/postgres_run/.s.PGSQL.5432 ]; then\n socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres already running stop container ; exit 1\nfi\n"}
bootstrap failed with exit code 1
** BOOTSTRAP に失敗しました ** 上記にスクロールして、以前のエラーメッセージを探してください。複数ある可能性があります。
./discourse-doctor は問題の診断に役立つかもしれません。
82e5245f6cce6139328d093702db6d9cc57686bd1ef10025bdabff6c5f8151fe