{"record":{"id":"b54586d62a724c4e","repo":"musistudio/claude-code-router","slug":"choose-a-different-export-path-internal-ccr-data","errorCode":null,"errorMessage":"Choose a different export path. Internal CCR data files cannot be overwritten.","messagePattern":"Choose a different export path\\. Internal CCR data files cannot be overwritten\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/core/src/web/management-server.ts","lineNumber":885,"sourceCode":"    ...sqliteDataFiles(REQUEST_LOGS_DB_FILE),\n    ...sqliteDataFiles(USAGE_DB_FILE)\n  ]);\n}\n\nfunction sqliteDataFiles(file: string): string[] {\n  return [file, `${file}-wal`, `${file}-shm`];\n}\n\nfunction assertExportTargetIsNotInternalDataFile(file: string): void {\n  const target = path.resolve(file);\n  const reserved = new Set([\n    LEGACY_ACTIVE_CONFIG_FILE,\n    LEGACY_WINDOWS_CONFIG_FILE,\n    LEGACY_CONFIG_FILE,\n    ...dataExportCandidateFiles()\n  ].map((item) => path.resolve(item)));\n  if (reserved.has(target)) {\n    throw new Error(\"Choose a different export path. Internal CCR data files cannot be overwritten.\");\n  }\n}\n\nfunction inspectPluginDirectory(directory: string): PluginDirectorySelection {\n  const manifest = readFirstJson([\n    path.join(directory, \"plugin.json\"),\n    path.join(directory, \"ccr-plugin.json\"),\n    path.join(directory, \".ccr-plugin\", \"plugin.json\"),\n    path.join(directory, \".codex-plugin\", \"plugin.json\")\n  ]);\n  const packageJsonManifest = readFirstJson([path.join(directory, \"package.json\")]);\n  const moduleValue =\n    readString(manifest?.module) ||\n    readString(manifest?.main) ||\n    readString(manifest?.path) ||\n    readString(readRecord(packageJsonManifest?.ccr)?.module) ||\n    readString(readRecord(packageJsonManifest?.ccrPlugin)?.module) ||\n    readString(packageJsonManifest?.main);","sourceCodeStart":867,"sourceCodeEnd":903,"githubUrl":"https://github.com/musistudio/claude-code-router/blob/99f24806c6a2c660b16e53e95211c517448a6c90/packages/core/src/web/management-server.ts#L867-L903","documentation":"Error \"Choose a different export path. Internal CCR data files cannot be overwritten.\" thrown in musistudio/claude-code-router.","triggerScenarios":"Thrown at packages/core/src/web/management-server.ts:885 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":"99f24806c6a2c660b16e53e95211c517448a6c90","analyzedAt":"2026-08-27T04:11:01.184Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}