重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛
标题: PG物理复制:主库归档失败,报错找不到路径 [打印本页]
作者: ZhangQi 时间: 2026-4-5 11:18
标题: PG物理复制:主库归档失败,报错找不到路径
1. 现象描述
在搭建 PostgreSQL 15 物理备库环境后,主备流复制虽然显示已连接,但主、备库日志中持续出现报错:
主库 (Primary) 日志:
LOG: archive command failed with exit code 1
DETAIL: The failed archive command was: cp pg_wal/000000010... /pg18/archive/000000010...
cp: cannot create regular file ‘/pg18/archive/...’: No such file or directory
WARNING: archiving write-ahead log file "..." failed too many times, will try again later