PostgreSQL 10 到 PostgreSQL 13 的更新失败

再次您好,

遵循 @noezDE 的建议(非常感谢!):https://meta.discourse.org/t/update-failed-postgresql/153713/8,我们已能够从该状况中恢复。

现在,网站已重新运行,我们将再次尝试升级。

此致,
Andreas.


恢复步骤

首先,通过执行以下命令取得进展:

chown -R postgres /shared/postgres_data
sv restart postgres

随后,日志显示:

2021-10-13 18:52:12.437 UTC [3357] FATAL: 无法创建锁文件 "/var/run/postgresql/.s.PGSQL.5432.lock":权限被拒绝

因此,我们彻底执行了以下操作:

chown -R postgres:postgres /shared/postgres_*
sv restart postgres

搞定。

5 个赞