Bug 436624 - Error during internal server start
Summary: Error during internal server start
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Mysql (other bugs)
Version First Reported In: 7.2.0
Platform: macOS (DMG) macOS
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-05 12:28 UTC by Kurt
Modified: 2021-05-07 09:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 7.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt 2021-05-05 12:28:02 UTC
could not start Database Initializer

After installing as defaulted, without changing any database settings (and no downloads of new database) I get Error:

Could not start database initializer
Executable: /Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysql_install_db
Arguments: --defaults-file=/Applications/digiKam.org/digikam.app/Contents/Resources/digikam/database/mysql-global.conf, --basedir=/Applications/digiKam.org/digikam.app/Contents/, --datadir=/Users/myuser/Pictures/.mysql.digikam/db_data
Process error: Unknown error

It the displays 'Error while opening the database. DigiKam will try to automatically reconnect the database' for an infinite time.

After canceling this process it shows a message: .... please check the database settings in the configuration menu.
It then shows very shortly a image with the application, but crashes immediately while trying to load plugins.

After deleting the app and reinstall it, the same error occurs, without the option of reconfiguring the app.

How can I reinstall the app with the option of reconfiguring it.


SOFTWARE/OS VERSIONS
macOS: 11.3.1
Comment 1 caulier.gilles 2021-05-05 12:34:06 UTC
Which digiKam version did you use ?
Comment 2 Kurt 2021-05-05 12:36:55 UTC
digiKam 7.2.0 MacOS-x86-64
Comment 3 caulier.gilles 2021-05-05 12:42:16 UTC
Can you reproduce the problem with the 7.3.0 pre-release ?

 https://files.kde.org/digikam/
Comment 4 Kurt 2021-05-05 12:48:54 UTC
Yes, same error:
How can I force a new installation instead of an upgrade? In 'Installation Type' only upgrade is available.
Comment 5 caulier.gilles 2021-05-05 12:54:30 UTC
upgrade will remove older install in all cases.

Tip : go to help menu and start Check for new release. Configure check for pre-release instable stable, and enjoy. The tool will download installer for you, shutdown digiKAm instance and run new installer for an upgrade.

Gilles Caulier
Comment 6 caulier.gilles 2021-05-05 13:00:45 UTC
Hum, it's reproducible:

bash-3.2$ pwd
/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin
bash-3.2$ ./mysql_install_db --defaults-file=/Applications/digiKam.org/digikam.app/Contents/Resources/digikam/database/mysql-global.conf, --basedir=/Applications/digiKam.org/digikam.app/Contents/, --datadir=/Users/gilles/Pictures/.mysql.digikam/db_data

FATAL ERROR: Could not find my_print_defaults

The following directories were searched:

    /Applications/digiKam.org/digikam.app/Contents/,/bin
    /Applications/digiKam.org/digikam.app/Contents/,/extra

If you compiled from source, you need to either run 'make install' to
copy the software into the correct location ready for operation.
If you don't want to do a full install, you can use the --srcdir
option to only install the mysql database and privilege tables.

If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.

The latest information about mysql_install_db is available at
https://mariadb.com/kb/en/installing-system-tables-mysql_install_db
bash-3.2$ 

Sound like it miss a file in the MacOS bundle

Gilles Caulier
Comment 7 caulier.gilles 2021-05-05 13:02:46 UTC
Strange, the file is well installed on the bundle :

