Skip to content

Conversation

@LizardLiang
Copy link

Problem

On Windows, storage operations can fail with UV_UNKNOWN errors due to transient file locking from anti-virus software (e.g., FortiClient) or other processes accessing the files.

Solution

Added retry logic (up to 3 retries with incremental delays) before giving up, which allows time for anti-virus or other processes to release the file lock.

Change

  • Adds retry logic for transient file system errors on Windows
  • Handles UV_UNKNOWN, EBUSY, EPERM, EACCES, and EAGAIN errors

On Windows, storage operations can fail with UV_UNKNOWN errors due to
transient file locking from anti-virus software or other processes.

This change:
- Adds retry logic (3 attempts with exponential backoff) for transient errors
  including UV_UNKNOWN, EBUSY, EPERM, EACCES, and EAGAIN
- Adds detailed error logging with path, pathLength, errno, and syscall
  to help diagnose storage operation failures
@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2026

The following comment was made by an LLM, it may be inaccurate:

No Duplicates Found

The searches across multiple relevant keywords only returned the same PR (likely the one being created). No duplicate or related open PRs were found that address:

  • Storage retry logic for Windows
  • UV_UNKNOWN error handling
  • File locking issues with anti-virus software
  • Transient file system error retries

Conclusion: This appears to be a unique fix. You're safe to proceed with this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant