<div dir="ltr">I got bit by that one too, it was hellish. Unfortunately I did not find the easy fix and resolved it by switching to mariadb and restoring from a db backup.<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 6 June 2016 at 14:51, Stephen Worthington <span dir="ltr"><<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sun, 5 Jun 2016 16:44:20 -0700, you wrote:<br>
<br>
>Hi all,<br>
><br>
>       I tried to upgrade 14.04 and my TV/screen crashed. After dropping<br>
>down to BIOS, switching to faithful old VGA monitor, and recovering I was<br>
>able to recover and upgrade to 16.06.<br>
><br>
>       symptoms:<br>
>              - Mythtv doesn't let me start back end, cant connect to mysql<br>
>              - mythweb gives this error with mysql :<br>
>                        Fatal Error<br>
>                    !!NoTrans: Can't connect to local MySQL server through<br>
>socket '/var/run/mysqld/mysqld.sock' (2) [#2002]<br>
>               - sudo apt-get update runs ok<br>
>               - sudo apt-get upgrade crashes on mysql :<br>
><br>
>doug@Hydra:~$ sudo apt-get update<br>
><br>
>Hit:1 <a href="http://ppa.launchpad.net/mythbuntu/0.28/ubuntu" rel="noreferrer" target="_blank">http://ppa.launchpad.net/mythbuntu/0.28/ubuntu</a> xenial InRelease<br>
><br>
>Hit:2 <a href="http://security.ubuntu.com/ubuntu" rel="noreferrer" target="_blank">http://security.ubuntu.com/ubuntu</a> xenial-security InRelease<br>
><br>
>Hit:3 <a href="http://us.archive.ubuntu.com/ubuntu" rel="noreferrer" target="_blank">http://us.archive.ubuntu.com/ubuntu</a> xenial InRelease<br>
><br>
>Hit:4 <a href="http://us.archive.ubuntu.com/ubuntu" rel="noreferrer" target="_blank">http://us.archive.ubuntu.com/ubuntu</a> xenial-updates InRelease<br>
><br>
>Get:5 <a href="http://us.archive.ubuntu.com/ubuntu" rel="noreferrer" target="_blank">http://us.archive.ubuntu.com/ubuntu</a> xenial-backports InRelease [92.2<br>
>kB]<br>
><br>
>Get:6 <a href="http://us.archive.ubuntu.com/ubuntu" rel="noreferrer" target="_blank">http://us.archive.ubuntu.com/ubuntu</a> xenial-proposed InRelease [247 kB]<br>
><br>
>Fetched 339 kB in 15s (21.3 kB/s)<br>
><br>
>Reading package lists... Done<br>
><br>
><br>
>doug@Hydra:~$ sudo apt-get upgrade<br>
><br>
>Reading package lists... Done<br>
><br>
>Building dependency tree<br>
><br>
>Reading state information... Done<br>
><br>
>Calculating upgrade... Done<br>
><br>
>0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.<br>
><br>
>2 not fully installed or removed.<br>
><br>
>After this operation, 0 B of additional disk space will be used.<br>
><br>
>Do you want to continue? [Y/n] y<br>
><br>
>Setting up mysql-server-5.7 (5.7.12-0ubuntu1.1) ...<br>
><br>
>Job for mysql.service failed because the control process exited with error<br>
>code. See "systemctl status mysql.service" and "journalctl -xe" for details.<br>
><br>
>invoke-rc.d: initscript mysql, action "start" failed.<br>
><br>
>dpkg: error processing package mysql-server-5.7 (--configure):<br>
><br>
> subprocess installed post-installation script returned error exit status 1<br>
><br>
>dpkg: dependency problems prevent configuration of mysql-server:<br>
><br>
> mysql-server depends on mysql-server-5.7; however:<br>
><br>
>  Package mysql-server-5.7 is not configured yet.<br>
><br>
><br>
>dpkg: error processing package mysql-server (--configure):<br>
><br>
> dependency problems - leaving unconfigured<br>
><br>
>No apport report written because the error message indicates its a followup<br>
>error from a previous failure.<br>
><br>
>                          Errors were encountered while processing:<br>
><br>
> mysql-server-5.7<br>
><br>
> mysql-server<br>
><br>
>E: Sub-process /usr/bin/dpkg returned an error code (1)<br>
><br>
>doug@Hydra:~$<br>
><br>
><br>
>- systemctl status mysql.service<br>
><br>
</div></div>>? mysql.service - MySQL Community Server<br>
<span class="">><br>
>   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor<br>
>preset: en<br>
><br>
>   Active: activating (start-post) (Result: exit-code) since Sun 2016-06-05<br>
>16:3<br>
><br>
>  Process: 11867 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)<br>
><br>
>  Process: 11864 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre<br>
>(code=exi<br>
><br>
> Main PID: 11867 (code=exited, status=1/FAILURE);         : 11868<br>
>(mysql-systemd<br>
><br>
>   CGroup: /system.slice/mysql.service<br>
><br>
</span>>           ??control<br>
><br>
>             ??11868 /bin/bash /usr/share/mysql/mysql-systemd-start post<br>
><br>
>             ??11919 sleep 1<br>
<span class="">><br>
><br>
>Jun 05 16:39:24 Hydra systemd[1]: Starting MySQL Community Server...<br>
><br>
>Jun 05 16:39:26 Hydra systemd[1]: mysql.service: Main process exited,<br>
>code=exite<br>
><br>
>lines 1-13/13 (END)<br>
><br>
</span>>? mysql.service - MySQL Community Server<br>
<span class="">><br>
>   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor<br>
>preset: enabled)<br>
><br>
>   Active: activating (start-post) (Result: exit-code) since Sun 2016-06-05<br>
>16:39:24 PDT; 11s ago<br>
><br>
>  Process: 11867 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)<br>
><br>
>  Process: 11864 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre<br>
>(code=exited, status=0/SUCC<br>
><br>
> Main PID: 11867 (code=exited, status=1/FAILURE);         : 11868<br>
>(mysql-systemd-s)<br>
><br>
>   CGroup: /system.slice/mysql.service<br>
><br>
</span>>           ??control<br>
><br>
>             ??11868 /bin/bash /usr/share/mysql/mysql-systemd-start post<br>
><br>
>             ??11919 sleep 1<br>
<div><div class="h5">><br>
><br>
>Jun 05 16:39:24 Hydra systemd[1]: Starting MySQL Community Server...<br>
><br>
>Jun 05 16:39:26 Hydra systemd[1]: mysql.service: Main process exited,<br>
>code=exited, status=1/FAILUR<br>
><br>
><br>
>- journalctl -xe<br>
><br>
>Jun 05 16:41:25 Hydra systemd[1]: mysql.service: Failed with result<br>
>'exit-code'.<br>
><br>
>Jun 05 16:41:25 Hydra systemd[1]: mysql.service: Service hold-off time<br>
>over, scheduling restart.<br>
><br>
>Jun 05 16:41:25 Hydra systemd[1]: Stopped MySQL Community Server.<br>
><br>
>-- Subject: Unit mysql.service has finished shutting down<br>
><br>
>-- Defined-By: systemd<br>
><br>
>-- Support: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
><br>
>--<br>
><br>
>-- Unit mysql.service has finished shutting down.<br>
><br>
>Jun 05 16:41:25 Hydra systemd[1]: Starting MySQL Community Server...<br>
><br>
>-- Subject: Unit mysql.service has begun start-up<br>
><br>
>-- Defined-By: systemd<br>
><br>
>-- Support: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
><br>
>--<br>
><br>
>-- Unit mysql.service has begun starting up.<br>
><br>
>Jun 05 16:41:27 Hydra systemd[1]: mysql.service: Main process exited,<br>
>code=exited, status=1/FAILURE<br>
><br>
>Jun 05 16:41:56 Hydra systemd[1]: Failed to start MySQL Community Server.<br>
><br>
>-- Subject: Unit mysql.service has failed<br>
><br>
>-- Defined-By: systemd<br>
><br>
>-- Support: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
><br>
>--<br>
><br>
>-- Unit mysql.service has failed.<br>
><br>
>--<br>
><br>
>-- The result is failed.<br>
><br>
>Jun 05 16:41:56 Hydra systemd[1]: mysql.service: Unit entered failed state.<br>
><br>
>Jun 05 16:41:56 Hydra systemd[1]: mysql.service: Failed with result<br>
>'exit-code'.<br>
><br>
>Jun 05 16:41:56 Hydra systemd[1]: mysql.service: Service hold-off time<br>
>over, scheduling restart.<br>
><br>
>Jun 05 16:41:56 Hydra systemd[1]: Stopped MySQL Community Server.<br>
><br>
>-- Subject: Unit mysql.service has finished shutting down<br>
><br>
>-- Defined-By: systemd<br>
><br>
>-- Support: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
><br>
>--<br>
><br>
>-- Unit mysql.service has finished shutting down.<br>
><br>
>Jun 05 16:41:56 Hydra systemd[1]: Starting MySQL Community Server...<br>
><br>
>-- Subject: Unit mysql.service has begun start-up<br>
><br>
>-- Defined-By: systemd<br>
><br>
>-- Support: <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
<br>
</div></div>My guess would be that you have been hit by a problem in the mysql<br>
config files that has been mentioned previously on this list.  There<br>
is a config option that had its spelling changed a while ago, but<br>
until recently, mysql accepted both the old and new spelling.  Now the<br>
version of mysql in 16.04 will no longer recognise the old spelling<br>
and you have to change the config file to the new setting.  The<br>
messages about the exact error causing mysql to shut down at startup<br>
will be either in syslog or /var/log/mysql/errors.log.  The option<br>
causing the problem is in the /etc/mysql/conf.d/mythtv-tweaks.cnf file<br>
(installed by an option in mythbuntu-control-centre I believe):<br>
<br>
  table_cache = 128<br>
<br>
It needs to be replaced by:<br>
<br>
  table_open_cache = 128<br>
<br>
Anyone reading this who is still running an older version of mysql<br>
should make this change now, so they do not get caught later when<br>
upgrading.<br>
<br>
See:<br>
<br>
<a href="https://bugs.launchpad.net/ubuntu/+source/mythbuntu-common/+bug/1576767" rel="noreferrer" target="_blank">https://bugs.launchpad.net/ubuntu/+source/mythbuntu-common/+bug/1576767</a><br>
_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Lindsay</div>
</div>