[mythtv-users] mythbackend startscript broken on fedora 19

mythtvuser at vandrosthagen.net mythtvuser at vandrosthagen.net
Sun Mar 2 20:10:04 UTC 2014


That is right the script runs as root (startup script).

BTW it is the default script comming from the rpm package on fedora19

Regards
Quint
  _____  

From: Hika van den Hoven [mailto:hikavdh at gmail.com]
To: Discussion about MythTV [mailto:mythtv-users at mythtv.org]
Sent: Sun, 02 Mar 2014 14:11:19 +0100
Subject: Re: [mythtv-users] mythbackend startscript broken on fedora 19

Hoi Raymond,
  
  Sunday, March 2, 2014, 2:03:48 PM, you wrote:
  
  > On 03/02/14 06:13, mythtvuser at vandrosthagen.net wrote:
  >> Hello there,
  >> 
  >> Since last week i updated my mythtv setup to version 0.27 on fedora and
  >> all is well. It was verry scary because i am using iptv and on 0.25 en
  >> 0.26 it was really broken that is why i stayed on 0.24..;) But can say
  >> iptv is working like a charm in 0.27.
  >> 
  >> But now my problem.. After i installed everyting all was working well
  >> the only failure i have is that mythbackend is not starting on boot. The
  >> problem i have with it is that if i start the script mythackend gets an
  >> error
  >> 
  >> 2014-03-02 13:09:09.269457 N [25523/25523] thread_unknown
  >> mythdirs.cpp:55 (InitializeMythDirs) - Using runtime prefix = /usr
  >> 2014-03-02 13:09:09.269461 N [25523/25523] thread_unknown
  >> mythdirs.cpp:61 (InitializeMythDirs) - Read conf dir = /var/lib/mythtv
  >> 2014-03-02 13:09:09.269476 N [25523/25523] thread_unknown
  >> mythdirs.cpp:68 (InitializeMythDirs) - Using configuration directory =
  >> /var/lib/mythtv
  >> 2014-03-02 13:09:09.269537 I [25523/25523] CoreContext
  >> mythcorecontext.cpp:249 (Init) - Assumed character encoding: en_US.UTF-8
  >> 2014-03-02 13:09:09.269692 E [25523/25523] CoreContext
  >> mythdbparams.cpp:39 (IsValid) - DBHostName is not set in config.xml
  >> 2014-03-02 13:09:09.269703 E [25523/25523] CoreContext
  >> mythdbparams.cpp:39 (IsValid) - DBHostName is not set in config.xml
  >> 2014-03-02 13:09:09.269710 N [25523/25523] CoreContext
  >> mythcontext.cpp:504 (LoadDatabaseSettings) - Empty LocalHostName.
  >> 2014-03-02 13:09:09.269713 I [25523/25523] CoreContext
  >> mythcontext.cpp:512 (LoadDatabaseSettings) - Using localhost value of mythtv
  >> 2014-03-02 13:09:09.275498 E [25523/25523] CoreContext mythdbcon.cpp:216
  >> (OpenDatabase) - Unable to connect to database!
  >> 2014-03-02 13:09:09.275509 E [25523/25523] CoreContext mythdbcon.cpp:217
  >> (OpenDatabase) - Driver error was [1/1045]:
  >> QMYSQL: Unable to connect
  >> Database error was:
  >> Access denied for user 'mythtv'@'localhost' (using password: YES)
  >> 
  >> 
  >> But when i start mythbackend manual under the user mythtv with the
  >> command " /usr/bin/mythbackend --daemon --logpath /var/log/mythtv"
  >> everything is working fine.
  >> 
  >> I saw during startup in the log that the script was looking for config
  >> in the /var/lib/mythtv so i thought ok the files like mysql.txt and
  >> config.xml are in my setup under /home/mythtv/.mythtv so decided to
  >> softlink the dir .mythtv to /var/lib/mythtv/.mythtv but no luck.. Still
  >> i get the error above.
  
  > Does the 'mythtv' user have full read/write access to the contents of
  > your personal user's ~/.mythtv/ directory?
  > _______________________________________________
  > mythtv-users mailing list
  > mythtv-users at mythtv.org
  > http://www.mythtv.org/mailman/listinfo/mythtv-users
  > http://wiki.mythtv.org/Mailing_List_etiquette
  > MythTV Forums: https://forum.mythtv.org
  
   He has no rights issues starting by hand, so my guess is the script
   runs as root and not as mythtv
  
  
  Tot mails,
    Hika                            mailto:hikavdh at gmail.com
  
  "Zonder hoop kun je niet leven
  Zonder leven is er geen hoop
  Het eeuwige dilemma
  Zeker als je hoop moet vernietigen om te kunnen overleven!"
  
  De lerende Mens
  --
  
  _______________________________________________
  mythtv-users mailing list
  mythtv-users at mythtv.org
  http://www.mythtv.org/mailman/listinfo/mythtv-users
  http://wiki.mythtv.org/Mailing_List_etiquette
  MythTV Forums: https://forum.mythtv.org
    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140302/ca85c5ec/attachment-0001.html>


More information about the mythtv-users mailing list