Public bug reported:

After yesterday 15 sept. upgrade to Kubuntu 16.10 Yakkety Yak, kmail
fails to start, because akonadi backend fails.

Starting akonadi from command line, 
    $ akonadictl start
the output contains:
   stderr: "mysqld: Error on realpath() on '/var/lib/mysql-files' (Error 2 - No 
such file or directory)\n2016-10-16T11:54:23.365277Z 0 [Warning] The syntax 
'--log_warnings/-W' is deprecated and will be removed in a future release. 
Please use '--log_error_verbosity' instead.\n2016-10-16T11:54:23.365377Z 0 
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use 
--explicit_defaults_for_timestamp server option (see documentation for more 
details).\n2016-10-16T11:54:23.365479Z 0 [ERROR] Failed to access directory for 
--secure-file-priv. Please make sure that directory exists and is accessible by 
MySQL Server. Supplied value : 
/var/lib/mysql-files\n2016-10-16T11:54:23.365488Z 0 [ERROR] 
Aborting\n\n2016-10-16T11:54:23.365508Z 0 [Note] Binlog end\n"

The cause is a regression in the file 
provided by the package

Diff of the content of mysql-global.conf from Yakkety vs Xenial:

diff -u "akonadi-backend-mysql_16.04.3-0ubuntu2_all.deb - mysql-global.conf" 
"akonadi-backend-mysql_15.12.3-0ubuntu6_all.deb - mysql-global.conf" 
--- "akonadi-backend-mysql_16.04.3-0ubuntu2_all.deb - mysql-global.conf"        
2016-06-24 15:51:12.000000000 +0200
+++ "akonadi-backend-mysql_15.12.3-0ubuntu6_all.deb - mysql-global.conf"        
2016-04-20 10:42:09.000000000 +0200
@@ -100,5 +100,14 @@
 # We use InnoDB, so don't let MyISAM eat up memory
+# Unset the export dir check as only the full mysql-server package creates it
+# workaround for 5.7 being more strict with column types
+# (reverts to 5.6 behavior)


Applying this patch fixes the bug.

The "secure_file_priv" setting went missing is referenced in the package 
   akonadi (4:15.12.3-0ubuntu5) xenial; urgency=medium

     * kubuntu_disable_secure_file_priv_check.diff:
    - Set secure_file_priv to empty as that directory is not set in a default
      kubuntu install

    -- Philip Muškovac <>  Mon, 18 Apr 2016 15:24:43

Marco Gamberoni

** Affects: akonadi (Ubuntu)
     Importance: Undecided
         Status: New

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  akonadi fails to start after upgrade to yakkety

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to