[Bug] Folder Permissions error prevents a library scan
Running Codex v2.1.0 on my Synology DS920, my collection is on /volume1/Comics, a shared folder which also happened to have the recycle bin enabled. Despite allowing permissions to all files and folders on /volume1/Comics, the /volume1/Comics/#recycle folder continued to be a problem, preventing a library scan on the remaining folders. The issue seems to be in codex/librarian/fs/poller/poller.py on line 128, as seen by the attached log file (taken after initiating a scan). I could get round this by creating a subfolder inside of /volume1/Comics, but it does highlight that if only 1 folder out of many has a permissions issue, it causes the entire scan to crash. In the end I removed the Recycle bin from the shared folder and deleted /volume1/Comics/#recycle, and then added the following lines to my Docker compose just to be safe:
```
environment:
- CODEX_IGNORE_DIRS=/comics/#recycle
```
[_codex_logs.txt](https://github.com/user-attachments/files/29665755/_codex_logs.txt)
关闭于 2026-07-04 2 条评论