Author Topic: mythconverg_bac out of control (Solved)  (Read 4478 times)

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
mythconverg_bac out of control (Solved)
« on: December 14, 2011, 01:17:15 am »
something is creating many many mythconverg_bac processes which is killing all my harddrives how do I stop it ? What process calls this?


« Last Edit: December 20, 2011, 05:20:40 pm by kyfalcon »

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: mythconverg_bac out of control
« Reply #1 on: December 14, 2011, 01:38:31 am »
ok, so I found that my mythbackend is being killed restarted every minute for some reason and when it is brought back up now it is trying to backup the mythconverg db as you can tell this will bring a system to a crawl in no time. I've got some serious debugging to do :(

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: mythconverg_bac out of control
« Reply #2 on: December 14, 2011, 01:48:38 am »
What is the MythBackend log saying?

-Thom

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: mythconverg_bac out of control
« Reply #3 on: December 14, 2011, 03:11:56 pm »
Somehow the database version is not matching now. When I built my .24 version I just copied over the old bin and libs, I think I am going to uninstall myth, and then move the built binaries and libraries to where they go. I think I maybe not everything was copied over. I know this something is out of whack.

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: mythconverg_bac out of control
« Reply #4 on: December 14, 2011, 04:41:33 pm »
Hey Thom
Is there a way to disable mythtv without removing it? I want to go to kde and start the back end and front end there. I figure if I can get all that working first, I can then concentrate on the LMCE communication part. I rebuilt the LMCE stuff with the patch you gave me but it seems there is still some miscommunication. I figure if I can get myth working first and eliminate anything on that end, I can then move to the LMCE plug ins.

Thanks

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: mythconverg_bac out of control
« Reply #5 on: December 14, 2011, 04:46:41 pm »
Unfortunately, not that I can think of.

-Thom

mkbrown69

  • Guru
  • ****
  • Posts: 213
    • View Profile
Re: mythconverg_bac out of control
« Reply #6 on: December 14, 2011, 05:57:28 pm »
A couple of possibilities for you:

Disable the upstart job that starts mythtv-backend.  Upstart has service supervision, so if the backend keeps dying, upstart will restart it (kind of like monit or daemontools).

Rename the mythtv-backend binary.  Then you can launch it from a terminal with debugging turned on.  I'm not in front of my system right now, so I can't say for certain what the binary is called.  I think it's mythtv-backend.

Hope that helps!

/Mike

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: mythconverg_bac out of control
« Reply #7 on: December 14, 2011, 07:03:45 pm »
Thanks, I'll give that a try tonight. By the way how do I disable the upstart job.

Its mythbackend by the way.

Kevin

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: mythconverg_bac out of control
« Reply #8 on: December 16, 2011, 02:54:28 pm »
Ok, it has to be permissions etc. So what should the permissions and ownership be for the executables, libs and the storage directories for myth?  When I run things from kde as root everything works fine, so I am assuming when I built my own that these didn't jive with what happens in LMCE.

mkbrown69

  • Guru
  • ****
  • Posts: 213
    • View Profile
Re: mythconverg_bac out of control
« Reply #9 on: December 16, 2011, 06:17:43 pm »
You can stop an upstart job with:

sudo stop {service name}

Restart it with sudo start {service name}.

To disable it once already stopped, you can either

sudo mv /etc/init/{service}.conf /etc/init/{service}.conf.noexec

or

sudo update-rc.d {service} disable

(doing it again with enable at the end will re-enable it)

Hope that helps!

/Mike

mkbrown69

  • Guru
  • ****
  • Posts: 213
    • View Profile
Re: mythconverg_bac out of control
« Reply #10 on: December 20, 2011, 05:18:41 am »
Here's the permissions for the binaries in /usr/bin {stock 0.23}

-rwxr-xr-x 1 root root   34632 2010-04-23 22:04 mythavtest
-rwxr-xr-x 1 root root 1433788 2010-04-23 22:04 mythbackend
-rwxr-xr-x 1 root root  588276 2010-04-23 22:04 mythcommflag
-rwxr-xr-x 1 root root  359088 2010-04-23 22:04 mythfilldatabase
lrwxrwxrwx 1 root root      31 2011-10-07 21:46 mythfrontend -> ../share/mythtv/mythfrontend.sh
-rwxr-xr-x 1 root root 2209232 2010-04-23 22:04 mythfrontend.real
-rwxr-xr-x 1 root root   38688 2010-04-23 22:04 mythjobqueue
-rwxr-xr-x 1 root root  227312 2010-04-23 22:04 mythlcdserver
-rwxr-xr-x 1 root root   84164 2010-04-23 22:04 mythreplex
-rwxr-xr-x 1 root root   83764 2010-04-23 22:04 mythshutdown
-rwxr-xr-x 1 root root  359576 2010-04-23 22:04 mythtranscode
-rwxr-xr-x 1 root root   18052 2010-04-23 22:04 mythtvosd
lrwxrwxrwx 1 root root      31 2011-10-07 21:42 mythtv-setup -> ../share/mythtv/mythtv-setup.sh
-rwxr-xr-x 1 root root  363528 2010-04-23 22:04 mythtv-setup.real
-rwxr-xr-x 1 root root  141736 2010-04-23 22:04 mythwelcome

And the running processes...

 ps -ef |grep myth
mythtv    1309  1308  0 Dec17 ?        00:01:13 /usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log --user mythtv
mythtv    3414  7578  0 23:13 ?        00:00:00 sleep 1
mythtv    7577  1309  0 Dec18 ?        00:00:00 sh -c /usr/pluto/bin/MythTvDailyFillDB.sh  >>/var/log/mythtv/mythfilldatabase.log 2>&1
mythtv    7578  7577  0 Dec18 ?        00:10:34 /bin/bash /usr/pluto/bin/MythTvDailyFillDB.sh

And the permissions on /var/log/mythtv
drwxrwsr-x  2 mythtv    mythtv       4096 2011-10-08 22:21 mythtv


Hope that helps!

/Mike

kyfalcon

  • Guru
  • ****
  • Posts: 390
    • View Profile
Re: mythconverg_bac out of control (Solved)
« Reply #11 on: December 20, 2011, 05:20:17 pm »
Yeah thanks, what I found is that when you build and install your own mythtv it puts it into usr/local/bin this caused a problem. Another problem is that I have added so many peripherals to my box that the power supply crapped out, I think this was also part of the problem. I have rebuilt my system so many times in the last 2 weeks, I think I can do it with my eyes closed. last night my wife asked if the girl on the setup was my new mistress and if she had a name :)

I hope to create my own page in the wiki so if anyone else wants to add the ceton card they won't have the same issues as myself.