[mythtv-commits] Ticket #12171: Older Recordings Deleted After Database Connection Fails
MythTV
noreply at mythtv.org
Fri Jun 13 09:25:12 UTC 2014
#12171: Older Recordings Deleted After Database Connection Fails
--------------------------------------+-------------------------
Reporter: jksjdevelop@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: Master Head
Severity: medium | Keywords:
Ticket locked: 0 |
--------------------------------------+-------------------------
v0.28-pre-1463-g23813a5
I use mythTV as a timeshifter so do not normally keep recordings for very
long - so I did not notice straight a way when some went missing. On Jun
6th I went into I am sure I recorded that mode and noticed that I did not
have any recordings older than the 25th May. Checking the logs I noticed
that at 13:15 on Jun 4th something had cleared out 25 items using
DoHandleDelete3.
The nasty seems to be that the backend lost the database connection for
some reason. Defaulted to the storage group being
/var/lib/mythtv/recordings which is on a different partition to the actual
one and then flushed out the older stuff.
{{{
Jun 4 13:15:12 tv mythbackend: mythbackend[10065]: E ProcessRequest
mythdbcon.cpp:217 (OpenDatabase) Driver error was [1/1040]:#012QMYSQL:
Unable to connect#012Database error was:#012Too many connections
....
Jun 4 13:15:12 tv mythbackend: mythbackend[10065]: E ProcessRequest
mythdb.cpp:183 (DBError) DB Error (StorageGroup::StorageGroup()):#012Query
was:#012#012Bindings were:#012:GROUP="Default"#012No error type from
QSqlError? Strange...
Jun 4 13:15:12 tv mythbackend: mythbackend[10065]: E ProcessRequest
storagegroup.cpp:187 (Init) SG(LiveTV): Unable to find any Storage Group
Directories. Using old 'RecordFilePrefix' value of
'/var/lib/mythtv/recordings'
Jun 4 13:15:30 tv mythbackend: mythbackend[10065]: I Scheduler
scheduler.cpp:2103 (HandleReschedule) Reschedule requested for CHECK 0
2542 0 DoHandleDelete3 | Orphan Black | 4/10 | Governed as It Were by
Chance: Sci-fi drama series. With Cosima's help, Sarah digs into the
origins of the clone experiment. The hunt takes her right into the belly
of the beast. | fp.bbc.co.uk/4j63iy
Jun 4 13:15:30 tv mythbackend: mythbackend[10065]: I Scheduler
scheduler.cpp:2103
# then deletes 13 more items
}}}
It might be a good idea to inhibit the housekeeper after database
connection failure.
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12171>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list