Project

General

Profile

Bug #2935

tvheadend main process ended, respawning - after restarting the server

Added by Chris K over 9 years ago. Updated over 9 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
Crashes
Target version:
-
Start date:
2015-06-09
Due date:
% Done:

0%

Estimated time:
Found in version:
3.9.2827
Affected Versions:

Description

Hi,

tvheadend was running pretty fine for the last months.
Today I have restarted the server, but tvheadend won't start.

This is what I saw at first in the syslog:

Jun 9 13:14:12 htpc tvheadend12956: main: Log started
Jun 9 13:14:12 htpc tvheadend12956: config: loaded
Jun 9 13:14:12 htpc tvheadend12956: scanfile: DVB-T - loaded 43 regions with 729 networks
Jun 9 13:14:12 htpc tvheadend12956: scanfile: DVB-S - loaded 1 regions with 92 networks
Jun 9 13:14:12 htpc tvheadend12956: scanfile: DVB-C - loaded 16 regions with 51 networks
Jun 9 13:14:12 htpc tvheadend12956: scanfile: ATSC - loaded 2 regions with 14 networks
Jun 9 13:14:12 htpc tvheadend12956: CRASH: Signal: 6 in PRG: tvheadend (3.9.2827~g477feab~trusty) [783cf0e6cacfd84589caaa013dc3f9d51d5cd2c6] CWD: /
Jun 9 13:14:12 htpc tvheadend12956: CRASH: Fault address 0x6c0000329c (N/A)
Jun 9 13:14:12 htpc tvheadend12956: CRASH: Loaded libraries: /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/liburiparser.so.1 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libnss_compat.so.2 /lib/x86_64-linux-gnu/libnsl.so.1 /lib/x86_64-linux-gnu/libnss_nis.so.2 /lib/x86_64-linux-gnu/libnss_files.so.2
Jun 9 13:14:12 htpc tvheadend12956: CRASH: Register dump [23]: 00007f76a5448c40386439303631366100000000000000080000000000000206000000000000000000000000000000000000000001a007c00000000000000000000000000000329c000000000000329c00000000017ca1c00000000001e02d4000000000000000060000000000000000ffffffffffffffff00007fffe706aa9800007f76a34b8cc90000000000000206000000000000003300000000000000000000000000000000fffffffe7ffbfa170000000000000000
Jun 9 13:14:12 htpc tvheadend12956: CRASH: STACKTRACE
Jun 9 13:14:12 htpc tvheadend12956: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/trap.c:148 0x43d9f9
Jun 9 13:14:12 htpc tvheadend12956: CRASH: ??:0 0x7f76a3d65340
Jun 9 13:14:12 htpc tvheadend12956: CRASH: gsignal+0x39 (/lib/x86_64-linux-gnu/libc.so.6)
Jun 9 13:14:12 htpc tvheadend12956: CRASH: abort+0x148 (/lib/x86_64-linux-gnu/libc.so.6)
Jun 9 13:14:12 htpc tvheadend12956: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/idnode.c:155 0x40f531
Jun 9 13:14:12 htpc tvheadend12956: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/service.c:905 0x42fa94
Jun 9 13:14:12 htpc tvheadend12956: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/input/mpegts/mpegts_service.c:597 0x4921c7
Jun 9 13:14:12 htpc tvheadend12956: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/input/mpegts/mpegts_mux_dvb.c:796 0x4a0628
Jun 9 13:14:12 htpc tvheadend12956: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/input/mpegts/mpegts_network_dvb.c:632 0x49f322
Jun 9 13:14:12 htpc tvheadend12956: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/input/mpegts/mpegts_network_dvb.c:682 0x49f49f
Jun 9 13:14:12 htpc tvheadend12956: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/input/mpegts.c:41 0x485bc5
Jun 9 13:14:12 htpc tvheadend12956: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/main.c:997 0x40868e
Jun 9 13:14:12 htpc tvheadend12956: CRASH: __libc_start_main+0xf5 (/lib/x86_64-linux-gnu/libc.so.6)

After searching for a solution I found out that I should install the debug version.
I've done that and restarted the server again. Now the syslog looks like this:

