The Discussions and Opinions forum is a place for open discussion regarding everything related to KDE, within the boundaries of KDE Code of Conduct. If you have a question or need a solution for a KDE problem, please post in the apppropriate forum instead.
Reply to topic

FEDERATED MySQL Kontact on Windows

woodsmoke
Registered Member
Posts
26
Karma
0
OS

FEDERATED MySQL Kontact on Windows

Tue Nov 13, 2012 6:35 am
Hi
I know, I am just SUCH a bother!! always trying out that stuff that other people don't do! lol
Hey
I have a Windows Vista Busness Sony VAio Laptop.
a) Last year I tried an install of "KDE on windows" on it and it was waay in BETA so it installed but that was about it, and I sent off the reports.
b) I just last night tried the KDE on Windows thing and Calligra suite and...

It is looking GOOD!!

Calligra works.
All of the KDE on Windows thing works except Kontact.

When I try to enable Akonadi I get an error: "FEDERATED is NOT running".

There is a post on the net that QT is to be installed first....but I found that AFTER... :(

I installed MySQL , the whole thing, including server, and then MS told me that I needed .net, and I installed .net 4.

So QT came to the party late! :(

When I try to get Akonadi running I get the FEDERATED error.

MySQL's workbench has a place for picking a "database form" and it was a generic thing, I chose FEDERATED and restarted several times etc. but no joy.

There is on the MySQL forums a post from a couple of years ago about "running --federated" which I ASSUME means in terminal.

Well, i can "do" terminal in Linux but not Windows...

So....if anyone has a clue about the PARTICULAR items to "tick" or "fill in" in the MySQL workbench

or...

how to put the " --federated" into terminal and WHERE to put it in in the file structure...

I would muchly appreciative!! :)

And I imagine that others trying to run KDE on windows would be so also!! :)

thanks ahead of time for any help! :)

woodsmoke
User avatar bcooksley
Administrator
Posts
18607
Karma
83
OS
Can you please post a screenshot of the error Kontact is generating?


System Settings and Device Actions KCM maintainer
Image
woodsmoke
Registered Member
Posts
26
Karma
0
OS
Thanks muchly for the reply and I apologize for not getting back more quickly.

Here is the screenshot.

Image



Here is the output of the error message:

Akonadi Server Self-Test Report
===============================

Test 1: SUCCESS
--------

Database driver found.
Details: The QtSQL driver 'QMYSQL' is required by your current Akonadi server configuration and was found on your system.

File content of 'C:/Users/james/.config/akonadi/akonadiserverrc':
[QMYSQL]
Name=akonadi
Host=
Options=
ServerPath=C:/Users/james/AppData/Local/Temp/KDE/bin/mysqld.exe
StartServer=true
User=
Password=

[Debug]
Tracer=null

[%General]
Driver=QMYSQL

[QSQLITE3]
Name=C:/Users/james/.local/share/akonadi\\akonadi.db

[QPSQL]
StartServer=true
Name=akonadi
Host=
User=
Password=
Port=5432


Test 2: SUCCESS
--------

MySQL server found.
Details: You have currently configured Akonadi to use the MySQL server 'C:/Users/james/AppData/Local/Temp/KDE/bin/mysqld.exe'.
Make sure you have the MySQL server installed, set the correct path and ensure you have the necessary read and execution rights on the server executable. The server executable is typically called 'mysqld'; its location varies depending on the distribution.

Test 3: SUCCESS
--------

MySQL server is executable.
Details: MySQL server found: C:\Users\james\AppData\Local\Temp\KDE\bin\mysqld.exe Ver 5.1.56-community for Win32 on ia32 (MySQL Community Server (GPL))


Test 4: ERROR
--------

MySQL server log contains errors.
Details: The MySQL server error log file &apos;<a href='C:/Users/james/.local/share/akonadi/db_data\mysql.err'>C:/Users/james/.local/share/akonadi/db_data\mysql.err</a>&apos; contains errors.

