Repository navigation
DUP 0.7.25 — Accurate deletion failures and filesystem diagnostics
This maintenance release fixes misleading error reporting when a Synology, Windows or Linux worker cannot delete selected files.
Changes
- Preserve and report the actual operating-system failure from
unlink()instead of suppressing it and substituting the vague message "Unable to delete the selected file." - A failed delete now records the worker account, whether the running process belongs to the
httpgroup (where supported), whether the containing directory appears writable, and the affected scan directory. - Permission-denied and read-only-volume failures include actionable hints. DSM group and shared-folder ACL permissions still govern whether deletion is actually allowed.
- If every selected file fails, mark the job as Failed, not Completed. Retain the full attempted-file count, the batch failure, and an explanation of the first failure in Job Monitor.
- Show failures as warning-level completion events, with exact successful/failed counts. Remove the redundant
irreversible: 1flag from the completion event; it was a Boolean, not a deleted-file count. - Register new diagnostic codes
DUP-FS-105(filesystem deletion rejected) andDUP-DELETE-201(entire delete job failed), both linked from the error-code reference. - No automatic retry, hash reread, new scan, or duplicate-group rebuild is introduced. No file-permission changes are made by the installer.
Notes
A scan can succeed even when deletion is denied. A deleting worker must have write/delete permissions on the containing directory, including Synology shared-folder ACL rules. The DSM SPK runs its worker as the dup package account, with supplementary http group membership where configured. Merely being able to read the files does not establish delete permission.
The historical 2026-11-23 job reporting 0 deleted / 33 failed cannot reveal its original operating-system error because that older worker discarded the warning. The precise cause requires NAS permissions inspection or a new, explicitly authorized delete attempt after upgrading. The software does not automatically rerun old failed deletions.
Validation
- Full PHP regression suite and 44 Twig templates.
- Filesystem helper test checks that successful deletes do not rehash and rejected deletes retain an OS diagnostic and worker context.
- Job regression confirms a zero-success delete is marked Failed with the correct 1/1 attempted count.
- Production Symfony container and both web ZIP / DSM SPK package checks.
Downloads
DUP-DSM7-0.7.25.spk— Synology DSM 7 package.DUP-Web-0.7.25.zip— generic Windows/Linux PHP web-server package.
Back up the database and persistent files before upgrading. Existing scan and action history are preserved. The NAS itself has not been upgraded or directly tested due to unavailable SSH authentication.