bash-3.2$ pwd
/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin
bash-3.2$ ls -al
total 83296
drwxr-xr-x  52 root  wheel     1664  4 mai 06:18 .
drwxr-xr-x   5 root  wheel      160 29 déc 17:16 ..
-rwxr-xr-x   1 root  wheel  3534944  4 mai 00:24 aria_chk
-rwxr-xr-x   1 root  wheel  3365808  4 mai 00:25 aria_dump_log
-rwxr-xr-x   1 root  wheel  3382992  4 mai 00:25 aria_ftdump
-rwxr-xr-x   1 root  wheel  3399688  4 mai 00:25 aria_pack
-rwxr-xr-x   1 root  wheel  3518104  4 mai 00:25 aria_read_log
-rwxr-xr-x   1 root  wheel    34112  4 mai 00:25 innochecksum
-rwxr-xr-x   1 root  wheel     1500  4 mai 00:25 msql2mysql
-rwxr-xr-x   1 root  wheel  2792888  4 mai 00:25 my_print_defaults   <=====!!!!!
-rwxr-xr-x   1 root  wheel  3029440  4 mai 00:25 myisam_ftdump
-rwxr-xr-x   1 root  wheel  3131288  4 mai 00:25 myisamchk
-rwxr-xr-x   1 root  wheel  3010784  4 mai 00:25 myisamlog
-rwxr-xr-x   1 root  wheel  3046152  4 mai 00:25 myisampack
-rwxr-xr-x   1 root  wheel  3173824  4 mai 00:25 mysql
-rwxr-xr-x   1 root  wheel  3278648  4 mai 00:25 mysql_client_test
-rwxr-xr-x   1 root  wheel  9568592  4 mai 00:25 mysql_client_test_embedded
-rwxr-xr-x   1 root  wheel     7097  4 mai 00:25 mysql_config
-rwxr-xr-x   1 root  wheel     4215  4 mai 00:20 mysql_convert_table_format
-rwxr-xr-x   1 root  wheel  9443984  4 mai 00:25 mysql_embedded
-rwxr-xr-x   1 root  wheel     3288  4 mai 00:20 mysql_find_rows
-rwxr-xr-x   1 root  wheel     1246  4 mai 00:20 mysql_fix_extensions
-rwxr-xr-x   1 root  wheel    17894  4 mai 00:25 mysql_install_db
-rwxr-xr-x   1 root  wheel  2793352  4 mai 00:25 mysql_plugin
-rwxr-xr-x   1 root  wheel    12252  4 mai 00:25 mysql_secure_installation
-rwxr-xr-x   1 root  wheel    17464  4 mai 00:20 mysql_setpermission
-rwxr-xr-x   1 root  wheel  2793192  4 mai 00:25 mysql_tzinfo_to_sql
-rwxr-xr-x   1 root  wheel  2859376  4 mai 00:25 mysql_upgrade
-rwxr-xr-x   1 root  wheel  2792664  4 mai 00:25 mysql_waitpid
-rwxr-xr-x   1 root  wheel     3856  4 mai 00:20 mysql_zap
-rwxr-xr-x   1 root  wheel   112128  4 mai 00:20 mysqlaccess
-rwxr-xr-x   1 root  wheel  2914600  4 mai 00:25 mysqladmin
-rwxr-xr-x   1 root  wheel  3074608  4 mai 00:25 mysqlbinlog
-rwxr-xr-x   1 root  wheel    10410  4 mai 00:20 mysqlbug
-rwxr-xr-x   1 root  wheel  2914592  4 mai 00:25 mysqlcheck
-rwxr-xr-x   1 root  wheel  9656144  4 mai 00:25 mysqld
-rwxr-xr-x   1 root  wheel    24634  4 mai 00:20 mysqld_multi
-rwxr-xr-x   1 root  wheel    27453  4 mai 00:25 mysqld_safe
-rwxr-xr-x   1 root  wheel  2772840  4 mai 00:25 mysqld_safe_helper
-rwxr-xr-x   1 root  wheel  2982152  4 mai 00:25 mysqldump
-rwxr-xr-x   1 root  wheel     7876  4 mai 00:20 mysqldumpslow
-rwxr-xr-x   1 root  wheel    34942  4 mai 00:20 mysqlhotcopy
-rwxr-xr-x   1 root  wheel  2898928  4 mai 00:25 mysqlimport
-rwxr-xr-x   1 root  wheel  2897624  4 mai 00:25 mysqlshow
-rwxr-xr-x   1 root  wheel  2917376  4 mai 00:25 mysqlslap
-rwxr-xr-x   1 root  wheel  3137096  4 mai 00:25 mysqltest
-rwxr-xr-x   1 root  wheel  9389272  4 mai 00:25 mysqltest_embedded
-rwxr-xr-x   1 root  wheel    62886  4 mai 00:20 mytop
-rwxr-xr-x   1 root  wheel  2876280  4 mai 00:25 perror
-rwxr-xr-x   1 root  wheel  2774016  4 mai 00:25 replace
-rwxr-xr-x   1 root  wheel  2792544  4 mai 00:25 resolve_stack_dump
-rwxr-xr-x   1 root  wheel  2792816  4 mai 00:25 resolveip
bash-3.2$
Comment 8 Maik Qualmann 2021-05-05 13:07:40 UTC
--basedir=/Applications/digiKam.org/digikam.app/Contents/, <=== a comma is wrong

