Error: Failed to spawn OpenCode Server. #4516

Open
opened 2026-02-16 17:44:27 -05:00 by yindo · 5 comments
Owner

Originally created by @bcgit2023 on GitHub (Jan 9, 2026).

Originally assigned to: @Brendonovich on GitHub.

Description

Error: Failed to spawn OpenCode Server. Logs:

zu@tauri://localhost/assets/index-BMXdAHf6.js:2:11989
@tauri://localhost/assets/index-BMXdAHf6.js:2:4676

Plugins

None

OpenCode version

1.1.8

Steps to reproduce

  1. Installing MCP
  2. Upgraded to the latest
  3. Cannot Start

Screenshot and/or share link

Image

Operating System

macOS

Terminal

Native Terminal

Originally created by @bcgit2023 on GitHub (Jan 9, 2026). Originally assigned to: @Brendonovich on GitHub. ### Description Error: Failed to spawn OpenCode Server. Logs: zu@tauri://localhost/assets/index-BMXdAHf6.js:2:11989 @tauri://localhost/assets/index-BMXdAHf6.js:2:4676 ### Plugins None ### OpenCode version 1.1.8 ### Steps to reproduce 1. Installing MCP 2. Upgraded to the latest 3. Cannot Start ### Screenshot and/or share link ![Image](https://github.com/user-attachments/assets/42df429c-282f-409c-b1e5-b3a13de68b96) ### Operating System macOS ### Terminal Native Terminal
yindo added the bugweb labels 2026-02-16 17:44:27 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 9, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #2812: Windows spawn ENOENT error in OpenCode SDK - Direct spawn-related error affecting server initialization
  • #6211: Can't start opencode - Port binding/server startup failure on macOS after update
  • #5175: Cannot start OpenCode on Ubuntu - Startup failure after MCP installation/upgrade
  • #5485: OpenCode stuck and does not launch - Generic startup failure after running

These issues share the same pattern: server spawn/initialization failure, particularly after updates or MCP installation. Feel free to ignore if your specific case differs from these.

@github-actions[bot] commented on GitHub (Jan 9, 2026): This issue might be a duplicate of existing issues. Please check: - #2812: Windows spawn ENOENT error in OpenCode SDK - Direct spawn-related error affecting server initialization - #6211: Can't start opencode - Port binding/server startup failure on macOS after update - #5175: Cannot start OpenCode on Ubuntu - Startup failure after MCP installation/upgrade - #5485: OpenCode stuck and does not launch - Generic startup failure after running These issues share the same pattern: server spawn/initialization failure, particularly after updates or MCP installation. Feel free to ignore if your specific case differs from these.
Author
Owner

@adamdotdevin commented on GitHub (Jan 9, 2026):

Can you kill all bun/opencode processes and reinstall?

@adamdotdevin commented on GitHub (Jan 9, 2026): Can you kill all bun/opencode processes and reinstall?
Author
Owner

@nikolas-nelson commented on GitHub (Jan 17, 2026):

Can you kill all bun/opencode processes and reinstall?

I tried and It did't help. Have same error.

@nikolas-nelson commented on GitHub (Jan 17, 2026): > Can you kill all bun/opencode processes and reinstall? I tried and It did't help. Have same error.
Author
Owner

@abaena-gisce commented on GitHub (Jan 21, 2026):

I'm using Linux with Ubuntu 25.10, and it's failing too for me. And it's always showing the --help command for every command I try. I cannot even uninstall. The CLI nor the Desktop Application.

