Announcement

Collapse
No announcement yet.

Akonadi not starting

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Akonadi not starting

    Hello,

    I'm a relative beginner at Linux. I was using 12.04, but upgraded to 14.04. I then wanted to get Kontact going, but have encountered a problem. When I try to start it I get this message: "Akonadi personal Information management service is not available. An error report is generated". I get a similar thing if I try to start Akonadi direct.

    The error report generated is too long to paste into this message and I don't have permission to attach a file containing it. Is anyone able to offer any advice at all? I'd be most grateful.

    Regards,
    David.

    #2
    Hello!
    And welcome to the most friendly forum on the net!

    Would you please try to outline precisely what you meant when you posted that you "wanted to get Kontact going"? In that way, some person who is more knowledgable than this person can help you..your statement is rather vague.

    thanks and please know that more knowledgable people will try to help you.

    woodsorrysmoke

    Comment


      #3
      You might be affected by the akonadi database migration bug:

      https://bugs.kde.org/show_bug.cgi?id=331867

      Try a fix suggested in Comment #16 on the bug report page above.

      Comment


        #4
        Thanks for getting back to me. Apologies for being vague.

        What I meant was that I cureently use gmail. However I thought that I'd like to see how it functioned through Kontact. I therefore tried to start Kontact by opening it through the K button. It failed to start and I got the error message I included in my original post. I hope that clarifies.

        I also tried the fix suggested by bamyasi. As I said I'm very much a beginner. When I ran "mysql --socket=/tmp/akonadi-${USER}.rp6WPG/mysql.socket" I got the following message.

        "$ mysqld --socket=/tmp/akonadi-${USER}.rp6WPG/mysql.socket
        140514 6:50:21 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
        140514 6:50:21 [Warning] Can't create test file /var/lib/mysql/david-Inspiron-1545.lower-test
        140514 6:50:21 [Warning] Can't create test file /var/lib/mysql/david-Inspiron-1545.lower-test
        mysqld: Can't change dir to '/var/lib/mysql/' (Errcode: 2)
        140514 6:50:21 [ERROR] Aborting

        140514 6:50:21 [Note] mysqld: Shutdown complete"

        Grateful for any further help on offer.



        David.

        Comment


          #5
          Originally posted by dhowdle View Post
          $ mysqld --socket=/tmp/akonadi-${USER}.rp6WPG/mysql.socket
          Two problems with your attempt.

          1. The command is mysql. You typed mysqld. You don't want the extra "d" at the end.

          2. You used the same file name as the person at KDE Forum. The six characters after your user name in the file name will not be "rp6WPG" as they were for that person. Note the extra instructions in the post:
          Code:
          P.S. Nota, that exact name of your akonadi mysqld instance temporary socket file will be different, use the following command to find it out:
          
          $ ps aux | grep mysqld
          
          Then look for the line in the output with the following parameter: --datadir=/home/$USER/.local/share/akonadi/db_data/. Copy the --socket= parameter from the same line to start mysql textmode client above.
          For example, here's mine:
          Code:
          steve@t520:~$ [B]ps aux | grep mysqld[/B]
          steve    18599  0.2  0.7 2161032 61748 ?       Sl   09:35   0:46 /usr/sbin/mysqld --defaults-file=/home/steve/.local/share/akonadi/mysql.conf --datadir=/home/steve/.local/share/akonadi/db_data/ [B][COLOR="#B22222"]--socket=/tmp/akonadi-steve.mg80YH/mysql.socket[/COLOR][/B]
          The relevant portion is in bold red. Thus, the proper MySQL invocation would be:
          Code:
          teve@t520:~$ [B]mysql --socket=/tmp/akonadi-steve.mg80YH/mysql.socket[/B]
          Welcome to the MySQL monitor.  Commands end with ; or \g.
          Your MySQL connection id is 39
          Server version: 5.5.37-0ubuntu0.14.04.1 (Ubuntu)
          
          Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
          
          Oracle is a registered trademark of Oracle Corporation and/or its
          affiliates. Other names may be trademarks of their respective
          owners.
          
          Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
          
          mysql> quit
          Bye
          And you'll see that the MySQL monitor started properly. I exited it (via quit) because I don't need to do anything. Just wanted to show you that with the proper command and proper socket argument, it will work.

          Comment


            #6
            Thanks for your help. My inexperience is all too clear!

            When I enter the command here is what I get:
            david@david-Inspiron-1545:~$ ps aux | grep mysqld
            david 7326 0.0 0.0 11748 908 pts/2 S+ 06:16 0:00 grep --color=auto mysqld.

            This looks to be substantially different from what you get with the same query so I'm thinking that something is wrong with mine.

            As ever, I'll be grateful for help. Thank you.

            Comment


              #7
              What you're seeing is the lack of an instance of mysqld running on your machine. Unless you've changed the default Akonadi backend (which I doubt), then something is preventing Akonadi from spawning MySQL.

              In a console, run
              Code:
              kcmshell4 kcm_akonadi_server
              Click the Test button. Paste the output into a reply here.

              Comment


                #8
                Thanks Steve. Here's what I get, below. Also the Akonadi Server Configuration - KDE Control Module appeared again and when I clicked the test button it again gave me the error message I was getting before. I hope this helps.


                david@david-Inspiron-1545:~$ kcmshell4 kcm_akonadi_server
                kcmshell(4053)/libakonadi Akonadi::AgentManagerPrivate::createDBusInterface: AgentManager failed to get a valid AgentManager DBus interface. Error is: 1 "org.freedesktop.DBus.Error.NameHasNoOwner" "Could not get owner of name 'org.freedesktop.Akonadi.Control': no such name"
                Bus:pen: Can not get ibus-daemon's address.
                IBusInputContext::createInputContext: no connection to ibus-daemon
                Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QStr ing,QString,QString)
                search paths: ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games", "/usr/local/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin")
                Found mysql_install_db: "/usr/bin/mysql_install_db"
                Found mysqlcheck: "/usr/bin/mysqlcheck"
                Database process exited unexpectedly during initial connection!
                executable: "/usr/sbin/mysqld-akonadi"
                arguments: ("--defaults-file=/home/david/.local/share/akonadi/mysql.conf", "--datadir=/home/david/.local/share/akonadi/db_data/", "--socket=/tmp/akonadi-david.ifrQ9w/mysql.socket")
                stdout: ""
                stderr: ""
                exit code: 1
                process error: "Process operation timed out"
                "[
                0: akonadiserver() [0x419cb7]
                1: akonadiserver() [0x419f12]
                2: /lib/x86_64-linux-gnu/libc.so.6(+0x36ff0) [0x7fb7bcc82ff0]
                3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39) [0x7fb7bcc82f79]
                4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7fb7bcc86388]
                5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+ 0x102) [0x7fb7be76ac92]
                6: akonadiserver() [0x41bdbd]
                7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xb0) [0x7fb7be805470]
                8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x11ab3d) [0x7fb7be814b3d]
                9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x31) [0x7fb7be81d721]
                10: akonadiserver() [0x4b38b4]
                11: akonadiserver() [0x41c957]
                12: akonadiserver() [0x41f1e5]
                13: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x24e) [0x7fb7be88fc1e]
                14: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication14notifyIntern alEP7QObjectP6QEvent+0x6d) [0x7fb7be8774dd]
                15: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN23QCoreApplicationPrivate16sendP ostedEventsEP7QObjectiP11QThreadData+0x1ed) [0x7fb7be87ab3d]
                16: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1aaf83) [0x7fb7be8a4f83]
                17: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x254) [0x7fb7bc351e04]
                18: /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x49048) [0x7fb7bc352048]
                19: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7fb7bc3520ec]
                20: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN20QEventDispatcherGlib13processE ventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0 x71) [0x7fb7be8a47a1]
                21: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFl agsINS_17ProcessEventsFlagEE+0x2f) [0x7fb7be8760af]
                22: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17P rocessEventsFlagEE+0x175) [0x7fb7be8763a5]
                23: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x89) [0x7fb7be87bb79]
                24: akonadiserver() [0x4142e7]
                25: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fb7bcc6dec5]
                26: akonadiserver() [0x414c48]
                ]
                "
                ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
                search paths: ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games", "/usr/local/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin")
                Found mysql_install_db: "/usr/bin/mysql_install_db"
                Found mysqlcheck: "/usr/bin/mysqlcheck"
                Database process exited unexpectedly during initial connection!
                executable: "/usr/sbin/mysqld-akonadi"
                arguments: ("--defaults-file=/home/david/.local/share/akonadi/mysql.conf", "--datadir=/home/david/.local/share/akonadi/db_data/", "--socket=/tmp/akonadi-david.ifrQ9w/mysql.socket")
                stdout: ""
                stderr: ""
                exit code: 1
                process error: "Process operation timed out"
                "[
                0: akonadiserver() [0x419cb7]
                1: akonadiserver() [0x419f12]
                2: /lib/x86_64-linux-gnu/libc.so.6(+0x36ff0) [0x7f729fdddff0]
                3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39) [0x7f729fdddf79]
                4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f729fde1388]
                5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+ 0x102) [0x7f72a18c5c92]
                6: akonadiserver() [0x41bdbd]
                7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xb0) [0x7f72a1960470]
                8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x11ab3d) [0x7f72a196fb3d]
                9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x31) [0x7f72a1978721]
                10: akonadiserver() [0x4b38b4]
                11: akonadiserver() [0x41c957]
                12: akonadiserver() [0x41f1e5]
                13: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x24e) [0x7f72a19eac1e]
                14: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication14notifyIntern alEP7QObjectP6QEvent+0x6d) [0x7f72a19d24dd]
                15: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN23QCoreApplicationPrivate16sendP ostedEventsEP7QObjectiP11QThreadData+0x1ed) [0x7f72a19d5b3d]
                16: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1aaf83) [0x7f72a19fff83]
                17: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x254) [0x7f729f4ace04]
                18: /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x49048) [0x7f729f4ad048]
                19: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7f729f4ad0ec]
                20: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN20QEventDispatcherGlib13processE ventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0 x71) [0x7f72a19ff7a1]
                21: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFl agsINS_17ProcessEventsFlagEE+0x2f) [0x7f72a19d10af]
                22: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17P rocessEventsFlagEE+0x175) [0x7f72a19d13a5]
                23: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x89) [0x7f72a19d6b79]
                24: akonadiserver() [0x4142e7]
                25: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f729fdc8ec5]
                26: akonadiserver() [0x414c48]
                ]
                "
                ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
                search paths: ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games", "/usr/local/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin")
                Found mysql_install_db: "/usr/bin/mysql_install_db"
                Found mysqlcheck: "/usr/bin/mysqlcheck"
                Database process exited unexpectedly during initial connection!
                executable: "/usr/sbin/mysqld-akonadi"
                arguments: ("--defaults-file=/home/david/.local/share/akonadi/mysql.conf", "--datadir=/home/david/.local/share/akonadi/db_data/", "--socket=/tmp/akonadi-david.ifrQ9w/mysql.socket")
                stdout: ""
                stderr: ""
                exit code: 1
                process error: "Process operation timed out"
                "[
                0: akonadiserver() [0x419cb7]
                1: akonadiserver() [0x419f12]
                2: /lib/x86_64-linux-gnu/libc.so.6(+0x36ff0) [0x7fb8fbeecff0]
                3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39) [0x7fb8fbeecf79]
                4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7fb8fbef0388]
                5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+ 0x102) [0x7fb8fd9d4c92]
                6: akonadiserver() [0x41bdbd]
                7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xb0) [0x7fb8fda6f470]
                8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x11ab3d) [0x7fb8fda7eb3d]
                9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x31) [0x7fb8fda87721]
                10: akonadiserver() [0x4b38b4]
                11: akonadiserver() [0x41c957]
                12: akonadiserver() [0x41f1e5]
                13: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x24e) [0x7fb8fdaf9c1e]
                14: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication14notifyIntern alEP7QObjectP6QEvent+0x6d) [0x7fb8fdae14dd]
                15: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN23QCoreApplicationPrivate16sendP ostedEventsEP7QObjectiP11QThreadData+0x1ed) [0x7fb8fdae4b3d]
                16: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1aaf83) [0x7fb8fdb0ef83]
                17: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x254) [0x7fb8fb5bbe04]
                18: /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x49048) [0x7fb8fb5bc048]
                19: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7fb8fb5bc0ec]
                20: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN20QEventDispatcherGlib13processE ventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0 x71) [0x7fb8fdb0e7a1]
                21: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFl agsINS_17ProcessEventsFlagEE+0x2f) [0x7fb8fdae00af]
                22: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17P rocessEventsFlagEE+0x175) [0x7fb8fdae03a5]
                23: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x89) [0x7fb8fdae5b79]
                24: akonadiserver() [0x4142e7]
                25: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7fb8fbed7ec5]
                26: akonadiserver() [0x414c48]
                ]
                "
                ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
                search paths: ("/usr/local/sbin", "/usr/local/bin", "/usr/sbin", "/usr/bin", "/sbin", "/bin", "/usr/games", "/usr/local/games", "/usr/sbin", "/usr/local/sbin", "/usr/local/libexec", "/usr/libexec", "/opt/mysql/libexec", "/opt/local/lib/mysql5/bin", "/opt/mysql/sbin")
                Found mysql_install_db: "/usr/bin/mysql_install_db"
                Found mysqlcheck: "/usr/bin/mysqlcheck"
                Database process exited unexpectedly during initial connection!
                executable: "/usr/sbin/mysqld-akonadi"
                arguments: ("--defaults-file=/home/david/.local/share/akonadi/mysql.conf", "--datadir=/home/david/.local/share/akonadi/db_data/", "--socket=/tmp/akonadi-david.ifrQ9w/mysql.socket")
                stdout: ""
                stderr: ""
                exit code: 1
                process error: "Process operation timed out"
                "[
                0: akonadiserver() [0x419cb7]
                1: akonadiserver() [0x419f12]
                2: /lib/x86_64-linux-gnu/libc.so.6(+0x36ff0) [0x7f0a2b65bff0]
                3: /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39) [0x7f0a2b65bf79]
                4: /lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f0a2b65f388]
                5: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_Z17qt_message_output9QtMsgTypePKc+ 0x102) [0x7f0a2d143c92]
                6: akonadiserver() [0x41bdbd]
                7: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN9QIODevice5writeEPKcx+0xb0) [0x7f0a2d1de470]
                8: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x11ab3d) [0x7f0a2d1edb3d]
                9: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN11QTextStreamD1Ev+0x31) [0x7f0a2d1f6721]
                10: akonadiserver() [0x4b38b4]
                11: akonadiserver() [0x41c957]
                12: akonadiserver() [0x41f1e5]
                13: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN7QObject5eventEP6QEvent+0x24e) [0x7f0a2d268c1e]
                14: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication14notifyIntern alEP7QObjectP6QEvent+0x6d) [0x7f0a2d2504dd]
                15: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN23QCoreApplicationPrivate16sendP ostedEventsEP7QObjectiP11QThreadData+0x1ed) [0x7f0a2d253b3d]
                16: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1aaf83) [0x7f0a2d27df83]
                17: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x254) [0x7f0a2ad2ae04]
                18: /lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x49048) [0x7f0a2ad2b048]
                19: /lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7f0a2ad2b0ec]
                20: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN20QEventDispatcherGlib13processE ventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE+0 x71) [0x7f0a2d27d7a1]
                21: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN10QEventLoop13processEventsE6QFl agsINS_17ProcessEventsFlagEE+0x2f) [0x7f0a2d24f0af]
                22: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN10QEventLoop4execE6QFlagsINS_17P rocessEventsFlagEE+0x175) [0x7f0a2d24f3a5]
                23: /usr/lib/x86_64-linux-gnu/libQtCore.so.4(_ZN16QCoreApplication4execEv+0x89) [0x7f0a2d254b79]
                24: akonadiserver() [0x4142e7]
                25: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f0a2b646ec5]
                26: akonadiserver() [0x414c48]
                ]
                "
                ProcessControl: Application 'akonadiserver' returned with exit code 255 (Unknown error)
                "akonadiserver" crashed too often and will not be restarted!
                kcmshell(4053)/libakonadi Akonadi::Control::Private::exec: Could not start/stop Akonadi!

                Comment

                Working...
                X