Opened 13 years ago

Closed 13 years ago

#9663 closed Bug Report - General (fixed)

Mythcommflag aborts on zero byte error

Reported by: km@… Owned by: beirdo
Priority: minor Milestone: 0.25
Component: MythTV - Mythcommflag Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

As of a few days ago my trunk builds can no longer run mythcommflag, showing a "zero byte" error on all files although they play perfectly well. Sample output below and a log with "-v all" attached.

MythTV Commercial Flagger, started at Mon Mar 14 11:51:41 2011 Flagging commercial breaks for: ALL Un-flagged programs ChanID Start Time Title Breaks


2011-03-14 11:51:41.420 New DB connection, total: 2 2011-03-14 11:51:41.549 New DB connection, total: 3 3868 20110314100000 The Colbert Report 2011-03-14 11:51:41.561 Using protocol version 65 2011-03-14 11:51:41.603 File myth://192.168.10.10:6543/3868_20110314100000.mpg is zero-byte, aborting.

Finished commercial break flagging at Mon Mar 14 11:51:41 2011

Attachments (2)

log (142.6 KB) - added by km@… 13 years ago.
mythcommflag -v all
log.2 (237.7 KB) - added by km@… 13 years ago.
post fix log

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by km@…

Attachment: log added

mythcommflag -v all

comment:1 Changed 13 years ago by cpinkham

Owner: changed from cpinkham to beirdo
Status: newassigned

comment:2 Changed 13 years ago by Gavin Hurlbut

Milestone: unknown0.25
Resolution: fixed
Status: assignedclosed

Fix commflag bailing on remote files

Fixes #9663

Deals with remote files on commflag properly after adding the check for 0-byte files. Now it will check the remote file for existance and non-0 length, or the local file for existance and non-0 length. Once again, if this causes issues with during-recording commflagging, we can add some delay and recheck or something like that to avoid race conditions if necessary.

Changeset: 9ce70aed37ae2887fa56b0eaf8cb37b5e10373d4

comment:3 Changed 13 years ago by km@…

Resolution: fixed
Status: closednew

The change hasn't resolved the problem. Here is a run and I'm attaching -v all log

$ mythcommflag 2011-03-15 10:02:18.571 Using runtime prefix = /usr/local 2011-03-15 10:02:18.571 Using configuration directory = /home/km/.mythtv 2011-03-15 10:02:18.572 Empty LocalHostName?. 2011-03-15 10:02:18.577 New DB connection, total: 1 2011-03-15 10:02:18.584 Closing DB connection named 'DBManager0' 2011-03-15 10:02:18.592 mythcommflag version: 0.25.20110310-1 www.mythtv.org 2011-03-15 10:02:18.592 Enabled verbose msgs: important

MythTV Commercial Flagger, started at Tue Mar 15 10:02:18 2011 Flagging commercial breaks for: ALL Un-flagged programs ChanID Start Time Title Breaks


2011-03-15 10:02:18.593 New DB connection, total: 2 2011-03-15 10:02:18.719 New DB connection, total: 3 3868 20110314100000 The Colbert Report 2011-03-15 10:02:18.730 Using protocol version 65 2011-03-15 10:02:18.854 Couldn't find file myth://192.168.10.10:6543/3868_20110314100000.mpg, aborting. 1052 20110314180000 PBS NewsHour? 2011-03-15 10:02:18.927 Couldn't find file myth://192.168.10.10:6543/1052_20110314180000.mpg, aborting. 1920 20110314200000 House 2011-03-15 10:02:19.011 Couldn't find file myth://192.168.10.10:6543/1920_20110314200000.mpg, aborting. 1111 20110314210000 The Event 2011-03-15 10:02:19.097 Couldn't find file myth://192.168.10.10:6543/1111_20110314210000.mpg, aborting. 1920 20110314210000 The Chicago Code 2011-03-15 10:02:19.167 Couldn't find file myth://192.168.10.10:6543/1920_20110314210000.mpg, aborting. 1111 20110314220000 Harry's Law 2011-03-15 10:02:19.242 Couldn't find file myth://192.168.10.10:6543/1111_20110314220000.mpg, aborting. 3874 20110314220000 Stargate Universe 2011-03-15 10:02:19.315 Couldn't find file myth://192.168.10.10:6543/3874_20110314220000.mpg, aborting. 3868 20110314230000 The Daily Show With Jon Stewart 2011-03-15 10:02:19.397 Couldn't find file myth://192.168.10.10:6543/3868_20110314230000.mpg, aborting. 3868 20110314233100 The Colbert Report 2011-03-15 10:02:19.493 Couldn't find file myth://192.168.10.10:6543/3868_20110314233100.mpg, aborting. 1461 20110314233500 Late Show With David Letterman 2011-03-15 10:02:19.573 Couldn't find file myth://192.168.10.10:6543/1461_20110314233500.mpg, aborting. 1461 20110315003700 The Late Late Show With Craig Ferguson 2011-03-15 10:02:19.645 Couldn't find file myth://192.168.10.10:6543/1461_20110315003700.mpg, aborting.

Finished commercial break flagging at Tue Mar 15 10:02:19 2011

Changed 13 years ago by km@…

Attachment: log.2 added

post fix log

comment:4 Changed 13 years ago by km@…

Just a further comment on the fix. mythcommflag fails the same way whether its running on the backend box or a separate frontend box. If invoked with "-f" it fails the same way if the complete file path is given or just the filename.

comment:5 Changed 13 years ago by Gavin Hurlbut

Resolution: fixed
Status: newclosed

Make RemoteFile::Exists work with no stated storage group

Fixes #9663

As the myth:// urls are being generated with no storage group, and the code to handle QUERY_FILE_EXISTS works without one correctly, I've changed the code to allow RemoteFile::Exists to ask about a file with no storage group stated.

Changeset: ed0014b847fce7d87f25ae9cd390b4460ffb462d

Note: See TracTickets for help on using tickets.