Bug #1887
tvheadend starts without starting any of its internal services
0%
Description
Looks as if tvheadend will fail in this beta and the newest development branch with the same problem
This test was done on the beta but can be reproduced on the devlopement version as well
Even with debuging enabled the only output you see in logs or on the console is below
tvheadend7601: charset: 119 entries loaded
It does not open any ports, so no access to the web interface.
I removed the old home for hts and reconfigured the package. This leaves you with only the user account configred for the tvheadend. I rebooted the system that this was running on at least 3 times. I have had this same issue occur on the devel version (3.9). I am running the same version of Ubuntu on each.
This has happened a number of times while working with both versions.
I have attached a strace of the startup.
Please let me know what other debugging I can do to give more information on what it is doing.
Files
History
Updated by Philip Hempel almost 11 years ago
Here is my best attempt at running in gdb
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Dec 26 11:06:18.445 [ DEBUG] config: no configuration, loading defaults
[New Thread 0x7ffff1c9e700 (LWP 22449)]
[New Thread 0x7ffff149d700 (LWP 22450)]
Dec 26 11:06:18.490 [ INFO] charset: 119 entries loaded
I will be doing a debug on a working system shortly and report.
Updated by Philip Hempel almost 11 years ago
So it looks like something is wrong in privilege separation. As from what you would see in the strace it is reading all of nss libraries, but gets stuck at that point.
When running as user hts in debug I can get the application to start. Not running gdb it complains with "Dec 26 11:23:56.602 [ ALERT] START: setgid() failed, do you have permission?"
GDB allow connections and load all settings.
Updated by Adam Sutton almost 11 years ago
This might be something specific to saucy, it certainly works fine on all previous versions of Ubuntu.
Adam
Updated by Philip Hempel almost 11 years ago
And it is not persistant. I was able to do a reboot again and the system is working fine. At first when this issue begins you will find the application running but will not be able to start new recordings or connect to the dvb devices due to rights problems. Once you restart the application it will fail. I am not sure why this would occur, I do know that the kernel versions are quite different from the last releases of Ubuntu.
Is tvheadend versions for saucy compiled on a Suacy system or just built for it from a previous version of Ubuntu? If it has not been build on Saucy I will try a package rebuild and see what happens, just to test. I am not sure what causes this. But this has happend a number of times on my production machine as well as the devleopment system, and after a number of reboots everything begins to work fine.
Updated by Adam Sutton almost 11 years ago
All builds are in relevant pbuilder-dist environments. No idea what might be happening, never seen anything like it on any of my instances.
Adam
Updated by Adam Sutton over 10 years ago
- Status changed from New to Rejected
Never seen this myself, not much evidence to go on and some stuff has been reworked. If it gets re-reported I'll investigate.