Files
Nexus/docs/reports/2026-06-08-agent-401-stop-deploy-verification.md
T
Nexus Agent 0f6f91e61a fix(api): align alerts/commands contracts and ship full-site test suite.
Restore alert history filters and stats fields, paginate command/session logs for the SPA, show script labels on schedules, and land integration/E2E coverage with rebuilt web assets.
2026-06-09 02:13:13 +08:00

1.0 KiB
Raw Blame History

2026-06-08 Agent 401 停心跳 — 部署验证

部署信息

Commit 972456a feat(agent): 401 停心跳、配置重载后重启与升级双文件下发
门控 7/7 PASS
方式 deploy/deploy-production.sh

生产检查

检查 结果
GET /health ok
GET /app/ HTTP 200
GET /agent/heartbeat_policy.py HTTP 200,含 heartbeat_should_stop
GET /agent/agent.py heartbeat_policy import、AGENT_VERSION

子机 rollout#7 · 用户/运维)

中心已提供新文件;各子机须批量「升级 Agent」 才会下载 agent.py + heartbeat_policy.py

验收步骤(抽 1 台):

  1. journalctl -u nexus-agent -f 观察心跳
  2. 临时改错 config.json 中 central api_key → 应出现 一条 401 error 后不再重复
  3. 通过管理端修正 key 或 /config/reload → 心跳应恢复

回滚

MySQL: /var/backups/nexus/nexus-before-upgrade-20260608-150632.sql.gz
镜像: nexus-prod-nexus:rollback