LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1462|回复: 3

[已解决]升级到KDE 4.4 Beta2,有个Akonadi总是报错…

[复制链接]
发表于 2009-12-24 14:38:51 | 显示全部楼层 |阅读模式
已经解决:

As fduraibi mentioned, it is just because mysqld can't start as root. I add "user=root" in the Akonadi local mysql configuration file (on my computer, it is /root/.local/share/akonadi//mysql.conf), and Akonadi server can be started successfully.


----------------------------------------------------------------------------------------------------------------------

opensuse11.2
4.3.85 (KDE 4.3.85 (KDE 4.4 Beta2)) "release 203"

启动koncact收信,系统先启动了Akonadi,结果这家伙还没一次能成功启动的。报错图片如下图所示。

同时还报出了一对错误日志,哪位大大知道怎么解决这个问题?

那个qtsql需要的driver  “qmysql”  我在源里没搜索到阿?

错误日志:
  1. Akonadi Server Self-Test Report
  2. ===============================

  3. Test 1:  SUCCESS
  4. --------

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

  7. File content of '/root/.config/akonadi/akonadiserverrc':
  8. [%General]
  9. Driver=QMYSQL
  10. SizeThreshold=4096
  11. ExternalPayload=false

  12. [QMYSQL]
  13. Name=akonadi
  14. User=
  15. Password=
  16. Options="UNIX_SOCKET=/root/.local/share/akonadi/db_misc/mysql.socket"
  17. ServerPath=/usr/sbin/mysqld
  18. StartServer=true


  19. Test 2:  SUCCESS
  20. --------

  21. MySQL server found.
  22. Details: You currently have configured Akonadi to use the MySQL server '/usr/sbin/mysqld'.
  23. 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.

  24. Test 3:  SUCCESS
  25. --------

  26. MySQL server is executable.
  27. Details: MySQL server found: /usr/sbin/mysqld  Ver 5.1.36-log for suse-linux-gnu on x86_64 (SUSE MySQL RPM)


  28. Test 4:  SUCCESS
  29. --------

  30. No current MySQL error log found.
  31. Details: The MySQL server did not report any errors during this startup into '/root/.local/share/akonadi/db_data/mysql.err'.

  32. Test 5:  SUCCESS
  33. --------

  34. MySQL server default configuration found.
  35. Details: The default configuration for the MySQL server was found and is readable at <a href='/etc/akonadi/mysql-global.conf'>/etc/akonadi/mysql-global.conf</a>.

  36. File content of '/etc/akonadi/mysql-global.conf':
  37. #
  38. # Global Akonadi MySQL server settings,
  39. # These settings can be adjusted using $HOME/.config/akonadi/mysql-local.conf
  40. #
  41. # Based on advice by Kris Köhntopp <kris@mysql.com>
  42. #
  43. [mysqld]
  44. skip_grant_tables
  45. skip_networking

  46. # strict query parsing/interpretation
  47. # TODO: make Akonadi work with those settings enabled
  48. #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
  49. #sql_mode=strict_trans_tables

  50. # use InnoDB for transactions and better crash recovery
  51. default_storage_engine=innodb
  52. # case-insensitive table names, avoids trouble on windows
  53. lower_case_table_names=1
  54. character_set_server=latin1
  55. collation_server=latin1_general_ci
  56. table_cache=200
  57. thread_cache_size=3
  58. log_bin=mysql-bin
  59. expire_logs_days=3
  60. #sync_bin_log=0
  61. # error log file name, relative to datadir
  62. log_error=mysql.err
  63. log_warnings=2
  64. # log all queries, useful for debugging but generates an enormous amount of data
  65. #log=mysql.full
  66. # log queries slower than n seconds, log file name relative to datadir
  67. log_slow_queries=mysql.slow
  68. long_query_time=1
  69. # log queries not using indices, debug only, disable for production use
  70. log_queries_not_using_indexes=1
  71. # maximum blob size
  72. max_allowed_packet=32M
  73. max_connections=256
  74. # makes sense when having the same query multiple times
  75. # makes no sense with prepared statements and/or transactions
  76. query_cache_type=0
  77. query_cache_size=0

  78. innodb_file_per_table=1
  79. innodb_log_buffer_size=1M
  80. innodb_additional_mem_pool_size=1M
  81. # messure database size and adjust
  82. # SELECT sum(data_length) as bla, sum(index_length) as blub FROM information_schema.tables WHERE table_schema not in ("mysql", "information_schema");
  83. innodb_buffer_pool_size=80M
  84. # 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)
  85. innodb_log_file_size=64M
  86. innodb_flush_log_at_trx_commit=2



  87. Test 6:  SKIP
  88. --------

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

  91. Test 7:  SUCCESS
  92. --------

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

  95. File content of '/root/.local/share/akonadi/mysql.conf':
  96. #
  97. # Global Akonadi MySQL server settings,
  98. # These settings can be adjusted using $HOME/.config/akonadi/mysql-local.conf
  99. #
  100. # Based on advice by Kris Köhntopp <kris@mysql.com>
  101. #
  102. [mysqld]
  103. skip_grant_tables
  104. skip_networking

  105. # strict query parsing/interpretation
  106. # TODO: make Akonadi work with those settings enabled
  107. #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
  108. #sql_mode=strict_trans_tables

  109. # use InnoDB for transactions and better crash recovery
  110. default_storage_engine=innodb
  111. # case-insensitive table names, avoids trouble on windows
  112. lower_case_table_names=1
  113. character_set_server=latin1
  114. collation_server=latin1_general_ci
  115. table_cache=200
  116. thread_cache_size=3
  117. log_bin=mysql-bin
  118. expire_logs_days=3
  119. #sync_bin_log=0
  120. # error log file name, relative to datadir
  121. log_error=mysql.err
  122. log_warnings=2
  123. # log all queries, useful for debugging but generates an enormous amount of data
  124. #log=mysql.full
  125. # log queries slower than n seconds, log file name relative to datadir
  126. log_slow_queries=mysql.slow
  127. long_query_time=1
  128. # log queries not using indices, debug only, disable for production use
  129. log_queries_not_using_indexes=1
  130. # maximum blob size
  131. max_allowed_packet=32M
  132. max_connections=256
  133. # makes sense when having the same query multiple times
  134. # makes no sense with prepared statements and/or transactions
  135. query_cache_type=0
  136. query_cache_size=0

  137. innodb_file_per_table=1
  138. innodb_log_buffer_size=1M
  139. innodb_additional_mem_pool_size=1M
  140. # messure database size and adjust
  141. # SELECT sum(data_length) as bla, sum(index_length) as blub FROM information_schema.tables WHERE table_schema not in ("mysql", "information_schema");
  142. innodb_buffer_pool_size=80M
  143. # 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)
  144. innodb_log_file_size=64M
  145. innodb_flush_log_at_trx_commit=2



  146. Test 8:  SUCCESS
  147. --------

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


  152. Test 9:  ERROR
  153. --------

  154. Akonadi control process not registered at D-Bus.
  155. 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.

  156. Test 10:  ERROR
  157. --------

  158. Akonadi server process not registered at D-Bus.
  159. 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.

  160. Test 11:  ERROR
  161. --------

  162. Nepomuk search service not registered at D-Bus.
  163. 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.

  164. Test 12:  SKIP
  165. --------

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

  168. Test 13:  ERROR
  169. --------

  170. No resource agents found.
  171. 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: '/usr/share/akonadi/agents'. The XDG_DATA_DIRS environment variable is set to '/usr/share:/etc/opt/kde3/share:/opt/kde3/share', make sure this includes all paths where Akonadi agents are installed to.

  172. Directory listing of '/usr/share/akonadi/agents':
  173. birthdaysresource.desktop
  174. contactsresource.desktop
  175. icalresource.desktop
  176. imapresource.desktop
  177. kabcresource.desktop
  178. kcalresource.desktop
  179. kolabproxyresource.desktop
  180. localbookmarksresource.desktop
  181. maildirresource.desktop
  182. maildispatcheragent.desktop
  183. mboxresource.desktop
  184. microblog.desktop
  185. mtdummyresource.desktop
  186. nepomukcalendarfeeder.desktop
  187. nepomukcontactfeeder.desktop
  188. nepomukemailfeeder.desktop
  189. nepomuktagresource.desktop
  190. nntpresource.desktop
  191. notesresource.desktop
  192. pop3resource.desktop
  193. vcarddirresource.desktop
  194. vcardresource.desktop

  195. Environment variable XDG_DATA_DIRS is set to '/usr/share:/etc/opt/kde3/share:/opt/kde3/share'

  196. Test 14:  ERROR
  197. --------

  198. Current Akonadi server error log found.
  199. Details: The Akonadi server did report error during startup into <a href='/root/.local/share/akonadi/akonadiserver.error'>/root/.local/share/akonadi/akonadiserver.error</a>.

  200. File content of '/root/.local/share/akonadi/akonadiserver.error':
  201. "[
  202. 0: akonadiserver(_Z11akBacktracev+0x39) [0x40b869]
  203. 1: akonadiserver [0x40bdb2]
  204. 2: /lib64/libc.so.6 [0x7f42c0fcb560]
  205. 3: /lib64/libc.so.6(gsignal+0x35) [0x7f42c0fcb4e5]
  206. 4: /lib64/libc.so.6(abort+0x180) [0x7f42c0fcc9b0]
  207. 5: /usr/lib64/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x74) [0x7f42c217c7e4]
  208. 6: akonadiserver(_ZN15FileDebugStream9writeDataEPKcx+0xa8) [0x40cda8]
  209. 7: /usr/lib64/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x78) [0x7f42c220ae38]
  210. 8: /usr/lib64/libQtCore.so.4 [0x7f42c221cee9]
  211. 9: /usr/lib64/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x3b) [0x7f42c221e03b]
  212. 10: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer20startDatabaseProcessEv+0x1780) [0x7f42c25e0760]
  213. 11: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServerC1EP7QObject+0x76) [0x7f42c25e2d56]
  214. 12: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer8instanceEv+0x4a) [0x7f42c25e404a]
  215. 13: akonadiserver(main+0x3a4) [0x406424]
  216. 14: /lib64/libc.so.6(__libc_start_main+0xfd) [0x7f42c0fb7a7d]
  217. 15: akonadiserver [0x405f89]
  218. ]
  219. "


  220. Test 15:  ERROR
  221. --------

  222. Previous Akonadi server error log found.
  223. Details: The Akonadi server did report error during its previous startup into <a href='/root/.local/share/akonadi/akonadiserver.error.old'>/root/.local/share/akonadi/akonadiserver.error.old</a>.

  224. File content of '/root/.local/share/akonadi/akonadiserver.error.old':
  225. "[
  226. 0: akonadiserver(_Z11akBacktracev+0x39) [0x40b869]
  227. 1: akonadiserver [0x40bdb2]
  228. 2: /lib64/libc.so.6 [0x7f80c2b59560]
  229. 3: /lib64/libc.so.6(gsignal+0x35) [0x7f80c2b594e5]
  230. 4: /lib64/libc.so.6(abort+0x180) [0x7f80c2b5a9b0]
  231. 5: /usr/lib64/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x74) [0x7f80c3d0a7e4]
  232. 6: akonadiserver(_ZN15FileDebugStream9writeDataEPKcx+0xa8) [0x40cda8]
  233. 7: /usr/lib64/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x78) [0x7f80c3d98e38]
  234. 8: /usr/lib64/libQtCore.so.4 [0x7f80c3daaee9]
  235. 9: /usr/lib64/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x3b) [0x7f80c3dac03b]
  236. 10: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer20startDatabaseProcessEv+0x1780) [0x7f80c416e760]
  237. 11: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServerC1EP7QObject+0x76) [0x7f80c4170d56]
  238. 12: /usr/lib64/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer8instanceEv+0x4a) [0x7f80c417204a]
  239. 13: akonadiserver(main+0x3a4) [0x406424]
  240. 14: /lib64/libc.so.6(__libc_start_main+0xfd) [0x7f80c2b45a7d]
  241. 15: akonadiserver [0x405f89]
  242. ]
  243. "


  244. Test 16:  SUCCESS
  245. --------

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

  248. Test 17:  SUCCESS
  249. --------

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

