I removed bundle.pem from user folder and now opencode is not running #1815

Closed
opened 2026-02-16 17:32:45 -05:00 by yindo · 2 comments
Owner

Originally created by @rrevanth on GitHub (Sep 24, 2025).

Originally assigned to: @rekram1-node on GitHub.

I deleted bundle.pem from user folder and when I run opencode, it's throwing this error

INFO  2025-09-24T19:15:36 +42ms service=bun code=1 stdout=bun add v1.2.21 (7c45ed97)
 stderr=Resolving dependencies
HTTPThread: could not find CA file: '/Users/{user}/bundle.pem'
 done
ERROR 2025-09-24T19:15:36 +2ms service=default pkg=opencode-copilot-auth version=0.0.3 name=BunInstallFailedError message=BunInstallFailedError cause=Error: Command failed with exit code 1 stack=BunInstallFailedError: BunInstallFailedError
    at new NamedError (unknown:1:28)
    at new BunInstallFailedError (/$bunfs/root/index.js:60581:14)
    at <anonymous> (/$bunfs/root/index.js:61968:43)
    at processTicksAndRejections (native:7:39) fatal

Originally created by @rrevanth on GitHub (Sep 24, 2025). Originally assigned to: @rekram1-node on GitHub. I deleted bundle.pem from user folder and when I run opencode, it's throwing this error ``` INFO 2025-09-24T19:15:36 +42ms service=bun code=1 stdout=bun add v1.2.21 (7c45ed97) stderr=Resolving dependencies HTTPThread: could not find CA file: '/Users/{user}/bundle.pem' done ERROR 2025-09-24T19:15:36 +2ms service=default pkg=opencode-copilot-auth version=0.0.3 name=BunInstallFailedError message=BunInstallFailedError cause=Error: Command failed with exit code 1 stack=BunInstallFailedError: BunInstallFailedError at new NamedError (unknown:1:28) at new BunInstallFailedError (/$bunfs/root/index.js:60581:14) at <anonymous> (/$bunfs/root/index.js:61968:43) at processTicksAndRejections (native:7:39) fatal ```
yindo closed this issue 2026-02-16 17:32:45 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 24, 2025):

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

  • #1694: Use local SSL trust store - Similar CA certificate / SSL trust store issue with "unable to get local issuer certificate" error

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

@github-actions[bot] commented on GitHub (Sep 24, 2025): This issue might be a duplicate of existing issues. Please check: - #1694: Use local SSL trust store - Similar CA certificate / SSL trust store issue with "unable to get local issuer certificate" error Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Sep 24, 2025):

opencode uses Bun to download extra deps as needed from npm like different provider adapters. Since you deleted that when bun add (which opencode calls under the hood) tries to resolve dependencies, it makes HTTPS requests to npm registries. Without a CA bundle, Bun can’t validate TLS certificates, so it refuses the connection.

@rekram1-node commented on GitHub (Sep 24, 2025): opencode uses Bun to download extra deps as needed from npm like different provider adapters. Since you deleted that when bun add (which opencode calls under the hood) tries to resolve dependencies, it makes HTTPS requests to npm registries. Without a CA bundle, Bun can’t validate TLS certificates, so it refuses the connection.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1815