{"record":{"id":"34e5181c0cdd0a1b","repo":"paperclipai/paperclip","slug":"environment-input-environment-name-is-not-act","errorCode":null,"errorMessage":"Environment \"${input.environment.name}\" is not active.","messagePattern":"Environment \"(.+?)\" is not active\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"server/src/services/environment-runtime.ts","lineNumber":3256,"sourceCode":"): EnvironmentRuntimeDriver {\n  const environmentsSvc = environmentService(db);\n  const pluginRegistry = pluginRegistryService(db);\n\n  async function resolvePluginDriver(config: PluginEnvironmentConfig) {\n    const plugin = await pluginRegistry.getByKey(config.pluginKey);\n    if (!plugin || plugin.status !== \"ready\") {\n      throw new Error(`Plugin environment driver \"${pluginDriverProviderKey(config)}\" is not ready.`);\n    }\n    const driver = plugin.manifestJson.environmentDrivers?.find(\n      (candidate) => candidate.driverKey === config.driverKey,\n    );\n    if (!driver) {\n      throw new Error(`Plugin \"${config.pluginKey}\" does not declare environment driver \"${config.driverKey}\".`);\n    }\n    if (!workerManager.isRunning(plugin.id)) {\n      throw new Error(`Plugin environment driver \"${pluginDriverProviderKey(config)}\" has no running worker.`);\n    }\n    return { plugin };\n  }\n\n  async function resolvePluginDriverForRelease(input: EnvironmentDriverReleaseInput) {\n    const metadata = input.lease.metadata ?? {};\n    const metadataPluginId = readString(metadata.pluginId);\n    const metadataPluginKey = readString(metadata.pluginKey);\n    const metadataDriverKey = readString(metadata.driverKey);\n    const currentConfig = tryParseCurrentPluginConfig(input.environment);\n\n    if (!metadataPluginId && !metadataPluginKey && !metadataDriverKey) {\n      if (!currentConfig) {\n        throw new Error(`Expected plugin environment config for driver \"${input.environment.driver}\".`);\n      }\n      const { plugin } = await resolvePluginDriver(currentConfig);\n      return {\n        plugin,\n        pluginKey: currentConfig.pluginKey,\n        driverKey: currentConfig.driverKey,","sourceCodeStart":3238,"sourceCodeEnd":3274,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/services/environment-runtime.ts#L3238-L3274","documentation":"State guard during lease acquisition (acquireRunLease path): the environment named in the input has a status other than active (e.g. disabled or deleted). Paperclip refuses to acquire run leases against inactive environments, so the operation is rejected before the driver is consulted.","triggerScenarios":"Thrown at server/src/services/environment-runtime.ts:3057 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reactivate the environment before performing this operation."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}