Dokploy/dokploy · warning
Automatic deployments are disabled for this application
Error message
Automatic deployments are disabled for this application
What it means
Same deploy webhook handler: the application was found by refresh token, but its autoDeploy flag is false, so the endpoint refuses with 400 'Automatic deployments are disabled for this application'.
Source
Thrown at apps/dokploy/pages/api/deploy/[refreshToken].ts:62
}
const application = await db.query.applications.findFirst({
where: eq(applications.refreshToken, refreshToken as string),
with: {
environment: {
with: {
project: true,
},
},
bitbucket: true,
},
});
if (!application) {
res.status(404).json({ message: "Application Not Found" });
return;
}
if (!application?.autoDeploy) {
res.status(400).json({
message: "Automatic deployments are disabled for this application",
});
return;
}
const deploymentTitle = extractCommitMessage(req.headers, req.body);
const deploymentHash = extractHash(req.headers, req.body);
const sourceType = application.sourceType;
if (sourceType === "docker") {
const applicationImageName = extractImageName(application.dockerImage);
const applicationDockerTag = extractImageTag(application.dockerImage);
const webhookImageName = extractImageNameFromRequest(
req.headers,
req.body,
);View on GitHub (pinned to 546686ea35)
Solutions
- Enable 'Automatic Deploy' in the application's deployment settings
- Or remove/disable the external webhook if manual deploys are intended
- Re-verify with a test payload after enabling
Defensive patterns
Strategy: validation
Validate before calling
const app = await db.query.application.findFirst({ where: eq(application.refreshToken, token) });
if (!app?.autoDeploy) throw new Error('Enable auto-deploy first'); Try / catch
if (res.status === 400 && body.message.includes('disabled')) { await enableAutoDeploy(appId); retry(); } Prevention
- Check the autoDeploy toggle before wiring external CI
- Include the flag in deployment checklists
When it happens
Trigger: Calling the deploy webhook while the application's 'Automatic Deploy' toggle is off in Dokploy settings.
Common situations: Someone disabled auto-deploy temporarily and forgot to re-enable; the app was recreated with autoDeploy defaulting to false; external CI still firing on every push.
Related errors
- Automatic deployments are disabled for this compose
- Error deploying Application
- Error deploying Compose
- BAD_REQUEST
- INTERNAL_SERVER_ERROR
AI-assisted analysis of Dokploy/dokploy@546686ea35 (2026-08-27).
Data as JSON: /api/errors/5acbc117ee668808.
Report an issue: GitHub.