When installing OpenCode in Debian on Termux, the first launch succeeds but the second fails. #6683

Open
opened 2026-02-16 18:04:56 -05:00 by yindo · 1 comment
Owner

Originally created by @ahov520 on GitHub (Jan 18, 2026).

Originally assigned to: @thdxr on GitHub.

INFO 2026-01-18T08:34:51 +910ms service=server method=GET path=/event request
INFO 2026-01-18T08:34:51 +2ms service=server status=started method=GET path=/event request
INFO 2026-01-18T08:34:51 +8ms service=default directory=/root creating instance
INFO 2026-01-18T08:34:51 +2ms service=project directory=/root fromDirectory
INFO 2026-01-18T08:34:51 +6ms service=server method=GET path=/session request
INFO 2026-01-18T08:34:51 +0ms service=server status=started method=GET path=/session request
INFO 2026-01-18T08:34:51 +1ms service=server method=GET path=/config/providers request
INFO 2026-01-18T08:34:51 +0ms service=server status=started method=GET path=/config/providers request
INFO 2026-01-18T08:34:51 +1ms service=server method=GET path=/provider request
INFO 2026-01-18T08:34:51 +0ms service=server status=started method=GET path=/provider request
INFO 2026-01-18T08:34:51 +1ms service=server method=GET path=/agent request
INFO 2026-01-18T08:34:51 +2ms service=server status=started method=GET path=/agent request
INFO 2026-01-18T08:34:51 +2ms service=server method=GET path=/config request
INFO 2026-01-18T08:34:51 +0ms service=server status=started method=GET path=/config request
INFO 2026-01-18T08:34:51 +187ms service=default directory=/root bootstrapping
INFO 2026-01-18T08:34:51 +55ms service=config path=/root/.config/opencode/config.json loading
INFO 2026-01-18T08:34:51 +41ms service=config path=/root/.config/opencode/opencode.json loading
INFO 2026-01-18T08:34:51 +5ms service=config path=/root/.config/opencode/opencode.jsonc loading
INFO 2026-01-18T08:34:51 +83ms service=bun cmd=["/usr/local/lib/node_modules/opencode-ai/node_modules/opencode-linux-arm64/bin/opencode","add","@opencode-ai/plugin@1.1.15","--exact"] cwd=/root/.config/opencode running
INFO 2026-01-18T08:34:51 +179ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd)

installed @opencode-ai/plugin@1.1.15

[47.00ms] done
stderr=Saved lockfile
done
INFO 2026-01-18T08:34:51 +0ms service=bun cmd=["/usr/local/lib/node_modules/opencode-ai/node_modules/opencode-linux-arm64/bin/opencode","install"] cwd=/root/.config/opencode running
INFO 2026-01-18T08:34:51 +183ms service=plugin name=CodexAuthPlugin loading internal plugin
INFO 2026-01-18T08:34:51 +2ms service=plugin path=opencode-copilot-auth@0.0.12 loading plugin
INFO 2026-01-18T08:34:51 +30ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd)

Checked 3 installs across 4 packages (no changes) [95.00ms]
stderr= done
INFO 2026-01-18T08:34:51 +0ms service=bun pkg=opencode-copilot-auth version=0.0.12 installing package using Bun's default registry resolution
INFO 2026-01-18T08:34:51 +0ms service=bun cmd=["/usr/local/lib/node_modules/opencode-ai/node_modules/opencode-linux-arm64/bin/opencode","add","--force","--exact","--cwd","/root/.cache/opencode","opencode-copilot-auth@0.0.12"] cwd=/root/.cache/opencode running
INFO 2026-01-18T08:34:57 +5803ms service=bun code=1 stdout=bun add v1.3.5 (1e86cebd)

installed opencode-copilot-auth@0.0.12

