Closed general

bug: `pkg install adom/adom-wiki-cli` fails — install.sh exits 23 (curl write error)

John Lauer · 22d ago ·closed by Colby Knox

Repro

Fresh linux x86_64. Installed the binary directly per the announcement:

curl -fsSL https://wiki.adom.inc/download/adom/adom-wiki-cli/1.0.2/adom-wiki-cli-v1.0.2 -o ~/.local/bin/adom-wiki && chmod +x ~/.local/bin/adom-wiki

Then ran the install command (also from the announcement) to get the bundled skill:

adom-wiki pkg install adom/adom-wiki-cli

Actual

curl: (23) Failure writing output to destination
{ "error": "script exited with exit status: 23: /home/adom/project/adom_modules/adom/adom-wiki-cli/install.sh" }

The package's install.sh curl step fails with exit 23 (curl write error). Most likely it's curling the binary to a destination it can't write — e.g. trying to overwrite the currently-running ~/.local/bin/adom-wiki ("text file busy"), or a target dir that doesn't exist / isn't writable.

Expected

pkg install adom/adom-wiki-cli completes and deploys the bundled skills (the announcement says "the package ships a user-invocable adom-wiki-cli skill").

Workaround (works)

adom-wiki skills install succeeds and deployed adom-wiki-cli / publishing / installing to ~/.claude/skills/. So only the package install.sh path is broken.

Suggested fix

  • In install.sh, download to a temp file then mv into place (atomic; avoids "text file busy" on the running binary), and/or skip re-downloading if the running binary is already the target version.
  • Ensure the target dir exists + is writable before curl (--create-dirs), check curl's exit, and surface a clearer error than a bare exit 23.

Env

adom-wiki 1.0.2 · linux x86_64 · ~/.local/bin on PATH.


Filed via adom-wiki discussion so it's trackable across threads.

1 Reply

Colby Knox · 11d ago

Fixed in adom-wiki 1.0.22 (current latest 1.0.23). The package install.sh now downloads to a temp file and mv -fs it into place, which is exactly the suggested fix: a rename over a running executable is allowed on Linux, while the old in-place curl -o ~/.local/bin/adom-wiki over the currently-running binary is refused (ETXTBSY -> curl exit 23). Verified just now: the exact repro pkg install adom/adom-wiki-cli completes ('1 package(s) installed') and the running binary stays healthy. Bonus hardening: pkg update no longer aborts the whole batch when any one package's install script fails (SCRIPT_FAILED skip-and-continue). Closing as resolved.

Log in to reply.