opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Error: UV_UNKNOWN: unknown error

Open chenychen opened this issue 10 months ago • 6 comments

Question

Error: UV_UNKNOWN: unknown error, open 'C:\Users\Administrator.local\share\opencode\storage\part\msg_bc4bf030a001butA5ZvOFdSsiR\prt_bc4bf1692001rKRPAXzgC5GaH0.json'

Issue Report

I keep encountering this error while using OpenCode, which constantly interrupts my work and makes it completely unusable. How can I fix this?

Error message:

Error: UV_UNKNOWN: unknown error, open 'C:\Users\Administrator\.local\share\opencode\storage\part\msg_bc4b7df00001xIqsmHSyKgji1M\prt_bc4b7eccd001jYyk5SCfplgEvv.json'

What I've already tried:

  1. ✅ Cleared the entire C:\Users\Administrator\.local\share\opencode\storage directory
  2. ✅ Verified that Administrator has full permissions on the directory
  3. ✅ Reinstalled OpenCode completely
  4. ❌ The error still occurs repeatedly

Environment:

  • OS: Windows (Administrator account)
  • OpenCode version: [1.1.13]
  • Installation method: [npm]

This issue is blocking me from using OpenCode at all. Any help would be greatly appreciated!


chenychen avatar Jan 16 '26 03:01 chenychen

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

  • #7607: If disk space runs out your active session becomes corrupted - describes similar file access errors (.json files in storage/part directory)
  • #8096: Storage bloat issue on Windows C:\ drive that caused storage directory corruption
  • #5431: stats command: SyntaxError: Failed to parse JSON - similar storage/part JSON parsing failures

All of these issues relate to corrupted or inaccessible JSON files in the ~/.local/share/opencode/storage/part directory, which aligns with the UV_UNKNOWN error you're experiencing trying to open .json files.

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Jan 16 '26 03:01 github-actions[bot]

I am having this same issue as well. It will hit for multiple parallel sessions at the same time as well. Not sure what is happening.

AnkMister avatar Jan 21 '26 20:01 AnkMister

I'm having the same issue, and it's happening very frequently—so much so that it’s completely unusable. Reinstalling OpenCode didn’t fix the problem either.

jacnmm4 avatar Jan 26 '26 09:01 jacnmm4

I've been experiencing this issue lately too. Every once in a while, when executing an "opencode run" command, it'll halt the response and return an error like Error: UV_UNKNOWN: unknown error, open 'C:\Users\<my-user>\.local\share\opencode\storage\part\msg_bfbb94786001h24FABp4e5W18X\prt_bfbb95101001v3wgtK9EDRh9oD.json'.

System Info:

  • Windows 11
  • OpenCode 1.1.36
  • Installed via NPM

fantomc0der avatar Jan 26 '26 19:01 fantomc0der

I’m the same — it happens very frequently.

yikolemon avatar Jan 27 '26 02:01 yikolemon

To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

github-actions[bot] avatar Apr 12 '26 03:04 github-actions[bot]