3 packages installed [5.68s]
Failed to install 11 packages
stderr=FileNotFound: failed copying files from cache to destination for package opencode-anthropic-auth
FileNotFound: failed copying files from cache to destination for package @openauthjs/openauth
FileNotFound: failed copying files from cache to destination for package @standard-schema/spec
FileNotFound: failed copying files from cache to destination for package aws4fetch
FileNotFound: failed copying files from cache to destination for package jose
FileNotFound: failed copying files from cache to destination for package arctic
FileNotFound: failed copying files from cache to destination for package hono
FileNotFound: failed copying files from cache to destination for package @oslojs/crypto
FileNotFound: failed copying files from cache to destination for package @oslojs/encoding
FileNotFound: failed copying files from cache to destination for package @oslojs/asn1
FileNotFound: failed copying files from cache to destination for package @oslojs/binary
Saved lockfile
done
ERROR 2026-01-18T08:34:57 +4ms service=plugin pkg=opencode-copilot-auth version=0.0.12 error=BunInstallFailedError failed to install builtin plugin
INFO 2026-01-18T08:34:57 +2ms service=bus type=session.error publishing
INFO 2026-01-18T08:34:57 +2ms service=plugin path=opencode-anthropic-auth@0.0.8 loading plugin
ERROR 2026-01-18T08:34:57 +41ms service=default e={"name":"ResolveMessage","position":null,"message":"Cannot find module '/root/.cache/opencode/node_modules/opencode-anthropic-auth' from '/$bunfs/root/src/cli/cmd/tui/worker.js'","level":"error","specifier":"/root/.cache/opencode/node_modules/opencode-anthropic-auth","importKind":"import-statement","referrer":"/$bunfs/root/src/cli/cmd/tui/worker.js"} exception
ERROR 2026-01-18T08:34:57 +4ms service=default e={"name":"ResolveMessage","position":null,"message":"Cannot find module '/root/.cache/opencode/node_modules/opencode-anthropic-auth' from '/$bunfs/root/src/cli/cmd/tui/worker.js'","level":"error","specifier":"/root/.cache/opencode/node_modules/opencode-anthropic-auth","importKind":"import-statement","referrer":"/$bunfs/root/src/cli/cmd/tui/worker.js"} exception
ERROR 2026-01-18T08:34:57 +0ms service=default e={"name":"ResolveMessage","position":null,"message":"Cannot find module '/root/.cache/opencode/node_modules/opencode-anthropic-auth' from '/$bunfs/root/src/cli/cmd/tui/worker.js'","level":"error","specifier":"/root/.cache/opencode/node_modules/opencode-anthropic-auth","importKind":"import-statement","referrer":"/$bunfs/root/src/cli/cmd/tui/worker.js"} exception
ERROR 2026-01-18T08:34:57 +1ms service=default e={"name":"ResolveMessage","position":null,"message":"Cannot find module '/root/.cache/opencode/node_modules/opencode-anthropic-auth' from '/$bunfs/root/src/cli/cmd/tui/worker.js'","level":"error","specifier":"/root/.cache/opencode/node_modules/opencode-anthropic-auth","importKind":"import-statement","referrer":"/$bunfs/root/src/cli/cmd/tui/worker.js"} exception
ERROR 2026-01-18T08:34:57 +0ms service=default e={"name":"ResolveMessage","position":null,"message":"Cannot find module '/root/.cache/opencode/node_modules/opencode-anthropic-auth' from '/$bunfs/root/src/cli/cmd/tui/worker.js'","level":"error","specifier":"/root/.cache/opencode/node_modules/opencode-anthropic-auth","importKind":"import-statement","referrer":"/$bunfs/root/src/cli/cmd/tui/worker.js"} exception
ERROR 2026-01-18T08:34:57 +0ms service=default e={"name":"ResolveMessage","position":null,"message":"Cannot find module '/root/.cache/opencode/node_modules/opencode-anthropic-auth' from '/$bunfs/root/src/cli/cmd/tui/worker.js'","level":"error","specifier":"/root/.cache/opencode/node_modules/opencode-anthropic-auth","importKind":"import-statement","referrer":"/$bunfs/root/src/cli/cmd/tui/worker.js"} exception
INFO 2026-01-18T08:35:00 +3040ms service=server method=GET path=/event request
INFO 2026-01-18T08:35:00 +0ms service=server status=started method=GET path=/event request
INFO 2026-01-18T08:35:06 +6003ms service=server method=GET path=/event request
INFO 2026-01-18T08:35:06 +0ms service=server status=started method=GET path=/event request
INFO 2026-01-18T08:35:18 +12004ms service=server method=GET path=/event request
INFO 2026-01-18T08:35:18 +1ms service=server status=started method=GET path=/event request
INFO 2026-01-18T08:35:42 +24013ms service=server method=GET path=/event request
INFO 2026-01-18T08:35:42 +1ms service=server status=started method=GET path=/event request
INFO 2026-01-18T08:36:12 +30002ms service=server method=GET path=/event request
INFO 2026-01-18T08:36:12 +1ms service=server status=started method=GET path=/event request

