akonadi-server question

Discussions Regarding Software

Moderator: Moderators

Post Reply
apiaio
Growing Hen
Posts: 121
Joined: Thu Jul 30, 2009 19:44

akonadi-server question

Post by apiaio » Sun Feb 14, 2010 15:14

Hi there.
Akonadi-server doesn't start (problem with mysql and dbus). There is many threads concerning this problem on the net.
Up to now I was able only disable akonadi at startup, but not solve the problem. Yesterday I upgraded into kde4.4 on two PC's and kmail stopped working when trying start akonadi-server. So I have decided to get rid of akonadi definitively.
Is

Code: Select all

equo remove akonadi-server
correct command?
Won't I destroy any important packages used by other apps?
Will I can use kmail?
Thanks.

User avatar
sabayonino
Sagely Hen
Posts: 3509
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: akonadi-server question

Post by sabayonino » Sun Feb 14, 2010 15:27

Hi

using that comand-line it will can broken your system

using --pretend option to show all dependencies

Code: Select all

equo remove akonadi-server --pretend                                          
>> Esecuzione con --pretend ...                                                                 
>>  @@ Questi sono i pacchetti scelti:                                                          
>>    # (1/1) [sabayonlinux.org] app-office/akonadi-server-1.3.0 [3.2MB]                        
>>  @@ Pacchetti coinvolti: 1                                                                   
>>  @@ Questi sono i pacchetti che vorrebbero essere rimossi:                                   
>>  ## [sabayonlinux.org] kde-base/kdeplasma-addons-4.4.0 [10.0MB]                              
>>  ## [sabayonlinux.org] kde-base/kdebase-meta-4.4.0 [0.0b]                                    
>>  ## [sabayonlinux.org] kde-base/kdebase-startkde-4.4.0 [854.4kB]                             
>>  ## [sabayonlinux.org] kde-base/plasma-workspace-4.4.0 [10.3MB]                              
>>  ## [sabayonlinux.org] app-office/koffice-meta-2.1.0 [0.0b]                                  
>>  ## [sabayonlinux.org] app-office/kchart-2.1.0 [3.2MB]                                       
>>  ## [sabayonlinux.org] app-office/kpresenter-2.1.0 [3.4MB]                                   
>>  ## [sabayonlinux.org] app-office/krita-2.1.0 [15.5MB]                                       
>>  ## [sabayonlinux.org] app-office/kword-2.1.0 [5.1MB]                                        
>>  ## [sabayonlinux.org] app-office/kspread-2.1.0 [9.3MB]                                      
>>  ## [sabayonlinux.org] app-office/kplato-2.1.0 [7.4MB]                                       
>>  ## [sabayonlinux.org] app-office/karbon-2.1.0 [3.8MB]                                       
>>  ## [sabayonlinux.org] app-office/koffice-libs-2.1.0 [13.3MB]                                
>>  ## [sabayonlinux.org] kde-base/kdepim-wizards-4.4.0 [1.4MB]                                 
>>  ## [sabayonlinux.org] kde-base/kdepim-kresources-4.4.0 [5.4MB]                              
>>  ## [sabayonlinux.org] kde-base/kleopatra-4.4.0 [5.1MB]                                      
>>  ## [sabayonlinux.org] kde-base/kaddressbook-4.4.0 [2.4MB]                                   
>>  ## [sabayonlinux.org] kde-base/kdepim-runtime-4.4.0 [6.4MB]
>>  ## [sabayonlinux.org] kde-base/kalarm-4.4.0 [4.2MB]
>>  ## [sabayonlinux.org] kde-base/korganizer-4.4.0 [6.9MB]
>>  ## [sabayonlinux.org] kde-base/akregator-4.4.0 [4.1MB]
>>  ## [sabayonlinux.org] kde-base/knotes-4.4.0 [2.5MB]
>>  ## [sabayonlinux.org] kde-base/kjots-4.4.0 [2.7MB]
>>  ## [sabayonlinux.org] kde-base/kmail-4.4.0 [12.7MB]
>>  ## [sabayonlinux.org] kde-base/kontact-4.4.0 [2.8MB]
>>  ## [sabayonlinux.org] kde-base/libkdepim-4.4.0 [2.8MB]
>>  ## [sabayonlinux.org] net-p2p/ktorrent-3.3.3 [14.9MB]
>>  ## [sabayonlinux.org] kde-base/kdeadmin-meta-4.4.0 [0.0b]
>>  ## [sabayonlinux.org] kde-base/kuser-4.4.0 [1.6MB]
>>  ## [sabayonlinux.org] kde-base/kabcclient-4.4.0 [1.2MB]
>>  ## [sabayonlinux.org] kde-base/kget-4.4.0 [6.2MB]
>>  ## [sabayonlinux.org] net-irc/konversation-1.2.3 [11.9MB]
>>  ## [sabayonlinux.org] kde-base/kdepim-strigi-analyzer-4.4.0 [961.5kB]
>>  ## [sabayonlinux.org] kde-base/konsolekalendar-4.4.0 [1.1MB]
>>  ## [sabayonlinux.org] kde-base/libkleo-4.4.0 [2.2MB]
>>  ## [sabayonlinux.org] kde-base/kgpg-4.4.0 [2.8MB]
>>  ## [sabayonlinux.org] kde-base/kopete-4.4.0 [19.7MB]
>>  ## [sabayonlinux.org] kde-base/kdepimlibs-4.4.0 [13.4MB]
>>  ## [sabayonlinux.org] app-office/akonadi-server-1.3.0 [3.2MB]
>>  @@ Pacchetti da rimuovere: 39
>>  @@ Spazio su disco liberato: 220.5MB
>>  @@ Spazio totale sprecato: 56.5MB

to remove only akonadi-server type this :

Code: Select all

equo remove akonadi-server --nodeps
it will remove only that package

apiaio
Growing Hen
Posts: 121
Joined: Thu Jul 30, 2009 19:44

Re: akonadi-server question

Post by apiaio » Mon Feb 15, 2010 19:04

Thanks.Akonadi-server has gone. Where could I find out which packages are redundant. I would like keep my SL clean.

EDIT:
Does command

Code: Select all

equery d <pkgname>
works under SL properly?

Thev00d00
Generally Awesome (tm)
Posts: 1472
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom
Contact:

Re: akonadi-server question

Post by Thev00d00 » Wed Feb 17, 2010 16:10

Various applications NEED akondi to work, including Kmail, so removing it will not help it to work at all! Listed above during the normal equo remove are the reverse deps, i.e the things that need akondi to work and are now most likely borked.
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me

apiaio
Growing Hen
Posts: 121
Joined: Thu Jul 30, 2009 19:44

Re: akonadi-server question

Post by apiaio » Wed Feb 17, 2010 20:17

My English is not the best I am afraid and I do not understand the last sentence
... i.e the things that need akondi to work and are now most likely borked.
especially the word "borked".
Reality is, that I am not able to start akonadi. On one of my comps I removed akonadi and kmail, installed evolution and everything is OK.
My question about redundant packages - concerning KDE apps I need mail-client, k3b, kaffeine (not necessary). Which from the huge amount of kde packages can I remove and not to damage kde itself?
Now I know that I had not had install kde-meta but kdebase-meta. I didn't guess that kde4.4 is "one big bug"

jumbotron
Young Hen
Posts: 33
Joined: Mon May 17, 2010 0:51

Re: akonadi-server question

Post by jumbotron » Sat Jun 05, 2010 2:36


Fitzcarraldo
Sagely Hen
Posts: 8214
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom
Contact:

Re: akonadi-server question

Post by Fitzcarraldo » Mon Jun 07, 2010 19:13

