Agent Skills › wey-gu/ducter › ducter-troubleshoot

ducter-troubleshoot

GitHub

用于诊断和修复 Ducter 在 Mac 或 Linux 上的安装问题,包括启动失败、网络连接、HTTPS/Tailscale 配置及 Agent 登录等故障排查与修复。

skills/ducter-troubleshoot/SKILL.md wey-gu/ducter

Trigger Scenarios

Ducter 服务无法启动 设备连接失败 域名或 HTTPS 配置错误 Agent 未登录或任务运行异常

Install

npx skills add wey-gu/ducter --skill ducter-troubleshoot -g -y
More Options

Use without installing

npx skills use wey-gu/ducter@ducter-troubleshoot

指定 Agent (Claude Code)

npx skills add wey-gu/ducter --skill ducter-troubleshoot -a claude-code -g -y

安装 repo 全部 skill

npx skills add wey-gu/ducter --all -g -y

预览 repo 内 skill

npx skills add wey-gu/ducter --list

SKILL.md

Frontmatter
{
    "name": "ducter-troubleshoot",
    "description": "Diagnose and fix a Ducter install (the user's self-hosted personal AI) on a Mac or a Linux server - it won't start, a device can't connect, the domain, Tailscale or HTTPS doesn't work, an AI agent isn't signed in, tasks don't run on a worker. Use when Ducter misbehaves or the user asks why something in Ducter isn't working."
}

Troubleshoot Ducter

Start with facts, change one thing, check again. Read-only first: nothing below deletes data except where it says so, and that needs the user's yes.

1. The check-up

ducter version
ducter doctor --json      # {"ok", "harnessReady", "checks":[{id, status: ok|missing|warn, fix}]}

Every check that isn't ok carries a fix: the one command to run. Run it, then ducter doctor again. Exit 0 means everything required is ready.

2. Is it running?

curl -fsS http://127.0.0.1:7777/health    # {"ok":true,…} = the home answers on this machine
ducter status --json                      # tasks and decisions; fails when it isn't running

3. Logs

Ducter runs as Log
The Mac app ~/.ducter/app.log
ducter up in a terminal ~/.ducter/ducter.log
A Linux service journalctl --user -u ducter -n 100 --no-pager (status: ducter service status)
Caddy (the domain) journalctl -u caddy -n 50 --no-pager
Tailscale (a .ts.net address) tailscale status, tailscale serve status, journalctl -u tailscaled -n 50 --no-pager

ducter report --json writes a diagnostics folder (secrets removed, nothing uploaded; the conversation only with --include-conversation). Point the user at it for an issue; don't upload it yourself.

Common failures

Symptom Fix
ducter: command not found export PATH="$HOME/.local/bin:$PATH" for this shell (new shells have it), or ~/.local/bin/ducter
Port 7777 in use Another Ducter or program: ducter status / lsof -i :7777; or ducter up --port 7790 and add --port 7790 to every command
systemctl --user unreachable Log in over SSH as that user (not sudo su), then ducter service install
Service stops at logout sudo loginctl enable-linger $USER (doctor shows it)
Agent not signed in on a server claude auth login or codex login --device-auth (a link to open anywhere); or CLAUDE_CODE_OAUTH_TOKEN=… in ~/.ducter/keys.env, chmod 600
ducter domain stops at DNS Add/fix exactly the record it names (A → the server's public IP; Cloudflare: DNS only), wait, rerun
ducter domain: port 80/443 taken Another web server: forward through it (ducter domain <name> --print), or stop it if the user agrees
https://<domain>/health gives 502/503/504 HTTPS is fine; Ducter behind Caddy is down: systemctl --user status ducter, ducter doctor, systemctl --user restart ducter
https://<domain>/health gives 000 or a TLS error No certificate yet: DNS record, cloud firewall TCP 80/443 (ufw allow 80,443/tcp), then journalctl -u caddy -n 50
ducter tailscale stops Read steps (--json): not installed → curl -fsSL https://tailscale.com/install.sh | sh; not signed in / turned off → sudo tailscale up (Mac: the Tailscale app); not approved → the user approves it at login.tailscale.com/admin/machines; no HTTPS certificate → the user turns on MagicDNS and HTTPS Certificates at login.tailscale.com/admin/dns; not allowed to change what it serves → sudo tailscale set --operator=$USER once; "asks you to turn on HTTPS (Serve)" → the user opens the link in next. Then rerun
A .ts.net address gives 000 On the device: Tailscale on, same tailnet? On the server: tailscale serve status shows https://<name> → http://127.0.0.1:7777, else ducter tailscale. The server failing to open its own name is normal with --accept-dns=false
A .ts.net address gives 502/503/504 Tailscale serve is fine; Ducter is down: systemctl --user status ducter, ducter doctor, systemctl --user restart ducter
Only Codex on the server Fine: the partner and the tasks use Codex when Claude Code isn't signed in
Phone: "That code is wrong or has expired" Codes work once, 10 minutes: ducter pair --json for a new one
"Can't reach" the address SSH tunnel still open? Domain or Tailscale: curl -fsS https://<address>/health (Tailscale: from a device in the tailnet); server: ducter service status; ducter reach lists every address and whether it answers
A worker shows not awake On the worker: ducter service status (or rerun ducter worker <address> --code <new code>); its own agent must be signed in (ducter doctor there)
Mac app: "Ducter" Not Opened An unsigned build: System Settings › Privacy & Security › Open Anyway
Ducter is resting The user chose Stop Ducter: Wake Ducter in the app or menu

Last resorts (ask first)

  • Restart: systemctl --user restart ducter (server) or quit and reopen the Mac app.
  • Start over: ducter uninstall --all --dry-run shows what goes; ducter uninstall --all --yes erases this home's conversation, tasks and settings for good. Then reinstall (ducter-deploy).

Version History

  • dba1421 Current 2026-12-02 14:05

Same Skill Collection

.claude/skills/ducter-ui/SKILL.md
skills/ducter-deploy/SKILL.md
skills/ducter-operate/SKILL.md

Metadata

Files
0
Version
dba1421
Hash
6feaa5dd
Indexed
2026-12-02 14:05

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-12-02 15:01
浙ICP备14020137号-1