Maik
Comment 9 Kurt 2021-05-05 13:13:34 UTC
in my folder: /Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin

I have the identical files as you have listed!

-> where can I change the comma in --basdir  as you indicated it is wrong? What does it mean for me?
Comment 10 caulier.gilles 2021-05-05 13:19:14 UTC
Git commit cf561df9f668679a863b2cdf808f8a15e38c1abc by Gilles Caulier.
Committed on 05/05/2021 at 13:10.
Pushed by cgilles into branch 'master'.

Fix basedir path to use under MacOS

M  +1    -1    core/libs/database/server/databaseserver.cpp

https://invent.kde.org/graphics/digikam/commit/cf561df9f668679a863b2cdf808f8a15e38c1abc
Comment 11 caulier.gilles 2021-05-05 13:19:22 UTC
Git commit e35ac6767d53bf1de3dfc82fc9171cc3cc68dad0 by Gilles Caulier.
Committed on 05/05/2021 at 13:12.
Pushed by cgilles into branch 'master'.

another basedir path to fix

M  +1    -1    core/libs/database/server/databaseserver.cpp

https://invent.kde.org/graphics/digikam/commit/e35ac6767d53bf1de3dfc82fc9171cc3cc68dad0
Comment 12 caulier.gilles 2021-05-05 13:32:06 UTC
Git commit 8532c7b48371d601773deea33833cc5406a80480 by Gilles Caulier.
Committed on 05/05/2021 at 13:25.
Pushed by cgilles into branch 'master'.

move share/mariadb files to basedir

M  +5    -0    project/bundles/macports/04-build-installer.sh

https://invent.kde.org/graphics/digikam/commit/8532c7b48371d601773deea33833cc5406a80480
Comment 13 caulier.gilles 2021-05-05 13:36:59 UTC
With my last patches, Mariadb can be initialized properly:

bash-3.2$ ./mysql_install_db --defaults-file="/Applications/digiKam.org/digikam.app/Contents/Resources/digikam/database/mysql-global.conf" --basedir="/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/" --datadir="/Users/gilles/Pictures/.mysql.digikam/db_data"
Installing MariaDB/MySQL system tables in '/Users/gilles/Pictures/.mysql.digikam/db_data' ...
210505 15:24:35 [Warning] options --log-slow-admin-statements, --log-queries-not-using-indexes and --log-slow-slave-statements have no effect if --log_slow_queries is not set
210505 15:24:35 [Note] /Applications/digiKam.org/digikam.app/Contents/lib/mariadb//bin/mysqld (mysqld 5.5.68-MariaDB) starting as process 6000 ...
OK
Filling help tables...
210505 15:24:37 [Warning] options --log-slow-admin-statements, --log-queries-not-using-indexes and --log-slow-slave-statements have no effect if --log_slow_queries is not set
210505 15:24:37 [Note] /Applications/digiKam.org/digikam.app/Contents/lib/mariadb//bin/mysqld (mysqld 5.5.68-MariaDB) starting as process 6004 ...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/Applications/digiKam.org/digikam.app/Contents/lib/mariadb//bin/mysqladmin' -u root password 'new-password'
'/Applications/digiKam.org/digikam.app/Contents/lib/mariadb//bin/mysqladmin' -u root -h MacBook-Pro-de-gilles.local password 'new-password'

Alternatively you can run:
'/Applications/digiKam.org/digikam.app/Contents/lib/mariadb//bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

You can start the MariaDB daemon with:
cd '/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/' ; /Applications/digiKam.org/digikam.app/Contents/lib/mariadb//bin/mysqld_safe --datadir='/Users/gilles/Pictures/.mysql.digikam/db_data'

You can test the MariaDB daemon with mysql-test-run.pl
cd '/Applications/digiKam.org/digikam.app/Contents/lib/mariadb//mysql-test' ; perl mysql-test-run.pl

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/

You need to wait the next 7.3.0 pre-release daily build to check if all work fine for you. So if all is fine, tomorrow...

Gilles Caulier
Comment 14 Kurt 2021-05-05 13:39:56 UTC
OK, thank you very much.
I will wait until 7.3.0 prerelease daily is available tomorrow.
Comment 15 caulier.gilles 2021-05-05 17:59:10 UTC
Git commit 74c073a540cbd981507c0d14479f0885921eb1b5 by Gilles Caulier.
Committed on 05/05/2021 at 17:45.
Pushed by cgilles into branch 'master'.

Fix mariabd rules to move shared data file in basedir

M  +3    -3    project/bundles/macports/04-build-installer.sh

https://invent.kde.org/graphics/digikam/commit/74c073a540cbd981507c0d14479f0885921eb1b5
Comment 16 caulier.gilles 2021-05-06 11:08:11 UTC
Git commit 004484070eca802103fa00bf7255cb01705d1a04 by Gilles Caulier.
Committed on 06/05/2021 at 10:54.
Pushed by cgilles into branch 'master'.

use rsync to populate maraidb share data

M  +5    -4    project/bundles/macports/04-build-installer.sh

https://invent.kde.org/graphics/digikam/commit/004484070eca802103fa00bf7255cb01705d1a04
Comment 17 caulier.gilles 2021-05-06 15:28:12 UTC
Kurt,

The new MacOS 7.3.0 pre-release installer is online, including all relevant fix for your problem.

https://files.kde.org/digikam/

Best

Gilles Caulier
Comment 18 Kurt 2021-05-06 16:01:52 UTC
Hi Gilles
thank you very much for your support.
unfortunately i get the following error after installation and starting the app.
-----------------------------
An error occurred during the internal server start.

Details: Database process exited unexpectedly during initial connection.

Executable: /Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysqld

Arguments: --defaults-file=/Users/kurtfeusi/Library/Application Support/digikam/digikam/mysql.conf, --datadir=/Users/kurtfeusi/Pictures/.mysql.digikam/db_data, --basedir=/Applications/digiKam.org/digikam.app/Contents//lib/mariadb/, --socket=/Users/kurtfeusi/Library/Application Support/digikam/digikam/db_misc/mysql.socket

Process error: Unknown error
------------------------------
Fyi: as far as I know, I have not installed mariadb myself yet. However the module mysql is in the folder. Do I have to install it somehow manually? 

Very kind regards
Kurt
Comment 19 caulier.gilles 2021-05-06 16:05:55 UTC
No you don't need to install mariadb. The software is included in digiKAm bundle.

Certainly the previous install and run with the mariadb failure has broken something in the path where digiKam database must be created:

/Users/kurtfeusi/Pictures/.mysql.digikam/

Can you cleanup the mariadb database and try again ?


Gilles Caulier
Comment 20 Kurt 2021-05-06 16:09:31 UTC
Hi Gilles,
would you recommend to uninstall and reinstall mariadb with brew ?

Kurt Feusi
Grossacher 19
6024 Hildisrieden

> Am 06.05.2021 um 18:05 schrieb bugzilla_noreply@kde.org:
> 
> https://bugs.kde.org/show_bug.cgi?id=436624
> 
> --- Comment #19 from caulier.gilles@gmail.com ---
> No you don't need to install mariadb. The software is included in digiKAm
> bundle.
> 
> Certainly the previous install and run with the mariadb failure has broken
> something in the path where digiKam database must be created:
> 
> /Users/kurtfeusi/Pictures/.mysql.digikam/
> 
> Can you cleanup the mariadb database and try again ?
> 
> 
> Gilles Caulier
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 21 Kurt 2021-05-06 16:17:13 UTC
How do I cleanup mariadb? Or do I have to uninstall and reinstall it with brew?
Comment 22 caulier.gilles 2021-05-06 16:57:29 UTC
Just remove Users/kurtfeusi/Pictures/.mysql.digikam/ and try again.

There is nothing to install with Brew.

Gilles Caulier
Comment 23 caulier.gilles 2021-05-06 17:12:11 UTC
Hum, i can reproduce. And it's very strange, as time time all mariadb files are here in the bundle:

bash-3.2$ ./digikam
digikam.widgets: Breeze icons resource file found
digikam.widgets: Breeze-dark icons resource file found
QCommandLineParser: already having an option named "h"
QCommandLineParser: already having an option named "help-all"
QCommandLineParser: already having an option named "v"
digikam.general: Qt translations path: ""
digikam.general: "/Users/gilles/Pictures"
dbus[7363]: Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
digikam.general: Testing  "mysql_install_db" ...
digikam.general: Testing  "mysqld" ...
digikam.general: Testing  "mysql_install_db" ...
digikam.general: Testing  "mysqld" ...
digikam.general: Testing  "/opt/local/bin/mysql_install_db" ...
digikam.general: All Binaries Found :  false
digikam.general: Testing  "/opt/local/bin/mysqld" ...
digikam.general: All Binaries Found :  false
digikam.general: Testing  "/opt/local/sbin/mysql_install_db" ...
digikam.general: All Binaries Found :  false
digikam.general: Testing  "/opt/local/sbin/mysqld" ...
digikam.general: All Binaries Found :  false
digikam.general: Testing  "/opt/local/lib/mariadb/bin/mysql_install_db" ...
digikam.general: All Binaries Found :  false
digikam.general: Testing  "/opt/local/lib/mariadb/bin/mysqld" ...
digikam.general: All Binaries Found :  false
digikam.general: Testing  "/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysql_install_db" ...
digikam.general: Found  "/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysql_install_db"
digikam.general: All Binaries Found :  false
digikam.general: Testing  "/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysqld" ...
digikam.general: Found  "/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysqld"
digikam.general: All Binaries Found :  true
digikam.general: Root album is :  "/Users/gilles/Pictures"
digikam.database: Database directory is :  "/Users/gilles/Pictures"
digikam.dbengine: Loading SQL code from config file "/Applications/digiKam.org/digikam.app/Contents/Resources/digikam/database/dbconfig.xml"
digikam.dbengine: Checking XML version ID => expected:  3  found:  3
digikam.dbengine: ConnectOptions  "UNIX_SOCKET=/Users/gilles/Library/Application Support/digikam/digikam/db_misc/mysql.socket"
digikam.dbengine: ConnectOptions  "UNIX_SOCKET=/Users/gilles/Library/Application Support/digikam/digikam/db_misc/mysql.socket"
digikam.general: Switch to widget style:  "Fusion"
digikam.general: AlbumWatch is disabled
digikam.general: Database Parameters:
   Type:                     "QMYSQL"
   DB Core Name:             "digikam"
   DB Thumbs Name:           "digikam"
   DB Face Name:             "digikam"
   DB Similarity Name:       "digikam"
   Connect Options:          "UNIX_SOCKET=/Users/gilles/Library/Application Support/digikam/digikam/db_misc/mysql.socket"
   Host Name:                ""
   Host port:                -1
   Internal Server:          true
   Internal Server Path:     "/Users/gilles/Pictures"
   Internal Server Serv Cmd: "/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysqld"
   Internal Server Init Cmd: "/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysql_install_db"
   Username:                 "root"
   Password:                 ""

digikam.databaseserver: Database Parameters:
   Type:                     "QMYSQL"
   DB Core Name:             "digikam"
   DB Thumbs Name:           "digikam"
   DB Face Name:             "digikam"
   DB Similarity Name:       "digikam"
   Connect Options:          "UNIX_SOCKET=/Users/gilles/Library/Application Support/digikam/digikam/db_misc/mysql.socket"
   Host Name:                ""
   Host port:                -1
   Internal Server:          true
   Internal Server Path:     "/Users/gilles/Pictures"
   Internal Server Serv Cmd: "/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysqld"
   Internal Server Init Cmd: "/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysql_install_db"
   Username:                 "root"
   Password:                 ""

digikam.databaseserver: Internal Server data path: "/Users/gilles/Pictures/.mysql.digikam/db_data"
digikam.databaseserver: The mysql configuration was already up-to-date: "/Users/gilles/Library/Application Support/digikam/digikam/mysql.conf"
digikam.databaseserver: Database initializer: "/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysql_install_db" ("--defaults-file=/Applications/digiKam.org/digikam.app/Contents/Resources/digikam/database/mysql-global.conf", "--basedir=/Applications/digiKam.org/digikam.app/Contents//lib/mariadb/", "--datadir=/Users/gilles/Pictures/.mysql.digikam/db_data")
digikam.databaseserver: Database server: "/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysqld" ("--defaults-file=/Users/gilles/Library/Application Support/digikam/digikam/mysql.conf", "--datadir=/Users/gilles/Pictures/.mysql.digikam/db_data", "--basedir=/Applications/digiKam.org/digikam.app/Contents//lib/mariadb/", "--socket=/Users/gilles/Library/Application Support/digikam/digikam/db_misc/mysql.socket")
digikam.databaseserver: Failed to use database "digikam"
digikam.databaseserver: Query error: "Unknown database 'digikam' QMYSQL: Impossible d'exécuter la requête"
digikam.databaseserver: Database error: ""
digikam.databaseserver: Trying to create database now
digikam.databaseserver: Failed to create database
digikam.databaseserver: Query error: "Can't create database 'digikam' (errno: 2) QMYSQL: Impossible d'exécuter la requête"
digikam.databaseserver: Database error: ""
digikam.databaseserver: Cannot start internal database server

Maik, the dbus error under MacOS is not important. dbus is only Linux specific, it do not work under MaOS and Windows. this message come from KF5 framework and i seen the dbus support under non Linux system disabled now in the framework.

Gilles Caulier
Comment 24 caulier.gilles 2021-05-06 17:15:16 UTC
Maik,

In this situation, the database is not initialized. If i press continue, DK crash in face recognizer, certainly because no database instance is ready :

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libdigikamcore.7.3.0.dylib    	0x00000001097776b0 0x108cf0000 + 11040432
1   libdigikamcore.7.3.0.dylib    	0x000000010977a5e5 Digikam::BdEngineBackend::status() const + 21
2   libdigikamgui.7.3.0.dylib     	0x0000000107e2cb35 0x107dfc000 + 199477
3   libdigikamgui.7.3.0.dylib     	0x0000000107f9d9f4 Digikam::FaceDbAccess::FaceDbAccess() + 116
4   libdigikamgui.7.3.0.dylib     	0x0000000107f9da75 Digikam::FaceDbAccess::FaceDbAccess() + 21
5   libdigikamgui.7.3.0.dylib     	0x0000000107f9448c 0x107dfc000 + 1672332
6   libdigikamgui.7.3.0.dylib     	0x0000000107f92d1b 0x107dfc000 + 1666331
7   libdigikamgui.7.3.0.dylib     	0x0000000107f92cca Digikam::OpenCVDNNFaceRecognizer::OpenCVDNNFaceRecognizer(Digikam::OpenCVDNNFaceRecognizer::Classifier) + 58
8   libdigikamgui.7.3.0.dylib     	0x0000000107f92d4b Digikam::OpenCVDNNFaceRecognizer::OpenCVDNNFaceRecognizer(Digikam::OpenCVDNNFaceRecognizer::Classifier) + 27
9   libdigikamgui.7.3.0.dylib     	0x0000000107f8128a 0x107dfc000 + 1593994
10  libdigikamgui.7.3.0.dylib     	0x0000000107f81565 0x107dfc000 + 1594725
11  libdigikamgui.7.3.0.dylib     	0x0000000107f800da Digikam::FacialRecognitionWrapper::FacialRecognitionWrapper() + 58
12  libdigikamgui.7.3.0.dylib     	0x0000000107f80145 Digikam::FacialRecognitionWrapper::FacialRecognitionWrapper() + 21
13  libdigikamgui.7.3.0.dylib     	0x000000010833b19e 0x107dfc000 + 5501342
14  libdigikamgui.7.3.0.dylib     	0x000000010833b22d 0x107dfc000 + 5501485
15  libdigikamgui.7.3.0.dylib     	0x000000010831b7bc 0x107dfc000 + 5371836
16  libdigikamgui.7.3.0.dylib     	0x0000000107eab727 0x107dfc000 + 718631
17  libdigikamgui.7.3.0.dylib     	0x0000000107eac99d 0x107dfc000 + 723357
18  libdigikamgui.7.3.0.dylib     	0x0000000107f2e9f4 0x107dfc000 + 1255924
19  libdigikamgui.7.3.0.dylib     	0x0000000107f3031d 0x107dfc000 + 1262365
20  libdigikamgui.7.3.0.dylib     	0x0000000107f17d39 0x107dfc000 + 1162553
21  libdigikamgui.7.3.0.dylib     	0x0000000107f1bd45 0x107dfc000 + 1178949
22  libdigikamgui.7.3.0.dylib     	0x0000000107e475ed Digikam::DigikamApp::setupView() + 205
23  libdigikamgui.7.3.0.dylib     	0x0000000107e2d98f Digikam::DigikamApp::DigikamApp() + 3583
24  digikam                       	0x0000000107dee61e 0x107de3000 + 46622
25  libdyld.dylib                 	0x00007fff20618621 start + 1


