更新失败

你好,

我的应用程序重建失败。

Get:15 https://apt.postgresql.org/pub/repos/apt bookworm-pgdg/main amd64 Packages [361 kB]
Fetched 10.2 MB in 3s (3,813 kB/s)
Reading package lists...Reading package lists...Stopping PostgreSQL 15 database server: main.

check for "/usr/lib/postgresql/13/bin" failed: No such file or directory

Failure, exiting
-------------------------------------------------------------------------------------
UPGRADE OF POSTGRES FAILED
-------------------------------------------------------------------------------------

Please visit https://meta.discourse.org/t/postgresql-15-update/349515 for support.

You can run ./launcher start app to restart your app in the meanwhile
-------------------------------------------------------------------------------------


FAILED
--------------------
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

按照提供的链接 https://meta.discourse.org/t/postgresql-15-update/349515 并运行手动更新过程也失败了。进入应用程序并仅运行 apt-get update 会失败,并导致与此问题 Debian install fails on Bookworm in FIPS mode · Issue #1096 · docker/docker-ce-packaging · GitHub 中相同的错误消息。

事实上,我的系统处于 FIPS 模式,并且尝试仅更新 libgcrypt 会导致与上述 GitHub 问题相同的错误消息。

有人有什么建议吗?

谢谢!

-Steve

您的操作系统是否已过支持期?

您使用的是哪个版本的 Docker?

您能使用 ./launcher start appdocker start app 来启动现有容器吗?如果可以,我建议您备份数据,然后启动一个新的虚拟机,安装 Discourse,并恢复该备份。

2 个赞

您能提供完整的日志输出吗?

可能还有我们遗漏的、最终导致此问题的其他故障。

关于您的设置的更多信息也将有所帮助:

  • 主机上运行的是什么操作系统?
  • 您使用的是哪种设置(例如,独立式)?

对此没有异议。第一步应始终是“进行备份”。

例如:

  • 制作 Discourse 备份
  • 关闭容器
  • 将 postgres 数据移开
  • 进行重建
  • 恢复备份

但首先我们需要知道我们正在处理什么。

1 个赞