[mythtv-commits] Ticket #1382: Stopping mythbackend whilst recording leaves recording inconsistancy.

MythTV mythtv at cvs.mythtv.org
Fri Mar 17 23:01:03 UTC 2006


#1382: Stopping mythbackend whilst recording leaves recording inconsistancy.
--------------------------------+-------------------------------------------
 Reporter:  karl at bigmite.co.uk  |        Owner:  ijr    
     Type:  defect              |       Status:  closed 
 Priority:  major               |    Milestone:         
Component:  mythtv              |      Version:  0.19   
 Severity:  medium              |   Resolution:  invalid
--------------------------------+-------------------------------------------
Changes (by cpinkham):

  * resolution:  => invalid
  * status:  new => closed

Old description:

> Ive noticed that stopping mythbackend with kill and then restarting (if
> backend was recording)
> causes the new backend to try to delete a file that is not on the
> filesystem.
>
> If I do a "ls *.nuv *.mpg | wc -l" I have one less than a "select * from
> recorded" in the DB.
>
> The new backend reports in its log file:
>
> Session management error: Authentication Rejected, reason : None of the
> authentication protocols specified are supported and host-based
> authentication failed
> 2006-02-24 13:19:57.936 Using runtime prefix = /usr/local
> 2006-02-24 13:19:58.043 New DB connection, total: 1
> 2006-02-24 13:19:58.050 Connected to database 'mythconverg' at host:
> 10.1.0.90
> 2006-02-24 13:19:58.076 Current Schema Version: 1123
> Starting up as the master server.
> 2006-02-24 13:19:58.099 New DB connection, total: 2
> 2006-02-24 13:19:58.100 Connected to database 'mythconverg' at host:
> 10.1.0.90
> 2006-02-24 13:19:58.156 DVB#0 Using DVB card 0, with frontend 'Conexant
> CX22702 DVB-T'.
> 2006-02-24 13:19:58.158 New DB connection, total: 3
> 2006-02-24 13:19:58.159 Connected to database 'mythconverg' at host:
> 10.1.0.90
> 2006-02-24 13:19:59.418 DVB#1 Using DVB card 1, with frontend 'Philips
> TDA10045H DVB-T'.
> 2006-02-24 13:19:59.932 New DB scheduler connection
> 2006-02-24 13:19:59.932 Connected to database 'mythconverg' at host:
> 10.1.0.90
> 2006-02-24 13:19:59.941 mythbackend version: 0.19.20060121-2
> www.mythtv.org
> 2006-02-24 13:19:59.941 Enabled verbose msgs:  important general
> 2006-02-24 13:19:59.982 AutoExpire: Found 2 recorders w/max rate of 277
> MiB/min
> 2006-02-24 13:19:59.983 AutoExpire: Required Free Space: 12.2 GB w/freq:
> 5 min
> 2006-02-24 13:20:02.033 Reschedule requested for id -1.
> 2006-02-24 13:20:04.782 Scheduled 60 items in 2.7 = 2.58 match + 0.17
> place
> 2006-02-24 13:20:04.788 Recording starts soon, AUTO-Startup assumed
> 2006-02-24 13:20:04.959 TVRec(2): Changing from None to RecordingOnly
> 2006-02-24 13:20:05.186 Started recording: Winter Olympics 2006: channel
> 1001 on cardid 2, sourceid 1
> 2006-02-24 13:20:05.912 DVB#1 DVB SI Table Parser Started
> 2006-02-24 13:20:08.105 Running HouseKeeping
> 2006-02-24 13:20:19.981 AutoExpire: ERROR when trying to autoexpire file:
> /home/mythtv/1021_20060214234708.mpg. File doesn't exist.  Database
> metadata will not be removed.
> 2006-02-24 13:20:19.987 AutoExpire: ERROR when trying to autoexpire file:
> /home/mythtv/1021_20060214234708.mpg. File doesn't exist.  Database
> metadata will not be removed.
> 2006-02-24 13:22:20.187 AutoExpire: ERROR when trying to autoexpire file:
> /home/mythtv/1021_20060214234708.mpg. File doesn't exist.  Database
> metadata will not be removed.
> 2006-02-24 13:24:20.363 AutoExpire: ERROR when trying to autoexpire file:
> /home/mythtv/1021_20060214234708.mpg. File doesn't exist.  Database
> metadata will not be removed.
> 2006-02-24 13:25:08.105 Running HouseKeeping
> 2006-02-24 13:25:20.424 AutoExpire: ERROR when trying to autoexpire file:
> /home/mythtv/1021_20060214234708.mpg. File doesn't exist.  Database
> metadata will not be removed.
> 2006-02-24 13:26:20.499 AutoExpire: ERROR when trying to autoexpire file:
> /home/mythtv/1021_20060214234708.mpg. File doesn't exist.  Database
> metadata will not be removed.
> 2006-02-24 13:28:20.603 AutoExpire: ERROR when trying to autoexpire file:
> /home/mythtv/1021_20060214234708.mpg. File doesn't exist.  Database
> metadata will not be removed.
>

> To get round this I have deleted the line from the DB, but I have tried
> this twice and the same problem has arisen on each kill.
>

