Citus升级失败

huangapple go评论45阅读模式
英文:

Citus upgrade failed

问题

我在 Kubernetes 中运行 Citus,并尝试将版本从 10.2 升级到 11.2,底层的 PostgreSQL 版本是 14。

升级使用的镜像为:citusdata/citus:11.2-pg14

升级后,使用镜像 citus:11.2-pg14,Pod 进入 crashloopbackoff 状态,并显示以下错误:

ERROR: loaded Citus library version differs from installed extension version
Loaded library requires 11.2, but the installed extension version is 10.2-4
HINT: Run ALTER EXTENSION citus UPDATE and try again.

由于 Pod 处于崩溃状态,无法执行 ALTER EXTENSION citus UPDATE。请有人帮忙解决吗?

英文:

I am running citus in kubernetes and trying to do an upgrade from 10.2 to 11.2, the underneath postgres version is 14.

Image used in deployment for upgrade: citusdata/citus:11.2-pg14

After performing the upgrade with image citus:11.2-pg14 , pod goes in to crashloopbackoff state with following error:

ERROR: loaded Citus library version differs from installed extension version
Loaded library requires 11.2, but the installed extension version is 10.2-4
HINT: Run ALTER EXTENSION citus UPDATE and try again.

I cannot execute the ALTER EXTENSION citus UPDATE as the pod is in crahsed state.

Can someone help me out here?

答案1

得分: 0

一般来说,Citus 不提供用于生产环境的 Docker 镜像,他们在文档中有以下引用:“Docker 镜像仅用于开发/测试目的,并未为生产环境做准备。”

所以,这可能是为什么升级不是解决方案的一部分的原因。

不过,一个解决方法可能是执行 SET citus.enable_version_checks TO off;,然后尝试使用 alter extension 命令。

英文:

I think in general Citus does not provide docker images for production use, they have the following quote in the docs The Docker image is intended for development/testing purposes only, and has not been prepared for production use.

So, that's probably why upgrades are not part of the story.

Still, one workaround might be to do SET citus.enable_version_checks TO off; and try the alter extension command

huangapple
  • 本文由 发表于 2023年5月30日 04:08:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/76360082.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定