[mythtv-users] 'Not allowed to upgrade the database'

Rich West Rich.West at wesmo.com
Tue Apr 23 15:00:57 UTC 2013


On 04/22/2013 04:15 PM, John Pilkington wrote:
> On 22/04/13 20:27, Rich West wrote:
>> On 04/22/2013 02:10 PM, John Pilkington wrote:
>>> On 22/04/13 17:46, John Pilkington wrote:
>>>> On 22/04/13 17:23, John Pilkington wrote:
>>>>
>>>>>> 2013-04-22 16:52:02.416178 I [5206/5206] CoreContext
>>>>>> mythmainwindow.cpp:1020 (Init) - Trying the OpenGL painter
>>>>>> 2013-04-22 16:52:02.416239 I [5206/5206] CoreContext
>>>>>> mythpainter.cpp:600 (SetMaximumCacheSizes) - MythPainter cache
>>>>>> sizes:
>>>>>> Hardware 96 MB, Software 96 MB
>>>>>> 2013-04-22 16:52:02.486065 I [5206/5206] CoreContext
>>>>>> mythrender_opengl.cpp:76 (Create) - OpenGL: Sync to VBlank is
>>>>>> enabled
>>>>>> (good!)
>>>>>
>>>>> and suggests to me that the OpenGL painter might be at fault.  I
>>>>> remember that I tried nvidia 304.64 from ATrpms but reverted to
>>>>> 304.51;
>>>>>    304.64 from rpmfusion is what I have now.  Can I deactivate OpenGL
>>>>> without being able to run mythtvsetup?  And is that likely to affect
>>>>> the
>>>>> DB upgrade?
>>>>>
>>>>
>>>> Update:  Selecting 'OpenGL/GLX Information' in the NVIDIA X Server
>>>> Settings window causes immediate closure of that window.  Doesn't look
>>>> good.
>>>>
>>>> Device is GeForce 7500 LE, and last time I looked it was supposed
>>>> to be
>>>> ok with 304.64
>>>>
>>>
>>> Seems to have been solved by editing xorg.conf as suggested here.
>>>
>>> http://forums.fedoraforum.org/showthread.php?t=286084
>>>
>>> Modules provided by X.org were being loaded when those from nVidia
>>> were expected.
>>>
>>> John P
>>
>> Having just gone through the same upgrade (ATrpms to RPMFusion), note
>> that the RPMfusion RPMs have the mythbackend process run as the 'mythtv'
>> user, so make sure your 'mythtv' user has read/write access to your
>> video storage volumes and to your video capture devices.  Either that,
>> or you can modify /usr/lib/systemd/system/mythbackend.service and change
>> "User=mythtv" to "User=root".
>>
>> -Rich
>>
> Thank you.  There do seem to be a few tripwires around.  At present
> I'm only able to find three of my four tuners, and they're in a
> different order, and the Storage Group for recording seemed to need
> redefining; but I do have three recordings in progress now, so things
> could be worse!

Because I have three PCI tuners and have three usb-to-serial connections
on them to control channel changing on the set top boxes I have, I put
some udev rules in place to create symlinks in /dev automatically.  Then
I reference the symlinks for the USB devices in mythtv for the channel
changing, and gone are the worries of what order things get identified
in. :)  Note that one of my set top boxes is connected via a true serial
port and didn't need a udev rule.

Anyhow, you could probably do something similar with your capture
devices to keep this problem from creeping up on you again with any
future upgrade.

[root at mythtv1 ~]# cat /etc/udev/rules.d/99-usb-serial.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001",
ATTRS{serial}=="ftE15H6A", SYMLINK+="X10"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001",
ATTRS{serial}=="ftDYP9O0", SYMLINK+="CID"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0557", ATTRS{idProduct}=="2008",
SYMLINK+="SD2"
SUBSYSTEM=="tty", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303",
SYMLINK+="SD3"

Not sure if this will help, but since I find that mythbackend does still
periodically exit on its own, I don't bother with the systemd (or the
older init.d) service startup since they can't auto restart it yet.  I
start it manually at system boot via a crude wrapper script.  Note that
"mythtv1" is my dedicated backend host.. I could have probably just
checked to see if mythbackend existed, but it does the work.

[root at mythtv1 bin]# more mythwrapper.sh
#!/bin/sh

if [ "$(hostname)" == "mythtv1" ]; then
   if [ ! "$(pidof mythbackend)" ]
   then
       while true; do
#              cd /var/log/mythtv; /usr/bin/rm -rf *
          /usr/bin/mythbackend --logpath /var/log/mythtv/ --pidfile
/var/run/mythbackend.pid > /var/log/mythtv/mythbackend_
master.log 2>&1
       done
   else
           echo "Mythbackend is already started."
  
   fi
  
fi
if [ ! "$(hostname)" != "mythtv1" ]; then
   if [ ! "$(pidof irexec)" ]
   then
           echo "Irexec is not started. Starting Irexec..."
           /usr/bin/irexec > /dev/null 2>&1 &
   else
           echo "Irexec is already started."
   fi
  
   if [ ! "$(pidof mythfrontend)" ]
   then
       while true; do
       /usr/bin/mythfrontend > /local/mythtv/mythfrontend.log 2>&1
       done
   else
           echo "Mythfrontend is already started."
  
   fi
fi

-Rich


More information about the mythtv-users mailing list