最新のDiscourseにアップグレード時にエラーが発生します

最新のDiscourseにアップグレードする際にエラーが発生しました。

Get:13 https://dl.yarnpkg.com/debian stable/main all Packages [10.9 kB]
Get:14 https://deb.nodesource.com/node_18.x nodistro/main amd64 Packages [8,669 B]
Err:15 http://apt.postgresql.org/pub/repos/apt -pgdg Release
  404  Not Found [IP: 147.75.85.69 80]
Get:16 https://dl.yarnpkg.com/debian stable/main amd64 Packages [10.9 kB]
Get:17 http://apt.postgresql.org/pub/repos/apt bullseye-pgdg/main amd64 Packages [318 kB]
Reading package lists...

I, [2024-05-19T08:52:40.856728 #1]  INFO -- : Terminating async processes
I, [2024-05-19T08:52:40.856789 #1]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/13/bin/postmaster -D /etc/postgresql/13/main pid: 34
I, [2024-05-19T08:52:40.856844 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 96
96:signal-handler (1716108760) Received SIGTERM scheduling shutdown...
2024-05-19 08:52:40.862 UTC [34] LOG:  received fast shutdown request
2024-05-19 08:52:40.865 UTC [34] LOG:  aborting any active transactions
2024-05-19 08:52:40.875 UTC [34] LOG:  background worker "logical replication launcher" (PID 49) exited with exit code 1
2024-05-19 08:52:40.879 UTC [44] LOG:  shutting down
96:M 19 May 2024 08:52:40.909 # User requested shutdown...
96:M 19 May 2024 08:52:40.909 * Saving the final RDB snapshot before exiting.
2024-05-19 08:52:40.957 UTC [34] LOG:  database system is shut down
96:M 19 May 2024 08:52:40.988 * DB saved on disk
96:M 19 May 2024 08:52:40.988 # Redis is now ready to exit, bye bye...


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && apt-get update failed with return #<Process::Status: pid 500 exit 100>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "cmd"=>["apt-get update"]}
bootstrap failed with exit code 100
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
369a74ec6c3081026b2553dacc13d62c6d27881d8b5797fbec26c4d257afdc70

file.yml を再度編集しました。

@merefield さんがこれを削除するためにプラグインを編集したと思います。

# Config GPT
#    - exec:
#        cd: $home
#        cmd:
#          - sudo apt-get install wget ca-certificates
#    - exec:
#        cd: $home
#        cmd:
#          - wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
#    - exec:
#        cd: $home
#        cmd:
#          - sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /et'
#    - exec:
#        cd: $home
#        cmd:
#          - apt-get update
#    - exec:
#        cd: $home
#        cmd:
#          - apt-get -y install -y postgresql-server-dev-${PG_MAJOR}
#    - exec:
#        cd: $home/tmp
#        cmd:
#          - git clone https://github.com/neondatabase/pg_embedding.git
#    - exec:
#        cd: $home/tmp/pg_embedding
#        cmd:
#          - make PG_CONFIG=/usr/lib/postgresql/${PG_MAJOR}/bin/pg_config
#    - exec:
#        cd: $home/tmp/pg_embedding
#        cmd:
#          - make PG_CONFIG=/usr/lib/postgresql/${PG_MAJOR}/bin/pg_config install
#    - exec:
#        cd: $home
#        cmd:
#          - su postgres -c 'psql discourse -c "create extension if not exists embedding;"'
#    - exec:
#        cd: $home
#        cmd:
#          - su postgres -c 'psql discourse -c "DROP INDEX IF EXISTS hnsw_index_on_chatbot_post_embeddings;"'
#    - exec:
#        cd: $home
#        cmd:
#          - su postgres -c 'psql discourse -c "DROP EXTENSION IF EXISTS embedding;"'
#    - exec:
#        cd: $home
#        cmd:
#          - su postgres -c 'psql discourse -c "ALTER EXTENSION vector UPDATE;"'
# End config GPT

しかし、古いインデックスはまだ生きているか確信がありません。

申し訳ありませんが、数ヶ月前に行われた変更に対して無期限に無料サポートを提供することはできません。

これらの行は長い間不要になっていました。

このテクノロジーは非常に最先端で急速に変化していたため、無料で提供しながら変更を壊すことなく提供することは非現実的でした。

この変更に関する問題を解決するために、いくつかのユーザーを個人的に無料で支援しました。しかし、もはやそれを行うための時間やリソースを無料で独自に持つことはできません。

この変更は当時明確に伝えられました。残念ながら、CDCKの丁寧な要請により、トピックからのコミュニケーションは毎月クリアされています。

より深く調査する必要がある場合は、契約で対応できます。

「いいね!」 1

最初の投稿にも情報を追加しましたか?そうすれば、これらの指示のように編集履歴でまだ見つけることができます。

「いいね!」 2