# NousResearch/hermes-agent · Windows log rotation PermissionError handling approaches

## Open now

- Nothing open on GitHub.

A bug report and multiple proposed fixes addressing PermissionError raised during RotatingFileHandler.doRollover() on Windows, with approaches ranging from catching the exception to aliasing or switching to ConcurrentRotatingFileHandler.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #46794. Verify it addresses your case.
- **Recommended:** read PR #46794 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-46794`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #44873: \[Bug\]: RotatingFileHandler.doRollover() raises PermissionError \[WinError 32\] on Windows — uncaught, spams stderr on every emit

## Prior & competing PRs

- **#46794: fix(logging): alias RotatingFileHandler to concurrent-log-handler (salvage #44921)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `hermes_logging.py`, `pyproject.toml`, `tests/test_hermes_logging.py`
- **#44904: fix(logging): use ConcurrentRotatingFileHandler to fix Windows rollover PermissionError (#44873)**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#44974: fix(logging): catch PermissionError in Windows log rotation (#44873)**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#45062: fix(logging): catch PermissionError in doRollover (#44873)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#44974`, `#44873`

## Fix status

- Merged to main in PR #46794 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-06-17`.
- Subsystem: `agent`
