{"record":{"id":"abec03c11ebf31a8","repo":"windmill-labs/windmill","slug":"failed-to-generate-lockfile-message","errorCode":null,"errorMessage":"Failed to generate lockfile: ${message}","messagePattern":"Failed to generate lockfile: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"cli/src/commands/app/app_metadata.ts","lineNumber":819,"sourceCode":"  let completion;\n  try {\n    completion = await pollJobWithQueueLogging(\n      workspace.workspaceId,\n      jobId,\n      { label: `deps ${scriptPath}` },\n    );\n  } catch (e: any) {\n    throw new Error(\n      `Failed to poll dependencies job ${jobId}: ${e?.message ?? e}`\n    );\n  }\n\n  const result = completion.result as any;\n  if (!completion.success) {\n    const message =\n      result?.error?.message ??\n      (typeof result === \"string\" ? result : JSON.stringify(result, null, 2));\n    throw new Error(`Failed to generate lockfile: ${message}`);\n  }\n\n  const lock = result?.lock;\n  if (lock === undefined) {\n    throw new Error(\n      `Failed to generate lockfile: ${JSON.stringify(result, null, 2)}`\n    );\n  }\n  return lock ?? \"\";\n}\n\n/**\n * Result of schema inference for a runnable\n */\nexport interface InferredSchemaResult {\n  runnableId: string;\n  schema: any;\n}","sourceCodeStart":801,"sourceCodeEnd":837,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/cli/src/commands/app/app_metadata.ts#L801-L837","documentation":"Thrown by generateInlineScriptLock in the CLI's app metadata generator after the server-side dependencies job completed but reported failure. The job's result payload (polled via pollJobWithQueueLogging) has success=false, and the message embeds the server's own error text — typically a failing dependency install (unresolvable package, bad pinned version, missing lockfile base) on the worker that ran the 'deps' job for the inline script. The CLI is only relaying: the failure happened in the remote job, not locally.","triggerScenarios":"Thrown at cli/src/commands/app/app_metadata.ts:819 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the embedded server message: for npm/pip dependency errors, fix the inline script's dependency block (requirements/imports) and retry the metadata generation","Run wmill flow/script app sync or the underlying job directly in the UI (Run page for the deps job) to see full worker logs","If the error mentions lockfile generation specifics, verify the script's language/lockfile settings in the app metadata and regenerate"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}