I had no need of Akonadi until a few days ago when I needed to run KMail in order to view some .mime e-mail files I had converted from Outlook .MSG files using msgconvert.pl (see SL Wiki article HOWTO: Read Microsoft Outlook .MSG files in Linux). KMail would launch but then I would see an error message "Akonadi control process not registered at D-Bus" for TEST 6 in the Akonadi Server Self-Test window (maybe it was for TEST 4 too at the beginning of my attempts, I can't remember now).

I battled for a couple of days trying to get Akonadi to run using the internal MySQL server, but just kept hitting a brick wall. Google throws up so many articles and forum posts about Akonadi and this particular error message, some of them with conflicting information. I tried all sorts of things to no avail. I decided to try using an external MySQL server with Akonadi instead of the default internal MySQL server, and eventually succeeded in getting Akonadi to run. Below is what I did as far as I can remember, so I may have left something out. I don't know if all of the following steps were necessary.

I re-installed/upgraded the packages x11-libs/qt-dbus, kde-base/nepomuk, app-office/akonadi-server, dev-db/mysql, dev-perl/DBD-mysql and x11-libs/qt-sql

I installed the package kde-base/akonadi

I created the file ~/.kde4/env/set-akonadi-env.sh containing:

Code: Select all

export XDG_DATA_DIRS=/usr/share:$XDG_DATA_DIRS
and made it executable:

Code: Select all

$ chmod +x ~/.kde4/env/set-akonadi-env.sh
I copied the mysql-global.conf file to my home Akonadi configuration directory:

Code: Select all

$ cp /usr/share/config/akonadi/mysql-global.conf /home/fitzcarraldo/.config/akonadi/
I made sure the file ~/.kde4/share/config/nepomukserverrc is as follows:

Code: Select all

[Service-nepomukmigration1]
autostart=false

[main Settings]
Maximum memory=50
Storage Dir[$e]=$HOME/.kde4/share/apps/nepomuk/repository/main/
Used Soprano Backend=virtuosobackend
index version=2
I added the following line as the last line in the file ~/.local/share/akonadi/mysql.conf:

Code: Select all

user=fitzcarraldo
I had already set up an external MySQL server for use by Amarok (see my post Re: Getting Amarok to use an external MySQL database [Solved]), so I used the following additional commands to prepare the external MySQL server for Akonadi:

Code: Select all

# mysql -p -u root
Enter password:  <------ [I typed "mysqlrootpassword" here, without the quotes, that I had set up previously]
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 17
Server version: 5.1.46-log Gentoo Linux mysql-5.1.46

Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license

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

mysql> CREATE DATABASE akonadi;
Query OK, 1 row affected (0.00 sec)

mysql> USE akonadi;
Database changed
mysql> GRANT ALL ON akonadi .* TO [email protected] IDENTIFIED BY 'mysqlakonadipassword';
Query OK, 0 rows affected (0.40 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

mysql> EXIT;
Bye
#
I configured Akonadi to use an external MySQL server instead of an internal MySQL server. I did this by pressing Alt-F2 and entering "akonaditray" (without the quotes) in the box to launch the Akonadi Tray Utility, right-clicked on the Akonadi Tray Utility in the Panel, selected Configure..., clicked on the tab Akonadi Server Configuration, unticked 'Use internal MySQL server' and specified:

Database driver: Mysql
Database name: akonadi
Host: localhost
Username: akonadi
Password: mysqlakonadipassword
Options: /var/run/mysqld/mysqld.sock

I made sure ~/.config/akonadi/akonadiserverrc is as follows:

Code: Select all

[%General]
Driver=QMYSQL
SizeThreshold=4096
ExternalPayload=false

[QMYSQL]
Name=akonadi
Host=localhost
User=akonadi
Password=mysqlakonadipassword
Options=/var/run/mysqld/mysqld.sock
ServerPath=/usr/sbin/mysqld
StartServer=false

[Debug]
Tracer=null

[QPSQL]
Name=akonadi
Host=
User=
Password=
Port=5432
instead of:

Code: Select all

[%General]
Driver=QMYSQL
SizeThreshold=4096
ExternalPayload=false

[QMYSQL]
Name=
Host=
User=
Password=
Options="UNIX_SOCKET=/home/fitzcarraldo/.local/share/akonadi/db_misc/mysql.socket"
ServerPath=/usr/sbin/mysqld
StartServer=false

[Debug]
Tracer=null

[QPSQL]
Name=akonadi
Host=
User=
Password=
Port=5432
I cannot remember whether the file ~/.config/akonadi/mysql-local.conf existed, but if it did I deleted it because there is no file mysql-local.conf in any directory associated with Akonadi.

I used the following command, although I'm not sure if it is necessary:

Code: Select all

$ mysql_install_db --datadir=$HOME/.local/share/akonadi/db_data --basedir=/usr
I used the following command to start the Akonadi server:

Code: Select all

$ akonadictl start
Akonadi now runs correctly and I can launch KMail and read the individual .mime e-mail files I have.

The Akonadi server self-test report is now as follows:

Code: Select all

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 '/home/fitzcarraldo/.config/akonadi/akonadiserverrc':
[%General]
Driver=QMYSQL
SizeThreshold=4096
ExternalPayload=false

[QMYSQL]
Name=akonadi
Host=localhost
User=akonadi
Password=mysqlakonadipassword
Options=/var/run/mysqld/mysqld.sock
ServerPath=/usr/sbin/mysqld
StartServer=false

[Debug]
Tracer=null

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


Test 2:  SKIP
--------

MySQL server executable not tested.
Details: The current configuration does not require an internal MySQL server.

Test 3:  SKIP
--------

MySQL server error log not tested.
Details: The current configuration does not require an internal MySQL server.

Test 4:  SKIP
--------

MySQL server configuration not tested.
Details: The current configuration does not require an internal MySQL server.

Test 5:  SUCCESS
--------

akonadictl found and usable
Details: The program '/usr/bin/akonadictl' to control the Akonadi server was found and could be executed successfully.
Result:
Akonadi 1.3.1


Test 6:  SUCCESS
--------

Akonadi control process registered at D-Bus.
Details: The Akonadi control process is registered at D-Bus which typically indicates it is operational.

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

Akonadi server process registered at D-Bus.
Details: The Akonadi server process is registered at D-Bus which typically indicates it is operational.

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

Nepomuk search service registered at D-Bus.
Details: The Nepomuk search service is registered at D-Bus which typically indicates it is operational.

Test 9:  SUCCESS
--------

Nepomuk search service uses an appropriate backend. 
Details: The Nepomuk search service uses one of the recommended backends.

Test 10:  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 11:  SUCCESS
--------

Resource agents found.
Details: At least one resource agent has been found.

Directory listing of '/usr/share/akonadi/agents':
birthdaysresource.desktop
contactsresource.desktop
icalresource.desktop
imapresource.desktop
kabcresource.desktop
kcalresource.desktop
knutresource.desktop
kolabproxyresource.desktop
localbookmarksresource.desktop
maildirresource.desktop
maildispatcheragent.desktop
mboxresource.desktop
microblog.desktop
mtdummyresource.desktop
nepomukcalendarfeeder.desktop
nepomukcontactfeeder.desktop
nepomuktagresource.desktop
nntpresource.desktop
notesresource.desktop
pop3resource.desktop
vcarddirresource.desktop
vcardresource.desktop
Directory listing of '/usr/share/akonadi/agents':
birthdaysresource.desktop
contactsresource.desktop
icalresource.desktop
imapresource.desktop
kabcresource.desktop
kcalresource.desktop
knutresource.desktop
kolabproxyresource.desktop
localbookmarksresource.desktop
maildirresource.desktop
maildispatcheragent.desktop
mboxresource.desktop
microblog.desktop
mtdummyresource.desktop
nepomukcalendarfeeder.desktop
nepomukcontactfeeder.desktop
nepomuktagresource.desktop
nntpresource.desktop
notesresource.desktop
pop3resource.desktop
vcarddirresource.desktop
vcardresource.desktop
Directory listing of '/usr/share/akonadi/agents':
birthdaysresource.desktop
contactsresource.desktop
icalresource.desktop
imapresource.desktop
kabcresource.desktop
kcalresource.desktop
knutresource.desktop
kolabproxyresource.desktop
localbookmarksresource.desktop
maildirresource.desktop
maildispatcheragent.desktop
mboxresource.desktop
microblog.desktop
mtdummyresource.desktop
nepomukcalendarfeeder.desktop
nepomukcontactfeeder.desktop
nepomuktagresource.desktop
nntpresource.desktop
notesresource.desktop
pop3resource.desktop
vcarddirresource.desktop
vcardresource.desktop

Environment variable XDG_DATA_DIRS is set to '/usr/share:/usr/share:/usr/share:/usr/local/share'

Test 12:  SUCCESS
--------

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

Test 13:  SUCCESS
--------

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

Test 14:  SUCCESS
--------

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

Test 15:  SUCCESS
--------

No previous Akonadi control error log found.
Details: The Akonadi control process did not report any errors during its previous startup.
I also did the following at some point during my attempts, but I'm not sure if they were necessary, or indeed should have been done, or were subsequently overwritten:

Code: Select all

$ chmod 750 -R $HOME/.local/share/akonadi/
$ chown -R $(id -un):$(id -gn) $HOME/.local/share/akonadi

Post Reply