v0.31.5: missing migration for shmSize breaks backup cron jobs and Create Backup (column backups_postgres.shmSize does not exist)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 68/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- docker, postgresql, typescript
调研方向
阅读 issue 中提到的 packages/server/src/db/schema/ 下的 schema 文件,并将它们与 apps/dokploy/drizzle/ 中的迁移进行比较,尤其是 0203 到 0207 这些迁移。检查哪些表声明了 shmSize,以及迁移日志中是否包含添加它的迁移。升级后所需列存在,并且备份 cron 设置、Backups 标签页和 Create Backup 均可正常工作,即为完成。
由索引模型根据 Issue 内容生成。
描述
To Reproduce
- Run Dokploy v0.31.4 with at least one scheduled database backup (we have several Postgres backups on Docker Compose services).
- Upgrade to v0.31.5 from the UI ("Update" button). The migrations run and the log prints
Migration complete. - Watch the container log at startup: after
Setting up cron jobs....it printsMain Server Error Error: Failed query: select "backups"."backupId", ...with the causecolumn backups_postgres.shmSize does not exist. - Open a Docker Compose service, go to Backups and click Create Backup for a Postgres service.
Current vs. Expected behavior
Current
- Startup cron setup fails, so no database backup is scheduled after the upgrade (the nightly backups silently stop).
- The Backups tab cannot load its list (same query, same error).
- Create Backup shows "Error creating a backup", but the row is inserted before the failing read-back. Clicking it four times created four enabled duplicate backup jobs that could not be seen or deleted from the UI.
[cause]: Error [PostgresError]: column backups_postgres.shmSize does not exist
routine: 'errorMissingColumn'
Expected: v0.31.5 ships a migration for every column its schema queries.
Cause, as far as I can tell: git diff v0.31.4 v0.31.5 adds shmSize: text("shmSize") to packages/server/src/db/schema/{application,postgres,mysql,mariadb,mongo,redis}.ts, but none of the migrations added in that range (0203_cooing_prodigy to 0207_sensitive_action_verification) creates the column, and no SQL file under apps/dokploy/drizzle/ at v0.31.5 mentions shmSize. The v0.31.5 image's _journal.json ends at 0207, and after the upgrade the database has all 208 migrations but no shmSize column on any table.
Provide environment information
Operating System:
OS: Ubuntu 24.04.2 LTS
Arch: x86_64
Dokploy version: v0.31.5 (upgraded from v0.31.4 via the UI on 2026-11-30)
Docker: 28.3.3
Dokploy database: postgres:16
VPS Provider: self-hosted VPS
What applications/services are you tying to deploy?
Docker Compose stacks with Postgres services, backed up with scheduled database backups to an S3-compatible (MinIO) destination.
Which area(s) are affected? (Select all that apply)
Databases, Docker Compose, Remote server
Are you deploying the applications where Dokploy is installed or on a remote server?
Both
Additional context
- Workaround that worked for us: roll the service back to the previous image with
docker service update --image dokploy/dokploy:v0.31.4 dokploy. v0.31.4 ignores the columns added by migrations 0203 to 0207, cron jobs schedule again, and the Backups tab and Create Backup work. - Any duplicate backup rows created while on v0.31.5 have to be removed in the Dokploy database, and Dokploy restarted, because the scheduler keeps the jobs it loaded at startup in memory.
- A likely fix is a migration such as
ALTER TABLE "<table>" ADD COLUMN "shmSize" text;for the six tables above. With that fix, instances that roll back to v0.31.4 and later upgrade again will pick it up normally.
Will you send a PR to fix it?
No
- 主要语言
- TypeScript
- 星标
- 38.8k
- 派生
- 3.2k
- 平均合并
- 1 天 10 小时
- 30 天内合并 PR
- 110
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Dokploy/dokploy 的其他 Issue
-
Healthy Swarm task shows an empty `(Error:)` suffix on the last row of the Containers tab可能已有人在做 @AyhamJo7 于 4 天前认领。 未关闭needs-triage🔍
难度 2/5 1-3 小时 新手友好度 85/100
Dokploy/dokploy#6115 · 1 条评论 ·
维护者通常 1 天内回复
-
Global search (Cmd/Ctrl+J) never sorts results by relevance可能已有人在做 @hamidzr 于 6 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 74/100
Dokploy/dokploy#6107 · 1 条评论 ·
维护者通常 1 天内回复
-
`utils/dns/ovh.ts`: the zone-listing 403 handler replaces the provider's error instead of chaining it可能已有人在做 @SyncWithRaj 于 8 天前认领。 未关闭bug
难度 1/5 1 小时以内 新手友好度 84/100
Dokploy/dokploy#6075 · 1 条评论 ·
维护者通常 1 天内回复
-
MongoDB with Replica Sets enabled: container exits with code 0 and restarts in a loop (generated startup script never waits on mongod)可能已有人在做 @ghazy2001 于 10 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
Dokploy/dokploy#6051 · 2 条评论 ·
维护者通常 1 天内回复
-
Dokploy monitoring API returns partial container metrics with HTTP 200 when a row read fails可能已有人在做 @PAtreju 于 12 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 88/100
Dokploy/dokploy#6029 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 83/100
ag-ui-protocol/ag-ui#3504 ·
维护者通常 1 天内回复
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
难度 2/5 1-3 小时 新手友好度 75/100
NousResearch/hermes-agent#161712 ·
维护者通常 1 天内回复
-
bug p3
难度 2/5 1-3 小时 新手友好度 78/100
rothgar/rabble.radio#283 ·
维护者通常 1 天内回复
-
bug from-app needs-triage
难度 2/5 1-3 小时 新手友好度 62/100
nightly-labs/openbot#19805 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 64/100
OHDSI/Data2Evidence#3760 ·
维护者通常 3 天内回复