英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论