[Bug 175923] New: digikam uses wrong album root path/wrong disk uuid

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

[Bug 175923] New: digikam uses wrong album root path/wrong disk uuid

Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923

           Summary: digikam uses wrong album root path/wrong disk uuid
           Product: digikam
           Version: unspecified
          Platform: Fedora RPMs
        OS/Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:            (using KDE 4.1.3)
Installed from:    Fedora RPMs

Digikam only shows the included albums when I have my backup disk attached -
although all paths in digikamrc and even in the digikam4.db-file are set right.
When I start Digikam without the external disk I simply get an empty digikam.
If I remove the folder in the settings and re-add it, the problem persists. I
have to remove the database file to get rid of this problem.

Background information:
My files are in /home/liquidat/Bilder/Photoalben/* (several folders). I have an
additional external usb disk with a backup of these data under
/media/BackupDisk/Backup/Bilder/Photoalben/*.

My guess:
I opened the database file and looked around, and finally found this:
sqlite> select * from AlbumRoots;
          id = 1
       label =
      status = 0
        type = 1
  identifier = volumeid:?uuid=313804a2-7421-49cd-a6be-b689886a4dea
specificPath = /home/liquidat/Bilder/Photoalben
The uuid is in fact the one of my external hard disk - my local hard disk is
bound in by VolumeManagement:
$ mount
...
/dev/mapper/VolGroup00-LogVol01 on /home type jfs (rw)
...

So, first of all, how could it ever happen that the wrong uuid was ever chosen?
And how can I correct it now - a VM ususally does not has a uuid.


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Gilles Caulier-4
http://bugs.kde.org/show_bug.cgi?id=175923


Gilles Caulier caulier gilles gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |Database
            Version|unspecified                 |0.10.0-svn




--- Comment #1 from Gilles Caulier <caulier gilles gmail com>  2008-11-23 20:46:04 ---
Yes, same problem here with my VirtualBox image

This week end, Marcel has fixed some issue about UUID provide by KDE4 Solid
interface. This must solve your problem.

Please, test with current implementation from svn (beta6).

Thanks in advance

Gilles Caulier


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Marcel Wiesweg
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923


Marcel Wiesweg marcel wiesweg gmx de changed:

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




--- Comment #2 from Marcel Wiesweg <marcel wiesweg gmx de>  2008-11-23 22:11:48 ---
Can you give the output of "solid-hardware list details"? HAL may have problems
with RAID or volume management, but in this case there should be a fallback on
mount path.

Apart from HAL limitations, I dont see why logical volume dont have uuid, if
there is a filesystem you can have a uuid.


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Marcel Wiesweg
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #3 from Marcel Wiesweg <marcel wiesweg gmx de>  2008-11-23 22:14:36 ---
To be more specific: We should check Solid output with your USB disk plugged
and unplugged.

What happens if you add any folder in your home dir when your USB disk is
unplugged?


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Bugzilla from wolters.liste@gmx.net
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #4 from Roland Wolters <wolters liste gmx net>  2008-11-24 00:32:09 ---
Gilles, unfortunately I can't check this right here with svn6, but maybe the
next days.

Marcel, I will add the two outputs - but what do you mean with "what happens"?
When I add a folder in my home dir the folder is created in the normal way. The
rest of the Linux/KDE environment is totally unaffected, I think. Or do you
mean inside Digikam?


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Bugzilla from wolters.liste@gmx.net
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #5 from Roland Wolters <wolters liste gmx net>  2008-11-24 00:33:22 ---
Created an attachment (id=28783)
 --> (http://bugs.kde.org/attachment.cgi?id=28783)
Solid output with external disk attached

The requested output with the external disk attached. It is an external hard
disk mounted at '/media/EternalBackup'.


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Bugzilla from wolters.liste@gmx.net
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #6 from Roland Wolters <wolters liste gmx net>  2008-11-24 00:39:30 ---
Created an attachment (id=28786)
 --> (http://bugs.kde.org/attachment.cgi?id=28786)
Solid output withou the attached disk.

Here is the file without the external disk.

One thing I forgot:
The real system's hard disk is '/dev/sda'. That one is split into 'sda1' and
'sda2'. 'sda1' is mounted to '/boot'. 'sda2' is encrypted and contains the VM.
Inside the VM there are three partitions, '/', '/home' and '/media/local'.


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Marcel Wiesweg
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #7 from Marcel Wiesweg <marcel wiesweg gmx de>  2008-11-24 20:35:47 ---
What gives us mount path and status is StorageAccess.filePath and
StorageAccess.accessible.
You can see that your local partitions are not found at all.
I dont quite understand the entry for /dev/sdb1 (mounted with empty file path),
but at least your backup disk is recognized.

There is probably a bug in digikam handling empty mount paths and missing
information, I will try to fix it.

If you feel like you can file a bug for HAL (or rather append to any existing
bug report) if recent versions of HAL still fail to handle volume management.


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Marcel Wiesweg
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #8 from Marcel Wiesweg <marcel wiesweg gmx de>  2008-11-24 20:58:19 ---
SVN commit 888548 by mwiesweg:

Ensure that volumes are mounted and that spurious empty mount paths are taken
care for.

CCBUG: 175923

 M  +6 -4      collectionmanager.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=888548


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Bugzilla from wolters.liste@gmx.net
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #9 from Roland Wolters <wolters liste gmx net>  2008-11-24 21:20:06 ---
Marcel, I'm not a HAL guru, so I'm not sure what the output should look like.
However, to make taht clear: my external partition is - of course - also
encrypted. So the partition is inside an encrpyted container, and that
encrypted container lies on '/dev/sdb1'. The partition itself, once encrypted,
lies in '/dev/mapper', that's the usual way for luks encrypted devices.

I would file the bug report against HAL - but right now I'm not sure what the
actual bug is. :/


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Marcel Wiesweg
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #10 from Marcel Wiesweg <marcel wiesweg gmx de>  2008-11-24 21:57:06 ---
Look here:
https://bugs.freedesktop.org/show_bug.cgi?id=6427

A bug filed in 2006, current status unclear from the report.


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Marcel Wiesweg
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #11 from Marcel Wiesweg <marcel wiesweg gmx de>  2008-11-29 16:35:29 ---
Roland, if you test with beta6 or current svn, does digikam now accept your
local directories, just storing the mountpath to identify (volumid:?path), and
not playing tricks on you with your backup disk?


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Gilles Caulier-4
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #12 from Gilles Caulier <caulier gilles gmail com>  2008-12-03 16:24:51 ---
Roland,

digiKam 0.10.0-beta6 is out. Please give us a fresh feedback about your
problem. thanks in advance

Gilles Caulier


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Bugzilla from wolters.liste@gmx.net
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #13 from Roland Wolters <wolters liste gmx net>  2008-12-03 20:44:32 ---
Sorry for the late answer, but I had to wait until the beta6 was build for
Fedora 10. Next time I will build the packages locally (in worst case with the
patches you provide me).

Unfortunately, the bug is still valid:
sqlite> select * from AlbumRoots;
          id = 1
       label =
      status = 0
        type = 1
  identifier = volumeid:?uuid=313804a2-7421-49cd-a6be-b689886a4dea
specificPath = /home/liquidat/Bilder/Photoalben

digikam --version
Qt: 4.4.3
KDE: 4.1.3 (KDE 4.1.3)
digiKam: 0.10.0-beta6

Do I need to change anything manually in the database file? And if so, how?


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Marcel Wiesweg
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #14 from Marcel Wiesweg <marcel wiesweg gmx de>  2008-12-04 11:11:06 ---
You removed your old collection with the setup dialog and added a new one for
your path?

If yes, hm. Then I have to rethink again. (In that case, you could try to
remove the albumroot from the DB: DELETE FROM AlbumRoots WHERE id=1; and add a
new one with the setup dialog)

If no, then please do so and report if your local directory is still recognized
as your USB harddisk when the disk is plugged in, and what happens if you
remove+add when the disk is not plugged in.
(If you have edited information in your DB file you dont want to lose, make a
backup, we can restore that afterwards)

Thank you!


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Bugzilla from wolters.liste@gmx.net
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #15 from Roland Wolters <wolters liste gmx net>  2008-12-08 00:52:25 ---
Marcel,

I removed the collection and re-added it via the configuration window, and now
the collection is shown!
The db file says now:

sqlite> select * from AlbumRoots;
          id = 1
       label = Photoalben
      status = 0
        type = 1
  identifier = volumeid:?uuid=41e057b3-f84b-4f17-bf17-10468d744f50
specificPath = /home/liquidat/Bilder/Photoalben

Btw., most of my tags and so on are lost now (yes, I have backuped the data
before), but I guess it should be enough to replace the volume id in the
backuped file?


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Marcel Wiesweg
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #16 from Marcel Wiesweg <marcel wiesweg gmx de>  2008-12-08 22:00:52 ---
Yes it should.
I dont understand now where this UUID comes from (not in the output from Solid,
updated HAL?) and why tags are lost, but yes try to replace the uuid in the db
file and I am happy if everything works for you.


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Bugzilla from wolters.liste@gmx.net
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #17 from Roland Wolters <wolters liste gmx net>  2008-12-15 19:06:12 ---
The unknown number is my fault - I had to re-format my partition before I
deleted and re-added the database. The setup changed, there is no VM anymore,
but a normal '/' and an encrypted '/home/' partition. The new number is (!)
listed in lshal and solid-hardware correctly:
$ lshal|grep 10468d744f50
udi =
'/org/freedesktop/Hal/devices/volume_uuid_41e057b3_f84b_4f17_bf17_10468d744f50'
  info.udi =
'/org/freedesktop/Hal/devices/volume_uuid_41e057b3_f84b_4f17_bf17_10468d744f50'
 (string)
  volume.uuid = '41e057b3-f84b-4f17-bf17-10468d744f50'  (string)
$ solid-hardware list|grep 10468d744f50
udi =
'/org/freedesktop/Hal/devices/volume_uuid_41e057b3_f84b_4f17_bf17_10468d744f50'

This corresponds to my main hard disk partition, /dev/sda1, which corresponds
to my root partition.

I'm sorry that I forogt to add this, I totally forgot about the re-format.

But the good news is: I re-created the old database, changed the value to the
new uuid (which is not the one the database is actually on, but it is at least
one of the system) and it works now.

However, I wonder why you need the uuid at all for such an album: what will
happen when I buy a new machine and restore the backup, will my database still
work?


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Marcel Wiesweg
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #18 from Marcel Wiesweg <marcel wiesweg gmx de>  2008-12-16 17:41:28 ---
Yes you are right, we need at least provide a simple tool to change the uuid in
cases of full backup restoration.

For a plain standard use case using mount path is sufficient. With UUID mobile
device identification comes for free, and as soon you think of sharing a
database file, using it from Windows and Linux (as soon as KDE Windows
implements Solid properly).
Note that there is still support for identifying by mount path, it is just that
digikam will not use it if it finds a better way.


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
|

[Bug 175923] digikam uses wrong album root path/wrong disk uuid

Marcel Wiesweg
In reply to this post by Bugzilla from wolters.liste@gmx.net
http://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #19 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-01-18 22:42:56 ---
Functionality will not be implemented for 0.10.0. On my TODO list for post
0.10.0.


--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- 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
12