复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2009-12-24 15:10:50 | 显示全部楼层
4.3.85没见过这情况。
回复 支持 反对

使用道具 举报

发表于 2010-1-17 09:30:31 | 显示全部楼层
Database process exited unexpectedly during initial connection!
executable: "/usr/sbin/mysqld"
arguments: ("--defaults-file=/root/.local/share/akonadi//mysql.conf", "--datadir=/root/.local/share/akonadi/db_data/", "--socket=/root/.local/share/akonadi/db_misc/mysql.socket")
stdout: ""
stderr: "100117  8:29:31 [Warning] The syntax '--log_slow_queries' is deprecated and will be removed in MySQL 7.0. Please use '--slow_query_log'/'--slow_query_log_file' instead.
100117  8:29:31 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

100117  8:29:31 [ERROR] Aborting

100117  8:29:31 [Note] /usr/sbin/mysqld: Shutdown complete

"
exit code: 1
process error: "Unknown error"
"[
0: akonadiserver(_Z11akBacktracev+0x35) [0x8052185]
1: akonadiserver() [0x805271c]
2: [0xffffe400]
3: [0xffffe424]
4: /lib/i686/libc.so.6(gsignal+0x51) [0xb71f8a71]
5: /lib/i686/libc.so.6(abort+0x182) [0xb71fa3c2]
6: /usr/lib/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+0x94) [0xb7551a44]
7: akonadiserver(_ZN15FileDebugStream9writeDataEPKcx+0xd8) [0x8053258]
8: /usr/lib/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0x8c) [0xb75e668c]
9: /usr/lib/libQtCore.so.4(+0xe5a9d) [0xb75f5a9d]
10: /usr/lib/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x68) [0xb75f6f68]
11: akonadiserver(_ZN6QDebugD1Ev+0x43) [0x804d223]
12: /usr/lib/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer20startDatabaseProcessEv+0x1a66) [0xb77a18d6]
13: /usr/lib/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServerC1EP7QObject+0x76) [0xb77a3d36]
14: /usr/lib/libakonadiprivate.so.1(_ZN7Akonadi13AkonadiServer8instanceEv+0x58) [0xb77a50b8]
15: akonadiserver(main+0x2db) [0x804c89b]
16: /lib/i686/libc.so.6(__libc_start_main+0xe6) [0xb71e5b96]
17: akonadiserver() [0x804c4f1]
]
"
回复 支持 反对

使用道具 举报

发表于 2010-1-17 09:38:12 | 显示全部楼层
Post by 十六薙夜血;2058868
已经解决:

As fduraibi mentioned, it is just because mysqld can't start as root. I add "user=root" in the Akonadi local mysql configuration file (on my computer, it is /root/.local/share/akonadi//mysql.conf), and Akonadi server can be started successfully.




问题解决了,thx :-)
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表