[digikam] [Bug 325447] New: digiKam Doesn't Copy Pictures to Samba Share Mounted with autofs

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 325447] New: digiKam Doesn't Copy Pictures to Samba Share Mounted with autofs

Jesse TeKrony
https://bugs.kde.org/show_bug.cgi?id=325447

            Bug ID: 325447
           Summary: digiKam Doesn't Copy Pictures to Samba Share Mounted
                    with autofs
    Classification: Unclassified
           Product: digikam
           Version: 3.4.0
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Import
          Assignee: [hidden email]
          Reporter: [hidden email]

I have a samba share mounted with autofs. I have set the uid and gid so I have
proper access to the directory and I am able to create/delete files. However,
when attempting to import pictures, the process ends almost instantly and no
pictures are copied, but subdirectories for date-based subalbums are created. I
end up with my sambe share full of empty folders.

I am also sure that autofs has actually mounted the directory before I attempt
to import the pictures.

I have had success in the past mounting the share using cifs in /etc/fstab, but
I find that this slows down the boot process considerable and autofs is a much
more slick solution.

(On a side note, is digiKam still unable to trigger the autofs automount at
application startup? I don't mind putting an 'ls <share>' in the autostart
settings, but it would be nice if I didn't have to. In fact, the website still
states that mounted shares don't work at all.)

Reproducible: Always

Steps to Reproduce:
1. Ensure samba share is mounted by autofs and you have read/write access
2. Launch digiKam and create a new album pointing to the share
3. Attempt to import pictures to the share
Actual Results:  
The process instantly completes and no pictures are copied, however directories
are created based on subalbum rules.

Expected Results:  
Pictures should have been copied to the share directory.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 325447] digiKam Doesn't Copy Pictures to Samba Share Mounted with autofs

Jesse TeKrony
https://bugs.kde.org/show_bug.cgi?id=325447

--- Comment #1 from Jesse TeKrony <[hidden email]> ---
One more thing that I might add is that digikam doesn't log anything to stdout
about this.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 325447] digiKam Doesn't Copy Pictures to Samba Share Mounted with autofs

Gilles Caulier-4
In reply to this post by Jesse TeKrony
https://bugs.kde.org/show_bug.cgi?id=325447

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #2 from Gilles Caulier <[hidden email]> ---
digiKam delegate all copy sttuff to network device to KDE kioslave interface.
You must hack debug messages from KIOSLave :

http://techbase.kde.org/Development/Tutorials/Debugging/Debugging_IOSlaves

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 325447] digiKam Doesn't Copy Pictures to Samba Share Mounted with autofs

Jesse TeKrony
In reply to this post by Jesse TeKrony
https://bugs.kde.org/show_bug.cgi?id=325447

--- Comment #3 from Jesse TeKrony <[hidden email]> ---
"You can start klauncher in such a way that slaves for a certain protocol (the
first parameter of KIO::SlaveBase() constructor of the slave class) are started
in debug mode."

What protocol does digiKam use?

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 325447] digiKam Doesn't Copy Pictures to Samba Share Mounted with autofs

Jesse TeKrony
In reply to this post by Jesse TeKrony
https://bugs.kde.org/show_bug.cgi?id=325447

--- Comment #4 from Jesse TeKrony <[hidden email]> ---
Using some bash-fu to search the source code gives me some results for
"KIO::SlaveBase", but I can't seem to find anything indicating the protocol.
(My knowledge of C++ is very basic)

digikam-3.4.0/core/libs/database/imagelisterreceiver.cpp:125:ImageListerSlaveBaseReceiver::ImageListerSlaveBaseReceiver(KIO::SlaveBase*
slave)
digikam-3.4.0/core/libs/database/imagelisterreceiver.cpp:156:ImageListerSlaveBasePartsSendingReceiver::ImageListerSlaveBasePartsSendingReceiver(KIO::SlaveBase*
slave, int limit)
digikam-3.4.0/core/libs/database/imagelisterreceiver.cpp:173:  
ImageListerSlaveBaseGrowingPartsSendingReceiver(KIO::SlaveBase* slave, int
start, int end, int increment)
digikam-3.4.0/core/kioslave/digikamalbums.cpp:112:// ------------------------
Implementation of KIO::SlaveBase ------------------------ //
digikam-3.4.0/core/kioslave/digikamsearch.cpp:52:    explicit
DuplicatesProgressObserver(KIO::SlaveBase* slave) : m_slave(slave) {}
digikam-3.4.0/core/kioslave/digikamsearch.cpp:65:    KIO::SlaveBase* m_slave;

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 325447] digiKam Doesn't Copy Pictures to Samba Share Mounted with autofs

Jesse TeKrony
In reply to this post by Jesse TeKrony
https://bugs.kde.org/show_bug.cgi?id=325447

--- Comment #5 from Jesse TeKrony <[hidden email]> ---
After fiddling around with the debugging settings a bit, I can see errors now:
digikam(24165)/digikam (core) Digikam::UMSCamera::downloadItem: Failed to open
dest file for writing:
"/var/shares/pictures/2008_11/.digikam-camera-tmp1-24165Picture1.jpg"
digikam(24165)/digikam (core) Digikam::UMSCamera::downloadItem: Failed to open
dest file for writing:
"/var/shares/pictures/2008_12/.digikam-camera-tmp1-24165Picture2.jpg"
digikam(24165)/digikam (core) Digikam::UMSCamera::downloadItem: Failed to open
dest file for writing:
"/var/shares/pictures/2008_12/.digikam-camera-tmp1-24165Picture3.mov"
...

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 325447] digiKam Doesn't Copy Pictures to Samba Share Mounted with autofs

Jesse TeKrony
In reply to this post by Jesse TeKrony
https://bugs.kde.org/show_bug.cgi?id=325447

--- Comment #6 from Jesse TeKrony <[hidden email]> ---
I have also found that mounting using cifs in /etc/fstab doesn't work with
digiKam either. I have gotten this to work in the past, but it seems broken
now.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 325447] digiKam doesn't copy pictures to Samba share mounted with autofs

Gilles Caulier-4
In reply to this post by Jesse TeKrony
https://bugs.kde.org/show_bug.cgi?id=325447

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|digiKam Doesn't Copy        |digiKam doesn't copy
                   |Pictures to Samba Share     |pictures to Samba share
                   |Mounted with autofs         |mounted with autofs

--- Comment #7 from Gilles Caulier <[hidden email]> ---
Jesse,

This file still valid using last digiKam 4.2.0 ?

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 325447] digiKam doesn't copy pictures to Samba share mounted with autofs

bugzilla_noreply
In reply to this post by Jesse TeKrony
https://bugs.kde.org/show_bug.cgi?id=325447

--- Comment #8 from [hidden email] ---
This file still valid using digiKam 5.0.0 ?

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 325447] digiKam doesn't copy pictures to Samba share mounted with autofs

bugzilla_noreply
In reply to this post by Jesse TeKrony
https://bugs.kde.org/show_bug.cgi?id=325447

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Import                      |Import-PostProcessing

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 325447] digiKam doesn't copy pictures to Samba share mounted with autofs

bugzilla_noreply
In reply to this post by Jesse TeKrony
https://bugs.kde.org/show_bug.cgi?id=325447

--- Comment #9 from [hidden email] ---
This problem still reproducible using last DK 5.4.0 bundle ?

https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWlRJenM

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.