Description
When deploying a compose project via API or webhook, the deployment fails with a database error.
Error
Failed query: select "patchId", "type", "filePath", "enabled", "content", "createdAt", "updatedAt", "applicationId", "composeId" from "patch" "patch" where "patch"."composeId" = $1 order by "patch"."filePath" asc
params: jNp_z5Yt5ugtj0Jjq9k_v
Error occurred ❌, check the logs for details.
Steps to Reproduce
- Create a compose project with GitHub source
- Trigger deploy via API (
POST /api/compose.deploy) or webhook
- Deploy fails after cloning repo successfully
Expected Behavior
Deploy should complete successfully after cloning.
Environment
- Dokploy version: Latest (installed via official script ~March 4, 2026)
- Docker Swarm mode
- Compose project with GitHub source type
Logs
The error appears in Dokploy container logs:
Cloning Repo github.com/xxx/xxx.git to /etc/dokploy/compose/xxx/code: ✅
Failed query: select ... from "patch" where "patch"."composeId" = $1
Error occurred ❌, check the logs for details.
Workaround
Running docker compose up -d manually in the code directory works fine.
Description
When deploying a compose project via API or webhook, the deployment fails with a database error.
Error
Steps to Reproduce
POST /api/compose.deploy) or webhookExpected Behavior
Deploy should complete successfully after cloning.
Environment
Logs
The error appears in Dokploy container logs:
Workaround
Running
docker compose up -dmanually in the code directory works fine.