TokenmanEnglish

故障排查

出问题时先跑体检,再按症状找。体检报的每一行,在本页「体检的每一行」里都有一节(小标题就是行名):它查的是什么、报 WARN / FAIL 时怎么办。

先跑 fleet doctor

fleet doctor                              # 这台电脑、这个登录:一行一项
fleet doctor | grep -E '^ *(WARN|FAIL) '  # 只看要动的
sudo fleet doctor --machine               # 托管机器(装了整机守护的 Mac)的整机那一半

每行是 <级别> <行名> <说明>:

级别意思要不要管
FAIL坏了:有会话或整台机器的某件事不工作要修
WARN会出事,或者没跟上新版本要看;说明里写着下一轮会自己补的,等一轮再看
INFO提示,只是告诉你现状不用管
PASS好的不用管

退出码就是 FAIL 的个数。几乎每一行的说明里都写着修法(fix: … 或一条命令)——先照说明做,它比本页更具体。

先修哪个:先修 FAIL,再看 WARN;同时有好几行时,先修最底层的——机器上的程序(tools python3 tmux)→ 守护与运行时(daemon node runtime)→ 和入口的身份(cert hubauth hub)→ 其余。底层坏了,上面的行多半是跟着红的。

只装了客户端的电脑(只看会话、不跑会话)上,fleet doctor 只打 fleet(客户端是否跟上稳定版)和 notify(系统通知能不能弹)等几行,各行说明即修法。

按症状找

装不上:找不到 fleet、下载不动

登录不上:二维码过期、证书没签下来

连不上机器、看不到别的机器的会话

看台起不来、一起来就退出

会话停了、没反应

「这台是客户端,任务在托管节点上跑」

GitHub 连不上的时候

GitHub 在 Tokenman 里只做一件事:放代码和 PR。任务、会话、订阅和看台都走入口(hub),所以 GitHub 不通时大部分照常,只有和代码交付有关的几步在等。

照常:

在等:

通了以后自动接上:

体检的 gh 行只说这台机器的 gh 装没装、登没登录,不说 GitHub 此刻通不通。

把诊断信息发给管理员

fleet doctor --json

把输出发给管理员即可——每一行的级别、名字和说明都在里面。

体检的每一行

按「先修哪一层」排。每节开头写着它来自 fleet doctor 还是 fleet doctor --machine。体检新加了一行而本页还没有,仓库的自测会提醒;bin/docs-build.sh --troubleshooting-skeleton 打出缺的那几节的骨架。

机器上的程序

tools

来自 fleet doctor。

python3

来自 fleet doctor。

tmux

来自 fleet doctor 和 fleet doctor --machine。

fzf

来自 fleet doctor。

perl

来自 fleet doctor。

gh

来自 fleet doctor。

claude

来自 fleet doctor 和 fleet doctor --machine。

codex

来自 fleet doctor 和 fleet doctor --machine。

brew

来自 fleet doctor。

tls

来自 fleet doctor。

testtmux

来自 fleet doctor。

守护与运行时

node

来自 fleet doctor。

daemon

来自 fleet doctor --machine。

child

来自 fleet doctor --machine。

runtime

来自 fleet doctor --machine。

update

来自 fleet doctor。

install

来自 fleet doctor 和 fleet doctor --machine。

login-tree

来自 fleet doctor --machine。

account

来自 fleet doctor 和 fleet doctor --machine。

account-pool

来自 fleet doctor。

cache

来自 fleet doctor --machine。

helper

来自 fleet doctor --machine。

ccquota

来自 fleet doctor --machine。

key

来自 fleet doctor --machine。

codesign

来自 fleet doctor --machine。

admin-agent

来自 fleet doctor --machine。

shell

来自 fleet doctor --machine。

drill

来自 fleet doctor --machine。

versions

来自 fleet doctor --machine。

image

来自 fleet doctor --machine。

credpool

来自 fleet doctor --machine。

seats

来自 fleet doctor。

tenants

来自 fleet doctor。

trial-limits

来自 fleet doctor。

rootlog

来自 fleet doctor。

services

来自 fleet doctor。

daemons

