Files
MemRelay/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/development/Metrix 已核实的排障知识.md
T
memrelay 16773031b1 update: 编辑整理文档 architecture
MemRelay-Operation: curated-update:44fc1143-7dee-4e0a-8086-42b65f39e0de:3
MemRelay-Resource: 44fc1143-7dee-4e0a-8086-42b65f39e0de
2026-10-08 15:54:02 +08:00

62 lines
3.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Metrix 已核实的排障知识
type: curated
permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/curated/development/metrix-已核实的排障知识
stable_id: 1e1b9a7e-5897-4c82-b267-279a8c54b150
scope: project
project_id: d5a7f581-c442-4554-87b9-ee723b8b0258
workspace_type: development
usage_profile_id: null
preference_context: development
document_type: troubleshooting
revision: 3
source_memory_ids: []
source_checkpoint_ids: []
source_file_ids: []
source_git_commit: e660bc7bb4fc5ccda47decb4d514874a148ed9b2
source_git_commits:
- e660bc7bb4fc5ccda47decb4d514874a148ed9b2
source_agent_sync_ids: []
model_connection: Sub2API
model_name: manual
source_count: 29
source_revisions: {}
source_dispositions:
processed: 29
unchanged: 0
unsupported: 0
skipped: 0
cited_source_ids: []
job_cited_source_ids: []
conflicts: []
supersedes: []
preferences: []
source_cursor: 162
source_hash: e2fcea7c8a9e0df7a91925fb2a9beabd922058868310effc908f95df2d78b218
prompt_version: 2026-08-12.3
schema_version: '3'
curation_job_id: null
created_at: '2026-09-23T15:09:34.494392+00:00'
updated_at: '2026-10-08T07:53:57.492735+00:00'
tags:
- curated
- manual
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
---
# Metrix 排障知识
当前基线main e77a28a,具体问题需按实际代码复现,不从历史生成清单推断。
- Python环境文件存在不代表解释器有效:检查pyvenv.cfg基路径。本机旧Python3.14.3路径删除导致环境失效,现已用Python3.13.15重建根与插件环境;不维护重复server/.venv。
- FastAPI0.142.4的include_router使用包装路由,旧OpenAPI操作名映射仅遍历APIRoute导致迁移遗漏。主平台现固定0.136.3,全量85测试通过;后续升级先完成兼容并验证迁移。
- pytest显式basetemp不会创建父目录,conftest.py现在预先创建;默认Temp/tests/pytest,新工作区直接pytest即可。Playwright安装/测试须使用同一wrapper,缓存Temp/cache/ms-playwright、结果Temp/tests/playwright。
- 浏览器测试应完整模拟API,不启动真实后端;服务器时间和容器卷已补模拟,7项复测无代理连接错误。
- CapacityReport /health内部同步查询DatabaseManager,可能超过短超时,且HTTP200可以携带unhealthy;dev.py改用/api/config未登录401作服务就绪探针,数据库健康另查,不把两者混同。
- 非默认Metrix后端端口需同步VITE_API_TARGET;dev.py已自动设置。API端口5173冲突直接拒绝,9081/5174冲突跳过插件;Vite strictPort防止静默换端口。
- 中断或启动失败需清理已启动树/组,父进程退出后POSIX组仍可能有worker;dev.py已覆盖组清理与超时强杀并实测释放端口。
- Git所有权SYSTEM/Administrator不一致时单命令-c safe.directory=<对应仓路径>,不要盲目改全局信任。仓库现有换行转换下使用常规diff--check,临时关闭autocrlf会造成CRLF整文件告警。
- API拒绝先查Web/Token来源、角色、系统设置api_enabled和require_web_session,不向core/config.py盲补标志。
- Docker工作区路径必须daemon宿主可见;长exec确认底层socket超时。当前containers/clients.py已有settimeout(None)。
Shiki主题监听和有效pytest路径已存在。旧“专属ETL cron/FULLTEXT/用户偏好API/缓存TTL”等没有可靠需求来源,不作为待修复项。