Originally created by @ahov520 on GitHub (Jan 18, 2026). Originally assigned to: @thdxr on GitHub. INFO 2026-01-18T08:34:51 +910ms service=server method=GET path=/event request INFO 2026-01-18T08:34:51 +2ms service=server status=started method=GET path=/event request INFO 2026-01-18T08:34:51 +8ms service=default directory=/root creating instance INFO 2026-01-18T08:34:51 +2ms service=project directory=/root fromDirectory INFO 2026-01-18T08:34:51 +6ms service=server method=GET path=/session request INFO 2026-01-18T08:34:51 +0ms service=server status=started method=GET path=/session request INFO 2026-01-18T08:34:51 +1ms service=server method=GET path=/config/providers request INFO 2026-01-18T08:34:51 +0ms service=server status=started method=GET path=/config/providers request INFO 2026-01-18T08:34:51 +1ms service=server method=GET path=/provider request INFO 2026-01-18T08:34:51 +0ms service=server status=started method=GET path=/provider request INFO 2026-01-18T08:34:51 +1ms service=server method=GET path=/agent request INFO 2026-01-18T08:34:51 +2ms service=server status=started method=GET path=/agent request INFO 2026-01-18T08:34:51 +2ms service=server method=GET path=/config request INFO 2026-01-18T08:34:51 +0ms service=server status=started method=GET path=/config request INFO 2026-01-18T08:34:51 +187ms service=default directory=/root bootstrapping INFO 2026-01-18T08:34:51 +55ms service=config path=/root/.config/opencode/config.json loading INFO 2026-01-18T08:34:51 +41ms service=config path=/root/.config/opencode/opencode.json loading INFO 2026-01-18T08:34:51 +5ms service=config path=/root/.config/opencode/opencode.jsonc loading INFO 2026-01-18T08:34:51 +83ms service=bun cmd=["/usr/local/lib/node_modules/opencode-ai/node_modules/opencode-linux-arm64/bin/opencode","add","@opencode-ai/plugin@1.1.15","--exact"] cwd=/root/.config/opencode running INFO 2026-01-18T08:34:51 +179ms service=bun code=0 stdout=bun add v1.3.5 (1e86cebd) installed @opencode-ai/plugin@1.1.15 [47.00ms] done stderr=Saved lockfile done INFO 2026-01-18T08:34:51 +0ms service=bun cmd=["/usr/local/lib/node_modules/opencode-ai/node_modules/opencode-linux-arm64/bin/opencode","install"] cwd=/root/.config/opencode running INFO 2026-01-18T08:34:51 +183ms service=plugin name=CodexAuthPlugin loading internal plugin INFO 2026-01-18T08:34:51 +2ms service=plugin path=opencode-copilot-auth@0.0.12 loading plugin INFO 2026-01-18T08:34:51 +30ms service=bun code=0 stdout=bun install v1.3.5 (1e86cebd) Checked 3 installs across 4 packages (no changes) [95.00ms] stderr= done INFO 2026-01-18T08:34:51 +0ms service=bun pkg=opencode-copilot-auth version=0.0.12 installing package using Bun's default registry resolution INFO 2026-01-18T08:34:51 +0ms service=bun cmd=["/usr/local/lib/node_modules/opencode-ai/node_modules/opencode-linux-arm64/bin/opencode","add","--force","--exact","--cwd","/root/.cache/opencode","opencode-copilot-auth@0.0.12"] cwd=/root/.cache/opencode running INFO 2026-01-18T08:34:57 +5803ms service=bun code=1 stdout=bun add v1.3.5 (1e86cebd) installed opencode-copilot-auth@0.0.12 3 packages installed [5.68s] Failed to install 11 packages stderr=FileNotFound: failed copying files from cache to destination for package opencode-anthropic-auth FileNotFound: failed copying files from cache to destination for package @openauthjs/openauth FileNotFound: failed copying files from cache to destination for package @standard-schema/spec FileNotFound: failed copying files from cache to destination for package aws4fetch FileNotFound: failed copying files from cache to destination for package jose FileNotFound: failed copying files from cache to destination for package arctic FileNotFound: failed copying files from cache to destination for package hono FileNotFound: failed copying files from cache to destination for package @oslojs/crypto FileNotFound: failed copying files from cache to destination for package @oslojs/encoding FileNotFound: failed copying files from cache to destination for package @oslojs/asn1 FileNotFound: failed copying files from cache to destination for package @oslojs/binary Saved lockfile done ERROR 2026-01-18T08:34:57 +4ms service=plugin pkg=opencode-copilot-auth version=0.0.12 error=BunInstallFailedError failed to install builtin plugin INFO 2026-01-18T08:34:57 +2ms service=bus type=session.error publishing INFO 2026-01-18T08:34:57 +2ms service=plugin path=opencode-anthropic-auth@0.0.8 loading plugin ERROR 2026-01-18T08:34:57 +41ms service=default e={"name":"ResolveMessage","position":null,"message":"Cannot find module '/root/.cache/opencode/node_modules/opencode-anthropic-auth' from '/$bunfs/root/src/cli/cmd/tui/worker.js'","level":"error","specifier":"/root/.cache/opencode/node_modules/opencode-anthropic-auth","importKind":"import-statement","referrer":"/$bunfs/root/src/cli/cmd/tui/worker.js"} exception ERROR 2026-01-18T08:34:57 +4ms service=default e={"name":"ResolveMessage","position":null,"message":"Cannot find module '/root/.cache/opencode/node_modules/opencode-anthropic-auth' from '/$bunfs/root/src/cli/cmd/tui/worker.js'","level":"error","specifier":"/root/.cache/opencode/node_modules/opencode-anthropic-auth","importKind":"import-statement","referrer":"/$bunfs/root/src/cli/cmd/tui/worker.js"} exception ERROR 2026-01-18T08:34:57 +0ms service=default e={"name":"ResolveMessage","position":null,"message":"Cannot find module '/root/.cache/opencode/node_modules/opencode-anthropic-auth' from '/$bunfs/root/src/cli/cmd/tui/worker.js'","level":"error","specifier":"/root/.cache/opencode/node_modules/opencode-anthropic-auth","importKind":"import-statement","referrer":"/$bunfs/root/src/cli/cmd/tui/worker.js"} exception ERROR 2026-01-18T08:34:57 +1ms service=default e={"name":"ResolveMessage","position":null,"message":"Cannot find module '/root/.cache/opencode/node_modules/opencode-anthropic-auth' from '/$bunfs/root/src/cli/cmd/tui/worker.js'","level":"error","specifier":"/root/.cache/opencode/node_modules/opencode-anthropic-auth","importKind":"import-statement","referrer":"/$bunfs/root/src/cli/cmd/tui/worker.js"} exception ERROR 2026-01-18T08:34:57 +0ms service=default e={"name":"ResolveMessage","position":null,"message":"Cannot find module '/root/.cache/opencode/node_modules/opencode-anthropic-auth' from '/$bunfs/root/src/cli/cmd/tui/worker.js'","level":"error","specifier":"/root/.cache/opencode/node_modules/opencode-anthropic-auth","importKind":"import-statement","referrer":"/$bunfs/root/src/cli/cmd/tui/worker.js"} exception ERROR 2026-01-18T08:34:57 +0ms service=default e={"name":"ResolveMessage","position":null,"message":"Cannot find module '/root/.cache/opencode/node_modules/opencode-anthropic-auth' from '/$bunfs/root/src/cli/cmd/tui/worker.js'","level":"error","specifier":"/root/.cache/opencode/node_modules/opencode-anthropic-auth","importKind":"import-statement","referrer":"/$bunfs/root/src/cli/cmd/tui/worker.js"} exception INFO 2026-01-18T08:35:00 +3040ms service=server method=GET path=/event request INFO 2026-01-18T08:35:00 +0ms service=server status=started method=GET path=/event request INFO 2026-01-18T08:35:06 +6003ms service=server method=GET path=/event request INFO 2026-01-18T08:35:06 +0ms service=server status=started method=GET path=/event request INFO 2026-01-18T08:35:18 +12004ms service=server method=GET path=/event request INFO 2026-01-18T08:35:18 +1ms service=server status=started method=GET path=/event request INFO 2026-01-18T08:35:42 +24013ms service=server method=GET path=/event request INFO 2026-01-18T08:35:42 +1ms service=server status=started method=GET path=/event request INFO 2026-01-18T08:36:12 +30002ms service=server method=GET path=/event request INFO 2026-01-18T08:36:12 +1ms service=server status=started method=GET path=/event request
Author
Owner

@github-actions[bot] commented on GitHub (Jan 18, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7843: [Critical] CLI hangs on second run (Deadlock) on Linux ARM64 (Proot/Container environments) - Similar symptoms where the first run succeeds but subsequent runs fail on ARM64/Proot systems (including Termux)
  • #3143: [Bug] Opencode crashes on second run in Termux/Proot distro - Exact same scenario: works on first run, fails on second run in Termux/Proot
  • #8297: Plugin installation failures are silent, causing OAuth options to disappear - Your error logs show "Failed to install 11 packages" with BunInstallFailedError for opencode-anthropic-auth and other plugins, which matches this issue

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 18, 2026): This issue might be a duplicate of existing issues. Please check: - #7843: [Critical] CLI hangs on second run (Deadlock) on Linux ARM64 (Proot/Container environments) - Similar symptoms where the first run succeeds but subsequent runs fail on ARM64/Proot systems (including Termux) - #3143: [Bug] Opencode crashes on second run in Termux/Proot distro - Exact same scenario: works on first run, fails on second run in Termux/Proot - #8297: Plugin installation failures are silent, causing OAuth options to disappear - Your error logs show "Failed to install 11 packages" with BunInstallFailedError for opencode-anthropic-auth and other plugins, which matches this issue Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6683