https://bugs.kde.org/show_bug.cgi?id=373605
Bug ID: 373605 Summary: Failed to update database schema from version 7 to version 8 Product: digikam Version: 5.3.0 Platform: Kubuntu Packages OS: Linux Status: UNCONFIRMED Severity: critical Priority: NOR Component: Database-Mysql Assignee: [hidden email] Reporter: [hidden email] Target Milestone: --- Hi. I tried to install Digikam 5.3. I started it,configured to use the mysql database I have on my network drive and after some time it gave me this error: Error messages: "QMYSQL: Unable to execute query" "Cannot add or update a child row: a foreign key constraint fails (`digikamfi/#sql-12a1_bff8`, CONSTRAINT `Images_Albums` FOREIGN KEY (`album`) REFERENCES `Albums` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)" 1452 2 Bound values: () digikam.dbengine: Error while executing DBAction [ "UpdateSchemaFromV7ToV8" ] Statement [ "ALTER TABLE Images\n ADD CONSTRAINT Images_Albums FOREIGN KEY (album) REFERENCES Albums (id) ON DELETE CASCADE ON UPDATE CASCADE,\n ADD UNIQUE (album, name(255)),\n ENGINE InnoDB;" ] digikam.coredb: Core database: schema update to V 8 failed! digikam.coredb: Core database: cannot process schema initialization -- You are receiving this mail because: You are the assignee for the bug. |
https://bugs.kde.org/show_bug.cgi?id=373605
--- Comment #1 from anttia <[hidden email]> --- Second time I tried to start the program it gave me the same error, but started the program. Problem was that it does show any albums or thumbbnails. When I clos it gives me this error message: digikam.dbengine: WARNING !!! Transaction count is -1 when destroying database!!! -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=373605
Maik Qualmann <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[hidden email] --- Comment #2 from Maik Qualmann <[hidden email]> --- I think this problem will be fixed in digiKam-5.4.0. See Bug 372312 Try with Linux universal AppImage bundle (5.4.0) available here : https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM Maik -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=373605
--- Comment #3 from anttia <[hidden email]> --- And it also did brake the support for scandinavian charecters, so when i open digikam 4.14 all tags with scandinavian charecters are messed up. -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=373605
Kusi <[hidden email]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[hidden email] --- Comment #4 from Kusi <[hidden email]> --- Since I reported https://bugs.kde.org/show_bug.cgi?id=372312, I can give you some more comments: Over the years, my database started containing invalid entries, like yours. Your Albums table has entries pointing to an image which doesn't exist. DK4 and earlier did not prevent these illegal combinations, so the error is not immediately noticed. Since DK5, these violations are prohibited by foreign key constraints, which is a good thing. Whenever you change to a more strict scheme, you need to clean up the mess before. I had to manually delete all illegal rows (and there were many) in my db before upgrading to DK5. If you hit the same issue as I had, then you need to get your hands dirty by fixing your db either with the "mysql" or "dbeaver" tool. You can detect FK violations with the attached sql script: 1) edit the first line and change to your digikam db name 2) run mysql -u<your user> -p<your pass> < check-fk-violations.sql The script returns illegal entries in your db. Then you need to investigate and figure out if it's ok for you to delete the violating rows. best, Kusi PS: Maik, seems like I have FK violations again even with your added constraints. My db was clean a month ago. At a first glance, the violating rows involve deleted images (in DK5). Seems like something is still wrong. I need to investigate more. -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=373605
--- Comment #5 from Kusi <[hidden email]> --- Created attachment 102868 --> https://bugs.kde.org/attachment.cgi?id=102868&action=edit sql script to detect FK violations -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=373605
[hidden email] changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[hidden email] --- Comment #6 from [hidden email] --- new 5.6.0 pre-release as bundle is available here : https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM Please check if this problem still reproducible with these versions. Thanks in advance Gilles Caulier -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=373605
--- Comment #7 from [hidden email] --- digiKam 5.6.0 is now released and available as bundle for Linux, MacOS and Windows. https://www.digikam.org/news/2017-06-21-5.6.0-release-announcement/ Can you check if problem still exists with this version ? Thanks in advance Gilles Caulier -- You are receiving this mail because: You are the assignee for the bug. |
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=373605
--- Comment #8 from [hidden email] --- New digiKam 5.7.0 are built with current implementation as pre-release bundles: https://drive.google.com/drive/folders/0BzeiVr-byqt5Y0tIRWVWelRJenM Problem still reproducible ? -- You are receiving this mail because: You are the assignee for the bug. |
Free forum by Nabble | Edit this page |