![]() Registered Member ![]()
|
Kontact has been working fine for a long time, but some days ago it freezes after starting up.
I can click a little during the start and it might show a mail or two, but after that, it is locked. I can still move the mouse around, I can resize the window, minimize and restore, but no functions inside the window/program. If I start Kmail or Kaddressbook on as standalone apps, they work fine. Now and then I have had some mysql errors that usually has gone away after a restart. But now, when using Akonadi tray and check a little, they mysql log has these errors:
Still, according to Akonadi tray, Akonadi is running. Any idea? I have checked others with similar problems and can not find anything about this in any faq. But maybe I am not using the correct search terms, so I am happy to get some specific links ![]()
Regards,
Oceanwatcher Kubuntu 11.04 - KDE 4.6.3 - Intel dual core 2.0 GHz - 2GB RAM - nVidia GeForce GO 7400 |
![]() Manager ![]()
|
It sounds as though something has corrupted your database. Take a look at http://userbase.kde.org/Akonadi_4.4/Tro ... .27t_exist - that looks very similar, so it's worth a try.
annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org |
![]() Registered Member ![]()
|
Great! That took care of one part of the problem.
I do not have the same innodb problems, so I left out the second part of it. I am left with this in the mysql error log now:
These are the ones I am trying to solve first: A FEDERATED plugin Time zone tables do not exist Privilege tables - mysql.servers - do not exist Plus the rest ![]() EDIT: Almost forgot to mention - I am running Kubuntu 9.10 with KDE 4.4.1
Regards,
Oceanwatcher Kubuntu 11.04 - KDE 4.6.3 - Intel dual core 2.0 GHz - 2GB RAM - nVidia GeForce GO 7400 |
![]() Manager ![]()
|
Do you have selinux? Or apparmor? If you do, you probably need to add an exception.
annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org |
![]() Registered Member ![]()
|
Could very well be. I have no idea if I do, I am running whatever is standard in Kubuntu 9.10. So I will look and see if I can find a KDE app that takes care of that bit.
Regards,
Oceanwatcher Kubuntu 11.04 - KDE 4.6.3 - Intel dual core 2.0 GHz - 2GB RAM - nVidia GeForce GO 7400 |
![]() Registered Member ![]()
|
Ok. I am probably using apparmor and there are two files I guess can influence Akonadi and mysql:
usr.sbin.mysqld usr.sbin.mysqld-akonadi There are three errors that relates to files that can not be opened. And one related to a missing table. I guess the missing table can not be fixed by anything done through apparmor. Does anyone have any idea how this table can get fixed?
Regards,
Oceanwatcher Kubuntu 11.04 - KDE 4.6.3 - Intel dual core 2.0 GHz - 2GB RAM - nVidia GeForce GO 7400 |
![]() Registered Member ![]()
|
I am trying to search through my computer to find out if the files mention here are present. Where should they be?
100327 11:34:47 [ERROR] Cannot open mysql.db 100327 11:34:47 [ERROR] Cannot open mysql.user 100327 11:34:47 [ERROR] Cannot open mysql.event
Regards,
Oceanwatcher Kubuntu 11.04 - KDE 4.6.3 - Intel dual core 2.0 GHz - 2GB RAM - nVidia GeForce GO 7400 |
![]() Manager ![]()
|
Try http://userbase.kde.org/Akonadi_4.4/Tro ... g#Apparmor - there seems to be a fix there.
annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org |
![]() Registered Member ![]()
|
Yeah, tried those. No change. Absolutely nothing at all. And to make sure that anyone reading this get the full picture, here is the full testreport from Akonadi:
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/svein/.config/akonadi/akonadiserverrc': [%General] Driver=QMYSQL SizeThreshold=4096 ExternalPayload=false [QMYSQL] Name=akonadi User= Password= Options="UNIX_SOCKET=/home/svein/.local/share/akonadi/db_misc/mysql.socket" ServerPath=/usr/sbin/mysqld-akonadi StartServer=true Host= [Debug] Tracer=null Test 2: SUCCESS -------- MySQL server found. Details: You currently have configured Akonadi to use the MySQL server '/usr/sbin/mysqld-akonadi'. 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 locations varies depending on the distribution. Test 3: SUCCESS -------- MySQL server is executable. Details: MySQL server found: /usr/sbin/mysqld-akonadi Ver 5.1.37-1ubuntu5 for debian-linux-gnu on i486 ((Ubuntu)) Test 4: ERROR -------- MySQL server log contains errors. Details: The MySQL server error log file '<a href='/home/svein/.local/share/akonadi/db_data/mysql.err'>/home/svein/.local/share/akonadi/db_data/mysql.err</a>' contains errors. File content of '/home/svein/.local/share/akonadi/db_data/mysql.err': 100328 12:57:47 [Note] Plugin 'FEDERATED' is disabled. 100328 12:57:47 InnoDB: Started; log sequence number 0 161519641 100328 12:57:47 [Warning] Can't open and lock time zone table: Table 'mysql.time_zone_leap_second' doesn't exist trying to live without them 100328 12:57:47 [ERROR] Can't open and lock privilege tables: Table 'mysql.servers' doesn't exist 100328 12:57:47 [ERROR] Cannot open mysql.db 100328 12:57:47 [ERROR] Cannot open mysql.user 100328 12:57:47 [ERROR] Cannot open mysql.event 100328 12:57:47 [ERROR] Event Scheduler: An error occurred when initializing system tables. 100328 12:57:47 [Note] /usr/sbin/mysqld-akonadi: ready for connections. Version: '5.1.37-1ubuntu5-log' socket: '/home/svein/.local/share/akonadi/db_misc/mysql.socket' port: 0 (Ubuntu) Test 5: SUCCESS -------- MySQL server default configuration found. Details: The default configuration for the MySQL server was found and is readable at <a href='/home/svein/.config/akonadi/mysql-global.conf'>/home/svein/.config/akonadi/mysql-global.conf</a>. File content of '/home/svein/.config/akonadi/mysql-global.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=latin1 collation_server=latin1_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 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='/home/svein/.local/share/akonadi/mysql.conf'>/home/svein/.local/share/akonadi/mysql.conf</a> and is readable. File content of '/home/svein/.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=latin1 collation_server=latin1_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 Test 8: 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 9: 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 10: 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 11: 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 12: SUCCESS -------- Nepomuk search service uses an appropriate backend. Details: The Nepomuk search service uses one of the recommended backends. Test 13: 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 14: 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 Environment variable XDG_DATA_DIRS is set to '/usr/share:/usr/share:/usr/local/share' Test 15: SUCCESS -------- No current Akonadi server error log found. Details: The Akonadi server did not report any errors during its current startup. Test 16: SUCCESS -------- No previous Akonadi server error log found. Details: The Akonadi server did not report any errors during its previous startup. Test 17: SUCCESS -------- No current Akonadi control error log found. Details: The Akonadi control process did not report any errors during its current startup. Test 18: SUCCESS -------- No previous Akonadi control error log found. Details: The Akonadi control process did not report any errors during its previous startup.
Regards,
Oceanwatcher Kubuntu 11.04 - KDE 4.6.3 - Intel dual core 2.0 GHz - 2GB RAM - nVidia GeForce GO 7400 |
![]() Administrator ![]()
|
The error encountered with MySQL only affects MySQL's ability to perform certain operations, and does not affect usage of its database queries and as such is inconsequential to Akonadi.
It is solvable through running mysql_install_db with Akonadi stopped. Note that you may need to disable AppArmor or SELinux for it to function correctly.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
I tried running it in a terminal and got
mysql_install_db: command not found As I am not familiar with the command, could you please advice how to run it or where to find it? I have been trying to search on Google, but basically just finding the same as you said here. So it seems everyone is assuming something I do not know about...
Regards,
Oceanwatcher Kubuntu 11.04 - KDE 4.6.3 - Intel dual core 2.0 GHz - 2GB RAM - nVidia GeForce GO 7400 |
![]() Manager ![]()
|
I don't know kubuntu, so someone else will have to advise on that. Meanwhile, have you already tried the tip in http://userbase.kde.org/Akonadi_4.4/Tro ... .27t_exist ?
annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org |
![]() Registered Member ![]()
|
It was the first link you pointed to and I read everything then. And responded accordingly
![]()
Regards,
Oceanwatcher Kubuntu 11.04 - KDE 4.6.3 - Intel dual core 2.0 GHz - 2GB RAM - nVidia GeForce GO 7400 |
![]() Manager ![]()
|
It's clear that you have a mysql problem. Try speaking to the kubuntu channel on IRC or asking their mailing list.
annew, proud to be a member of KDE forums since 2008-Oct and a KDE user since 2002.
Join us on http://userbase.kde.org |
![]() Registered Member ![]()
|
Well, seems that 4.4.4 is my lucky number!
I upgraded today and restarted. Then fired up Kontact just to check, although I must admit my hopes were not too high. So the surprise and joy was even bigger when it turned out that it actually was back to working condition again! One thing that managed to hang it was the RSS reader. After clicking on that one, Kontact stopped responding. There is of course the chance that this has been a problem the whole time and something in Kontact allowed this to effect the whole app... Anyway - I went to the config and deactivated the RSS reader as for now it is not working for my purpose. Akregator is a good reader, but it is totally unable to handle the number of feeds I need, so for now, RSSOwl is the best reader for me. I will test Kontact over the next few days and report back if I get any problems.
Regards,
Oceanwatcher Kubuntu 11.04 - KDE 4.6.3 - Intel dual core 2.0 GHz - 2GB RAM - nVidia GeForce GO 7400 |
Registered users: Bing [Bot], Evergrowing, Google [Bot], ourcraft