v0.31.5: missing migration for shmSize breaks backup cron jobs and Create Backup (column backups_postgres.shmSize does not exist)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- docker, postgresql, typescript
Hướng nghiên cứu
Đọc các tệp schema được nhắc đến trong issue tại packages/server/src/db/schema/ và so sánh chúng với các migration trong apps/dokploy/drizzle/, đặc biệt là các migration từ 0203 đến 0207. Kiểm tra những bảng nào khai báo shmSize và nhật ký migration có bao gồm migration thêm trường này hay không. Công việc hoàn tất khi các cột cần thiết tồn tại sau khi nâng cấp, đồng thời việc thiết lập cron sao lưu, tab Backups và Create Backup hoạt động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 38.8k
- Fork
- 3.2k
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 110
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Dokploy/dokploy
-
Healthy Swarm task shows an empty `(Error:)` suffix on the last row of the Containers tabCó thể đã có người làm @AyhamJo7 đã nhận 4 ngày trước. Đang mởneeds-triage🔍
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Dokploy/dokploy#6115 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Global search (Cmd/Ctrl+J) never sorts results by relevanceCó thể đã có người làm @hamidzr đã nhận 6 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Dokploy/dokploy#6107 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`utils/dns/ovh.ts`: the zone-listing 403 handler replaces the provider's error instead of chaining itCó thể đã có người làm @SyncWithRaj đã nhận 8 ngày trước. Đang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
Dokploy/dokploy#6075 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
MongoDB with Replica Sets enabled: container exits with code 0 and restarts in a loop (generated startup script never waits on mongod)Có thể đã có người làm @ghazy2001 đã nhận 10 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Dokploy/dokploy#6051 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Dokploy monitoring API returns partial container metrics with HTTP 200 when a row read failsCó thể đã có người làm @PAtreju đã nhận 12 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Dokploy/dokploy#6029 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Dokploy/dokploy
Issue tương tự
-
[Bug]: RUN_STARTED resets the run's tool-call tally even when a subscriber suppresses the eventĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
ag-ui-protocol/ag-ui#3504 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
NousResearch/hermes-agent#161712 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug p3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
rothgar/rabble.radio#283 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug from-app needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
nightly-labs/openbot#19805 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
OHDSI/Data2Evidence#3760 ·
Maintainer thường phản hồi trong vòng 3 ngày