Jun 9 13:11:01 htpc tvheadend5385: main: Log started
Jun 9 13:11:01 htpc tvheadend5385: config: loaded
Jun 9 13:11:01 htpc tvheadend5385: scanfile: DVB-T - loaded 43 regions with 729 networks
Jun 9 13:11:01 htpc tvheadend5385: scanfile: DVB-S - loaded 1 regions with 92 networks
Jun 9 13:11:01 htpc tvheadend5385: scanfile: DVB-C - loaded 16 regions with 51 networks
Jun 9 13:11:01 htpc tvheadend5385: scanfile: ATSC - loaded 2 regions with 14 networks
Jun 9 13:11:01 htpc tvheadend5385: CRASH: Signal: 6 in PRG: tvheadend (3.9.2827~g477feab~trusty) [783cf0e6cacfd84589caaa013dc3f9d51d5cd2c6] CWD: /
Jun 9 13:11:01 htpc tvheadend5385: CRASH: Fault address 0x6c00001509 (N/A)
Jun 9 13:11:01 htpc tvheadend5385: CRASH: Loaded libraries: /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/liburiparser.so.1 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libm.so.6 /lib/x86_64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/libc.so.6 /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libnss_compat.so.2 /lib/x86_64-linux-gnu/libnsl.so.1 /lib/x86_64-linux-gnu/libnss_nis.so.2 /lib/x86_64-linux-gnu/libnss_files.so.2
Jun 9 13:11:01 htpc tvheadend5385: CRASH: Register dump [23]: 00007f5959cf3c40386439303631366100000000000000080000000000000206000000000000000000000000000000000000000001474780000000000000000000000000000015090000000000001509000000000123e2100000000001876d0000000000000000060000000000000000ffffffffffffffff00007fff23b909d800007f5957d63cc90000000000000206000000000000003300000000000000000000000000000000fffffffe7ffbfa170000000000000000
Jun 9 13:11:01 htpc tvheadend5385: CRASH: STACKTRACE
Jun 9 13:11:01 htpc tvheadend5385: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/trap.c:148 0x43d9f9
Jun 9 13:11:01 htpc tvheadend5385: CRASH: ??:0 0x7f5958610340
Jun 9 13:11:01 htpc tvheadend5385: CRASH: gsignal+0x39 (/lib/x86_64-linux-gnu/libc.so.6)
Jun 9 13:11:01 htpc tvheadend5385: CRASH: abort+0x148 (/lib/x86_64-linux-gnu/libc.so.6)
Jun 9 13:11:01 htpc tvheadend5385: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/idnode.c:155 0x40f531
Jun 9 13:11:01 htpc tvheadend5385: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/service.c:905 0x42fa94
Jun 9 13:11:01 htpc tvheadend5385: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/input/mpegts/mpegts_service.c:597 0x4921c7
Jun 9 13:11:02 htpc tvheadend5385: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/input/mpegts/mpegts_mux_dvb.c:796 0x4a0628
Jun 9 13:11:02 htpc tvheadend5385: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/input/mpegts/mpegts_network_dvb.c:632 0x49f322
Jun 9 13:11:02 htpc tvheadend5385: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/input/mpegts/mpegts_network_dvb.c:682 0x49f49f
Jun 9 13:11:02 htpc tvheadend5385: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/input/mpegts.c:41 0x485bc5
Jun 9 13:11:02 htpc tvheadend5385: CRASH: /tmp/buildd/tvheadend-3.9.2827~g477feab~trusty/src/main.c:997 0x40868e
Jun 9 13:11:02 htpc tvheadend5385: CRASH: __libc_start_main+0xf5 (/lib/x86_64-linux-gnu/libc.so.6)
Jun 9 13:11:02 htpc kernel: [ 748.741711] init: tvheadend main process (5385) killed by ABRT signal
Jun 9 13:11:02 htpc kernel: [ 748.741721] init: tvheadend main process ended, respawning

What can I check to find out what's happening here

History

#1

Updated by Jaroslav Kysela over 9 years ago

Run tvheadend from command-line using the user and directory used by the tvheadend service. You should see 'Id node collision' message . Look for two files with these names and delete one.

#2

Updated by Chris K over 9 years ago

Thanks for the reply Jaroslav!

I'n not an Ubuntu expert, but I found out that "hts" is the user who should run tvheadend and tried the following:

chris@htpc:~$ sudo -i -u hts
hts@htpc:~$ service tvheadend start
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.34" (uid=108 pid=2607 comm="start tvheadend ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

Does that help?

#3

Updated by Jaroslav Kysela over 9 years ago

Nope. Just type 'tvheadend' after sudo hts to run tvheadend directly.

#4

Updated by Chris K over 9 years ago

That worked much better now and the problem is solved.
Thanks a lot Jaroslav!

The problem was that there been two dvb/networks/.../muxes/.../services with the same name.
I don't know how this could happen, but at least now I know how to analyse such a problem.

Thanks again!

#5

Updated by Chris K over 9 years ago

PS: Can I close this issue here?
I can't find a link for that and "Edit" leads me to this comment box.

#6

Updated by Jaroslav Kysela over 9 years ago

  • Status changed from New to Invalid

Closing, but upgrade. Your version contains many bugs which were resolved.

#7

Updated by Chris K over 9 years ago

Jaroslav Kysela wrote:

Closing, but upgrade. Your version contains many bugs which were resolved.

Thanks for closing it and the hint about the version!
I've checked for an update, but I don't get any update.

I've added the repository for 3.4 and for 4.x as described here: https://tvheadend.org/projects/tvheadend/wiki/AptRepository

sudo nano apt-get update
sudo nano apt-get upgrade

Tells me that there is nothing to update.
I know that this is not a tvheadend issue and the problem is my missing Ubuntu knowledge, but maybe you could help me?
Thanks in advance!

#8

Updated by Chris K over 9 years ago

Ok, I've re-installed tvheadend in version 4.0.4.
I think this version should be up to date.

Sorry for the email-notifications Jaroslav! ;)

Also available in: Atom PDF