MemRelay-Operation: curated-update:bb1539bd-c7f2-4d57-9257-8e4b2b4672cb:2 MemRelay-Resource: bb1539bd-c7f2-4d57-9257-8e4b2b4672cb
2.9 KiB
2.9 KiB
title, type, permalink, stable_id, scope, project_id, workspace_type, usage_profile_id, preference_context, document_type, revision, source_memory_ids, source_checkpoint_ids, source_file_ids, source_git_commit, source_git_commits, source_agent_sync_ids, model_connection, model_name, source_count, source_revisions, source_dispositions, cited_source_ids, job_cited_source_ids, conflicts, supersedes, preferences, source_cursor, source_hash, prompt_version, schema_version, curation_job_id, created_at, updated_at, tags, restored_from_commit
| title | type | permalink | stable_id | scope | project_id | workspace_type | usage_profile_id | preference_context | document_type | revision | source_memory_ids | source_checkpoint_ids | source_file_ids | source_git_commit | source_git_commits | source_agent_sync_ids | model_connection | model_name | source_count | source_revisions | source_dispositions | cited_source_ids | job_cited_source_ids | conflicts | supersedes | preferences | source_cursor | source_hash | prompt_version | schema_version | curation_job_id | created_at | updated_at | tags | restored_from_commit | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Metrix 已核实的排障知识 | curated | main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/development/metrix-已核实的排障知识 | 1e1b9a7e-5897-4c82-b267-279a8c54b150 | project | d5a7f581-c442-4554-87b9-ee723b8b0258 | development | null | development | troubleshooting | 2 | e660bc7bb4fc5ccda47decb4d514874a148ed9b2 |
|
Sub2API | manual | 29 |
|
162 | e2fcea7c8a9e0df7a91925fb2a9beabd922058868310effc908f95df2d78b218 | 2026-08-12.3 | 3 | null | 2026-09-23T15:09:34.494392+00:00 | 2026-10-08T07:05:05.562106+00:00 |
|
6a6a895eaf |
Metrix 排障知识(代码核对版)
- .venv/Scripts/python.exe存在但不能启动:检查pyvenv.cfg中的基解释器路径;本机旧环境指向已删除的uv Python3.14.3,需用可用Python重新建环境并安装requirements。不能只检查文件存在。
- Git dubious ownership:当前目录所有者SYSTEM,命令可用-c safe.directory=<该仓绝对路径>;子模块各自指定。不必修改全局信任列表。
- Windows PowerShell复杂JSON:先写PI scratch内UTF8文件再用curl.exe --data-binary @file,避免引号损坏。
- API被拒绝:先查Web/API Token来源、用户角色、数据库系统设置api_enabled及require_web_session。不要向core/config.py补不存在的同名配置。
- async接口阻塞:真实同步I/O用普通def或线程池。CapacityReport /health历史故障不代表主平台当前存在同一问题。
- Docker执行超时:长任务确认底层socket超时配置;当前containers/clients.py已有settimeout(None)。网络/挂载问题按实际daemon位置排查。
- 网页工作区有脚本但/workspace为空:后端容器路径与Docker宿主bind source不一致,需同路径可见挂载。
- Vite页面路径被代理:保留/api/窄前缀,避免把/api-docs代理到后端。若调整Metrix后端端口,开发代理目标也必须一致。
- 测试隔离:pytest使用临时SQLite,Docker外部依赖有fake/mock;不要将业务runtime配置作为测试环境。Playwright用本地Vite和拦截API。
删除旧文档中无源码证据的“pytest无测试”“Shiki待同步”“用户偏好API”“需新建FULLTEXT/CGI配置”等断言。当前tests存在、两个Monaco组件已有主题监听。排障结论必须有复现证据,不能由历史列表推断。