[mythtv-users] systemd suddenly won't start backend
Robin Gilks
g8ecj at gilks.org
Fri Apr 27 02:31:25 UTC 2018
I reboot last night having had my Debian Jessie system up for some 200
days and the backend refuses to start.
systemctl status mythtv-backend.service gives me:
Apr 27 00:39:51 woden systemd[1]: Starting MythTV Backend...
Apr 27 00:39:51 woden systemd[1]: mythtv-backend.service start request
repeated too quickly, refusing to start.
Apr 27 00:39:51 woden systemd[1]: Failed to start MythTV Backend.
and looking in the backend log I see:
Apr 27 00:31:00 woden mythbackend: mythbackend[2047]: I CoreContext
mythcorecontext.cpp:266 (Init) Assumed character encoding: en_US.UTF-8
Apr 27 00:31:00 woden mythbackend: mythbackend[2047]: N CoreContext
mythcontext.cpp:505 (LoadDatabaseSettings) Empty LocalHostName.
Apr 27 00:31:00 woden mythbackend: mythbackend[2047]: I CoreContext
mythcontext.cpp:513 (LoadDatabaseSettings) Using localhost value of woden
Apr 27 00:31:00 woden mythbackend: mythbackend[2047]: E CoreContext
mythdbcon.cpp:229 (OpenDatabase) [DBManager0] Unable to connect to
database!
Apr 27 00:31:00 woden mythbackend: mythbackend[2047]: E CoreContext
mythdbcon.cpp:230 (OpenDatabase) Driver error was [1/2003]:
QMYSQL: Unable to connect
Database error was:
Can't connect to MySQL server on '192.168.1.12' (111)
Apr 27 00:31:00 woden mythbackend: mythbackend[2047]: E CoreContext
mythdbcon.cpp:229 (OpenDatabase) [DBManager0] Unable to connect to
database!
Apr 27 00:31:00 woden mythbackend: mythbackend[2047]: E CoreContext
mythdbcon.cpp:230 (OpenDatabase) Driver error was [1/2003]:
QMYSQL: Unable to connect
Database error was:
Can't connect to MySQL server on '192.168.1.12' (111)
If I run the backend from a terminal using
su -c mythtv mythbackend
everything works fine
Nothing has been updated as far as I know, I can only assume some mysql
setting has changed due to a regular upgrade/update.
Anyone any ideas?
--
Robin Gilks zl3rob/g8ecj
Internet: g8ecj at gilks.org http://www.gilks.org
More information about the mythtv-users
mailing list