Error: Failed to spawn OpenCode Server. Logs:
[STDOUT] 
[STDOUT]                                  ▄
[STDOUT] █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
[STDOUT] █░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀
[STDOUT] ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀  ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀
[STDOUT] 
[STDOUT] Commands:
[STDOUT]   opencode completion          generate shell completion script
[STDOUT]   opencode acp                 start ACP (Agent Client Protocol) server
[STDOUT]   opencode mcp                 manage MCP (Model Context Protocol) servers
[STDOUT]   opencode [project]           start opencode tui                                          [default]
[STDOUT]   opencode attach <url>        attach to a running opencode server
[STDOUT]   opencode run [message..]     run opencode with a message
[STDOUT]   opencode debug               debugging and troubleshooting tools
[STDOUT]   opencode auth                manage credentials
[STDOUT]   opencode agent               manage agents
[STDOUT]   opencode upgrade [target]    upgrade opencode to the latest or a specific version
[STDOUT]   opencode uninstall           uninstall opencode and remove all related files
[STDOUT]   opencode serve               starts a headless opencode server
[STDOUT]   opencode web                 start opencode server and open web interface
[STDOUT]   opencode models [provider]   list all available models
[STDOUT]   opencode stats               show token usage and cost statistics
[STDOUT]   opencode export [sessionID]  export session data as JSON
[STDOUT]   opencode import <file>       import session data from JSON file or URL
[STDOUT]   opencode github              manage GitHub agent
[STDOUT]   opencode pr <number>         fetch and checkout a GitHub PR branch, then run opencode
[STDOUT]   opencode session             manage sessions
[STDOUT] 
[STDOUT] Positionals:
[STDOUT]   project  path to start opencode in                                                        [string]
[STDOUT] 
[STDOUT] Options:
[STDOUT]   -h, --help        show help                                                              [boolean]
[STDOUT]   -v, --version     show version number                                                    [boolean]
[STDOUT]       --print-logs  print logs to stderr                                                   [boolean]
[STDOUT]       --log-level   log level                   [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
[STDOUT]       --port        port to listen on                                          [number] [default: 0]
[STDOUT]       --hostname    hostname to listen on                            [string] [default: "127.0.0.1"]
[STDOUT]       --mdns        enable mDNS service discovery (defaults hostname to 0.0.0.0)
[STDOUT]                                                                           [boolean] [default: false]
[STDOUT]       --cors        additional domains to allow for CORS                       [array] [default: []]
[STDOUT]   -m, --model       model to use in the format of provider/model                            [string]
[STDOUT]   -c, --continue    continue the last session                                              [boolean]
[STDOUT]   -s, --session     session id to continue                                                  [string]
[STDOUT]       --prompt      prompt to use                                                           [string]
[STDOUT]       --agent       agent to use                                                            [string]

jd@tauri://localhost/assets/index-DQgOcYy4.js:2:11977
@tauri://localhost/assets/index-DQgOcYy4.js:2:4664
@abaena-gisce commented on GitHub (Jan 21, 2026): I'm using Linux with Ubuntu 25.10, and it's failing too for me. And it's always showing the --help command for every command I try. I cannot even uninstall. The CLI nor the Desktop Application. ``` Error: Failed to spawn OpenCode Server. Logs: [STDOUT] [STDOUT]   ▄ [STDOUT] █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ [STDOUT] █░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀ [STDOUT] ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ [STDOUT] [STDOUT] Commands: [STDOUT] opencode completion generate shell completion script [STDOUT] opencode acp start ACP (Agent Client Protocol) server [STDOUT] opencode mcp manage MCP (Model Context Protocol) servers [STDOUT] opencode [project] start opencode tui [default] [STDOUT] opencode attach <url> attach to a running opencode server [STDOUT] opencode run [message..] run opencode with a message [STDOUT] opencode debug debugging and troubleshooting tools [STDOUT] opencode auth manage credentials [STDOUT] opencode agent manage agents [STDOUT] opencode upgrade [target] upgrade opencode to the latest or a specific version [STDOUT] opencode uninstall uninstall opencode and remove all related files [STDOUT] opencode serve starts a headless opencode server [STDOUT] opencode web start opencode server and open web interface [STDOUT] opencode models [provider] list all available models [STDOUT] opencode stats show token usage and cost statistics [STDOUT] opencode export [sessionID] export session data as JSON [STDOUT] opencode import <file> import session data from JSON file or URL [STDOUT] opencode github manage GitHub agent [STDOUT] opencode pr <number> fetch and checkout a GitHub PR branch, then run opencode [STDOUT] opencode session manage sessions [STDOUT] [STDOUT] Positionals: [STDOUT] project path to start opencode in [string] [STDOUT] [STDOUT] Options: [STDOUT] -h, --help show help [boolean] [STDOUT] -v, --version show version number [boolean] [STDOUT] --print-logs print logs to stderr [boolean] [STDOUT] --log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"] [STDOUT] --port port to listen on [number] [default: 0] [STDOUT] --hostname hostname to listen on [string] [default: "127.0.0.1"] [STDOUT] --mdns enable mDNS service discovery (defaults hostname to 0.0.0.0) [STDOUT] [boolean] [default: false] [STDOUT] --cors additional domains to allow for CORS [array] [default: []] [STDOUT] -m, --model model to use in the format of provider/model [string] [STDOUT] -c, --continue continue the last session [boolean] [STDOUT] -s, --session session id to continue [string] [STDOUT] --prompt prompt to use [string] [STDOUT] --agent agent to use [string] jd@tauri://localhost/assets/index-DQgOcYy4.js:2:11977 @tauri://localhost/assets/index-DQgOcYy4.js:2:4664 ```
Author
Owner

@adamdotdevin commented on GitHub (Feb 12, 2026):

@nikolas-nelson @bcgit2023 can you upgrade to latest (1.1.64) and let me know if this is resolved?

@adamdotdevin commented on GitHub (Feb 12, 2026): @nikolas-nelson @bcgit2023 can you upgrade to latest (1.1.64) and let me know if this is resolved?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4516