Bug 237785

Summary: Digikam can't copy images to mounted Samba/CIFS share
Product: [Applications] digikam Reporter: wuselwu <einmaladresse_2>
Component: Database-MediaAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 1.2.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Unspecified   
Latest Commit: Version Fixed In: 2.5.0
Sentry Crash Report:
Attachments: Error message (in German)

Description wuselwu 2010-05-16 06:08:36 UTC
Version:            (using KDE 4.4.3)
Installed from:    openSUSE RPMs

I can't copy images from a local collection to a CIFS-mounted network collection. This problem has been present quite some time.

I store my images on a network harddisk mounted this way: 
//192.168.178.1/WD-10Harddisk/ on /media/net-harddisk type cifs (rw,mand)
This is an external, NTFS-formatted harddisk connected to a so-called "Fritz!Box" router. The Fritz!Box runs an embedded Linux and therefore uses Samba in order to provide network access to this drive.

Any other program can tranparently read/write to this share, however, this might be connected, (only) Dolphin complains after every write that the permissions could not be set (all selected files are copied, however).

Digikam interrupts after the first picture to be copied and says "the process for protocol digikams:/ has been terminated unexpectedly" (rough translation from German). The first selected picture has been copied (if you selected "move", the original picture has, however, not yet been deleted). No further pictures will be copied afterwards.
Comment 1 caulier.gilles 2010-05-16 09:58:59 UTC
Which digiKam version you use ? Please test with last 1.2.0 release

Gilles Caulier
Comment 2 wuselwu 2010-06-10 06:10:26 UTC
Created attachment 47845 [details]
Error message (in German)

The problem still persists with 1.2.0 (using openSUSE packages). 
The screenshot shows the KDE progress dialog and Digikam's error message.
The error message occurs after each single picture to be copied if severals photos have been selected. If the photos are supposed to be moved (not copied) to the CIFS-share, the original pic has not yet been deleted when this message occurs, however, the pic already exists at the destination drawer. Digikam's database is not located on the CIFS-share, but on the local harddisk.
Comment 3 Marcel Wiesweg 2010-06-10 17:03:57 UTC
Please check for error messages in your ~/.xsession-errors file while these errors are produced.
Comment 4 wuselwu 2010-06-13 09:33:27 UTC
OK, I e.g. try to copy the picture "DSC_0003.JPG" from a local folder to the remote folder mounted below "/media/network", the album (i.e. remote drawer) is "Meine Fotos/test".

This is what happens in .xsession:

kdeinit4: preparing to launch /usr/lib64/kde4/kio_digikamalbums.so

...then several entries like this:
digikam(8321)/digikam (core) Digikam::CollectionScanner::scanAlbum: Folder does not exist or is not readable:  "/media/network/Meine Fotos/test/DSC_0003.JPG"

...then
kdeinit4: preparing to launch /usr/lib64/kde4/kio_digikamdates.so

...then again several entries of
digikam(8321)/digikam (core) Digikam::CollectionScanner::scanAlbum: Folder does not exist or is not readable:  "/media/network/Meine Fotos/test/DSC_0003.JPG"

...then
QWidget: Cannot create a QWidget when no GUI is being used
kioslave: ####### CRASH ###### protocol = kio_digikamalbums pid = 9923 signal = 6
QSocketNotifier: Invalid socket 12 and type 'Read', disabling...
kio_file(8393) FileProtocol::copy: "Couldn't preserve access and modification time for
/media/network/Meine Fotos/test/DSC_0003.JPG"

I have to add that Dolphin also complains about not being able to preserve file attributes when copying to the mounted network drive. However, Dolphin does not crash.
Comment 5 wuselwu 2010-06-13 09:34:17 UTC
Small addition: Network paths have changed since my original bug report because I set up the system anew.
Comment 6 Marcel Wiesweg 2010-06-13 15:34:10 UTC
Is the remote folder added as a collection to digikam? That is, you copy by drag and drop inside digikam?
Comment 7 wuselwu 2010-06-13 15:55:29 UTC
Yes, I drag and drop inside Digikam.
Comment 8 wuselwu 2010-06-14 16:24:41 UTC
I now also played around with the CIFS-mount option "nobrl" which is supposed to cure problems with OpenOffice. Didn't help for Digikam.
The CIFS-option "noperm" at least helped with the problem concerning the permission settings Dolphin always complained about - Dolphin works much more flawlessly now - however the Digikam problem persists.
Comment 9 Marcel Wiesweg 2011-01-21 16:17:20 UTC
It seems that the kioslave is crashing, seemingly because something tries to create a widget. It is a cumbersome process to get a backtrace from an ioslave, explaing here:
http://techbase.kde.org/Development/Tutorials/Debugging/Debugging_IOSlaves
The service name for the crashing ioslaves is probably "digikamalbums".

I dont have a CIFS mount available for testing atm.
Comment 10 caulier.gilles 2011-12-13 09:43:37 UTC
Larx,

This file still valid with 2.x serie ?

Gilles Caulier
Comment 11 wuselwu 2011-12-13 15:09:17 UTC
As I no longer use the setup in which the problem occured,I unfortunately can no longer give any details.