You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot open opencode2 - Background service failed to start #45014
$ opencode2 --version
opencode2 v0.0.0-beta-18155
$ opencode2
[08:47:50.398] ERROR (#1): Error: Background service failed to start
at <anonymous> (/$bunfs/root/chunk-psykcre7.js:3:1518)
at service.ensure (/$bunfs/root/chunk-vx53ddd8.js:3:428)
at service.ensure (definition) (/$bunfs/root/chunk-psykcre7.js:3:729)
at cli.server-connection.resolve (/$bunfs/root/chunk-1asat22v.js:2765:7070)
at cli.server-connection.resolve (definition) (/$bunfs/root/chunk-vx53ddd8.js:2:504)
$ opencode2 plugin list
[08:49:08.144] ERROR (#1): Error: Background service failed to start
at <anonymous> (/$bunfs/root/chunk-psykcre7.js:3:1518)
at service.ensure (/$bunfs/root/chunk-v5zqc2nf.js:2:1143)
at service.ensure (definition) (/$bunfs/root/chunk-psykcre7.js:3:729)
at cli.plugin.list (/$bunfs/root/chunk-3bd1bmsx.js:64:1086)
at cli.plugin.list (definition) (/$bunfs/root/chunk-v5zqc2nf.js:2:1090)
Plugins
I don't know - I can't list them
OpenCode version
v0.0.0-beta-18155
Steps to reproduce
install with curl curl -fsSL https://opencode.ai/v2/install | bash
leave an opencode (v1) session active (I am not sure it is a factor, but it was part of the environment. It may be a red herring)
Run opencode2 in any directory.
Screenshot and/or share link
No response
Operating System
Darwin Mac-17 25.5.0 Darwin Kernel Version 25.5.0: Tue Jun 9 22:28:34 PDT 2026; root:xnu-12377.121.10~1/RELEASE_ARM64_T6041 arm64
This issue might be a duplicate of existing issues. Please check:
opencode2 service startup fails while V1 migration scans a large SQLite database #41739: opencode2 service startup fails while V1 migration scans a large SQLite database — similar symptom (background service fails to start), though the reported root cause there involves a large V1 database migration. If you don't have a large existing opencode.db, the underlying cause may differ.
If you can confirm whether ~/.local/share/opencode/opencode.db exists and its approximate size, or share the output of opencode2 serve --service directly (to see if there's a more detailed error), that would help distinguish this from #41739.
Activity
github-actions commentedon Aug 25, 2026
This issue might be a duplicate of existing issues. Please check:
opencode.db, the underlying cause may differ.If you can confirm whether
~/.local/share/opencode/opencode.dbexists and its approximate size, or share the output ofopencode2 serve --servicedirectly (to see if there's a more detailed error), that would help distinguish this from #41739.ucirello commentedon Aug 25, 2026
I save my own soul by deleting all opencode v1 state.