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
unable to launch the opencode cli after latest update 2.2.4 #60667
On launch the opencode cli, following error occurs & opencode fails to start:
Error: Background service failed to start
at L (B:/~BUN/root/chunk-p29111vy.js:3:893)
at <anonymous> (B:/~BUN/root/chunk-p29111vy.js:3:6325)
at service.ensure (B:/~BUN/root/chunk-pzqhk20b.js:3:680)
at service.ensure (definition) (B:/~BUN/root/chunk-p29111vy.js:3:5516)
at cli.server-connection.resolve (B:/~BUN/root/chunk-rk83hfs6.js:95:6625)
at cli.server-connection.resolve (definition) (B:/~BUN/root/chunk-pzqhk20b.js:2:472)
Thanks for the report! Background service failed to start is a generic message: the background service started, but its own startup failed, and the actual cause isn't shown in this output. Could you share:
The service log: the most recent lines from %USERPROFILE%\.local\share\opencode\log\opencode.log from around the failed launch, especially any line containing background service boot failed. Please remove anything sensitive first.
The output of running the service in the foreground, which usually shows the underlying error directly:
opencode service stop
opencode serve --service --print-logs --log-level debug
How you installed and updated OpenCode: npm, bun, the installer or Desktop, and whether the update to 2.2.4 came from /update, an automatic update or a manual reinstall. Also, do you run OpenCode Desktop on the same machine?
If you'd like to try something in the meantime: in a similar report, running opencode service stop (or ending any leftover opencode processes in Task Manager) and then launching opencode again got it working.
You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know you're done.
These existing issues look related, ordered from most to least likely to match. Please check whether one of them already covers your problem:
We haven't heard back, so I'm closing this for now. Background service failed to start is a generic message, and without the service log we can't tell which of the known causes this is, or reproduce it.
If you're still stuck, try running opencode service stop, or end any leftover opencode processes in Task Manager, then launch opencode again. If that doesn't help, please comment here with the background service boot failed line from %USERPROFILE%\.local\share\opencode\log\opencode.log, or the output of opencode serve --service --print-logs --log-level debug, and we can reopen this.
The most likely match is #59189, a Windows boot failure with SQLiteError: disk I/O error that leaves the failed service holding the port. You can follow it for updates. Thanks for the report, @thermeng!
Activity
opencodejr commentedon Oct 30, 2026
Thanks for the report!
Background service failed to startis a generic message: the background service started, but its own startup failed, and the actual cause isn't shown in this output. Could you share:%USERPROFILE%\.local\share\opencode\log\opencode.logfrom around the failed launch, especially any line containingbackground service boot failed. Please remove anything sensitive first./update, an automatic update or a manual reinstall. Also, do you run OpenCode Desktop on the same machine?If you'd like to try something in the meantime: in a similar report, running
opencode service stop(or ending any leftoveropencodeprocesses in Task Manager) and then launchingopencodeagain got it working.You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it, so we know you're done.
These existing issues look related, ordered from most to least likely to match. Please check whether one of them already covers your problem:
SQLiteError: disk I/O error, and the failed process stays on the service port, so every later launch showsBackground service failed to start/update(closed as a duplicate of desktop: service stuck at 500 after SQLite "disk I/O error" on resume from sleep #59189)EPERMerror when the service tightens permissions onopencode.dbthermeng commentedon Oct 30, 2026
updated via /update not opencode update
thermeng commentedon Oct 30, 2026
it works after opencode service stop
closing the issue, thanks
opencodejr commentedon Nov 2, 2026
We haven't heard back, so I'm closing this for now.
Background service failed to startis a generic message, and without the service log we can't tell which of the known causes this is, or reproduce it.If you're still stuck, try running
opencode service stop, or end any leftoveropencodeprocesses in Task Manager, then launchopencodeagain. If that doesn't help, please comment here with thebackground service boot failedline from%USERPROFILE%\.local\share\opencode\log\opencode.log, or the output ofopencode serve --service --print-logs --log-level debug, and we can reopen this.The most likely match is #59189, a Windows boot failure with
SQLiteError: disk I/O errorthat leaves the failed service holding the port. You can follow it for updates. Thanks for the report, @thermeng!