hermes: command not found
▼
zsh: command not found: hermes
原因:安装完成后 PATH 环境变量未重新加载,Shell 找不到 hermes 可执行文件。
source ~/.zshrc # zsh 用户
source ~/.bashrc # bash 用户echo $PATH | tr ':' '\n' | grep -i hermesexport PATH="$HOME/.local/bin:$PATH"curl: (22) The requested URL returned error: 404 # 或安装中途无提示退出
原因:网络问题、GitHub Raw 访问受限,或安装脚本版本不匹配。
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash -s -- --verbosepip install hermes-agentPermission denied 安装写入失败
▼
install: cannot create /usr/local/bin/hermes: Permission denied
原因:默认安装目录需要 root 权限,普通用户无法写入。
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | INSTALL_DIR="$HOME/.local/bin" bashcurl -fsSL ... | sudo bashall models failed 所有模型请求失败
▼
Error: all models failed after 3 attempts model: claude-3-5-sonnet → 401 Unauthorized model: gpt-4o → 429 Rate limit exceeded
原因:API Key 无效、余额不足,或触发速率限制。
hermes config get providershermes setupHTTP 422 Unprocessable Entity stream_options.include_usage: field not supported
原因:Azure AI Foundry MaaS/Serverless 端点不支持 stream_options.include_usage 参数,但 Hermes 默认发送该字段。
config.yaml 中对 Azure 提供商禁用该选项:providers:
azure_foundry:
stream_options:
include_usage: falseHTTP 403 Forbidden (Cloudflare) custom provider: headers field ignored
原因:自定义提供商配置中的 headers 字段未被正确传递,导致 Cloudflare 安全验证失败。
custom_providers:
my_provider:
base_url: "https://your-endpoint.com"
headers:
CF-Access-Client-Id: "your-id"
CF-Access-Client-Secret: "your-secret"/model 命令提示 model not allowed
▼
Error: model "gpt-4o" not allowed agents.defaults.models is set to whitelist mode
原因:配置文件中 agents.defaults.models 启用了白名单,当前模型不在列表内。
hermes config get agents.defaults.modelshermes config set agents.defaults.models []hermes doctor 未能检测到 KIMI API Key(Issue #9716)
▼
doctor: KIMI_CN_API_KEY — not detected (probe failed) # 但实际已配置
原因:hermes doctor 的探针未包含 KIMI_CN_API_KEY 的识别逻辑,误报为未配置。
hermes chat --model kimi "你好"DingTalk adapter: async process startup failed dingtalk-stream >= 0.20 incompatible
原因:dingtalk-stream 库 0.20 及以上版本存在异步进程启动兼容性问题。
pip install "dingtalk-stream<0.20"Telegram: connection lost retrying... failed to re-establish long polling
原因:Telegram adapter 在瞬时网络故障后未能自动恢复 long polling 连接。
hermes config set telegram.mode webhook
hermes config set telegram.webhook_url "https://your-domain.com/webhook"hermes restartsource_tag 字段(Issue #9718)
▼
KeyError: 'source_tag' session state database missing field
原因:从旧版本升级后,状态数据库中的会话记录缺少新增的 source_tag 字段。
hermes sessions cleargateway: not running # 但 ps aux | grep hermes 显示进程存在
原因:Docker 环境中 ps eww -ax 命令执行失败,导致 gateway 状态检测误报为未运行。
--deep 参数做更精确的状态检测:hermes status --deephermes gateway probecron job: memory provider ignored skip_memory=True hardcoded in cron executor
原因:Cron 任务执行器中 skip_memory=True 被硬编码,导致 mem0 等外部记忆提供商完全失效。
# config.yaml 中的根级配置不生效: prefill_messages_file: ./prompts.txt personality: assistant
原因:CLI 的 _ensure_runtime_credentials() 会覆盖部分根级参数,且自定义 personality 在根级定义时被运行时忽略。
agents:
default:
prefill_messages_file: ./prompts.txt
personality: assistant[object Object](Issue #9726)
▼
Dashboard → Config → fallback_providers: [object Object]
原因:Dashboard 前端对 fallback_providers 对象类型的渲染存在 Bug,显示异常但不影响实际功能。
hermes config get fallback_providers--init 不支持(Issue #9730)
▼
docker: Error response from daemon: unknown flag: --init sandbox container crashed on startup
原因:宿主机的 Docker 版本过旧,不支持 --init 标志;或宿主机内核限制了该能力。
docker --version # 检查当前版本hermes config set sandbox.use_init falsehermes-gateway | health check failing: mode not detected STATUS: unhealthy
原因:Docker HEALTHCHECK 未区分 gateway 和 dashboard 运行模式,导致单模式部署时探针误判。
docker exec hermes-gateway hermes gateway probehealthcheck:
disable: true🔍 遇到问题时,按顺序运行以下命令收集信息
hermes status查看各组件运行状态hermes status --all查看所有服务详情hermes doctor自动检测配置和环境问题hermes gateway probe探测 Gateway 连通性hermes logs --follow实时查看运行日志hermes config get查看当前全量配置hermes status --deep深度状态检测(Gateway 可达时)