![]() Registered Member ![]()
|
Thank you for the clarification. Yes to both questions.
I deleted the ~/.local/share/akonadi/db_data directory again yesterday. After rebooting I had akonadi errors and I had no contacts anymore - clicking on Contacts showed nothing. I right-clicked in the Address Books pane and clicked on Add Address Book and chose just Personal Contacts. Previously, I had also had a KDE Address Book (Traditional). Currently, when configuring akonadi, I have just the following items: Personal Contacts /home/paul/.local/share/contacts/ std.ics /home/paul/.local/share/ Local Folders /home/paul/.local/share/local-mail This mornings cold boot: When desktop was presented, I launched Konqueror and then launched Kontact. Kontact started Mail and KOrganizer. The Akonadi Server Self-Test was not launched. When clicking on Contacts in Kontact, I was presented with my Personal Contacts in the Address Books pane - no akonadi error reported. All appears to be normal. But, I'm still getting this error in the mysql.err log file:
Administrator
Kubuntu Forums . Net - https://kubuntuforums.net |
![]() Administrator ![]()
|
Odd, however given that Akonadi is apparently functioning, it can probably be ignored.
To fix it you need to install the needed database and tables to Akonadi's db.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
mysql_install_db --datadir ~/.local/share/akonadi/db_data/ failed - said I didn't a mysql server installed. So I installed mysql-server-5.1 and then reran mysql_install_db --datadir ~/.local/share/akonadi/db_data/ and got:
Rebooted and the result is the same. Now what?
Administrator
Kubuntu Forums . Net - https://kubuntuforums.net |
![]() Administrator ![]()
|
Did you have MySQL stopped when you ran that command ( ie. was Akonadi stopped )
Akonadi can be stopped by running: akonadictl stop Make sure all your PIM applications are closed first though.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Yes. Quit Kontact. Stopped Akonadi. Verified by running akonadictl stop. Ran mysql_install_db --datadir ~/.local/share/akonadi/db_data/ and got the same:
Why am I getting the error? Why aren't the db's being created?
Administrator
Kubuntu Forums . Net - https://kubuntuforums.net |
![]() Administrator ![]()
|
Can you please try the following?
It does the following: Nukes the Akonadi MySQL databases and configuration. Starts Akonadi so it can preinitialise the settings. Shuts Akonadi down, waits for 30 seconds, then kills the server process to ensure it has access. Performs the Db installation so that mysql is happy, then starts Akonadi again.
On my system ( with mysql 5.1.36 ) the mysql_install_db command worked fine.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Don't think it goes well.
Administrator
Kubuntu Forums . Net - https://kubuntuforums.net |
![]() Administrator ![]()
|
It appears you already have a locally running MySQL instance. In this case, you can create a user and a database for Akonadi to use there ( this is what I have done ) which causes the least problems with regards to getting the SQL server running.
No idea why it failed to create the mysql.db table though...
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
From http://userbase.kde.org/Akonadi#Environment_Setup
This 'error' in the Akonadi Server Self-Test continues to appear, and I have to close Kontact and restart it before I have access to Contacts. I do of course, have resource agents installed. But it appears that the XDG_DATA_DIRS environment variable does not include the path to them. These resources are located at: /usr/share/akonadi/agents How do I modify the XDG_DATA_DIRS environment variable so that it includes this path after a reboot?
Administrator
Kubuntu Forums . Net - https://kubuntuforums.net |
![]() Administrator ![]()
|
Add the following script to ~/.kde4/env/set-akonadi-env.sh
And mark it as executable.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
I'll beg ignorance here, but that doesn't appear to do anything more than recreate (with duplication) what XDG_DATA_DIRS already contains when akonadi starts, and that is reported by the self-test to be 'the problem' - that the actual path containing the resource agents - /usr/share/akonadi/agents - isn't contained in XDG_DATA_DIRS. Or am I missing/misunderstanding something? Also, I have no ~/.kde4/env directory -- I'm running Kubuntu 9.10, KDE 4.4.1. I do have a ~/.kde/env directory, but I don't have the file set-aonadi-env.sh anywhere on my system.
Administrator
Kubuntu Forums . Net - https://kubuntuforums.net |
![]() Administrator ![]()
|
On my system, $XDG_DATA_DIRS is set as follows
The akonadi-env-set.sh script is supposed to be created in the location specified. Precisely it should be created in $(kde4-config --localprefix)/env/. A logout is required to activate its effects. A check to see if Akonadi was functional on my system from a completely clean start ( remove ~/.local/share/akonadi, ~/.config/akonadi, replacing only ~/.config/akonadi/akonadiserverrc so it connects to an external instance ) works fine...
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
It's driving me crazy too.
I've just installed KDE 4.4 on a clean Arch install, to try it out (I'm used to the very minimalist awesome but thought, what the hell, get a new computer, try something pretty) and it looks !amazing!, but I cannot for the life of me figure out what is bugging Akonadi. I have trawled the forums, tried deleting the configs, reinstalling, modifying and just plain shouting at it but it own't budge. Nothing that has worked for other people works. All I ever get is this:
It looks like the errors described above, but the "access denied for user""@localhost" is new. And the worst aprt of it all is that everythign else is rock solid and utterly beautiful. It's like getting to heaven and finding everything perfect except for a pervasive smell of old socks. I would be *very* grateful for any help. |
![]() Administrator ![]()
|
Try opening Akonadi Tray ( run "akonaditray" ) then select "Configure" from the tray icon's right click menu.
If you are using the external mysql server, then please check the settings. If you are using the internal server I do not know why this error is occurring.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Thank you bcooksley,
Tried that. No luck. ![]() Anyway, if anyone has an idea that is not refreshing the configuration files in ~/.local and ~/.config, rebuilding the database, reinstalling dbus, akonadi or everything, or ensuring that the internal server is in use, I'd be very interested to hear about it. |
Registered users: Bing [Bot], blue_bullet, Google [Bot], Sogou [Bot]