Error: UV_UNKNOWN: unknown error
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:
- ✅ Cleared the entire
C:\Users\Administrator\.local\share\opencode\storagedirectory - ✅ Verified that Administrator has full permissions on the directory
- ✅ Reinstalled OpenCode completely
- ❌ 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!
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.
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.
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.
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
I’m the same — it happens very frequently.
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.