Error: UV_UNKNOWN: unknown error #6413

Open
opened 2026-02-16 18:04:09 -05:00 by yindo · 5 comments
Owner

Originally created by @chenychen on GitHub (Jan 15, 2026).

Originally assigned to: @rekram1-node on GitHub.

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!


Originally created by @chenychen on GitHub (Jan 15, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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! ---
yindo added the windows label 2026-02-16 18:04:09 -05:00
Author
Owner

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

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] commented on GitHub (Jan 15, 2026): 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.
Author
Owner

@AnkMister commented on GitHub (Jan 21, 2026):

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 commented on GitHub (Jan 21, 2026): 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.
Author
Owner

@jacnmm4 commented on GitHub (Jan 26, 2026):

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 commented on GitHub (Jan 26, 2026): 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.
Author
Owner

@fantomc0der commented on GitHub (Jan 26, 2026):

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 commented on GitHub (Jan 26, 2026): 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
Author
Owner

@yikolemon commented on GitHub (Jan 26, 2026):

I’m the same — it happens very frequently.

@yikolemon commented on GitHub (Jan 26, 2026): I’m the same — it happens very frequently.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6413