ioanah
(ioanah)
1
大家好,
我们的 Discourse 论坛已经宕机超过 24 小时。
我试图将 Discourse 更新到最新版本,但重建似乎卡在了以下消息:
数据库系统已准备好接受连接
我尝试应用此帖子中的解决方案,但在运行 apt install ``docker.io 时,它会因以下错误而失败:
以下软件包有未满足的依赖关系:
containerd.io:冲突:containerd
E:错误,pkgProblemResolver::Resolve 生成了中断,这可能是由已保留的软件包引起的。
非常感谢任何帮助!
ioanah
(ioanah)
2
日志:
警告:Docker 版本 20.10.7 已弃用,建议升级到 24.0.7 或更高版本。
检测到 x86_64 架构。
正在确保启动器是最新的
正在获取 origin
启动器是最新的
2.0.20251003-1437:正在从 discourse/base 拉取
摘要:sha256:0db7c9b4598e2a1806658391669d791fd779aa4301fdfbed6a7f322bf64e66ab
状态:镜像已更新为 discourse/base:2.0.20251003-1437
docker.io/discourse/base:2.0.20251003-1437
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.3.0/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2025-10-29T21:17:42.016158 #1] INFO -- : 从标准输入读取
I, [2025-10-29T21:17:42.033764 #1] INFO -- : 文件 > /etc/service/postgres/run chmod: +x chown:
I, [2025-10-29T21:17:42.040454 #1] INFO -- : 文件 > /etc/service/postgres/log/run chmod: +x chown:
I, [2025-10-29T21:17:42.047119 #1] INFO -- : 文件 > /etc/runit/3.d/99-postgres chmod: +x chown:
I, [2025-10-29T21:17:42.053406 #1] INFO -- : 文件 > /root/install_postgres chmod: +x chown:
I, [2025-10-29T21:17:42.060253 #1] INFO -- : 文件 > /root/upgrade_postgres chmod: +x chown:
I, [2025-10-29T21:17:42.060804 #1] INFO -- : 在 /etc/postgresql/15/main/postgresql.conf 中替换 data_directory = '/var/lib/postgresql/15/main' 为 data_directory = '/shared/postgres_data'
I, [2025-10-29T21:17:42.062792 #1] INFO -- : 在 /etc/postgresql/15/main/postgresql.conf 中替换 (?-mix:#?listen_addresses *=.*) 为 listen_addresses = '*'
I, [2025-10-29T21:17:42.064051 #1] INFO -- : 在 /etc/postgresql/15/main/postgresql.conf 中替换 (?-mix:#?synchronous_commit *=.*) 为 synchronous_commit = $db_synchronous_commit
I, [2025-10-29T21:17:42.069245 #1] INFO -- : 在 /etc/postgresql/15/main/postgresql.conf 中替换 (?-mix:#?shared_buffers *=.*) 为 shared_buffers = $db_shared_buffers
I, [2025-10-29T21:17:42.070261 #1] INFO -- : 在 /etc/postgresql/15/main/postgresql.conf 中替换 (?-mix:#?work_mem *=.*) 为 work_mem = $db_work_mem
I, [2025-10-29T21:17:42.071276 #1] INFO -- : 在 /etc/postgresql/15/main/postgresql.conf 中替换 (?-mix:#?default_text_search_config *=.*) 为 default_text_search_config = '$db_default_text_search_config'
I, [2025-10-29T21:17:42.071873 #1] INFO -- : 在 /etc/postgresql/15/main/postgresql.conf 中替换 (?-mix:#?checkpoint_segments *=.*) 为 checkpoint_segments = $db_checkpoint_segments
I, [2025-10-29T21:17:42.072598 #1] INFO -- : 在 /etc/postgresql/15/main/postgresql.conf 中替换 (?-mix:#?logging_collector *=.*) 为 logging_collector = $db_logging_collector
I, [2025-10-29T21:17:42.073127 #1] INFO -- : 在 /etc/postgresql/15/main/postgresql.conf 中替换 (?-mix:#?log_min_duration_statement *=.*) 为 log_min_duration_statement = $db_log_min_duration_statement
I, [2025-10-29T21:17:42.073774 #1] INFO -- : 在 /etc/postgresql/15/main/pg_hba.conf 中替换 (?-mix:^#local +replication +postgres +peer$) 为 local replication postgres peer
I, [2025-10-29T21:17:42.074315 #1] INFO -- : 在 /etc/postgresql/15/main/pg_hba.conf 中替换 (?-mix:^host.*all.*all.*127.*$) 为 host all all 0.0.0.0/0 md5
I, [2025-10-29T21:17:42.074841 #1] INFO -- : 在 /etc/postgresql/15/main/pg_hba.conf 中替换 (?-mix:^host.*all.*all.*::1\\/128.*$) 为 host all all ::/0 md5
I, [2025-10-29T21:17:42.075291 #1] INFO -- : > 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
设置区域设置失败!
[error] 找不到字符映射文件 `UTF-8':没有此类文件或目录
设置区域设置失败!
[error] 找不到默认字符映射文件 `ANSI_X3.4-1968':没有此类文件或目录
perl: 警告:设置区域设置失败。
perl: 警告:请检查您的区域设置:
LANGUAGE = "en_US.UTF-8",
LC_ALL = "en_US.UTF-8",
LANG = "en_US.UTF-8"
是否在您的系统上受支持并已安装。
perl: 警告:回退到标准区域设置("C")。
/bin/bash: 警告:setlocale: LC_ALL: 无法更改区域设置 (en_US.UTF-8)
I, [2025-10-29T21:17:43.405389 #1] INFO -- : 正在生成区域设置(这可能需要一些时间)。..
en_US.UTF-8... 完成
生成完成。
I, [2025-10-29T21:17:43.405986 #1] INFO -- : > HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/15/bin/postmaster -D /etc/postgresql/15/main
I, [2025-10-29T21:17:43.409259 #1] INFO -- : 正在终止异步进程
2025-10-29 21:17:43.688 UTC [44] LOG: 正在启动 PostgreSQL 15.14 (Debian 15.14-1.pgdg12+1) 在 x86_64-pc-linux-gnu 上,由 gcc (Debian 12.2.0-14+deb12u1) 12.2.0 编译,64 位
2025-10-29 21:17:43.689 UTC [44] LOG: 正在监听 IPv4 地址 "0.0.0.0",端口 5432
2025-10-29 21:17:43.689 UTC [44] LOG: 正在监听 IPv6 地址 "::",端口 5432
2025-10-29 21:17:43.915 UTC [44] LOG: 正在监听 Unix 套接字 "/var/run/postgresql/.s.PGSQL.5432"
2025-10-29 21:17:44.115 UTC [47] LOG: 数据库系统在 2025-10-29 20:31:48 UTC 中断;上次已知时间为 2025-10-29 20:31:48 UTC
2025-10-29 21:17:44.454 UTC [47] LOG: 数据库系统未正确关闭;正在进行自动恢复
2025-10-29 21:17:44.616 UTC [47] LOG: redo 从 150/A40074A0 开始
2025-10-29 21:17:44.616 UTC [47] LOG: 记录长度无效,在 150/A40074D8:需要 24,得到 0
2025-10-29 21:17:44.616 UTC [47] LOG: redo 在 150/A40074A0 完成 系统使用情况:CPU:用户:0.00 秒,系统:0.00 秒,已用:0.00 秒
2025-10-29 21:17:44.742 UTC [45] LOG: 检查点开始:恢复结束立即等待
2025-10-29 21:17:45.453 UTC [45] LOG: 检查点完成:写入 2 个缓冲区 (0.0%);添加 0 个 WAL 文件,删除 0 个,回收 0 个;写入=0.207 秒,同步=0.254 秒,总计=0.722 秒;同步文件=3,最长=0.177 秒,平均=0.085 秒;距离=0 kB,估计=0 kB
2025-10-29 21:17:45.490 UTC [44] LOG: 数据库系统已准备好接受连接
pfaffman
(Jay Pfaffman)
3
您需要升级 Docker。为了升级 Docker,您可能还需要升级您的操作系统。
1 个赞