来自 fleet doctor。

basesync

来自 fleet doctor。

cleanup

来自 fleet doctor。

ledger

来自 fleet doctor。

collect

来自 fleet doctor。

state

来自 fleet doctor。

metrics

来自 fleet doctor。

ci-runner

来自 fleet doctor。

和入口的身份与连接

cert

来自 fleet doctor。

background

来自只当客户端用的电脑上的 fleet doctor。

hubauth

来自 fleet doctor。

hub

来自 fleet doctor。

hub-sessions

来自 fleet doctor。

hubids

来自 fleet doctor。

hub-image

来自 fleet doctor。

personcert

来自 fleet doctor。

clients

来自 fleet doctor。

compute

来自 fleet doctor。

承载

来自 fleet doctor。

可信

来自 fleet doctor。

能力

来自 fleet doctor。

mode

来自 fleet doctor。

dist

来自 fleet doctor。

agent

来自 fleet doctor。

agentdup

来自 fleet doctor。

来自 fleet doctor。

releasekey

来自 fleet doctor。

要查看认的公钥,运行 ~/.claude/fleet/bin/fleet-release-key.sh status。指纹不同但担保链认可时,会显示「下次取版本自动重钉到根」并成功退出,无需手工重认;未知或已作废的担保链仍报错。托管或跟随机器运行时的登录以机器级 /var/db/fleet-node/release.pub 为准,登录级 pin 不起作用。此命令只查看,不改钥匙。

entry

来自 fleet doctor。

public

来自 fleet doctor。

onboard

来自 fleet doctor。

firstrun

来自 fleet doctor。

fleet

来自 fleet doctor。

team

来自 fleet doctor。

订阅与额度

modelcap

来自 fleet doctor。

cred

来自 fleet doctor。

上游

来自 fleet doctor。

credsep

来自 fleet doctor 和 fleet doctor --machine。

credsep-all

来自 fleet doctor。

credsep-logins

来自 fleet doctor。

credproxy

来自 fleet doctor。

会话

admit

来自 fleet doctor。

machine

来自 fleet doctor。

memory

来自 fleet doctor。

cpu

来自 fleet doctor。

files

来自 fleet doctor。

pty

来自 fleet doctor。

nofile

来自 fleet doctor。

reap

来自 fleet doctor。

context

来自 fleet doctor。

handoff

来自 fleet doctor。

statusln

来自 fleet doctor。

mod

来自 fleet doctor。

hooks

来自 fleet doctor。

settings

来自 fleet doctor。

agents

来自 fleet doctor。

agentcfg

来自 fleet doctor。

agentdef

来自 fleet doctor。

commands

来自 fleet doctor。

skills

来自 fleet doctor。

plugins

来自 fleet doctor。

mcp

来自 fleet doctor。

信任框

来自 fleet doctor。

trust

来自 fleet doctor。

seed

来自 fleet doctor。

timing

来自 fleet doctor。

spawn-time

来自 fleet doctor。

alerts

来自 fleet doctor。

epic

来自 fleet doctor。

socket

来自 fleet doctor。

tmuxconf

来自 fleet doctor。

rview

来自 fleet doctor。

open

来自 fleet doctor。

laptop

来自 fleet doctor。

listen

来自 fleet doctor。

board

来自 fleet doctor。

仓库

repos

来自 fleet doctor。

跟仓库

来自 fleet doctor。

分到

来自 fleet doctor。

repo

来自 fleet doctor。

main

来自 fleet doctor。

base

来自 fleet doctor。

checkout

来自 fleet doctor。

deploy

来自 fleet doctor。

deps

来自 fleet doctor。

overrides

来自 fleet doctor。

emit

来自 fleet doctor。

wtroot

来自 fleet doctor。

这台 Mac 的设置

sleep

来自 fleet doctor。

spotlight

来自 fleet doctor。

wallpaper

来自 fleet doctor(只在托管 Mac 上出现)。

siri

来自 fleet doctor。

icloud

来自 fleet doctor。

network

来自 fleet doctor。

launchd

来自 fleet doctor。

只报状态

gate

来自 fleet doctor。