Armadra

参考

故障排查

CLI 显示未安装、Agent 无响应、权限请求不出现、远程连不上、更新失败、首次打开被拦等常见问题的处理方法。


按现象找对应的一节。这里只列有明确依据的处理方法;解决不了时,把现象和 Armadra 的版本(「设置 → 关于」)发到 support@armadra.com。

CLI 显示「未安装」

现象:新建菜单里某个 Agent 旁标着「未安装」;或「设置 → Agent CLI」里状态为「需安装」,CLI 一行是「未检测到」。

  1. Armadra 启动的是你机器上已经安装并登录的 CLI,它不替你安装或登录。先按该 CLI 自己的说明安装并登录一次。
  2. 确认在终端里直接运行该命令能启动,并且它所在的目录在 PATH 中。
  3. 回到「设置 → Agent CLI」查看状态是否变为已安装。
  4. 如果项目放在 SSH 远程主机或服务器壳上,CLI 要装在那台机器上,并在那里登录。

会话视图所需的适配器可以在同一页安装,安装失败时的提示和处理是:

提示 处理
「没有找到 npm」 先安装 Node.js(含 npm)
「npm 安装失败(退出码 …)」 点「查看输出」看原因,处理后「重试」
「安装超时,已停止」 检查网络后重试
「安装完成,但找不到程序,请检查 npm 全局目录是否在 PATH 中」 把 npm 的全局目录加进 PATH 后重试
「正在装另一项」 等当前安装结束

Agent 无响应或状态不更新

  1. 先区分是真的卡了,还是状态没传回来。 节点头部的状态(运行中、需要你处理、已完成)来自 CLI 自己的回报,而回报通道只在从画布启动 CLI 时注入。在画布外的终端里单独启动的同一个 CLI,不会有状态。请在画布里新建节点启动它。
  2. 打开「设置 → Agent CLI」,看该 CLI 是否显示「Hook 未生成」「技能未生成」「注入受限」或「待更新」。需要时点「重新生成注入」。
  3. Agent 可能在等你:看节点头部有没有权限请求或提问,见下一节。
  4. 节点可能处于节能休眠:空闲的 Agent 会先退出再结束进程,聚焦节点或收到投递时会用 resume 接回原会话,稍等片刻。
  5. 打开「资源」面板(⇧⌘U),找到这个会话,看进程是否占用异常;确认已无用时可以「结束会话」,再新建节点用 resume 接回。
  6. 想及早发现卡住的 Agent,可以在「设置 → 通知」里打开「停滞提醒」。
  7. 同一个 Agent 也可以在终端视图与会话视图之间切换,换一种视图再看。

权限请求不出现

  1. 权限请求只在 CLI 的权限模式要求确认时才会产生。检查节点的权限模式,以及「设置 → 默认」里的「默认权限模式」:全自动类的模式不会询问。
  2. 请求出现在节点头部,用「允许」「拒绝」「回答」直接处理;会话视图里则是权限卡。Armadra 不会替你回答。
  3. 如果节点头部完全没有任何反馈,多半是上一节的原因:该 CLI 不是从画布启动的,或注入没有生成。按上一节检查并「重新生成注入」。
  4. 离开窗口时想被叫回来,在「设置 → 通知」里打开「需要你时通知」。
  5. 选了 CLI 不支持的权限模式时,启动前会明确报错,不会静默降级;换成它支持的模式即可。

远程连不上

