sub2api icon indicating copy to clipboard operation
sub2api copied to clipboard

升级153失败疑似数据库问题,求解答

Open xiehs211 opened this issue 4 months ago • 0 comments

背景

刚从152升级153失败,主程序docker一直重启,站点无法访问

docker compose -f docker-compose.local.yml logs

最新行已脱敏如下

postgres  | 2026-07-13 21:28:42.202 CST [63] ERROR:  invalid page in block 4227 of relation "base/16384/16617"
postgres  | 2026-07-13 21:28:42.202 CST [63] STATEMENT:  -- Support the per-key latest non-empty source IP lookup without scanning full key history.
postgres  |     CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_mytable_col_latest_ip
postgres  |         ON mytable (col_a, created_at DESC, id DESC)
postgres  |         INCLUDE (ip_address)
postgres  |         WHERE ip_address IS NOT NULL AND ip_address <> ''
postgres  | 2026-07-13 21:28:42.202 CST [64] FATAL:  terminating background worker "parallel worker" due to administrator command
postgres  | 2026-07-13 21:28:42.204 CST [1] LOG:  background worker "parallel worker" (PID 64) exited with exit code 1

暂时回退152

docker compose -f docker-compose.local.yml down

暂停后,我修改了local.yml的版本latest修改为0.1.152

重新拉取镜像,然后启动了

docker compose -f docker-compose.local.yml pull
docker compose -f docker-compose.local.yml up -d

原因

不知道,是不是我前面提到的数据库已错乱的问题#4007?求大佬解答,一直没有二次开发过,都是后台在线升级,重启一直没问题,目前152也可以,估计升级153还是无法启动。

xiehs211 avatar Jul 13 '26 13:07 xiehs211