[mythtv-commits] Ticket #11195: Patch: Adds detail when mythfilldatabase cache isn't writable

MythTV noreply at mythtv.org
Fri Nov 2 21:04:55 UTC 2012


#11195: Patch: Adds detail when mythfilldatabase cache isn't writable
---------------------------------------+-----------------------------
 Reporter:  Bill Meek <keemllib@…>     |          Owner:  stuartm
     Type:  Patch - Feature            |         Status:  new
 Priority:  minor                      |      Milestone:  unknown
Component:  MythTV - Mythfilldatabase  |        Version:  Master Head
 Severity:  medium                     |     Resolution:
 Keywords:                             |  Ticket locked:  0
---------------------------------------+-----------------------------
Changes (by Bill Meek <keemllib@…>):

 * status:  closed => new
 * resolution:  Won't Fix =>


Comment:

 I should have opened this as a bug, not a feature. Corrected patch
 attached.

 For backends that don't (or rarely) boot, the /tmp/mythtv_ddp_data
 file may be found with permissions of 644 and an owner/group of
 the 1st user to run mythfilldatabase.

 If the user running MFDB is always the same (most likely mythtv,)
 there is no problem.

 If a user other than mythtv manually runs MFDB 1st, or if the backend
 is improperly started as root, mythtv user runs of MFDB by the BE
 fail.

 This problem can be avoided by setting the permissioins on the file
 to allow anyone to write it (the 1st user to run the program does
 this and any other user silently fails to change them.)

 Tested in the following cases:
 {{{
 If /tmp/mythtv_ddp_data doesn't exist,
   After creating it, change its mode to 666.

 If a writable /tmp/mythtv_ddp_data exists,
   No change, normal run.

 If /tmp/mythtv_ddp_data exists, and isn't writable,

   The following will appear in mythfilldatabase's log:

     E  DataDirect: Failed to get data: Aborting: /tmp/mythtv_ddp_data is
 not writable

   The run is aborted (no sense downloading data if the file can't be
   written.)
 }}}

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/11195#comment:3>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list