Skip to content

unable to launch the opencode cli after latest update 2.2.4 #60667

Closed as not planned

Description

@thermeng

Description

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)

Plugins

No response

OpenCode version

2.2.4

Steps to reproduce

No response

Screenshot

No response

Operating System

Windows 11

Terminal

Windows Terminal

Activity

  1. opencodejr commented on Oct 30, 2026

    @opencodejr
    Contributor

    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:

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

  2. thermeng commented on Oct 30, 2026

    @thermeng
    Author

    updated via /update not opencode update

  3. thermeng commented on Oct 30, 2026

    @thermeng
    Author

    it works after opencode service stop
    closing the issue, thanks

  4. opencodejr commented on Nov 2, 2026

    @opencodejr
    Contributor

    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!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions