mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-05 01:27:25 +00:00
[GH-ISSUE #111] Issue: Sync fails with Permission denied when lock files (~$...) are present in source folder #64
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/oikb#64
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Joni1717 on GitHub (Aug 24, 2026).
Original GitHub issue: https://github.com/open-webui/oikb/issues/111
Type: Bug
Description
Syncing a network path aborts when the folder contains Office lock files:
~$...files are created by Office while a workbook is open and are exclusively locked, so they can't be read.Root cause
Even with an
includefilter set, oikb walks the entire tree and reads metadata (hash) for every file before applying the filter:So the scanner hits a locked
~$...file that would never be uploaded anyway, and the whole sync fails.Expected behavior
~$*,~*,*.tmp, hidden files (.*).filter.include/excludebefore opening files, so non-matching files are never read.PermissionErroras a soft skip (warning: skip <file> (permission denied)) and continue — on network shares, locked files (Excel, Outlook, AV, concurrent users) are normal and should not be a hard failure.Actual behavior
PermissionErroris raised unhandled → the entire sync fails, nothing gets uploaded.Repro
.xlsxcurrently open in Excel (creates~$...).filter.includetargeting a different file.Workaround
Close all open documents in the source folder (removes
~$...), then re-run.Environment