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
PS D:\xampp\htdocs\joloophp> opencode
Error: Background service failed to start
at z (B:/~BUN/root/chunk-w65nqadd.js:3:3708)
at (B:/~BUN/root/chunk-w65nqadd.js:3:6332)
at service.ensure (B:/~BUN/root/chunk-ysxwc36y.js:3:690)
at service.ensure (definition) (B:/~BUN/root/chunk-w65nqadd.js:3:5523)
at cli.server-connection.resolve (B:/~BUN/root/chunk-mfv1h06t.js:96:6568)
at cli.server-connection.resolve (definition) (B:/~BUN/root/chunk-ysxwc36y.js:2:402)
Plugins
No response
OpenCode version
v2.0.30
Steps to reproduce
update it from [v2.0.29] -> 2.0.30 and it failed to start
Thanks for the report! The message Background service failed to start means the background service did start, but something went wrong while it was booting. The actual error is written to the service log rather than shown in the terminal, so we need a bit more to find the cause:
The log: open %USERPROFILE%\.local\share\opencode\log\opencode.log (press WIN+R and paste %USERPROFILE%\.local\share\opencode\log). Please paste the lines from around the failed start, especially any ERROR lines or stack traces from the service. Remove anything private first.
A restart: does running opencode service restart and then opencode again fix it? Please paste the output of opencode service status and opencode --version too.
Your setup: how did you install OpenCode (npm, installer, scoop, …)? Do you have a global opencode.json/config, plugins or MCP servers configured? Are HTTP_PROXY/HTTPS_PROXY set, or is WSL running?
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 issues look related but show different errors. They're ordered from most to least likely, in case one of them already covers your problem:
2026-10-16T06:20:46.594Z ERROR background service boot failed Cause([Die(SQLiteError: disk I/O error)])
2026-10-16T06:20:47.303Z ERROR cli process failed Cause([Fail(Error: Background service failed to start)])
yes restarting the service did worked thx
no proxy i have blender mcp and unity doesnt really work or not really good at it
thx
Thanks for the log line and for checking the restart, that's exactly what we needed. 🙏
SQLiteError: disk I/O error during service startup is a problem we already know about. I think this is a duplicate of #55107. The error itself is usually short-lived; on Windows it often happens around an update, while something else still has the database files open. The real problem is what happens next. The service process that failed to boot doesn't exit and stays registered, so every later opencode launch shows Background service failed to start, even after the disk error has gone. That's why opencode service restart fixed it for you.
Related issues, ordered from most to least likely to be the same problem:
Updates #55107: same SQLiteError: disk I/O error during service boot, after which every launch fails until the service is restarted
If it happens again, opencode service restart is the workaround. The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.
Closing this as a duplicate of #55107. It's the same SQLiteError: disk I/O error during service startup, after which the failed service stays registered and every launch shows Background service failed to start. Please follow #55107 for updates; pull request #55311 is open to fix it, so the next launch recovers by itself. Until then, opencode service restart gets you running again. Thanks for sending the log line, @karmaMGL! If you see this again and restarting doesn't fix it, please comment here or open a new issue with the log.
Activity
opencode-agent commentedon Oct 16, 2026
Thanks for the report! The message
Background service failed to startmeans the background service did start, but something went wrong while it was booting. The actual error is written to the service log rather than shown in the terminal, so we need a bit more to find the cause:%USERPROFILE%\.local\share\opencode\log\opencode.log(pressWIN+Rand paste%USERPROFILE%\.local\share\opencode\log). Please paste the lines from around the failed start, especially anyERRORlines or stack traces from the service. Remove anything private first.opencode service restartand thenopencodeagain fix it? Please paste the output ofopencode service statusandopencode --versiontoo.opencode.json/config, plugins or MCP servers configured? AreHTTP_PROXY/HTTPS_PROXYset, or is WSL running?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 issues look related but show different errors. They're ordered from most to least likely, in case one of them already covers your problem:
NO_PROXY=127.0.0.1karmaMGL commentedon Oct 16, 2026
2026-10-16T06:20:46.594Z ERROR background service boot failed Cause([Die(SQLiteError: disk I/O error)])
2026-10-16T06:20:47.303Z ERROR cli process failed Cause([Fail(Error: Background service failed to start)])
yes restarting the service did worked thx
no proxy i have blender mcp and unity doesnt really work or not really good at it
thx
opencode-agent commentedon Oct 16, 2026
Thanks for the log line and for checking the restart, that's exactly what we needed. 🙏
SQLiteError: disk I/O errorduring service startup is a problem we already know about. I think this is a duplicate of #55107. The error itself is usually short-lived; on Windows it often happens around an update, while something else still has the database files open. The real problem is what happens next. The service process that failed to boot doesn't exit and stays registered, so every lateropencodelaunch showsBackground service failed to start, even after the disk error has gone. That's whyopencode service restartfixed it for you.Related issues, ordered from most to least likely to be the same problem:
SQLiteError: disk I/O errorduring service boot, after which every launch fails until the service is restartedBackground service failed to starton Windows 11 after quitting with Ctrl+CIf it happens again,
opencode service restartis the workaround. The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.opencode-agent commentedon Oct 17, 2026
Closing this as a duplicate of #55107. It's the same
SQLiteError: disk I/O errorduring service startup, after which the failed service stays registered and every launch showsBackground service failed to start. Please follow #55107 for updates; pull request #55311 is open to fix it, so the next launch recovers by itself. Until then,opencode service restartgets you running again. Thanks for sending the log line, @karmaMGL! If you see this again and restarting doesn't fix it, please comment here or open a new issue with the log.