[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] 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
----------------------------------------------------------------------------
            Version|0.10.0-svn                  |0.10.1-svn




--- Comment #20 from Gilles Caulier <caulier gilles gmail com>  2009-01-19 08:49:11 ---
MArcel,

I just created 0.10.1-svn release tag in bugzilla.

Gilles


--
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
https://bugs.kde.org/show_bug.cgi?id=175923


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|0.10.1-svn                  |0.11.0-svn




--
Configure bugmail: https://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
https://bugs.kde.org/show_bug.cgi?id=175923


Marcel Wiesweg <[hidden email]> changed:

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




--- Comment #21 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-04-11 18:04:59 ---
*** Bug 189362 has been marked as a duplicate of this bug. ***

--
Configure bugmail: https://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
https://bugs.kde.org/show_bug.cgi?id=175923


Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED




--- Comment #22 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-07-02 17:54:34 ---
SVN commit 990542 by mwiesweg:

Implement automatic migration for a case when a "hard-wired" collection is no
longer found.
This may happen if the user restores a backup, changes the file system etc.
In this case, we scan the available volumes for migration candidates, where the
old
relative path exists. These candidates are presented for choice.
In the most common case (one data partition, UUID changed) there will be
exactly one
candidate here.
The second option is to mark a collection as removable, if autodetection failed
or
the user likes to use his screwdriver a lot.
Third option is to do nothing ("I would like to solve the problem later using
the setup dialog").
In this case, however, the message will just popup at every startup.

BUG: 175923

 M  +2 -1      NEWS  
 M  +108 -3    digikam/albummanager.cpp  


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

--
Configure bugmail: https://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
https://bugs.kde.org/show_bug.cgi?id=175923


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|0.11.0-svn                  |1.0.0




--
Configure bugmail: https://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

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


Milan Knizek <[hidden email]> changed:

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




--- Comment #23 from Milan Knizek <knizek volny cz>  2009-10-10 21:00:43 ---
This bug is marked as fixed, but I have experienced the same troubles with
1.0.0beta5 (rev. 1022810).

I have migrated my disk to LVM2, which resulted in changed UUIDs. On startup,
digiKam did not find the existing collection (in the same path as before:
/media/Data/Photo/Images - it is not a removable partition, even that is in
/media directory) and offered to mark it as "on removable drive" or "do
nothing". I chose the latter option.

Then, I manually edited digikam4.db UUID value in RootAlbum for the partition
having the actual images, but no go.

I had a first success with setting UUID of the first partition in the system
(/boot on sda2). digiKam opened fine and showed the albums/thumbnails in the
collection.

However, when I rescanned the collection for new images, the collection
disappeared immediately again (nothing in album list). During scanning, the
popup window showed two steps (Preparing for scanning, Scanning for removed
albums). The settings showed a different path (with /boot prefixed: the path
does not exist), while db still shows the original (and existing) path.

After that, I had no success changing the UUIDs in db.

Finally, I solved that by creating a symlink /boot/media to /media. On startup,
digiKam offered to set the lost collection as the one existing on
/boot/media/Data/Photo/Images.

Note that on each trial, I started with the original db restored from a backup.

$ ls -la /dev/disk/by-uuid/
drwxr-xr-x 2 root root 100 2009-10-10 21:20 .
drwxr-xr-x 6 root root 120 2009-10-10 21:20 ..
lrwxrwxrwx 1 root root  10 2009-10-10 21:20
d2c4afc9-c7e0-4ce0-89a5-d3989e14c5c3 -> ../../sda2
lrwxrwxrwx 1 root root  20 2009-10-10 21:20
6425bcd4-3bc1-4ff1-a167-e0afe92d1a00 -> ../../mapper/vg-swap
lrwxrwxrwx 1 root root  20 2009-10-10 21:20
6954fd86-3273-4361-9583-b46841303c2f -> ../../mapper/vg-root

The collection is on "vg-root" (which is mounted as /).

$ mount (I removed extra lines of tmpfs, etc)
/dev/mapper/vg-root on / type ext4 (rw,relatime)
/dev/sda2 on /boot type ext3 (rw)
/home on /home-bind type none (ro,bind)
/home/modeluser/.Private on /home/modeluser type ecryptfs (blabla...)

So, I can see two problems:
x Bug re. UUID from another partition still exists
x Scanning for existing collections on startup is done only on one partition
(sda2) and not on the other (vg-root).

--
Configure bugmail: https://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
https://bugs.kde.org/show_bug.cgi?id=175923


Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|FIXED                       |




--- Comment #24 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-10-10 21:41:31 ---
Can you attach the output of "solid-hardware list details" and give me the
contents of the AlbumRoots table of the DBs before and after?

--
Configure bugmail: https://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

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





--- Comment #25 from Milan Knizek <knizek volny cz>  2009-10-11 08:27:26 ---
Created an attachment (id=37505)
 --> (http://bugs.kde.org/attachment.cgi?id=37505)
$ solid-hardware list details

--
Configure bugmail: https://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

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





--- Comment #26 from Milan Knizek <knizek volny cz>  2009-10-11 08:33:00 ---
db contents of db backup:
$ sqlite3 "digikam4 (before_lvm_migration).db"
SQLite version 3.6.10
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select * from AlbumRoots;
1|Images|0|1|volumeid:?uuid=cad56872-889c-4f3b-ae9c-a5367acbcecd|/media/Data/Photo/Images

db contents of a working db (collection on lvm disk, using the /boot/media
symlink workaround):
$ sqlite3 digikam4.db
SQLite version 3.6.10
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select * from AlbumRoots;
1|Images|0|1|volumeid:?uuid=d2c4afc9-c7e0-4ce0-89a5-d3989e14c5c3|/media/Data/Photo/Images

In the Settings, digikam shows the path to the collection as
"/boot/media/Data/Photo/Images"

--
Configure bugmail: https://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
https://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #27 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-10-16 21:42:11 ---
The solid-hardware dump shows that HAL recognizes only the /boot partition
(probably non-LVM2). This explains why your hack is needed.

This is not a digikam problem; you probably need to upgrade HAL. I short
googling on HAL and LVM2 showed this:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510546

--
Configure bugmail: https://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
https://bugs.kde.org/show_bug.cgi?id=175923


Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |UPSTREAM




--
Configure bugmail: https://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 hochglanz@muenchen-mail.de
In reply to this post by Bugzilla from wolters.liste@gmx.net
https://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #28 from Harald Nikolisin <hochglanz muenchen-mail de>  2010-09-09 23:39:46 ---
Created an attachment (id=51491)
 --> (http://bugs.kde.org/attachment.cgi?id=51491)
HAL does not list md's

--
Configure bugmail: https://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 hochglanz@muenchen-mail.de
In reply to this post by Bugzilla from wolters.liste@gmx.net
https://bugs.kde.org/show_bug.cgi?id=175923


Harald Nikolisin <[hidden email]> changed:

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




--- Comment #29 from Harald Nikolisin <hochglanz muenchen-mail de>  2010-09-09 23:40:33 ---
unfortunately I got the same problem.
background was replacing a RAID1 system with a new RAID1 system - all files
were rsync'ed.

problem is that even if I want to change the UUID, I have no idea which one
should I take..

The fotos are stored on /dev/md4 which consists of /dev/sda7 and /dev/sdb7.
HAL gives me no UUID of the md's - should I take on of the sd?7 devices?

output of "solid-hardware list details" attached (previous comment)

--
Configure bugmail: https://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
https://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #30 from Marcel Wiesweg <marcel wiesweg gmx de>  2010-09-10 14:01:18 ---
I can only confirm what you've already found out, that HAL is completely broken
for your setup.
Remains the "traditional" fallback solution:
identifier "volumeid:?path=/home/xy/complete/path", specificPath "/" should
work IIRC.
This would also be used if you'd newly add your collection now.
You know your way with the sqlite3 tool?

--
Configure bugmail: https://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 hochglanz@muenchen-mail.de
In reply to this post by Bugzilla from wolters.liste@gmx.net
https://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #31 from Harald Nikolisin <hochglanz muenchen-mail de>  2010-09-12 23:27:49 ---
marcel,

thanks for the comment. If I understand you I can change volumeid also with a
path (instead of an UUID)?

and no, I'm not familiar with the sqlite3 command line. After opening
digikam4.db and "select * from AlbumRoots;" I can see my 4 collections with the
uuid's

Can you give me the command syntax for changing these entries?
The first entry is:

1|foto|0|1|volumeid:?uuid=0aafe707-32e8-4258-adb5-38561c282490|/foto

and it is actually located in /somewhere/foto

--
Configure bugmail: https://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
https://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #32 from Marcel Wiesweg <marcel wiesweg gmx de>  2010-09-13 18:30:03 ---
UPDATE AlbumRoots SET identifier='volumeid:?path=/somewhere/photo',
specificPath='/' WHERE id=1;

did not test right now but it should work. "id" is the first number you get in
the table dump.

--
Configure bugmail: https://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 hochglanz@muenchen-mail.de
In reply to this post by Bugzilla from wolters.liste@gmx.net
https://bugs.kde.org/show_bug.cgi?id=175923





--- Comment #33 from Harald Nikolisin <hochglanz muenchen-mail de>  2010-09-13 19:49:43 ---
it did the job :)
thanks for the quick response!

--
Configure bugmail: https://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
|

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

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

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
          Component|Database                    |Database-Schema

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