Bug 412067 - I get a error message: "Error while opening the database".
Summary: I get a error message: "Error while opening the database".
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-MacOS (show other bugs)
Version: 6.2.0
Platform: macOS (DMG) macOS
: NOR grave
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-19 17:13 UTC by shanayaandres
Modified: 2019-12-03 10:18 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.0.0
Sentry Crash Report:


Attachments
Error message and operating system used (207.51 KB, image/png)
2019-09-19 17:13 UTC, shanayaandres
Details
Debugview log (162.86 KB, text/plain)
2019-12-01 17:00 UTC, Bart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description shanayaandres 2019-09-19 17:13:30 UTC
Created attachment 122734 [details]
Error message and operating system used

SUMMARY
When I go to open the DigiKam application I get an error message: "Error while opening the database. DigiKam will try to automatically reconnect to the database". When I exit out of the message, DigiKam looks like it's loading to open up but it never actually opens. I'm using macOS High Sierra 10.13.6. I downloaded DigiKam with the option"Download file from preferred mirror" on the Mac download page. Advice I've found online is hard to follow for me... I'm just using this software to tag images for a university course. Please help

STEPS TO REPRODUCE
1. Download Digikam 6.2 Mac package
2. Operating system: macOS High Sierra 10.13.6
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2019-09-19 18:43:31 UTC
Please start digiKam in the terminal as described here: https://www.digikam.org/contribute/

Command:
/opt/digikam/Applications/KF5/digikam.app/Contents/MacOS/digikam

Post the messages displayed in the terminal.

Maik
Comment 2 Maik Qualmann 2019-10-20 06:36:08 UTC
Could the problem be solved? Without further information, whether a SQLite or MySQL database is used or an output of the debug messages from the terminal we can not help.

Maik
Comment 3 Bart 2019-12-01 16:57:19 UTC
Have the same issue after the following situation.
1) Changed network topology, so my database is not reachable anymore on the existing location. (MySQL)
2) Digikam detects this. When proceding without database hangs.

I'll attach the logs.
Comment 4 Bart 2019-12-01 17:00:51 UTC
Created attachment 124243 [details]
Debugview  log

When digikam stops, in the top it displays: 
Checking ICC repository
Comment 5 Maik Qualmann 2019-12-01 17:34:21 UTC
You could edit the "digikamrc" manually and enter the correct hostname again. We may need to enable the MySQL configuration dialog at the start if the connection fails.

Maik
Comment 6 Maik Qualmann 2019-12-02 20:48:07 UTC
Git commit 06d454629007b5dc226ac920c8f32d9d87c029c1 by Maik Qualmann.
Committed on 02/12/2019 at 20:47.
Pushed by mqualmann into branch 'master'.

check if the database is open to prevent stuck in the splash screen
FIXED-IN: 7.0.0

M  +2    -1    NEWS
M  +4    -1    core/app/main/digikamapp.cpp

https://invent.kde.org/kde/digikam/commit/06d454629007b5dc226ac920c8f32d9d87c029c1
Comment 7 Bart 2019-12-03 10:18:14 UTC
(In reply to Maik Qualmann from comment #5)
> You could edit the "digikamrc" manually and enter the correct hostname
> again. We may need to enable the MySQL configuration dialog at the start if
> the connection fails.
> 
> Maik

Thanks, that worked.