手机或另一台电脑连不上桌面的对外服务、服务器壳或共享的主机时:

  1. 局域网直连:在「设置 → 远程访问」确认已打开「允许其他设备访问这台电脑」,并且监听地址不是「仅本机」。
  2. 配对码过期:配对码两分钟有效,过期后点「新配对码」,再用手机扫码。
  3. 证书:手机第一次连接要安装并信任本地 CA(页面里有 iOS 与 Android 的安装步骤)。装好后回到页面刷新。
  4. 端口:提示「端口已被占用」时,把「端口」改成「自动」或换一个;提示「没有权限使用这个端口」时换更高的端口。
  5. 证书签发:使用 ACME 时,「ACME 验证端口不可用」或「ACME 证书签发失败」通常是域名没有解析到这台机器,或外部 80 端口没有转发到验证端口。
  6. 服务器壳:页面能打开、登录后立刻掉线或返回 403,通常是地址栏里的地址与 ARMADRA_PUBLIC_ORIGIN(--public-origin)不一致,包括端口、大小写,或反向代理改了 Host。反向代理还需要放行 WebSocket,读超时放长。容器启动后立即退出,检查是否设置了 ARMADRA_PUBLIC_ORIGIN。
  7. 主机状态:「离线」表示对方没在线;「需要登录」时重新登录;「需要更新」或「这台主机的 Armadra 版本太旧」时,升级对方的 Armadra 再连;「版本不兼容,更新应用后重新打开」时更新本机应用。
  8. 提示「访问权限已被收回」,说明共享已被撤销,需要对方重新授权或重新配对。

完整的证书、反向代理与排错表见自托管部署与远程访问以及 Armadra 仓库的服务器部署指南。

更新失败

在「设置 → 关于」的「更新」区域,失败时会写明原因:

提示 处理
无法读取发布来源 检查网络后稍后重试;提示「可在 N 分钟后重试」时按时间重试
下载中断,已丢弃 点「重试」
磁盘空间不足,无法暂存安装包 腾出空间后重试
安装包的签名不是本机公钥签的,已拒绝;或下载到的字节与公布的摘要不一致,已丢弃 不要强行安装;重新检查更新,仍然如此时从发布页下载
本应用启动的后台服务没有停止,因此没有开始安装 退出 Armadra 后重新打开,再试一次
安装失败,当前版本没有被替换 当前版本可继续使用;从发布页手动安装新版本
更新已下载并通过校验,但当前安装未签名,不会安装 从发布页手动安装
更新未完成:… 没有报告新版本 从发布页手动安装,或回到上一版安装包

有些环境本来就不能原地更新:浏览器里的页面、后台服务在另一台机器上、Windows 便携版、Linux 的 deb 与 rpm。这时更新页会给出新安装包的下载。详见设置、更新与数据。

macOS 首次打开被拦

官方 macOS 安装包是 ad-hoc 签名、未经 Apple 公证,系统会在第一次打开时拦下它。

  1. 把 Armadra.app 拖进「应用程序」,双击打开一次,系统提示无法验证并拦下。
  2. 打开「系统设置 → 隐私与安全性」,滚到「安全性」,在 Armadra 的提示旁点「仍要打开」。
  3. 输入登录密码或使用触控 ID 确认,再点「打开」。

macOS 15 起,「右键 → 打开」不再有效,必须走上面的「仍要打开」。不想点设置时,在终端执行:

xattr -dr com.apple.quarantine /Applications/Armadra.app

用 Homebrew 安装(brew install --cask armadra)不会去掉隔离标记,装完仍要确认一次,升级后同理。Windows 上,SmartScreen 提示时选择「仍要运行」。详见安装。

其他常见情况

  • 启动时报数据库损坏或版本过新:Armadra 会拒绝启动,不会自动清库。从备份恢复,或换回能读取它的版本,步骤见设置、更新与数据。
  • 浏览器节点显示「服务端没有找到可用的 Chromium」:在服务器上安装 Chromium,或用 ARMADRA_BROWSER_PATH 指定路径。
  • 浏览器节点页面重新加载了:隐藏时间超过设置的分钟数后页面会被回收以省内存,在「设置 → 浏览器」调整。
  • 语言服务不工作:编辑器状态里会写明原因,例如机器上没有对应的 language server、需要工作区的执行权限,或远端主机上没有语言服务。
  • 「AI 生成」提交信息不可用:需要机器上装有 Claude CLI,并为运行服务设置 ANTHROPIC_API_KEY;使用自定义服务地址时不可用。界面会写明具体原因。
  • 代码托管面板提示没有凭据:到「设置 → 代码托管」配置,见Git 与 GitHub。

