EPERM when accesing storage #8927

Open
opened 2026-02-16 18:11:11 -05:00 by yindo · 3 comments
Owner

Originally created by @Kerman-Sanjuan on GitHub (Feb 9, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Sometimes, suddenly the Opencode TUI hangs mid answer reporting the following:

Image

Plugins

No response

OpenCode version

1.1.50

Steps to reproduce

  1. Just execute
  2. Sometimes appears

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @Kerman-Sanjuan on GitHub (Feb 9, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Sometimes, suddenly the Opencode TUI hangs mid answer reporting the following: <img width="1210" height="110" alt="Image" src="https://github.com/user-attachments/assets/4ecbbedd-5fa3-4e28-b7a3-77590fad507f" /> ### Plugins _No response_ ### OpenCode version 1.1.50 ### Steps to reproduce 1. Just execute 2. Sometimes appears ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 18:11:11 -05:00
Author
Owner

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

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

  • #8441: EPERM: operation not permitted, open (similar storage permission errors on Windows)
  • #12834: Random TUI freeze/hang with process continuing in background (similar symptoms of TUI hanging)
  • #11089: EBUSY: resource busy or locked when accessing storage files (related storage access errors)

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

@github-actions[bot] commented on GitHub (Feb 9, 2026): This issue might be a duplicate of existing issues. Please check: - #8441: EPERM: operation not permitted, open (similar storage permission errors on Windows) - #12834: Random TUI freeze/hang with process continuing in background (similar symptoms of TUI hanging) - #11089: EBUSY: resource busy or locked when accessing storage files (related storage access errors) Feel free to ignore if none of these address your specific case.
Author
Owner

@R44VC0RP commented on GitHub (Feb 9, 2026):

Can you confirm what OS you're running? The EPERM error accessing storage is typically a Windows file locking issue.

There's an open PR (#6913) that adds retry logic for these transient file lock errors (EPERM, EBUSY, etc.) caused by antivirus or other processes. If you're on Windows, that would likely fix this.

Also related: #12834 reports similar TUI freezes in v1.1.53, though the root cause there seems different.

Can you also share:

  • The full error message/stack trace if you have it
  • Whether you have antivirus software running (especially FortiClient or similar)
  • Does killing and restarting OpenCode always fix it?
@R44VC0RP commented on GitHub (Feb 9, 2026): Can you confirm what OS you're running? The EPERM error accessing storage is typically a Windows file locking issue. There's an open PR (#6913) that adds retry logic for these transient file lock errors (EPERM, EBUSY, etc.) caused by antivirus or other processes. If you're on Windows, that would likely fix this. Also related: #12834 reports similar TUI freezes in v1.1.53, though the root cause there seems different. Can you also share: - The full error message/stack trace if you have it - Whether you have antivirus software running (especially FortiClient or similar) - Does killing and restarting OpenCode always fix it?
Author
Owner

@Kerman-Sanjuan commented on GitHub (Feb 10, 2026):

I running on MacOS 26.2 (25C56)

As software, i have Microsoft Defender on the company laptop.

About restarting fixes, sometimes yes, but little after it comes again.

The error message, could you instruct me on how to get it? I can only see that on the TUI when working on something

@Kerman-Sanjuan commented on GitHub (Feb 10, 2026): I running on MacOS 26.2 (25C56) As software, i have Microsoft Defender on the company laptop. About restarting fixes, sometimes yes, but little after it comes again. The error message, could you instruct me on how to get it? I can only see that on the TUI when working on something
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8927