{"record":{"id":"1a568677c65c6a13","repo":"cline/cline","slug":"an-incompatible-cline-hub-is-still-running-at-ex","errorCode":null,"errorMessage":"An incompatible Cline Hub is still running at ${expectedUrl} and could not be retired automatically. Run 'cline doctor fix' to stop stale hub daemons before starting a new hub.","messagePattern":"An incompatible Cline Hub is still running at (.+?) and could not be retired automatically\\. Run 'cline doctor fix' to stop stale hub daemons before starting a new hub\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"sdk/packages/core/src/hub/daemon/index.ts","lineNumber":667,"sourceCode":"\t\t\t);\n\t\t\tif (\n\t\t\t\tnextOutcome === \"deferred_busy\" &&\n\t\t\t\tnextDiscovery?.authToken &&\n\t\t\t\t(await verifyHubConnection(nextExpected.url, {\n\t\t\t\t\tauthToken: nextDiscovery.authToken,\n\t\t\t\t}))\n\t\t\t) {\n\t\t\t\treturn rememberIfManaged({\n\t\t\t\t\turl: nextExpected.url,\n\t\t\t\t\tauthToken: nextDiscovery.authToken,\n\t\t\t\t});\n\t\t\t}\n\t\t\tif (\n\t\t\t\tnextOutcome === \"failed\" &&\n\t\t\t\tendpointOverrides.allowPortFallback !== true &&\n\t\t\t\tendpoint.port !== 0\n\t\t\t) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t`An incompatible Cline Hub is still running at ${expectedUrl} and could not be retired automatically. Run 'cline doctor fix' to stop stale hub daemons before starting a new hub.`,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t\tawait new Promise((resolve) => setTimeout(resolve, HUB_STARTUP_POLL_MS));\n\t}\n\tthrow new Error(\"Timed out waiting for detached hub startup.\");\n}\n\nexport async function ensureDetachedHubServer(\n\tworkspaceRoot: string,\n\tendpointOverrides: HubEndpointOverrides & {\n\t\tallowPortFallback?: boolean;\n\t} = {},\n): Promise<DetachedHubResolution> {\n\tconst owner = resolveDefaultHubOwnerContext();\n\treturn await withHubStartupLock(owner.discoveryPath, async () =>\n\t\tensureDetachedHubServerLocked(owner, workspaceRoot, endpointOverrides),","sourceCodeStart":649,"sourceCodeEnd":685,"githubUrl":"https://github.com/cline/cline/blob/491b30b806fdb8c93513f821f2b87d63a61542f5/sdk/packages/core/src/hub/daemon/index.ts#L649-L685","documentation":"Error \"An incompatible Cline Hub is still running at ${expectedUrl} and could not be retired automatically. Run 'cline doctor fix' to stop stale hub daemons before starting a new hub.\" thrown in cline/cline.","triggerScenarios":"Thrown at sdk/packages/core/src/hub/daemon/index.ts:667 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"491b30b806fdb8c93513f821f2b87d63a61542f5","analyzedAt":"2026-08-25T13:45:22.367Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}