File content of 'C:/Users/james/.local/share/akonadi/db_data\mysql.err':
121004 22:49:22 [Note] Plugin 'FEDERATED' is disabled.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
121004 22:49:25 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
121004 22:49:27 InnoDB: Started; log sequence number 0 143650
121004 22:49:27 [Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them
121004 22:49:27 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist
121004 22:49:27 [Note] C:\Program Files\Kontact-e5\bin\mysqld.exe: ready for connections.
Version: '5.1.48-community' socket: '' port: 0 MySQL Community Server (GPL)
121004 22:49:29 [Warning] Aborted connection 4 to db: 'akonadi' user: 'ODBC' host: '' (Got an error reading communication packets)


Test 5: ERROR
--------

MySQL server default configuration not found.
Details: The default configuration for the MySQL server was not found or was not readable. Check your Akonadi installation is complete and you have all required access rights.

Test 6: SKIP
--------

MySQL server custom configuration not available.
Details: The custom configuration for the MySQL server was not found but is optional.

Test 7: SUCCESS
--------

MySQL server configuration is usable.
Details: The MySQL server configuration was found at <a href='C:/Users/james/.local/share/akonadi/mysql.conf'>C:/Users/james/.local/share/akonadi/mysql.conf</a> and is readable.

File content of 'C:/Users/james/.local/share/akonadi/mysql.conf':
#
# Global Akonadi MySQL server settings,
# These settings can be adjusted using $HOME/.config/akonadi/mysql-local.conf
#
# Based on advice by Kris Köhntopp <kris@mysql.com>
#
[mysqld]
skip_grant_tables
skip_networking

# strict query parsing/interpretation
# TODO: make Akonadi work with those settings enabled
#sql_mode=strict_trans_tables,strict_all_tables,strict_error_for_division_by_zero,no_auto_create_user,no_auto_value_on_zero,no_engine_substitution,no_zero_date,no_zero_in_date,only_full_group_by,pipes_as_concat
#sql_mode=strict_trans_tables

# use InnoDB for transactions and better crash recovery
default_storage_engine=innodb
# case-insensitive table names, avoids trouble on windows
lower_case_table_names=1
character_set_server=utf8
collation_server=utf8_general_ci
table_cache=200
thread_cache_size=3
#log_bin=mysql-bin
#expire_logs_days=3
#sync_bin_log=0
# error log file name, relative to datadir
log_error=mysql.err
log_warnings=2
# log all queries, useful for debugging but generates an enormous amount of data
#log=mysql.full
# log queries slower than n seconds, log file name relative to datadir (for debugging only)
#log_slow_queries=mysql.slow
#long_query_time=1
# log queries not using indices, debug only, disable for production use
#log_queries_not_using_indexes=1
# maximum blob size
max_allowed_packet=32M
max_connections=256
# makes sense when having the same query multiple times
# makes no sense with prepared statements and/or transactions
query_cache_type=0
query_cache_size=0

innodb_file_per_table=1
innodb_log_buffer_size=1M
innodb_additional_mem_pool_size=1M
# messure database size and adjust
# SELECT sum(data_length) as bla, sum(index_length) as blub FROM information_schema.tables WHERE table_schema not in ("mysql", "information_schema");
innodb_buffer_pool_size=80M
# size of average write burst, keep Innob_log_waits small, keep Innodb_buffer_pool_wait_free small (see show global status like "inno%", show global variables)
innodb_log_file_size=64M
innodb_flush_log_at_trx_commit=2

# Do not drop the connection to the DB after 8 hours of inactivity
wait_timeout=1296000

[client]
default-character-set=utf8


Test 8: SUCCESS
--------

akonadictl found and usable
Details: The program 'C:/Users/james/AppData/Local/Temp/KDE/bin/akonadictl.EXE' to control the Akonadi server was found and could be executed successfully.
Result:
Akonadi 1.7.0


Test 9: ERROR
--------

Akonadi control process not registered at D-Bus.
Details: The Akonadi control process is not registered at D-Bus which typically means it was not started or encountered a fatal error during startup.

Test 10: ERROR
--------

Akonadi server process not registered at D-Bus.
Details: The Akonadi server process is not registered at D-Bus which typically means it was not started or encountered a fatal error during startup.

Test 11: ERROR
--------

Nepomuk search service not registered at D-Bus.
Details: The Nepomuk search service is not registered at D-Bus which typically means it was not started or encountered a fatal error during startup.

Test 12: SKIP
--------

Protocol version check not possible.
Details: Without a connection to the server it is not possible to check if the protocol version meets the requirements.

Test 13: ERROR
--------

No resource agents found.
Details: No resource agents have been found, Akonadi is not usable without at least one. This usually means that no resource agents are installed or that there is a setup problem. The following paths have been searched: ''. The XDG_DATA_DIRS environment variable is set to 'C:\Program Files\Kontact-e5\share;C:\Program Files\Kontact-e5;C:\Program Files\Kontact-e5\share;C:\Program Files\Kontact-e5'; make sure this includes all paths where Akonadi agents are installed.

Directory list is empty.

Environment variable XDG_DATA_DIRS is set to 'C:\Program Files\Kontact-e5\share;C:\Program Files\Kontact-e5;C:\Program Files\Kontact-e5\share;C:\Program Files\Kontact-e5'

Test 14: ERROR
--------

Current Akonadi server error log found.
Details: The Akonadi server reported errors during its current startup. The log can be found in <a href='C:/Users/james/.local/share/akonadi\akonadiserver.error'>C:/Users/james/.local/share/akonadi\akonadiserver.error</a>.

File content of 'C:/Users/james/.local/share/akonadi\akonadiserver.error':
Did not find MySQL server default configuration (mysql-global.conf)


Test 15: ERROR
--------

Previous Akonadi server error log found.
Details: The Akonadi server reported errors during its previous startup. The log can be found in <a href='C:/Users/james/.local/share/akonadi\akonadiserver.error.old'>C:/Users/james/.local/share/akonadi\akonadiserver.error.old</a>.

File content of 'C:/Users/james/.local/share/akonadi\akonadiserver.error.old':
Did not find MySQL server default configuration (mysql-global.conf)


Test 16: SUCCESS
--------

No current Akonadi control error log found.
Details: The Akonadi control process did not report any errors during its current startup.

Test 17: SUCCESS
--------

No previous Akonadi control error log found.
Details: The Akonadi control process did not report any errors during its previous startup.




Like I said in the OP, I don't have access to a terminal on a Vista machine so I'll probably have to rely on the MySQl workbench app or something in Akonadi.

I'm fully familiar with Akonadi on an Ubuntu Linux machine it that helps any at all.

thanks in advance.

woodsmoke

woodsmoke
User avatar bcooksley
Administrator
Posts
18607
Karma
83
OS
Unusually, it seems that the MySQL server default configuration which is shipped by Akonadi is missing (this is Test #5) and could be a key indicator as to why it is failing to start. Can you please check to see if it is present?

It is at $PREFIX/share/config/akonadi/mysql-global.conf on my system here.


System Settings and Device Actions KCM maintainer
Image
woodsmoke
Registered Member
Posts
26
Karma
0
OS
Hi bcooksly

Thank you very much for your reply.

I am very familiar with a Linux file structure but am absolutely ignorant about a "Windows" file structure.

a) Are you posting in terms of a windows or a linux file structure? Because I have NEVER seen the term:

$PREFIX that is STRING PREFIX in Linux....."String" is a "basic" command and I assume others, like in linux where it would be:

"$woodsmoke" in terminal.

If it is a "windows" file structure then I have no clue.

If it is a "windows in WINE" then I can "relate" to that but still have no clue....

so...

I really DO NOT KNOW HOW....to get to a "windows" file structure "in WINE" in a "windows" system...

So....

and this is a BIG so....as in Needle Pulling Thread.....

If you could eludicate as to this then I will ENTHUSIASTICALLY do what you say but I am ignorant of windows file structures and also how to access them....

I realize that there is a "windows terminal" but I never used it except under direction by a geeky guy...so...

please expand if you would.

The HARDWARE is a Sony Vaio laptop. The original software was full bore Vista Business that was purchased as a package about 5 (five) years antecedent to this post. About a week ago I attempted to install upon the previously mentioned hardware and OS the KDE "stuff"...

I ASSUME THAT IT WAS WINE IN REVERSE....but have absolutely no clue because

the old woodsmoker is kinda stupid...

so please walk me through this step by step if you would ...

please?

woodsmoke

woodsmoke
User avatar bcooksley
Administrator
Posts
18607
Karma
83
OS
In this case $PREFIX will be the directory you installed Kontact into - likely C:\Program Files\Something...


System Settings and Device Actions KCM maintainer
Image
woodsmoke
Registered Member
Posts
26
Karma
0
OS
Hi thanks for the VERY late reply! it worked.

woodsmoke
User avatar bcooksley
Administrator
Posts
18607
Karma
83
OS
Not a problem - i've now marked this as solved.


System Settings and Device Actions KCM maintainer
Image

 
Reply to topic

Bookmarks



Who is online

Registered users: alake, Baidu [Spider], bcooksley, Bing [Bot], cylverbak, Exabot [Bot], garthecho, Google [Bot], ken300, koriun, lazyit, Majestic-12 [Bot], Naproxeno, nezumi, normcross, Sogou [Bot], valoriez, vascobasque, whatthefunk, Yahoo [Bot]