> Yours,
>
> Karl.

New description:

 Ive noticed that stopping mythbackend with kill and then restarting (if
 backend was recording)
 causes the new backend to try to delete a file that is not on the
 filesystem.

 If I do a "ls *.nuv *.mpg | wc -l" I have one less than a "select * from
 recorded" in the DB.

 The new backend reports in its log file:

 Session management error: Authentication Rejected, reason : None of the
 authentication protocols specified are supported and host-based
 authentication failed
 2006-02-24 13:19:57.936 Using runtime prefix = /usr/local
 2006-02-24 13:19:58.043 New DB connection, total: 1
 2006-02-24 13:19:58.050 Connected to database 'mythconverg' at host:
 10.1.0.90
 2006-02-24 13:19:58.076 Current Schema Version: 1123
 Starting up as the master server.
 2006-02-24 13:19:58.099 New DB connection, total: 2
 2006-02-24 13:19:58.100 Connected to database 'mythconverg' at host:
 10.1.0.90
 2006-02-24 13:19:58.156 DVB#0 Using DVB card 0, with frontend 'Conexant
 CX22702 DVB-T'.
 2006-02-24 13:19:58.158 New DB connection, total: 3
 2006-02-24 13:19:58.159 Connected to database 'mythconverg' at host:
 10.1.0.90
 2006-02-24 13:19:59.418 DVB#1 Using DVB card 1, with frontend 'Philips
 TDA10045H DVB-T'.
 2006-02-24 13:19:59.932 New DB scheduler connection
 2006-02-24 13:19:59.932 Connected to database 'mythconverg' at host:
 10.1.0.90
 2006-02-24 13:19:59.941 mythbackend version: 0.19.20060121-2
 www.mythtv.org
 2006-02-24 13:19:59.941 Enabled verbose msgs:  important general
 2006-02-24 13:19:59.982 AutoExpire: Found 2 recorders w/max rate of 277
 MiB/min
 2006-02-24 13:19:59.983 AutoExpire: Required Free Space: 12.2 GB w/freq: 5
 min
 2006-02-24 13:20:02.033 Reschedule requested for id -1.
 2006-02-24 13:20:04.782 Scheduled 60 items in 2.7 = 2.58 match + 0.17
 place
 2006-02-24 13:20:04.788 Recording starts soon, AUTO-Startup assumed
 2006-02-24 13:20:04.959 TVRec(2): Changing from None to RecordingOnly
 2006-02-24 13:20:05.186 Started recording: Winter Olympics 2006: channel
 1001 on cardid 2, sourceid 1
 2006-02-24 13:20:05.912 DVB#1 DVB SI Table Parser Started
 2006-02-24 13:20:08.105 Running HouseKeeping
 2006-02-24 13:20:19.981 AutoExpire: ERROR when trying to autoexpire file:
 /home/mythtv/1021_20060214234708.mpg. File doesn't exist.  Database
 metadata will not be removed.
 2006-02-24 13:20:19.987 AutoExpire: ERROR when trying to autoexpire file:
 /home/mythtv/1021_20060214234708.mpg. File doesn't exist.  Database
 metadata will not be removed.
 2006-02-24 13:22:20.187 AutoExpire: ERROR when trying to autoexpire file:
 /home/mythtv/1021_20060214234708.mpg. File doesn't exist.  Database
 metadata will not be removed.
 2006-02-24 13:24:20.363 AutoExpire: ERROR when trying to autoexpire file:
 /home/mythtv/1021_20060214234708.mpg. File doesn't exist.  Database
 metadata will not be removed.
 2006-02-24 13:25:08.105 Running HouseKeeping
 2006-02-24 13:25:20.424 AutoExpire: ERROR when trying to autoexpire file:
 /home/mythtv/1021_20060214234708.mpg. File doesn't exist.  Database
 metadata will not be removed.
 2006-02-24 13:26:20.499 AutoExpire: ERROR when trying to autoexpire file:
 /home/mythtv/1021_20060214234708.mpg. File doesn't exist.  Database
 metadata will not be removed.
 2006-02-24 13:28:20.603 AutoExpire: ERROR when trying to autoexpire file:
 /home/mythtv/1021_20060214234708.mpg. File doesn't exist.  Database
 metadata will not be removed.


 To get round this I have deleted the line from the DB, but I have tried
 this twice and the same problem has arisen on each kill.


 Yours,

 Karl.

Comment:

 2006-02-24 13:26:20.499 AutoExpire?: ERROR when trying to autoexpire file:
 /home/mythtv/1021_20060214234708.mpg. File doesn't exist. Database
 metadata will not be removed. 2006-02-24 13:28:20.603 AutoExpire?: ERROR
 when trying to autoexpire file:
 /home/mythtv/1021_20060214234708.mpg. File doesn't exist. Database
 metadata will not be removed.

 The file it is trying to expire is dated February 14th and the time on
 your backend is February 24th, so this is unrelated to the fact that you
 restarted the backend.  Closing ticket as invalid.

-- 
Ticket URL: <http://cvs.mythtv.org/trac/ticket/1382>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list