<div dir="ltr">I also noticed now that the tag hierarchy is completely jumbled and I think has missing tags as well. </div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 12, 2017 at 7:59 AM, Jim Dory <span dir="ltr"><<a href="mailto:james@dorydesign.com" target="_blank">james@dorydesign.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I did steps 1-3 with the exception of only copying one folder of images as I've got thousands. Step 4: I think most of the tags were there - there were a couple suspect images but don't know if they were ones that weren't tagged originally. I had some permission issues on the images so many weren't loaded in the new profile but the ones that did seemed mostly to work.<div><br></div><div>So not really sure what you meant in #4 but I moved my old DB away and let DK build a new one with the images. I didn't see the tag error though it may have been there in the scrolling of the console, because it looks like I only got back about half my tags- give or take. In the Metadata settings I had "write to metadata" set.</div><div><br></div><div>Not much rhyme or reason - one DNG raw file can have tags and date created in IPTC tab (right side) and the next image is blank there and no tag. Same with jpegs and cr2 files.</div><div><br></div><div>thx, Jim</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 11, 2017 at 7:05 PM, Gilles Caulier <span dir="ltr"><<a href="mailto:caulier.gilles@gmail.com" target="_blank">caulier.gilles@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The error come from the database file.<br>
<br>
To confirm, i recommend :<br>
<br>
1/ create a new fresh account on the system.<br>
2/ start digiKam and configure a new collection through First run<br>
assistant. A new DB file will be created.<br>
3/ copy the images from your old collection to the new one.<br>
4/ check if all run fine.<br>
<br>
If the problem disappear, the best way is to restore a backup of DB<br>
sqlite file in your original account. Ig you write digiKam properties<br>
of files in image metadata, you can recreate a new fresh DB from<br>
scratch.<br>
<span class="m_8040745685912210352HOEnZb"><font color="#888888"><br>
Gilles Caulier<br>
</font></span><div class="m_8040745685912210352HOEnZb"><div class="m_8040745685912210352h5"><br>
2017-05-12 4:16 GMT+02:00 Jim Dory <<a href="mailto:james@dorydesign.com" target="_blank">james@dorydesign.com</a>>:<br>
> ok - found the error in the terminal output (again, this is for<br>
> 5.6.0-appimage version and similar for regular 5.5.0 version):<br>
><br>
> digikam.database: Attempt to create tag properties for tag id 0<br>
> digikam.dbengine: Failure executing query:<br>
> "INSERT INTO Tags (pid, name) VALUES( ?, ?);"<br>
> Error messages: "Unable to fetch row" "UNIQUE constraint failed:<br>
> TagsTree.id, TagsTree.pid" 19 1<br>
> Bound values: (QVariant(int, 0), QVariant(QString,<br>
> "_Digikam_Internal_Tags_"))<br>
> digikam.dbengine: Error while executing DBAction [ "InsertTag" ] Statement [<br>
> "INSERT INTO Tags (pid, name) VALUES( :tagPID, :tagname);"<br>
> ]<br>
><br>
><br>
> On Thu, May 11, 2017 at 6:12 PM, Jim Dory <<a href="mailto:james@dorydesign.com" target="_blank">james@dorydesign.com</a>> wrote:<br>
>><br>
>> I restarted it and then it did a long scan and found the raw images so<br>
>> that is not an issue. But no tags on any photos - those with sidecars and<br>
>> those embedded tags are all missing. If I look at the IPTC info, some tags<br>
>> are displayed there. If I do a search on a tag, some images are found but<br>
>> not many of them. Still no tags displayed in the thumbnail view on any pics.<br>
>><br>
>> The terminal output is extensive, but as it was scrolling by (when<br>
>> scanning the albums) I could see a very similar error in my original post,<br>
>> if it was the same. Something about line 19, etc.<br>
>><br>
>> thx, Jim<br>
>><br>
>><br>
>><br>
>> On Thu, May 11, 2017 at 1:57 PM, Jim Dory <<a href="mailto:james@dorydesign.com" target="_blank">james@dorydesign.com</a>> wrote:<br>
>>><br>
>>> Thanks Gilles,<br>
>>><br>
>>> No luck there either. No tags. Sure did fire up quick though... very<br>
>>> fast.<br>
>>> Doesn't seem to show any .cr2 raw files from my canon camera, either.<br>
>>><br>
>>> On Thu, May 11, 2017 at 7:58 AM, Gilles Caulier<br>
>>> <<a href="mailto:caulier.gilles@gmail.com" target="_blank">caulier.gilles@gmail.com</a>> wrote:<br>
>>>><br>
>>>> At least, try with 5.6.0 pre-release appimage :<br>
>>>><br>
>>>> <a href="https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM" rel="noreferrer" target="_blank">https://drive.google.com/drive<wbr>/folders/0BzeiVr-byqt5Y0tIRWVW<wbr>elRJenM</a><br>
>>>><br>
>>>> Gilles Caulier<br>
>>>><br>
>>>> 2017-05-11 17:52 GMT+02:00 Jim Dory <<a href="mailto:james@dorydesign.com" target="_blank">james@dorydesign.com</a>>:<br>
>>>> > I'm on Gentoo and 5.6 isn't available in the portage yet - and a<br>
>>>> > routine<br>
>>>> > upgrade installed 5.5. I had all sorts of trouble - taking a very long<br>
>>>> > time<br>
>>>> > - not seeing my photo albums, etc - until after an hour or so I got it<br>
>>>> > to<br>
>>>> > see my photos. But it has an error when trying to read tags, both raw<br>
>>>> > and<br>
>>>> > jpeg files. Here's a snip from the terminal:<br>
>>>> ><br>
>>>> > "digikam.database: Attempt to create tag properties for tag id 0<br>
>>>> > digikam.dbengine: Failure executing query:<br>
>>>> > "INSERT INTO Tags (pid, name) VALUES( ?, ?);"<br>
>>>> > Error messages: "Unable to fetch row" "UNIQUE constraint failed:<br>
>>>> > TagsTree.id, TagsTree.pid" 19 1<br>
>>>> > Bound values: (QVariant(int, 0), QVariant(QString,<br>
>>>> > "_Digikam_Internal_Tags_"))<br>
>>>> > digikam.dbengine: Error while executing DBAction [ "InsertTag" ]<br>
>>>> > Statement [<br>
>>>> > "INSERT INTO Tags (pid, name) VALUES( :tagPID, :tagname);"<br>
>>>> > ]<br>
>>>> > digikam.database: Attempt to create tag properties for tag id 0<br>
>>>> > digikam.database: Image 29896 type QFlags(0x1|0x8)<br>
>>>> > digikam.database: Image 29895 type QFlags(0x8)<br>
>>>> > digikam.database: Graph with 2 vertices:<br>
>>>> > "{ Id: 29902 UUID: 3ed50b... } -> { Id: 29901 UUID: dcf0eb... }"<br>
>>>> ><br>
>>>> > "<br>
>>>> ><br>
>>>> > I did try to mask this but I don't have any earlier ebuilds to install<br>
>>>> > previous versions. Suppose I could create one, but maybe there is an<br>
>>>> > easy<br>
>>>> > fix for this in version 5.5?<br>
>>>> ><br>
>>>> > thx, Jim<br>
>>><br>
>>><br>
>><br>
><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>