Reference

Troubleshooting

What to do when a CLI shows as not installed, an agent stops responding, permission requests do not appear, remote access fails, an update fails, or macOS blocks the first launch.


Find the section that matches what you see. Only fixes with a documented basis are listed here; if none works, send the symptom and your Armadra version (“Settings → About”) to support@armadra.com.

A CLI shows “Not installed”

Symptom: the new menu marks an agent “Not installed”, or in “Settings → Agent CLI” the state is “Install needed” and the CLI row says “Not detected”.

  1. Armadra launches the CLI that is already installed and signed in on your machine; it does not install or sign in for you. Install it and sign in once by following that CLI’s own instructions.
  2. Check that running the command in a terminal starts it, and that its folder is on PATH.
  3. Go back to “Settings → Agent CLI” and see whether the state changed to installed.
  4. If the project lives on an SSH host or a server shell, the CLI must be installed and signed in on that machine.

The adapter needed for the session view can be installed on the same page. When the install fails:

Message What to do
“npm not found” Install Node.js (which includes npm) first
“npm install failed (exit code …)” Use “View output” to see why, fix it, then “Retry”
“The install timed out and was stopped” Check your network and retry
“Installed, but the program can’t be found. Check that npm’s global folder is on PATH.” Add npm’s global folder to PATH and retry
“Another install is running” Wait for the current install to finish

An agent does not respond or its status does not update

  1. First tell a real hang from a status that never arrived. The status in a node’s header (working, needs you, done) is reported by the CLI itself, and that channel is injected only when the CLI is launched from the canvas. The same CLI started alone in a terminal outside the canvas shows no status. Create a node on the canvas to start it.
  2. Open “Settings → Agent CLI” and check whether the CLI shows “Hook not generated”, “Skill not generated”, “Injection limited” or “Out of date”. If so, click “Regenerate injection”.
  3. The agent may be waiting for you: look for a permission request or a question in the node header; see the next section.
  4. The node may be in energy-saving hibernation: an idle agent first exits and then its process ends, and it resumes the original session when you focus the node or a delivery arrives. Give it a moment.
  5. Open the “Resources” panel (⇧⌘U), find the session and check whether the process is using an unusual amount; if it is no longer useful you can “End session” and resume it in a new node.
  6. To catch stuck agents early, turn on “Stalled alert” in “Settings → Notifications”.
  7. The same agent can switch between the terminal view and the session view; try the other view.

Permission requests do not appear

  1. A permission request is produced only when the CLI’s permission mode asks for confirmation. Check the node’s permission mode and the “Default permission mode” in “Settings → Defaults”: full-auto style modes do not ask.
  2. The request appears in the node header; use “Allow”, “Reject” or “Answer”. In the session view it is a permission card. Armadra never answers for you.
  3. If the node header shows no feedback at all, the cause is most likely the one in the previous section: the CLI was not launched from the canvas, or its injection was not generated. Check as described there and “Regenerate injection”.
  4. To be called back when you are away from the window, turn on “Notify when input is needed” in “Settings → Notifications”.
  5. If you choose a permission mode the CLI does not support, you get a clear error before launch instead of a silent downgrade; pick a mode it supports.

Cannot connect remotely

