windmill-labs/windmill · error
Failed to upload scripts to temp storage (backend may be too
Error message
Failed to upload scripts to temp storage (backend may be too old): ${e}. Locks will be generated using deployed script versions only — locally modified relative imports may not be reflected. What it means
Error "Failed to upload scripts to temp storage (backend may be too old): ${e}. Locks will be generated using deployed script versions only — locally modified relative imports may not be reflected." thrown in windmill-labs/windmill.
Source
Thrown at cli/src/commands/sync/sync.ts:5072
true,
true,
tree,
);
if (!autoRegenerate && stale) {
staleApps.push(stale as string);
}
}
if (autoRegenerate && tree) {
// Propagate staleness through imports + upload script content to
// raw_script_temp so the dep job can resolve cross-folder relative imports
// via temp_script_refs (instead of hitting 404s for not-yet-deployed
// scripts and recording lock_error_logs).
tree.propagateStaleness();
try {
await uploadScripts(tree, workspace);
} catch (e) {
log.warn(
colors.yellow(
`Failed to upload scripts to temp storage (backend may be too old): ${e}. ` +
`Locks will be generated using deployed script versions only — locally modified ` +
`relative imports may not be reflected.`,
),
);
}
// Pass 2: actually generate metadata/locks. Threading `tree` makes
// generateScriptMetadataInternal include temp_script_refs in the
// dependencies_async request so the dep job resolves relative imports
// against raw_script_temp.
for (const change of tracker.scripts) {
const generated = await generateScriptMetadataInternal(
change,
workspace,
opts,
false,View on GitHub (pinned to e474e8803c)
Solutions
- Upgrade the backend so it supports raw_script_temp uploads
- Deploy the imported scripts first, then push the lock regeneration
- Accept the degraded locks and re-run generate-metadata after the referenced scripts are deployed
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at cli/src/commands/sync/sync.ts:5072 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of windmill-labs/windmill@e474e8803c (2026-09-03).
Data as JSON: /api/errors/336e0b6db326d885.
Report an issue: GitHub.