Opening error on v1.0.119 #3177

Closed
opened 2026-02-16 17:38:59 -05:00 by yindo · 10 comments
Owner

Originally created by @spartanox on GitHub (Nov 27, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

I update opencode to the last version using

curl -fsSL https://opencode.ai/install | bash

And when I run opencode on my project using git, appears this message:

^[[I^[[I^[[I{
    "name": "UnknownError",
    "data": {
        "message": "Error: No such file or directory\n at #run (native:100:9)\n at then (native:150:9)\n at processTicksAndRejections (native:7:39)"
    }
}

I also notice that if I delete git using rm -rf .git and try to open opencode it works, but It shows the same error as soon as I commit.

Notes:

  • If I downgrade, lets say to v1.0.111 it works

OpenCode version

v1.0.119

Steps to reproduce

  • cd project/path
  • opencode

Screenshot and/or share link

No response

Operating System

Ubuntu 20.04.6 LTS

Terminal

Oh My Zsh

Originally created by @spartanox on GitHub (Nov 27, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description I update opencode to the last version using ```bash curl -fsSL https://opencode.ai/install | bash ``` And when I run opencode on my project using git, appears this message: ```bash ^[[I^[[I^[[I{ "name": "UnknownError", "data": { "message": "Error: No such file or directory\n at #run (native:100:9)\n at then (native:150:9)\n at processTicksAndRejections (native:7:39)" } } ``` I also notice that if I delete git using `rm -rf .git` and try to open opencode it works, but It shows the same error as soon as I commit. Notes: - If I downgrade, lets say to v1.0.111 it works ### OpenCode version v1.0.119 ### Steps to reproduce - cd project/path - opencode ### Screenshot and/or share link _No response_ ### Operating System Ubuntu 20.04.6 LTS ### Terminal Oh My Zsh
yindo added the bug label 2026-02-16 17:38:59 -05:00
yindo closed this issue 2026-02-16 17:38:59 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 28, 2025):

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

  • #1856: Missing ~/.local/share/opencode/bin directory causes misleading ENOENT errors - directly addresses 'No such file or directory' errors
  • #1670: All commands return No such file or directory - similar error on different systems
  • #4212: Fail to start in a newly initialized repo - related git operation failures
  • #3929: AUR install cannot run because it cannot run stat ./opencode - similar 'No such file or directory' in opentui
  • #4755: opencode Terminal UI shows empty screen on v1.0.111 - version-related issue on Ubuntu with similar environment

The root cause likely traces back to #1856, where the ~/.local/share/opencode/bin directory is never created during initialization despite being used extensively, causing subprocess spawn failures after git operations.

Feel free to ignore if your specific case differs from these.

@github-actions[bot] commented on GitHub (Nov 28, 2025): This issue might be a duplicate of existing issues. Please check: - #1856: Missing `~/.local/share/opencode/bin` directory causes misleading ENOENT errors - directly addresses 'No such file or directory' errors - #1670: All commands return `No such file or directory` - similar error on different systems - #4212: Fail to start in a newly initialized repo - related git operation failures - #3929: AUR install cannot run because it cannot run `stat ./opencode` - similar 'No such file or directory' in opentui - #4755: opencode Terminal UI shows empty screen on v1.0.111 - version-related issue on Ubuntu with similar environment The root cause likely traces back to #1856, where the `~/.local/share/opencode/bin` directory is never created during initialization despite being used extensively, causing subprocess spawn failures after git operations. Feel free to ignore if your specific case differs from these.
Author
Owner

@cjfagerstrom commented on GitHub (Nov 28, 2025):

Same issue/ver. It works in my parent dir and other project folders, but not in the one I'm trying to use it in. Error in log: service=default error=[object Object] tui bootstrap failed.

From another log file:

INFO  2025-11-28T05:16:25 +69ms service=server method=GET path=/config/providers rERROR 2025-11-28T05:16:25 +272ms service=default error=[object Object] tui bootstrap failed
providers request
INFO  2025-11-28T05:16:25 +1ms service=default directory=/Users/Chris/Dev/turbo-monorepo creating instance
INFO  2025-11-28T05:16:25 +0ms service=project directory=/Users/Chris/Dev/turbo-monorepo fromDirectory
INFO  2025-11-28T05:16:25 +1ms service=project status=started git.rev-parse
INFO  2025-11-28T05:16:25 +0ms service=server method=GET path=/provider request
INFO  2025-11-28T05:16:25 +0ms service=server status=started method=GET path=/provider request
INFO  2025-11-28T05:16:25 +0ms service=server method=GET path=/agent request
INFO  2025-11-28T05:16:25 +0ms service=server status=started method=GET path=/agent request
INFO  2025-11-28T05:16:25 +0ms service=server method=GET path=/config request
INFO  2025-11-28T05:16:25 +0ms service=server status=started method=GET path=/config request
INFO  2025-11-28T05:16:25 +0ms service=server method=GET path=/event request
INFO  2025-11-28T05:16:25 +0ms service=server status=started method=GET path=/event request
INFO  2025-11-28T05:16:25 +0ms service=project status=completed duration=0 git.rev-parse
ERROR 2025-11-28T05:16:25 +58ms service=server error=No such file or directory failed
ERROR 2025-11-28T05:16:25 +0ms service=server error=No such file or directory failed
ERROR 2025-11-28T05:16:25 +0ms service=server error=No such file or directory failed
ERROR 2025-11-28T05:16:25 +0ms service=server error=No such file or directory failed
ERROR 2025-11-28T05:16:25 +0ms service=server error=No such file or directory failed
INFO  2025-11-28T05:16:25 +1ms service=server status=completed duration=61 method=GET path=/config/providers request
INFO  2025-11-28T05:16:25 +0ms service=server status=completed duration=59 method=GET path=/provider request
INFO  2025-11-28T05:16:25 +0ms service=server status=completed duration=59 method=GET path=/agent request
INFO  2025-11-28T05:16:25 +0ms service=server status=completed duration=59 method=GET path=/config request
INFO  2025-11-28T05:16:25 +0ms service=server status=completed duration=59 method=GET path=/event request
INFO  2025-11-28T05:16:25 +28ms service=default worker shutting down
INFO  2025-11-28T05:16:25 +0ms service=default disposing all instances
@cjfagerstrom commented on GitHub (Nov 28, 2025): Same issue/ver. It works in my parent dir and other project folders, but not in the one I'm trying to use it in. Error in log: `service=default error=[object Object] tui bootstrap failed`. From another log file: ``` INFO 2025-11-28T05:16:25 +69ms service=server method=GET path=/config/providers rERROR 2025-11-28T05:16:25 +272ms service=default error=[object Object] tui bootstrap failed providers request INFO 2025-11-28T05:16:25 +1ms service=default directory=/Users/Chris/Dev/turbo-monorepo creating instance INFO 2025-11-28T05:16:25 +0ms service=project directory=/Users/Chris/Dev/turbo-monorepo fromDirectory INFO 2025-11-28T05:16:25 +1ms service=project status=started git.rev-parse INFO 2025-11-28T05:16:25 +0ms service=server method=GET path=/provider request INFO 2025-11-28T05:16:25 +0ms service=server status=started method=GET path=/provider request INFO 2025-11-28T05:16:25 +0ms service=server method=GET path=/agent request INFO 2025-11-28T05:16:25 +0ms service=server status=started method=GET path=/agent request INFO 2025-11-28T05:16:25 +0ms service=server method=GET path=/config request INFO 2025-11-28T05:16:25 +0ms service=server status=started method=GET path=/config request INFO 2025-11-28T05:16:25 +0ms service=server method=GET path=/event request INFO 2025-11-28T05:16:25 +0ms service=server status=started method=GET path=/event request INFO 2025-11-28T05:16:25 +0ms service=project status=completed duration=0 git.rev-parse ERROR 2025-11-28T05:16:25 +58ms service=server error=No such file or directory failed ERROR 2025-11-28T05:16:25 +0ms service=server error=No such file or directory failed ERROR 2025-11-28T05:16:25 +0ms service=server error=No such file or directory failed ERROR 2025-11-28T05:16:25 +0ms service=server error=No such file or directory failed ERROR 2025-11-28T05:16:25 +0ms service=server error=No such file or directory failed INFO 2025-11-28T05:16:25 +1ms service=server status=completed duration=61 method=GET path=/config/providers request INFO 2025-11-28T05:16:25 +0ms service=server status=completed duration=59 method=GET path=/provider request INFO 2025-11-28T05:16:25 +0ms service=server status=completed duration=59 method=GET path=/agent request INFO 2025-11-28T05:16:25 +0ms service=server status=completed duration=59 method=GET path=/config request INFO 2025-11-28T05:16:25 +0ms service=server status=completed duration=59 method=GET path=/event request INFO 2025-11-28T05:16:25 +28ms service=default worker shutting down INFO 2025-11-28T05:16:25 +0ms service=default disposing all instances ```
Author
Owner

@rekram1-node commented on GitHub (Nov 28, 2025):

I think both of you are on pretty old versions of git? Hm okay ill see what we can do

Can you show me git --version just to confirm? @cjfagerstrom @spartanox

I should be able to get a fix tmr morn for you

@rekram1-node commented on GitHub (Nov 28, 2025): I think both of you are on pretty old versions of git? Hm okay ill see what we can do Can you show me `git --version` just to confirm? @cjfagerstrom @spartanox I should be able to get a fix tmr morn for you
Author
Owner

@ReversedK commented on GitHub (Nov 28, 2025):

Same here,Linux, git version 2.25.1
Updating git (2.50.1) fixed the pb

@ReversedK commented on GitHub (Nov 28, 2025): Same here,Linux, git version 2.25.1 Updating git (2.50.1) fixed the pb
Author
Owner

@rekram1-node commented on GitHub (Nov 28, 2025):

cool just wanted to confirm. I will try to adjust that absolute path flag since it doesnt work on older git versions i think there is some work around

@rekram1-node commented on GitHub (Nov 28, 2025): cool just wanted to confirm. I will try to adjust that absolute path flag since it doesnt work on older git versions i think there is some work around
Author
Owner

@spartanox commented on GitHub (Nov 28, 2025):

My git version that causes the error: git version 2.25.1

It makes sense. I just installed Git with the default Ubuntu version using the command apt install git, instead of using the PPA for the new versions.

Now I installed the version 2.50.1 with the PPA and the error is gone.

Thanks for the information.

@spartanox commented on GitHub (Nov 28, 2025): My git version that causes the error: `git version 2.25.1` It makes sense. I just installed Git with the default Ubuntu version using the command `apt install git`, instead of using the PPA for the new versions. Now I installed the version `2.50.1` with the PPA and the error is gone. Thanks for the information.
Author
Owner

@samyakbhuta commented on GitHub (Nov 28, 2025):

I had exact same issues as @spartanox . Made upgrade to latest git and it just started working. Thanks @rekram1-node 🙏

@samyakbhuta commented on GitHub (Nov 28, 2025): I had exact same issues as @spartanox . Made upgrade to latest `git` and it just started working. Thanks @rekram1-node 🙏
Author
Owner

@cjfagerstrom commented on GitHub (Nov 28, 2025):

Interesting - the version of git in my IDE shows 2.52.0, but I was running the command in my terminal and that shows v2.23.0. I assumed my IDE was using my system installed git, but it must keep its own version and update it independently. I updated git through brew and that did resolve the issue. Thanks!

@cjfagerstrom commented on GitHub (Nov 28, 2025): Interesting - the version of git in my IDE shows 2.52.0, but I was running the command in my terminal and that shows v2.23.0. I assumed my IDE was using my system installed git, but it must keep its own version and update it independently. I updated git through brew and that did resolve the issue. Thanks!
Author
Owner

@cjfagerstrom commented on GitHub (Nov 28, 2025):

cool just wanted to confirm. I will try to adjust that absolute path flag since it doesnt work on older git versions i think there is some work around

Or just a note in the install instructions to make sure you've updated git to >X version.

@cjfagerstrom commented on GitHub (Nov 28, 2025): > cool just wanted to confirm. I will try to adjust that absolute path flag since it doesnt work on older git versions i think there is some work around Or just a note in the install instructions to make sure you've updated git to >X version.
Author
Owner

@rekram1-node commented on GitHub (Dec 1, 2025):

should be fixed in next release by this

@rekram1-node commented on GitHub (Dec 1, 2025): should be fixed in next release by [this](https://github.com/sst/opencode/commit/f6262460ff331c960c7e26202ffff17f16cb515a)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3177