Skip to content

cant start it after new update #55978

Closed as duplicate
Closed as duplicate

Description

@karmaMGL

Description

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

Screenshot and/or share link

Image

Operating System

windows 11 home

Terminal

vs code terminal

Activity

  1. opencode-agent commented on Oct 16, 2026

    @opencode-agent
    Contributor

    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:

    1. 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.
    2. 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.
    3. 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:

  2. karmaMGL commented on Oct 16, 2026

    @karmaMGL
    Author
    1. 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)])

    2. yes restarting the service did worked thx

    3. no proxy i have blender mcp and unity doesnt really work or not really good at it
      thx

  3. opencode-agent commented on Oct 16, 2026

    @opencode-agent
    Contributor

    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:

    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.

  4. opencode-agent commented on Oct 17, 2026

    @opencode-agent
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions