[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-08-22 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

caulier.gil...@gmail.com changed:

   What|Removed |Added

   Platform|MacPorts Packages   |Mac OS X Disk Images
   Version Fixed In||6.0.0
 Resolution|--- |FIXED
 Status|UNCONFIRMED |RESOLVED

--- Comment #65 from caulier.gil...@gmail.com ---
I can confirm myself that all problem with internal mysql support under MacOS
are fixed now :

https://www.flickr.com/photos/digikam/42397816780/in/dateposted/

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-08-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #64 from caulier.gil...@gmail.com ---
Testa,

Good news... After all, the last problem in this entry is solved.

The crash relevant of QProcess calls disapear after to recompile the whole
digiKam bundle from scratch. Probably a mix of different build from shared libs
through Macports was the origin of the problem. This is a tradition under
Macports : rebuild all to be sure. This take some hours but the result is
always better.

Please test with the last bundle that is just uploaded here :

https://files.kde.org/digikam/digiKam-6.0.0-beta1-20180821T182536-MacOS-x86-64.pkg.mirrorlist

It work perfectly here.

Thanks in advance for your feedback

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-08-18 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #63 from caulier.gil...@gmail.com ---
Ok, 

I'm back to this issue with some progress.

Typically, as explained well in this page :

http://www.qtcentre.org/threads/38730-Calling-external-programs-via-QProcess-on-Mac-OS

The MACOS world is wonderfull. Stating the digikam.app bundle executable from
MAcOS launcher do not inherit than full shell env. from the system. This ahev
huge side effect.

This is why all work fine from a terminal but not from application icon.

Weird :

"On OS X, Finder.app is a child of your launchd session, which is a child of
the root launchd session, which is process 0. There's no shell anywhere. And
when you double-click an app, it asks LaunchServices to run the app. So, your
app doesn't inherit anything from Finder, and even if it did, Finder hasn't
inherited anything from your login shell."

There is certainly a solution. The crash revelated by Logfile MacOS application
are all relevant of QProcess::start(). This is exactly the same problem than
all listed in QtCentre entry.

So investiguation are required...

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-23 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #62 from caulier.gil...@gmail.com ---
In time, these crashes appear just before to see the First Run assistant.

This one populate the Database page with runtime dependecies detected at
startup up.

It's fun to see these thread crashed without to crash the application.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-23 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #61 from caulier.gil...@gmail.com ---
This is the resume of the 4 crashes which appear when i start digiKam from
Launchpad :

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_malloc.dylib  0x7fff783dc910 nano_force_unlock +
45
1   libsystem_malloc.dylib  0x7fff783db610 _malloc_fork_child +
284
2   libSystem.B.dylib   0x7fff75ec6afa
libSystem_atfork_child + 24
3   libsystem_c.dylib   0x7fff78280683 fork + 47
4   org.qt-project.QtCore   0x00010c30e5d1 0x10c185000 +
1611217
5   org.qt-project.QtCore   0x00010c30b34b 0x10c185000 +
1598283
6   org.qt-project.QtCore   0x00010c2bae0f 0x10c185000 +
1269263
7   libdigikamcore.6.0.0.dylib  0x000103ef71fd
Digikam::DBinaryIface::checkDir(QString const&) + 509
8   libdigikamcore.6.0.0.dylib  0x000103ef6e6f
Digikam::DBinaryIface::setup(QString const&) + 319
9   libdigikamgui.6.0.0.dylib   0x0001027e2b90
Digikam::MysqlInitBinary::MysqlInitBinary() + 400
10  libdigikamgui.6.0.0.dylib   0x0001027e2975
Digikam::MysqlInitBinary::MysqlInitBinary() + 21
11  libdigikamgui.6.0.0.dylib   0x0001027e2819
Digikam::DatabaseSettingsWidget::Private::Private() + 41
12  libdigikamgui.6.0.0.dylib   0x0001027d9ea5
Digikam::DatabaseSettingsWidget::Private::Private() + 21
13  libdigikamgui.6.0.0.dylib   0x0001027d9e03
Digikam::DatabaseSettingsWidget::DatabaseSettingsWidget(QWidget*) + 147
14  libdigikamgui.6.0.0.dylib   0x0001027ddc8d
Digikam::DatabaseSettingsWidget::DatabaseSettingsWidget(QWidget*) + 29
15  libdigikamgui.6.0.0.dylib   0x000102d41eae
Digikam::DatabasePage::DatabasePage(QWizard*) + 238
16  libdigikamgui.6.0.0.dylib   0x000102d4201d
Digikam::DatabasePage::DatabasePage(QWizard*) + 29
17  libdigikamgui.6.0.0.dylib   0x000102d3c956
Digikam::FirstRunDlg::FirstRunDlg(QWidget*) + 838
18  libdigikamgui.6.0.0.dylib   0x000102d3ce2d
Digikam::FirstRunDlg::FirstRunDlg(QWidget*) + 29
19  digikam 0x0001027b074a main + 7994
20  libdyld.dylib   0x7fff78221015 start + 1

---

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_malloc.dylib  0x7fff783dc910 nano_force_unlock +
45
1   libsystem_malloc.dylib  0x7fff783db610 _malloc_fork_child +
284
2   libSystem.B.dylib   0x7fff75ec6afa
libSystem_atfork_child + 24
3   libsystem_c.dylib   0x7fff78280683 fork + 47
4   org.qt-project.QtCore   0x00010c30e5d1 0x10c185000 +
1611217
5   org.qt-project.QtCore   0x00010c30b34b 0x10c185000 +
1598283
6   org.qt-project.QtCore   0x00010c2bae0f 0x10c185000 +
1269263
7   libdigikamcore.6.0.0.dylib  0x000103ef71fd
Digikam::DBinaryIface::checkDir(QString const&) + 509
8   libdigikamcore.6.0.0.dylib  0x000103ef6e6f
Digikam::DBinaryIface::setup(QString const&) + 319
9   libdigikamgui.6.0.0.dylib   0x0001027e2fb0
Digikam::MysqlServBinary::MysqlServBinary() + 400
10  libdigikamgui.6.0.0.dylib   0x0001027e2995
Digikam::MysqlServBinary::MysqlServBinary() + 21
11  libdigikamgui.6.0.0.dylib   0x0001027e282f
Digikam::DatabaseSettingsWidget::Private::Private() + 63
12  libdigikamgui.6.0.0.dylib   0x0001027d9ea5
Digikam::DatabaseSettingsWidget::Private::Private() + 21
13  libdigikamgui.6.0.0.dylib   0x0001027d9e03
Digikam::DatabaseSettingsWidget::DatabaseSettingsWidget(QWidget*) + 147
14  libdigikamgui.6.0.0.dylib   0x0001027ddc8d
Digikam::DatabaseSettingsWidget::DatabaseSettingsWidget(QWidget*) + 29
15  libdigikamgui.6.0.0.dylib   0x000102d41eae
Digikam::DatabasePage::DatabasePage(QWizard*) + 238
16  libdigikamgui.6.0.0.dylib   0x000102d4201d
Digikam::DatabasePage::DatabasePage(QWizard*) + 29
17  libdigikamgui.6.0.0.dylib   0x000102d3c956
Digikam::FirstRunDlg::FirstRunDlg(QWidget*) + 838
18  libdigikamgui.6.0.0.dylib   0x000102d3ce2d
Digikam::FirstRunDlg::FirstRunDlg(QWidget*) + 29
19  digikam 0x0001027b074a main + 7994
20  libdyld.dylib   0x7fff78221015 start + 1

-

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_malloc.dylib  0x7fff783dc910 nano_force_unlock +
45
1   libsystem_malloc.dylib  0x7fff783db610 _malloc_fork_child +
284
2   libSystem.B.dylib   0x7fff75ec6afa
libSystem_atfork_child + 24
3   libsystem_c.dylib   0x7fff78280683 fork + 47
4   org.qt-project.QtCore   0x00010c30e5d1 0x10c185000 +
1611217
5   org.qt-project.QtCore   

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-23 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #60 from caulier.gil...@gmail.com ---
Created attachment 112840
  --> https://bugs.kde.org/attachment.cgi?id=112840=edit
MacOS log files viewer with digiKam reports while starting from lauchpad

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-23 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #59 from caulier.gil...@gmail.com ---
Testa, Maik,

Sorry for my late response. I'm not at home, and i'm busy until next Sunday.

I can confirm that i can reproduce the problem when i start digiKam directly
from OSX desktop icon. Running under OS console work perfectly.

And yes it sound like a wrong path somewhere. As we don't have any console
feedback under OSX in this case, it's difficult to investiguate.

There is a tool under OSX to show events and log from application. It's limited
but instructive. The tool is located in Launchpad/Others/Console (log). It's
not a terminal, it's a log files viewer very well done.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-23 Thread testa
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #58 from testa  ---
> Q : what do you mean by "How can I trace in normal application mode ?"
> Do you mean to trace debug statement on the console without to run digiKam in
> the terminal ?

Yes that's it. Using a debug option in the app.

> Do you mean that starting digiKam from the MacOS icons launcher do not give 
> the
> same collection scan result than starting digiKam from a console ?

Exactly the behavior is not the same.
In terminal mode it's ok, from the launchpad, no.
Maybe environment variables, a different PATH. It's curious.

I had a good result 2 days ago but the cleaning was not done entirely.

Guy Audebert

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-22 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #57 from caulier.gil...@gmail.com ---
Q : what do you mean by "How can I trace in normal application mode ?"

Do you mean to trace debug statement on the console without to run digiKam in
the terminal ?

Do you mean that starting digiKam from the MacOS icons launcher do not give the
same collection scan result than starting digiKam from a console ?

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-22 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #56 from caulier.gil...@gmail.com ---
Testa,

Under MacOS, start the "Terminal" application. run digiKam directly from the
console with this command ;

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

All the trace will be printed on the console when the large collection will be
scanned. That all. If something abnormal appear, we will see it. 

When digiKam is closed, just copy and paste all the console contents to a text
editor by ;

CMD+A ; CMD+C ; CMD+V.

For editor just save the text to a new file, and attach it to this bugzilla
entry.

Very simple.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-22 Thread testa
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #55 from testa  ---
I had tested with a very small collection.
I can trace in terminal mode but it is this mode that works.
How can I trace in normal application mode, except to modify the appropriate
script.

Guy 

> Le 22 mai 2018 à 15:15,   
> a écrit :
> 
> https://bugs.kde.org/show_bug.cgi?id=394434
> 
> --- Comment #54 from caulier.gil...@gmail.com ---
> So, if the problem appear with a large collection, we will need a full debug
> trace from the console with all collection scan stages, until the failure
> event.
> 
> You need to reset the database before, of course, to be sure to not mix
> previous data.
> 
> Gilles Caulier
> 
> -- 
> You are receiving this mail because:
> You reported the bug.

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-22 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #54 from caulier.gil...@gmail.com ---
So, if the problem appear with a large collection, we will need a full debug
trace from the console with all collection scan stages, until the failure
event.

You need to reset the database before, of course, to be sure to not mix
previous data.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-22 Thread testa
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #53 from testa  ---
I confirm that in normal mode the direct launch fails. As for the long time I
wanted to talk about the time taken for the app to request information.

By cons I launched digikam in terminal mode:
/opt/digikam/Applications/KF5/digikam.app/Contents/MacOS/digikam 1> / tmp /
rendering 2> & 1
and actually it works, the import of my test collection went well and if I
restart digikam always in terminal mode the app opens correctly but if I run it
in normal mode the error message appears .


Guy audebert


> Le 22 mai 2018 à 12:02,   
> a écrit :
> 
> https://bugs.kde.org/show_bug.cgi?id=394434
> 
> --- Comment #52 from caulier.gil...@gmail.com ---
> The first scan can be long, this depend of collection size and number of items
> to populate in database. 
> 
> In my case, i setup a small collection to test (less than  images). I 
> recommend
> to do the same in first.
> 
> For the error reported previously, i insist : it's abnormal to see
> mysql_install_db using conf file from user space instead DK bundle one (from
> /opt/digikam/...).
> 
> At init you must to see someting like this on the console :
> 
> digikam.databaseserver: Database initializer:
> "/opt/digikam/lib/mariadb/bin/mysql_install_db"
> ("--datadir=/Users/gilles/Pictures/.mysql.digikam/db_data",
> "--defaults-file=/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//digikam/database/mysql-global.conf")
> 
> This line come from my debug trace. Look the path to mysql-global.conf. It 
> come
> from /opt/digikam/..., not my user space (/Users/gilles/...).
> 
> This is mandatory as the shell script from mysql/mariadb is bugous and do not
> accept space in path).
> 
> After that, creating mysql server instance in memory, using the binary file
> mysqld which is not a sheel script, can use a path with space. From my debug
> trace :
> 
> digikam.databaseserver: Database server: "/opt/digikam/lib/mariadb/bin/mysqld"
> ("--defaults-file=/Users/gilles/Library/Application
> Support/digikam/digikam/mysql.conf",
> "--datadir=/Users/gilles/Pictures/.mysql.digikam/db_data",
> "--socket=/Users/gilles/Library/Application
> Support/digikam/digikam/db_misc/mysql.socket")
> 
> This one use conf file from user space, as the temporary socket file used to
> communicate with the internal server from DK, through localhost.
> 
> Gilles
> 
> -- 
> You are receiving this mail because:
> You reported the bug.

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-22 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #52 from caulier.gil...@gmail.com ---
The first scan can be long, this depend of collection size and number of items
to populate in database. 

In my case, i setup a small collection to test (less than  images). I recommend
to do the same in first.

For the error reported previously, i insist : it's abnormal to see
mysql_install_db using conf file from user space instead DK bundle one (from
/opt/digikam/...).

At init you must to see someting like this on the console :

digikam.databaseserver: Database initializer:
"/opt/digikam/lib/mariadb/bin/mysql_install_db"
("--datadir=/Users/gilles/Pictures/.mysql.digikam/db_data",
"--defaults-file=/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//digikam/database/mysql-global.conf")

This line come from my debug trace. Look the path to mysql-global.conf. It come
from /opt/digikam/..., not my user space (/Users/gilles/...).

This is mandatory as the shell script from mysql/mariadb is bugous and do not
accept space in path).

After that, creating mysql server instance in memory, using the binary file
mysqld which is not a sheel script, can use a path with space. From my debug
trace :

digikam.databaseserver: Database server: "/opt/digikam/lib/mariadb/bin/mysqld"
("--defaults-file=/Users/gilles/Library/Application
Support/digikam/digikam/mysql.conf",
"--datadir=/Users/gilles/Pictures/.mysql.digikam/db_data",
"--socket=/Users/gilles/Library/Application
Support/digikam/digikam/db_misc/mysql.socket")

This one use conf file from user space, as the temporary socket file used to
communicate with the internal server from DK, through localhost.

Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-22 Thread testa
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #51 from testa  ---
Hi
I followed your indications to know how to do the cleaning of: -
- ~ / Library / Application Support / digikam
- ~ / Library / Preferences / digikamrc
- ~ / Pictures / .mysql.digikam
as well as / opt / digikam
I used the package of 22/05 5h49 either:
digiKam-6.0.0-git-20180522T074156-MacOS-x86-64.pkg
When launching the app in normal mode, it shoots for a long time before having
the error message. I made several inconclusive tests.
The penultimate package had resulted in an import of my photos in internal sql
after relaunching the application twice in terminal mode.


Guy Audebert


> Le 22 mai 2018 à 09:47,   
> a écrit :
> 
> https://bugs.kde.org/show_bug.cgi?id=394434
> 
> --- Comment #50 from caulier.gil...@gmail.com ---
> The error message is relevant of mysql_install_db which still use the DB conf
> file copied on user space instead to use one from /opt/digikam/... internal
> space.
> 
> This is abnormal, as the code have been changed by Maik and it work as 
> expected
> on my Macbook pro.
> 
> So i suspect that you don't install the right PKG installer from this
> repository :
> 
> https://files.kde.org/digikam/
> 
> Note the date of PKG : 22 may ! It have been build this morning.
> 
> Gilles Caulier
> 
> -- 
> You are receiving this mail because:
> You reported the bug.

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-22 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #50 from caulier.gil...@gmail.com ---
The error message is relevant of mysql_install_db which still use the DB conf
file copied on user space instead to use one from /opt/digikam/... internal
space.

This is abnormal, as the code have been changed by Maik and it work as expected
on my Macbook pro.

So i suspect that you don't install the right PKG installer from this
repository :

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

Note the date of PKG : 22 may ! It have been build this morning.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-22 Thread testa
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #49 from testa  ---
Created attachment 112805
  --> https://bugs.kde.org/attachment.cgi?id=112805=edit
error message

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-22 Thread testa
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #48 from testa  ---
Sorry, but the last package still causes the error as an attachment.
The launch is very very long.

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #47 from caulier.gil...@gmail.com ---
Testa,

The new PKG installer is now online with last code from git/master repository.

I'm waiting for your feedback, but for me this file can be closed soon.

Best

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #46 from caulier.gil...@gmail.com ---
Testa,

To be able to start DK with last PKG installer, please remove the following
files :

- _your_home_directory_/Library/Application Support/digikam
- _your_home_directory_/Library/Preferences/digikamrc
- _your_path_to_your_database_/.mysql.digikam

Mine :

- /Users/gilles/Library/Application Support/digikam
- /Users/gilles/Library/Preferences/digikamrc
- /Users/gilles/Pictures/.mysql.digikam

The last one is typically the place of the first collection registered to to
your database setup. For me, it's a local directory from my home dir.

For me the problem is now fixed. All work as expected.

Note : i will rebuild the PKG today with the last code from git, but the
current uploaded PKG must work fine on your computer.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #45 from caulier.gil...@gmail.com ---
Created attachment 112803
  --> https://bugs.kde.org/attachment.cgi?id=112803=edit
DK 6.0.0 trace from scratch with Mysql internal server

Maik,

I tried my last PKG with all Mariadb binaries fixes, and now all work as
expected.

See my trace for details, from the start to the end of first run session. All
settings removed, and previous database deleted.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #44 from caulier.gil...@gmail.com ---
testa,

6.0.0 PKG installer is updated at usual place with ore mariadb binaries
compatibilities

Please try again

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #43 from caulier.gil...@gmail.com ---
bash-3.2$ /opt/digikam/lib/mariadb/bin/mysql -u root
--socket="/Users/gilles/Library/Application
Support/digikam/digikam/db_misc/mysql.socket"
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 20
Server version: 5.5.57-MariaDB Source distribution

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> CREATE DATABASE digikamtest;
Query OK, 1 row affected (0.02 sec)

MariaDB [(none)]> USE digikamtest;
Database changed
MariaDB [digikamtest]> CREATE TABLE Test (Name varchar(255));
Query OK, 0 rows affected (0.03 sec)

MariaDB [digikamtest]> SHOW TABLES;
+---+
| Tables_in_digikamtest |
+---+
| Test  |
+---+
1 row in set (0.00 sec)

MariaDB [digikamtest]> 

So it work, but... to obtain this good result, i was need to fix a broken
dependency with ncurse to execute mysql executable.

So i think the problem come from a missing mysql parse of binaries files when
PKG is built at end. I will fix it.

Note : so no need a special account to create database under MacOS.

Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #42 from Maik Qualmann  ---
Access from the console (digiKam must be started, internal server started):

mysql -u root --socket=Path_to_socket_file

CREATE DATABASE digikamtest;

USE digikamtest;

CREATE TABLE Test (Name varchar(255));

SHOW TABLES;

Maik

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #41 from caulier.gil...@gmail.com ---
Created attachment 112795
  --> https://bugs.kde.org/attachment.cgi?id=112795=edit
mysql internal servel log file after local collection add and scan completed.

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #40 from caulier.gil...@gmail.com ---
Look like the collection after first scan completed is available and ready to
use. Look like the local collection has moved as a removable one. Why ?

Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #39 from caulier.gil...@gmail.com ---
Created attachment 112794
  --> https://bugs.kde.org/attachment.cgi?id=112794=edit
DK screenshot after first scan with mysql internal server and a local
collection set

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #38 from caulier.gil...@gmail.com ---
No wrong alert. socket file is well created.This is not the problem.

I restart digiKam and setup a local collection. Scan is started. At end DK said
that it cannot add the collection to DB.

Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #37 from caulier.gil...@gmail.com ---
Maik,

For the socket connection,

/Users/gilles/Library/Application Support/digikam/digikam/db_misc/mysql.socket

at least /Users/gilles/Library/Application Support/digikam/digikam/db_misc/
directory do not exist.

Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #36 from caulier.gil...@gmail.com ---
Maik,

Mysql give a log from internal server :

bash-3.2$ cat mysql.err 
180521 20:43:30 InnoDB: The InnoDB memory heap is disabled
180521 20:43:30 InnoDB: Mutexes and rw_locks use GCC atomic builtins
180521 20:43:30 InnoDB: Compressed tables use zlib 1.2.11
180521 20:43:30 InnoDB: Initializing buffer pool, size = 80.0M
180521 20:43:30 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
180521 20:43:30  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
180521 20:43:30  InnoDB: Log file ./ib_logfile0 did not exist: new to be
created
InnoDB: Setting log file ./ib_logfile0 size to 64 MB
InnoDB: Database physically writes the file full: wait...
180521 20:43:30  InnoDB: Log file ./ib_logfile1 did not exist: new to be
created
InnoDB: Setting log file ./ib_logfile1 size to 64 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: 127 rollback segment(s) active.
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
180521 20:43:31  InnoDB: Waiting for the background threads to start
180521 20:43:32 Percona XtraDB (http://www.percona.com) 5.5.55-MariaDB-38.8
started; log sequence number 0
180521 20:43:32 [Note] /opt/digikam/lib/mariadb/bin/mysqld: ready for
connections.
Version: '5.5.57-MariaDB'  socket: '/Users/gilles/Library/Application
Support/digikam/digikam/db_misc/mysql.socket'  port: 0  Source distribution
180521 20:44:42 [Note] /opt/digikam/lib/mariadb/bin/mysqld: Normal shutdown

180521 20:44:43  InnoDB: Starting shutdown...
180521 20:44:43  InnoDB: Waiting for 180 pages to be flushed
180521 20:44:46  InnoDB: Shutdown completed; log sequence number 1918333
180521 20:44:46 [Note] /opt/digikam/lib/mariadb/bin/mysqld: Shutdown complete

bash-3.2$ pwd
/Users/gilles/Pictures/.mysql.digikam/db_data

Nothing special here...

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #35 from caulier.gil...@gmail.com ---
Maik,

Remember me, which SQL query is used to create the digikam databases in
internal server ? how i can reproduce this task on CLI ?

Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #34 from caulier.gil...@gmail.com ---
I cleaned again all DK data files (config, DB), and startup again :

macbook-pro-de-gilles:~ gilles$
/opt/digikam/Applications/KF5/digikam.app/Contents/MacOS/digikam 
digikam.widgets: Breeze icons resource file found
digikam.general: AlbumWatch use QFileSystemWatcher
digikam.general: Database Parameters:
   Type: "QMYSQL"
   DB Core Name: "digikam"
   DB Thumbs Name:   "digikam"
   DB Face Name: "digikam"
   DB Similyritiy 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: "/opt/digikam/lib/mariadb/bin/mysqld"
   Internal Server Init Cmd: "/opt/digikam/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 Similyritiy 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: "/opt/digikam/lib/mariadb/bin/mysqld"
   Internal Server Init Cmd: "/opt/digikam/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 is outdated,
"/Users/gilles/Library/Application Support/digikam/digikam/mysql.conf" will be
updated.
digikam.databaseserver: Updated mysql configuration with
"/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//digikam/database/mysql-global.conf"
digikam.databaseserver: Fixed permissions of mysql configuration file.
digikam.databaseserver: Database initializer:
"/opt/digikam/lib/mariadb/bin/mysql_install_db"
("--datadir=/Users/gilles/Pictures/.mysql.digikam/db_data",
"--defaults-file=/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//digikam/database/mysql-global.conf")
digikam.databaseserver: Database server: "/opt/digikam/lib/mariadb/bin/mysqld"
("--defaults-file=/Users/gilles/Library/Application
Support/digikam/digikam/mysql.conf",
"--datadir=/Users/gilles/Pictures/.mysql.digikam/db_data",
"--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: Unable
to execute query"
digikam.databaseserver: Database error: "Can't connect to local MySQL server
through socket '/Users/gilles/Library/Application
Support/digikam/digikam/db_misc/mysql.socket' (2) QMYSQL: Unable to connect"
digikam.databaseserver: Trying to create database now
digikam.databaseserver: Database was successfully created
digikam.databaseserver: Internal database server started
digikam.databaseserver: Running 0 seconds...
digikam.dbengine: Loading SQL code from config file
"/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//digikam/database/dbconfig.xml"
digikam.dbengine: Checking XML version ID => expected:  3  found:  3
digikam.coredb: Core database: running schema update
digikam.coredb: Core database: no database file available
KMemoryInfo: Platform identified :  "Unknown"
KMemoryInfo: TotalRam:  -1
digikam.general: Allowing a cache size of 60 MB
digikam.general: No locale found in database
digikam.general: No locale found in config file
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  "/opt/digikam/bin/mysql_install_db" ...
digikam.general: All Binaries Found :  false
digikam.general: Testing  "/opt/digikam/bin/mysqld" ...
digikam.general: 

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #33 from caulier.gil...@gmail.com ---
No idea. I take a look.

Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #32 from Maik Qualmann  ---
Gilles,

I think the MySQL server can not access the data directory. Is it possible that
a mysql user needs to be created in MacOS?

Maik

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread testa
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #31 from testa  ---
Hi
In terminal mode it actually happened.
To follow, I will test thoroughly, but in any case thank you for considering
the problem.
It is a good application that allows to quickly view his photos, I used a lot
but digikam I like it.
Congratulations to the team and good luck.

Guy Audebert

> Le 20 mai 2018 à 20:39,   
> a écrit :
> 
> https://bugs.kde.org/show_bug.cgi?id=394434
> 
> --- Comment #21 from caulier.gil...@gmail.com ---
> Comment on attachment 112779
>  --> https://bugs.kde.org/attachment.cgi?id=112779
> new error message
> 
> ok.
> 
> Open a terminal, and run :
> 
> /opt/digikam/Applications/KF5/digikam.app/Contents/MacOS/digikam
> 
> The application will print debug statement on the console. Re-configure mysql
> internal server and look the terminal output.
> 
> Gilles Caulier
> 
> -- 
> You are receiving this mail because:
> You reported the bug.

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #30 from Maik Qualmann  ---
Gilles, QProcess with the arguments use internally quotes. The mysqld is
already started, the database can not be created, strange.

Maik

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #29 from caulier.gil...@gmail.com ---
Look my comment #27 (:=)))... This is the reason. It's always a path with space
problem.

Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #28 from Maik Qualmann  ---
...
> digikam.databaseserver: Failed to use database "digikam"
> digikam.databaseserver: Query error: "Unknown database 'digikam' QMYSQL:
> Unable to execute query"
> digikam.databaseserver: Database error: " "
> digikam.databaseserver: Trying to create database now

Until everything is correct, now an error occurs. Why can not the digiKam
database be created?

> digikam.databaseserver: Failed to create database
> digikam.databaseserver: Query error: "Can't create database 'digikam'
> (errno: 2) QMYSQL: Unable to execute query"
> digikam.databaseserver: Database error: " "
> digikam.databaseserver: Cannot start internal database server

Maik

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #27 from caulier.gil...@gmail.com ---
Maik,

Using doube quote over path passed as argument for mysqld is the solution :

macbook-pro-de-gilles:~ gilles$ /opt/digikam/lib/mariadb/bin/mysqld
--defaults-file="/Users/gilles/Library/Application
Support/digikam/digikam/mysql.conf"
--datadir="/Users/gilles/Pictures/.mysql.digikam/db_data"
--socket="/Users/gilles/Library/Application
Support/digikam/digikam/db_misc/mysql.socket"
180521 14:57:07 [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
180521 14:57:07 [Note] /opt/digikam/lib/mariadb/bin/mysqld (mysqld
5.5.57-MariaDB) starting as process 8450 ...
180521 14:57:07 [Warning] Setting lower_case_table_names=2 because file system
for /Users/gilles/Pictures/.mysql.digikam/db_data/ is case insensitive


Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #26 from caulier.gil...@gmail.com ---
The problem is the next stage to start internal server :

macbook-pro-de-gilles:~ gilles$ /opt/digikam/lib/mariadb/bin/mysqld
--defaults-file=/Users/gilles/Library/Application
Support/digikam/digikam/mysql.conf
--datadir=/Users/gilles/Pictures/.mysql.digikam/db_data
--socket=/Users/gilles/Library/Application
Support/digikam/digikam/db_misc/mysql.socket
Could not open required defaults file: /Users/gilles/Library/Application
Fatal error in defaults handling. Program aborted
macbook-pro-de-gilles:~ gilles$ ls -al /opt/digikam/lib/mariadb/bin/mysqld
-rwxr-xr-x  1 root  wheel  11104340  2 mai 15:15
/opt/digikam/lib/mariadb/bin/mysqld
macbook-pro-de-gilles:~ gilles$ file /opt/digikam/lib/mariadb/bin/mysqld
/opt/digikam/lib/mariadb/bin/mysqld: Mach-O 64-bit executable x86_64

As you can see, mysqld is a binary file, not a script

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #25 from caulier.gil...@gmail.com ---
Maik,

Now in fact the problem with mysql_install_db is fixed. Look like DB files are
now created properly on user space :

# pwd
/Users/gilles/Pictures/.mysql.digikam
# ls -alR
total 0
drwxr-xr-x   3 gilles  staff   96 21 mai 14:52 .
drwx--+ 13 gilles  staff  416 21 mai 14:45 ..
drwxr-xr-x  16 gilles  staff  512 21 mai 14:46 db_data

./db_data:
total 301176
drwxr-xr-x  16 gilles  staff   512 21 mai 14:46 .
drwxr-xr-x   3 gilles  staff96 21 mai 14:52 ..
-rw-rw   1 gilles  staff 16384 21 mai 14:46 aria_log.0001
-rw-rw   1 gilles  staff52 21 mai 14:46 aria_log_control
-rw-rw   1 gilles  staff  67108864 21 mai 14:46 ib_logfile0
-rw-rw   1 gilles  staff  67108864 21 mai 14:46 ib_logfile1
-rw-rw   1 gilles  staff  18874368 21 mai 14:46 ibdata1
-rw-rw   1 gilles  staff 5 21 mai 14:46 macbook-pro-de-gilles.pid
drwx--  74 gilles  staff  2368 21 mai 14:46 mysql
-rw-rw   1 gilles  staff 30394 21 mai 14:46 mysql-bin.01
-rw-rw   1 gilles  staff   1038814 21 mai 14:46 mysql-bin.02
-rw-rw   1 gilles  staff   245 21 mai 14:46 mysql-bin.03
-rw-rw   1 gilles  staff57 21 mai 14:46 mysql-bin.index
-rw-rw   1 gilles  staff  1556 21 mai 14:46 mysql.err
drwx--  20 gilles  staff   640 21 mai 14:46 performance_schema
drwx--   2 gilles  staff64 21 mai 14:46 test

./db_data/mysql:
total 2000
drwx--  74 gilles  staff2368 21 mai 14:46 .
drwxr-xr-x  16 gilles  staff 512 21 mai 14:46 ..
-rw-rw   1 gilles  staff   0 21 mai 14:46 columns_priv.MYD
-rw-rw   1 gilles  staff4096 21 mai 14:46 columns_priv.MYI
-rw-rw   1 gilles  staff8820 21 mai 14:46 columns_priv.frm
-rw-rw   1 gilles  staff 880 21 mai 14:46 db.MYD
-rw-rw   1 gilles  staff5120 21 mai 14:46 db.MYI
-rw-rw   1 gilles  staff9582 21 mai 14:46 db.frm
-rw-rw   1 gilles  staff   0 21 mai 14:46 event.MYD
-rw-rw   1 gilles  staff2048 21 mai 14:46 event.MYI
-rw-rw   1 gilles  staff   10239 21 mai 14:46 event.frm
-rw-rw   1 gilles  staff   0 21 mai 14:46 func.MYD
-rw-rw   1 gilles  staff1024 21 mai 14:46 func.MYI
-rw-rw   1 gilles  staff8665 21 mai 14:46 func.frm
-rw-rw   1 gilles  staff  35 21 mai 14:46 general_log.CSM
-rw-rw   1 gilles  staff   0 21 mai 14:46 general_log.CSV
-rw-rw   1 gilles  staff8776 21 mai 14:46 general_log.frm
-rw-rw   1 gilles  staff1092 21 mai 14:46 help_category.MYD
-rw-rw   1 gilles  staff3072 21 mai 14:46 help_category.MYI
-rw-rw   1 gilles  staff8700 21 mai 14:46 help_category.frm
-rw-rw   1 gilles  staff   91408 21 mai 14:46 help_keyword.MYD
-rw-rw   1 gilles  staff   16384 21 mai 14:46 help_keyword.MYI
-rw-rw   1 gilles  staff8612 21 mai 14:46 help_keyword.frm
-rw-rw   1 gilles  staff9252 21 mai 14:46 help_relation.MYD
-rw-rw   1 gilles  staff   19456 21 mai 14:46 help_relation.MYI
-rw-rw   1 gilles  staff8630 21 mai 14:46 help_relation.frm
-rw-rw   1 gilles  staff  450388 21 mai 14:46 help_topic.MYD
-rw-rw   1 gilles  staff   20480 21 mai 14:46 help_topic.MYI
-rw-rw   1 gilles  staff8770 21 mai 14:46 help_topic.frm
-rw-rw   1 gilles  staff   0 21 mai 14:46 host.MYD
-rw-rw   1 gilles  staff2048 21 mai 14:46 host.MYI
-rw-rw   1 gilles  staff9510 21 mai 14:46 host.frm
-rw-rw   1 gilles  staff   0 21 mai 14:46 ndb_binlog_index.MYD
-rw-rw   1 gilles  staff1024 21 mai 14:46 ndb_binlog_index.MYI
-rw-rw   1 gilles  staff8778 21 mai 14:46 ndb_binlog_index.frm
-rw-rw   1 gilles  staff   0 21 mai 14:46 plugin.MYD
-rw-rw   1 gilles  staff1024 21 mai 14:46 plugin.MYI
-rw-rw   1 gilles  staff8586 21 mai 14:46 plugin.frm
-rw-rw   1 gilles  staff 288 21 mai 14:46 proc.MYD
-rw-rw   1 gilles  staff4096 21 mai 14:46 proc.MYI
-rw-rw   1 gilles  staff   10012 21 mai 14:46 proc.frm
-rw-rw   1 gilles  staff   0 21 mai 14:46 procs_priv.MYD
-rw-rw   1 gilles  staff4096 21 mai 14:46 procs_priv.MYI
-rw-rw   1 gilles  staff8875 21 mai 14:46 procs_priv.frm
-rw-rw   1 gilles  staff1386 21 mai 14:46 proxies_priv.MYD
-rw-rw   1 gilles  staff5120 21 mai 14:46 proxies_priv.MYI
-rw-rw   1 gilles  staff8800 21 mai 14:46 proxies_priv.frm
-rw-rw   1 gilles  staff   0 21 mai 14:46 servers.MYD
-rw-rw   1 gilles  staff1024 21 mai 14:46 servers.MYI
-rw-rw   1 gilles  staff8838 21 mai 14:46 servers.frm
-rw-rw   1 gilles  staff  35 21 mai 14:46 slow_log.CSM
-rw-rw   1 gilles  staff   0 21 mai 14:46 slow_log.CSV
-rw-rw   1 gilles  staff8976 21 mai 14:46 slow_log.frm
-rw-rw   1 gilles  staff   0 21 mai 14:46 tables_priv.MYD
-rw-rw   1 gilles  staff4096 21 mai 14:46 

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #24 from caulier.gil...@gmail.com ---
No, the mysql_install_script exec right is fine. Look the PKG contents.

Now the error is probably relevant of path used with the communication socket
between the server and the Qt Mysql plugin. Look the trace on the console :

digikam.general: Switch to Mysql Internal DB config...
digikam.dbengine: ConnectOptions 
"UNIX_SOCKET=/Users/gilles/Library/Application
Support/digikam/digikam/db_misc/mysql.socket"
digikam.geoiface: 
digikam.geoiface: 
digikam.general: Stacked View Mode :  0
digikam.geoiface: 
digikam.general: Database Parameters:
   Type: "QMYSQL"
   DB Core Name: "digikam"
   DB Thumbs Name:   "digikam"
   DB Face Name: "digikam"
   DB Similyritiy 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: "/opt/digikam/lib/mariadb/bin/mysqld"
   Internal Server Init Cmd: "/opt/digikam/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 Similyritiy 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: "/opt/digikam/lib/mariadb/bin/mysqld"
   Internal Server Init Cmd: "/opt/digikam/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 is outdated,
"/Users/gilles/Library/Application Support/digikam/digikam/mysql.conf" will be
updated.
digikam.databaseserver: Updated mysql configuration with
"/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//digikam/database/mysql-global.conf"
digikam.databaseserver: Fixed permissions of mysql configuration file.
digikam.databaseserver: Database initializer:
"/opt/digikam/lib/mariadb/bin/mysql_install_db"
("--datadir=/Users/gilles/Pictures/.mysql.digikam/db_data",
"--defaults-file=/opt/digikam/Applications/KF5/digikam.app/Contents/Resources//digikam/database/mysql-global.conf")
digikam.databaseserver: Database server: "/opt/digikam/lib/mariadb/bin/mysqld"
("--defaults-file=/Users/gilles/Library/Application
Support/digikam/digikam/mysql.conf",
"--datadir=/Users/gilles/Pictures/.mysql.digikam/db_data",
"--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: Unable
to execute query"
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: Unable to execute query"
digikam.databaseserver: Database error: " "
digikam.databaseserver: Cannot start internal database server

Note : i cleaned all files previously created with failed init with internal
server. So the configuration before this test is something about sqlite
instancied while first run assistant.

Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-21 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #23 from caulier.gil...@gmail.com ---
Created attachment 112785
  --> https://bugs.kde.org/attachment.cgi?id=112785=edit
PKG file contents before packaging

See attached ls -alR over root directory before to package in target PKG for
MacOS

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-20 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #22 from Maik Qualmann  ---
My guess, the script is not found or the execution rights are not set.

Maik

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-20 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #21 from caulier.gil...@gmail.com ---
Comment on attachment 112779
  --> https://bugs.kde.org/attachment.cgi?id=112779
new error message

ok.

Open a terminal, and run :

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

The application will print debug statement on the console. Re-configure mysql
internal server and look the terminal output.

Gilles Caulier

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-20 Thread testa
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #20 from testa  ---
Created attachment 112779
  --> https://bugs.kde.org/attachment.cgi?id=112779=edit
new error message

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-20 Thread testa
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #19 from testa  ---
Hi
I just tried the last package digikam
digiKam-6.0.0-git-20180520T114315-MacOS-x86-64, I made a complete
reinstallation, but at the opening of digikam I immediately got the following
message:

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-20 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #18 from Maik Qualmann  ---
We close the bug if it was tested on MacOS.

Maik

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-20 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #17 from Maik Qualmann  ---
Git commit 1f22ae00a59372bf0df9f203d36305abaeba019b by Maik Qualmann.
Committed on 20/05/2018 at 06:18.
Pushed by mqualmann into branch 'master'.

use the digiKam global MySQL config  file for the database creation

M  +10   -9core/libs/database/server/databaseserver.cpp

https://commits.kde.org/digikam/1f22ae00a59372bf0df9f203d36305abaeba019b

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-19 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=394434

--- Comment #16 from caulier.gil...@gmail.com ---
You are right. By this way the conf file is always store in a simpler path
under Linux and MacOS. It's definitively the best and simpler way.

Gilles

-- 
You are receiving this mail because:
You are watching all bug changes.

[digikam] [Bug 394434] installation problem mysql internal on mac os high sierra [patch]

2018-05-19 Thread Maik Qualmann
https://bugs.kde.org/show_bug.cgi?id=394434

Maik Qualmann  changed:

   What|Removed |Added

Summary|installation problem mysql  |installation problem mysql
   |internal on mac os high |internal on mac os high
   |sierra  |sierra [patch]

-- 
You are receiving this mail because:
You are watching all bug changes.