Failing to download photos from CIFS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rapid Photo Downloader |
Fix Released
|
Undecided
|
Damon Lynch |
Bug Description
I download photos from cards to the Synology NAS. The images are shared using AFP/SAMBA/CIFS and I process them from the shared folder. The folders are mounted like this:
//IP_ADDRESS/
When I try to download them from the share, RPD sees them, creates previews, but almost all images fail to copy with:
Unable to copy file DSC_7741.NEF
Error: 5 Input/output error
I don't quite understand the error, as the files are readable - I never had the problem using other tools, like Digikam, Darktable, even cp.
RPD displays error after some time and even stops the download (noticed while retrying the process - RPD is responding, there is PAUSE (and resume) available, but iotop displays no disk activity):
ERROR An unhandled exception occurred
ERROR Traceback (most recent call last):
File "/home/
assert chunk_downloaded >= 0
AssertionError
I suspect that it may be caused by the cifs mount as RPD has no problem copying the files directly from the card reader.
RPD log is attached.
Any suggestions where I should look?
Changed in rapid: | |
status: | Incomplete → Fix Released |
I have no experience a NAS. However clearly something is going badly wrong when attempting to copy from the NAS to your computer.
Rapid Photo Downloader is coded in Python, and uses Python's standard library to undertake copy operations. Those standard library operations like read and write are reporting an error. That means there is either a problem with the Python standard library (unlikely but possible I suppose) or with your setup (much more likely).
The fact that you can access the files using other tools may not mean much because the a problem with your setup may manifest only when a files are being rapidly accessed / copied, which is what Rapid Photo Downloader does: a single process copies files one after the other in rapid succession, with very minimal pause between copy operations.
I suppose another possibility is that when copying from a NAS, it is not designed to have files read from 1 MB at a time (which is the strategy Rapid Photo Downloader uses). If you can do some research as to whether this is a limitation when copying from a NAS I would appreciate that.
In any case, thanks to your bug report, I have made some changes to the code to better assist error diagnosis, as well as fixing the bug that triggered the assertion failure.