Two tvheadend process
Added by Manuel J. Garcia Egido over 1 year ago
Hi boys.
A short time ago I reinstalled Tvheadend, I had several problems doing it and I reinstalled several times. Everything seemed to work fine, finally, but I noticed that there were 2 tvheadend processes running, one owned by root and one owned by hts. In that state, when I entered tvheadend through the browser, I did so as root. I got it by killing one of the processes, entering the one that was active and each of them had a different configuration.
I don't think this is a normal situation and I'm trying to get it to just start as hts. Desperate, I have uninstalled Tvhedend from both apt-get and dpkg, I thought I had 2 installations of Tvheadend. Now both apt-get and dpkg report that Tvheadend is uninstalled, but it keeps starting a root-owned tvheadend process that I can't access via the web, it doesn't even give me the chance to authenticate. I understand that if I reinstall, this root process will still start and I will still have 2 processes running.
Does anyone have any idea what I can do?
Replies (31)
RE: Two tvheadend process - Added by Jonas Lang over 1 year ago
Are you putting your reply through a translator by any chance. I’ve no idea what this means
“I have been using this system for several years to see fv, 8 or 10,
A simple reinstall of the OS followed by the instructions I supplied WILL resolve your issue. Are you disagreeing with this. What would prevent you from doing this. Remember there’s a good chance you’ve dumped something on your PC that will eventually and possibly already has come back to bite you. Clearly not the answer you wanted to hear.
If you have anything important on your PC just back up your Home Folder and decide later if you need to restore it once you have solved your problem.
If you have a better solution by all means pursue it.
RE: Two tvheadend process - Added by Jonas Lang over 1 year ago
And now from what I’m reading here is it possible that this is a dual boot Linux/Windows PC. Again another important point you never mentioned. If it is Installing a fresh copy of Ubuntu will not affect your dual boot arrangement once you follow the onscreen instructions during installation.
RE: Two tvheadend process - Added by Manuel J. Garcia Egido over 1 year ago
No. It is not a dual boot computer. I have another Windows computer connected to the local network from which I access, since the Ubuntu one is connected to the TV and is like a handmade decoder. You have too much imagination, Jonas, I think you jump to conclusions.
I actually think I'll format it soon. There are several reasons for this:
1. I haven't done it for a long time and it starts to show symptoms of instability (you know I don't treat it very well)
2. Oscam doesn't work fine either and I often have to restart it to get it working.
3. Ubuntu 22 is out now.
Also, it would be easier than you imagined, another haste: there is no important data on it because it works as a decoder and I have the /home folder on a different partition than the System one.
However, doing it in this context, motivated by a problem in a program, does not make me excited. It may seem strange to you, but I like these situations because I experience a strange satisfaction when I manage to solve the problem. It's like a fight between me and the machine and I consider formatting a defeat... I'm like that.
RE: Two tvheadend process - Added by Jonas Lang over 1 year ago
Well I consider it a sensible solution to your problem and one that is straightforward and direct to the point.
A good man knows when it’s time to walk away and start afresh. And yes I’d need a good imagination dealing with situations like this. Possibly a mind reader skill set.
Anyway if you do follow the advice given you should have TVH back up and functioning correctly. Whatever you do from here on in do not throw a load of untested scripts into your system and expect them to work. I know for a fact from what you eventually revealed your file system became unstable. Good luck with your endeavours.
RE: Two tvheadend process - Added by Kevin Maguire over 1 year ago
"Yes. I knew that, the binary was still in /usr/bin, but I didn't care, even if I deleted it, if the instance was still where it was, when the binary was back in place it would start the unwanted process again."
mv the binary, replace it by a script with same name that dumps some diags to a log file and exits, e.g. something like:
# current=$$ && while [ $current != 1 ]; do { ps -p $current -o pid=; ps -p $current -o ppid=; ps -p $current -o comm=; } | paste - - - ; current=$(ps -p $current -o ppid= | egrep -o '[0-9]*'); done
For my shell on my Pi that gives
31438 31437 bash 31437 31436 su 31436 31422 sudo 31422 31421 bash 31421 31415 sshd 31415 569 sshd 569 1 sshd
This is effective what pstree would give you - see previous suggestions.
"And yes I’d need a good imagination dealing with situations like this. Possibly a mind reader skill set."
Ditto.
RE: Two tvheadend process - Added by Dave H over 1 year ago
Manuel J. Garcia Egido wrote:
You have too much imagination, Jonas, I think you jump to conclusions.
I don't think you gave him much choice given how difficult it has been to drag information out of you. And don't forget you're the one who is asking for help; the others are volunteering their time to help you.
I have the /home folder on a different partition than the System one.
That can be helpful, but be very sure you haven't got any old home directories of anything like 'hts' or any other possibly relevant user on it. Otherwise your problems may just resurrect themselves after you reinstall.
However, doing it in this context, motivated by a problem in a program, does not make me excited. It may seem strange to you, but I like these situations because I experience a strange satisfaction when I manage to solve the problem. It's like a fight between me and the machine and I consider formatting a defeat... I'm like that.
But again, you're the one asking for help, and you may have to accept what is theoretically a less than optimal solution purely in order that others can help you manage the situation. Perfect is sometimes the enemy of good
- « Previous
- 1
- 2
- Next »