Gilles
Comment 25 caulier.gilles 2021-05-06 17:20:27 UTC
Ok, it's clear :

MacBook-Pro-de-gilles:~ gilles$ /Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysqld --defaults-file="/Users/gilles/Library/Application Support/digikam/digikam/mysql.conf" --datadir="/Users/gilles/Pictures/.mysql.digikam/db_data" --basedir="/Applications/digiKam.org/digikam.app/Contents//lib/mariadb/" --socket="/Users/gilles/Library/Application Support/digikam/digikam/db_misc/mysql.socket"
210506 19:18:55 [Warning] options --log-slow-admin-statements, --log-queries-not-using-indexes and --log-slow-slave-statements have no effect if --log_slow_queries is not set
210506 19:18:55 [Note] /Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysqld (mysqld 5.5.68-MariaDB) starting as process 7562 ...
210506 19:18:55 [ERROR] Can't find messagefile '/Applications/digiKam.org/digikam.app/Contents/lib/mariadb/share/mariadb/errmsg.sys'
210506 19:18:55 [ERROR] Aborting

210506 19:18:55 [Note] 

A path is wrong or a file is missing...

Gilles
Comment 26 caulier.gilles 2021-05-06 17:33:37 UTC
Ok, if i move constents from /Applications/digiKam.org/digikam.app/Contents/lib/mariadb/share/" to /Applications/digiKam.org/digikam.app/Contents/lib/mariadb/share/mariadb/" all work as expected.

https://i.imgur.com/HLQVesk.png

So i need to patch again the PKG creation script...

Gilles Caulier
Comment 27 caulier.gilles 2021-05-06 19:46:17 UTC
Git commit 5b1869d35ab2598244b2e5f176354e74e88f4256 by Gilles Caulier.
Committed on 06/05/2021 at 19:31.
Pushed by cgilles into branch 'master'.

Fix destination path for mariadb share files

M  +2    -1    project/bundles/macports/04-build-installer.sh

https://invent.kde.org/graphics/digikam/commit/5b1869d35ab2598244b2e5f176354e74e88f4256
Comment 28 Kurt 2021-05-06 20:23:22 UTC
(In reply to caulier.gilles from comment #22)
> Just remove Users/kurtfeusi/Pictures/.mysql.digikam/ and try again.
> 
> There is nothing to install with Brew.
> 
> Gilles Caulier

I have removed directory .../.mysql.digikam and reinstalled. 
Following error message:
---------------------------
An error occurred during the internal server start.

Details: Database process exited unexpectedly during initial connection.

Executable: /Applications/digiKam.org/digikam.app/Contents/lib/mariadb/bin/mysqld

Arguments: --defaults-file=/Users/kurtfeusi/Library/Application Support/digikam/digikam/mysql.conf, --datadir=/Users/kurtfeusi/Pictures/.mysql.digikam/db_data, --basedir=/Applications/digiKam.org/digikam.app/Contents//lib/mariadb/, --socket=/Users/kurtfeusi/Library/Application Support/digikam/digikam/db_misc/mysql.socket

Process error: Unknown error
-------------------------
Comment 29 caulier.gilles 2021-05-06 20:35:03 UTC
PKG installer is updated at usual place :

https://files.kde.org/digikam/

I just checked, and now all work as expected with MariaDb internal server.

Gilles Caulier
Comment 30 Kurt 2021-05-07 09:03:50 UTC
Hi Gilles,
thank you very much for your excellent support.
Bevor installation I have removed the folder /Users/{myuser}/Pictures/.mysql.digikam
It is now working as expected.
Very kind regards
Kurt
Comment 31 caulier.gilles 2021-05-07 09:25:02 UTC
De nada Kurt, MacOS support is very important for the future, so we try to be better step by step...

Best

Gilles Caulier