When a phone or another computer cannot reach a desktop’s sharing service, a server shell or a shared host:

  1. Direct LAN connection: in “Settings → Remote access”, confirm “Allow other devices to access this computer” is on and the listen address is not “This computer only”.
  2. Pairing code expired: a code is valid for two minutes; click “New pairing code” and scan again.
  3. Certificate: the phone must install and trust the local CA on first connection (the page has iOS and Android steps). Reload the page after installing.
  4. Port: on “Port already in use”, set “Port” to “Auto” or pick another; on “Not allowed to use this port”, choose a higher port.
  5. Certificate issuance: with ACME, “ACME challenge port unavailable” or “ACME certificate request failed” usually means the domain does not resolve to this machine or external port 80 is not forwarded to the challenge port.
  6. Server shell: if the page opens but drops right after sign-in or returns 403, the address in the browser’s address bar usually differs from ARMADRA_PUBLIC_ORIGIN (--public-origin) — port, letter case, or a reverse proxy changing Host. A reverse proxy also has to allow WebSocket and use long read timeouts. If a container exits right after starting, check that ARMADRA_PUBLIC_ORIGIN is set.
  7. Host status: “Offline” means the other side is not online; on “Sign-in required” sign in again; on “Update needed” or “This computer runs an outdated Armadra. Update it to connect”, update the other side’s Armadra and connect again; on “Version not compatible. Update the app and reopen it”, update the app on this device.
  8. “Access was revoked” means the sharing was withdrawn; ask for a new grant or pair again.

For certificates, reverse proxies and the full troubleshooting table see Self-hosting and remote access and the server deployment guide in the Armadra repository.

An update fails

In the “Updates” area of “Settings → About” a failure states its reason:

Message What to do
The release source could not be read Check the network and retry later; when it says “You can try again in N minutes”, retry after that
The download stopped early and was discarded Click “Retry”
There was not enough room to stage the package Free some space and retry
The package is signed by a key this build does not carry, or the bytes that arrived are not the ones the release published Do not force the install; check for updates again, and if it persists download from the release page
The background service this application started would not stop, so the install never began Quit and reopen Armadra, then try again
The install failed; the running version was not replaced Keep using the current version; install the new one by hand from the release page
The update was downloaded and verified, but this installation is unsigned, so it is not installed Install it by hand from the release page
The update did not finish: … did not report the new version Install by hand from the release page, or go back to the previous release package

Some setups cannot update in place at all: a page in a web browser, a background service on another machine, the Windows portable build, and Linux deb and rpm packages. For those the Updates page offers the new installer to download. See Settings, updates and data.

macOS blocks the first launch

The official macOS package is ad-hoc signed and not notarized by Apple, so the system blocks it the first time it opens.

  1. Drag Armadra.app into “Applications” and double-click it once; the system says it cannot verify the app and blocks it.
  2. Open “System Settings → Privacy & Security”, scroll to “Security”, and click “Open Anyway” next to the Armadra notice.
  3. Confirm with your login password or Touch ID, then click “Open”.

Since macOS 15, “right-click → Open” no longer works; you must use “Open Anyway” as above. If you would rather not click through Settings, run this in a terminal:

xattr -dr com.apple.quarantine /Applications/Armadra.app

A Homebrew install (brew install --cask armadra) does not remove the quarantine flag, so you still confirm once after installing, and again after upgrading. On Windows, choose “Run anyway” in the SmartScreen prompt. See Install.

Other common cases

  • Startup reports a damaged database or one that is too new: Armadra refuses to start and never wipes it automatically. Restore a backup, or go back to a version that can read it; the steps are in Settings, updates and data.
  • A browser node says the server found no Chromium: install Chromium on the server, or point ARMADRA_BROWSER_PATH at it.
  • A browser node page reloaded: pages hidden for longer than the configured minutes are freed to save memory; adjust this in “Settings → Browser”.
  • Language services do not work: the editor status states the reason, for example no language server on the machine, a missing execution permission for the workspace, or no language service on the remote host.
  • “Generate with AI” for commit messages is unavailable: it needs the Claude CLI on the machine and ANTHROPIC_API_KEY set for the running service, and does not work with a custom endpoint. The interface states the specific reason.
  • The code hosting panel says there is no credential: set one up in “Settings → Code hosting”; see Git and GitHub.

在 GitHub 上编辑本页 Edit this page on GitHub