Project

General

Profile

crashed the config - need help to recover

Added by Sulla Sulla over 2 years ago

dear all!

I crashed my config: I wanted to add an IPTV-mux (rtsp-stream), and tvheadend (running on debian bullseye x64) now crashes.

What I did was:
I added a new "IPTV Network". This seemd to work normally.
I added a new "mux" giving the url of the rtsp stream. This caused TVheadend to somehow crash:

=============
sudo service tvheadend status
tvheadend.service - Tvheadend - a TV streaming server and DVR
Loaded: loaded (/lib/systemd/system/tvheadend.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: signal) since Fri 2022-05-20 19:29:34 CEST; 32s ago
Process: 2273 ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid $OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 2274 (code=killed, signal=SEGV)
CPU: 2.942s

May 20 19:29:34 freedom systemd1: tvheadend.service: Main process exited, code=killed, status=11/SEGV
May 20 19:29:34 freedom systemd1: tvheadend.service: Failed with result 'signal'.
May 20 19:29:34 freedom systemd1: tvheadend.service: Consumed 2.942s CPU time.

=============

when the linux-service restarts, the web-interface comes up briefly, but does not load any tv-adapters nor networks nor muxes, then crashes again.

is there a way to undo this, eg delete the mux from commandline?

thanx for support, Sulla


Replies (5)

RE: crashed the config - need help to recover - Added by Sulla Sulla over 2 years ago

this is from syslog:

May 20 19:49:23 freedom systemd1: tvheadend.service: Scheduled restart job, restart counter is at 21.
May 20 19:49:23 freedom systemd1: tvheadend.service: Consumed 2.964s CPU time.
May 20 19:49:23 freedom tvheadend5276: main: Log started
May 20 19:49:23 freedom tvheadend5276: http: Starting HTTP server 0.0.0.0:9981
May 20 19:49:23 freedom tvheadend5276: htsp: Starting HTSP server 0.0.0.0:9982
May 20 19:49:23 freedom tvheadend5276: config: loaded
May 20 19:49:23 freedom tvheadend5276: transcode: 'video' context type registered
May 20 19:49:23 freedom tvheadend5276: transcode: 'audio' context type registered
May 20 19:49:23 freedom tvheadend5276: transcode: '&TVHH264Decoder' decoder helper registered
May 20 19:49:23 freedom tvheadend5276: transcode: '&TVHTHEORADecoder' decoder helper registered
May 20 19:49:23 freedom tvheadend5276: transcode: '&TVHAACDecoder' decoder helper registered
May 20 19:49:23 freedom tvheadend5276: transcode: '&TVHVORBISDecoder' decoder helper registered
May 20 19:49:23 freedom tvheadend5276: transcode: '&TVHOPUSDecoder' decoder helper registered
May 20 19:49:23 freedom tvheadend5276: transcode: '&TVHMPEG2VIDEOEncoder' encoder helper registered
May 20 19:49:23 freedom tvheadend5276: transcode: '&TVHH264Encoder' encoder helper registered
May 20 19:49:23 freedom tvheadend5276: transcode: '&TVHHEVCEncoder' encoder helper registered
May 20 19:49:23 freedom tvheadend5276: transcode: '&TVHAACEncoder' encoder helper registered
May 20 19:49:23 freedom tvheadend5276: codec: 'mpeg2video' encoder registered
May 20 19:49:23 freedom tvheadend5276: codec: 'mp2' encoder registered
May 20 19:49:23 freedom tvheadend5276: codec: 'aac' encoder registered
May 20 19:49:23 freedom tvheadend5276: codec: 'vorbis' encoder registered
May 20 19:49:23 freedom tvheadend5276: codec: 'flac' encoder registered
May 20 19:49:23 freedom tvheadend5276: codec: 'libx264' encoder registered
May 20 19:49:23 freedom tvheadend5276: codec: 'libx265' encoder registered
May 20 19:49:23 freedom tvheadend5276: codec: 'libvpx' encoder registered
May 20 19:49:23 freedom tvheadend5276: codec: 'libvpx-vp9' encoder registered
May 20 19:49:23 freedom tvheadend5276: codec: 'libtheora' encoder registered
May 20 19:49:23 freedom tvheadend5276: codec: 'libvorbis' encoder registered
May 20 19:49:23 freedom tvheadend5276: codec: 'libopus' encoder registered
May 20 19:49:23 freedom tvheadend5276: codec: 'webtv-vp8' codec profile created
May 20 19:49:23 freedom tvheadend5276: codec: 'webtv-h264' codec profile created
May 20 19:49:23 freedom tvheadend5276: codec: 'webtv-vorbis' codec profile created
May 20 19:49:23 freedom tvheadend5276: codec: 'webtv-aac' codec profile created
May 20 19:49:23 freedom tvheadend5276: config: scanfile (re)initialization with path <none>
May 20 19:49:23 freedom tvheadend5276: cwc: localhost:15050: Attemping to connect to server
May 20 19:49:23 freedom tvheadend5276: descrambler: adding CAID 2600/FFFF as ConstCW interval 10000ms pc 20 ep default (BISS)
May 20 19:49:23 freedom tvheadend5276: descrambler: adding CAID 0E00/FFFF as MultiPID interval 1000ms pc 2 ep default (PowerVu)
May 20 19:49:23 freedom tvheadend5276: cwc: localhost:15050: Connected as user tvheadend to a Irdeto-card-00000000 [CAID:0650] with 1 provider
May 20 19:49:23 freedom tvheadend5276: iptv: Using 2 input thread(s)
May 20 19:49:23 freedom tvheadend5276: scanfile: DVB-S - loaded 1 regions with 116 networks
May 20 19:49:23 freedom tvheadend5276: scanfile: DVB-T - loaded 45 regions with 1130 networks
May 20 19:49:23 freedom tvheadend5276: scanfile: DVB-C - loaded 19 regions with 67 networks
May 20 19:49:23 freedom tvheadend5276: scanfile: ATSC-T - loaded 2 regions with 12 networks
May 20 19:49:23 freedom tvheadend5276: scanfile: ATSC-C - loaded 1 regions with 5 networks
May 20 19:49:23 freedom tvheadend5276: scanfile: ISDB-T - loaded 2 regions with 1297 networks
May 20 19:49:23 freedom tvheadend5276: linuxdvb: adapter added /dev/dvb/adapter3
May 20 19:49:23 freedom tvheadend5276: linuxdvb: adapter added /dev/dvb/adapter2
May 20 19:49:23 freedom tvheadend5276: linuxdvb: adapter added /dev/dvb/adapter1
May 20 19:49:23 freedom tvheadend5276: linuxdvb: adapter added /dev/dvb/adapter0
May 20 19:49:23 freedom tvheadend5276: dvr: Creating new configuration ''
May 20 19:49:23 freedom tvheadend5276: epggrab: module uk_freesat created
May 20 19:49:23 freedom tvheadend5276: epggrab: module uk_freesat_eit created
May 20 19:49:23 freedom tvheadend5276: epggrab: module uk_freeview created
May 20 19:49:23 freedom tvheadend5276: epggrab: module nz_freeview2 created
May 20 19:49:23 freedom tvheadend5276: epggrab: module nz_freeview1 created
May 20 19:49:23 freedom tvheadend5276: epggrab: module viasat_baltic created
May 20 19:49:23 freedom tvheadend5276: epggrab: module Bulsatcom_39E created
May 20 19:49:23 freedom tvheadend5276: epggrab: module uk_cable_virgin created
May 20 19:49:23 freedom tvheadend5276: epggrab: module eit created
May 20 19:49:23 freedom tvheadend5276: epggrab: module psip created
May 20 19:49:23 freedom tvheadend5276: epggrab: module opentv-ausat created
May 20 19:49:23 freedom tvheadend5276: epggrab: module opentv-skyit created
May 20 19:49:23 freedom tvheadend5276: epggrab: module opentv-skynz created
May 20 19:49:23 freedom tvheadend5276: epggrab: module opentv-skyuk created
May 20 19:49:23 freedom tvheadend5276: epggrab: module xmltv created
May 20 19:49:23 freedom tvheadend5276: spawn: Executing "/usr/bin/tv_find_grabbers"
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_ar created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_ch_search created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_combiner created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_eu_epgdata created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_eu_xmltvse created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_fi created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_fi_sv created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_fr created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_huro created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_is created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_it created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_na_dd created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_na_dtv created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_na_tvmedia created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_pt_vodafone created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_tr created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_uk_tvguide created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_zz_sdjson created
May 20 19:49:25 freedom tvheadend5276: epggrab: module /usr/bin/tv_grab_zz_sdjson_sqlite created
May 20 19:49:25 freedom tvheadend5276: tbl-eit: module eit - scraper disabled by config
May 20 19:49:25 freedom tvheadend5276: epgdb: gzip format detected, inflating (ratio 26.4% deflated size 1714600)
May 20 19:49:25 freedom tvheadend5276: epgdb: parsing 6485393 bytes
May 20 19:49:25 freedom tvheadend5276: epgdb: loaded v3
May 20 19:49:25 freedom tvheadend5276: epgdb: config 1
May 20 19:49:25 freedom tvheadend5276: epgdb: broadcasts 16909
May 20 19:49:25 freedom tvheadend5276: dvr: Purging obsolete autorec entries for current schedule
May 20 19:49:25 freedom tvheadend5276: START: HTS Tvheadend version 4.3-2010~g3b1d7a928 started, running as PID:5276 UID:107 GID:44, CWD:/ CNF:/home/hts/.hts/tvheadend
May 20 19:49:26 freedom tvheadend5276: htsp: Got connection from 192.168.8.10
May 20 19:49:26 freedom tvheadend5276: htsp: 192.168.8.10: Welcomed client software: Kodi Media Center (HTSPv34)
May 20 19:49:26 freedom tvheadend5276: htsp: 192.168.8.10 [ Kodi Media Center ]: Identified as user 'client'
May 20 19:49:26 freedom tvheadend5276: htsp: 192.168.8.10 [ client | Kodi Media Center ]: Privileges updated
May 20 19:49:26 freedom tvheadend5276: htsp: Got connection from 192.168.8.11
May 20 19:49:26 freedom tvheadend5276: htsp: 192.168.8.11: Welcomed client software: Kodi Media Center (HTSPv34)
May 20 19:49:26 freedom tvheadend5276: htsp: 192.168.8.11 [ Kodi Media Center ]: Identified as user 'client'
May 20 19:49:26 freedom tvheadend5276: htsp: 192.168.8.11 [ client | Kodi Media Center ]: Privileges updated
May 20 19:49:33 freedom tvheadend5276: mpegts: Schildis innen in CCTV - tuning on IPTV #1
May 20 19:49:33 freedom tvheadend5276: CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (4.3-2010~g3b1d7a928) [56155702e3bc78437ccf3db0f9b5b8597584d432] CWD: /
May 20 19:49:33 freedom tvheadend5276: CRASH: Fault address 0x8 (Address not mapped)
May 20 19:49:33 freedom tvheadend5276: CRASH: Loaded libraries: linux-vdso.so.1 /usr/lib/x86_64-linux-gnu/libdvbcsa.so.1 /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/libpcre.so.3 /usr/lib/x86_64-linux-gnu/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/libmvec.so.1 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libsystemd.so.0 /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/x86_64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/liblzma.so.5 /usr/lib/x86_64-linux-gnu/libzstd.so.1 /usr/lib/x86_64-linux-gnu/liblz4.so.1 /usr/lib/x86_64-linux-gnu/libgcrypt.so.20 /lib/x86_64-linux-gnu/libgpg-error.so.0 /lib/x86_64-linux-gnu/libnss_files.so.2 /usr/lib/x86_64-linux-gnu/libnss
May 20 19:49:33 freedom tvheadend5276: CRASH: Register dump [23]: 00007f6718003f700000000069383539000000000000000000007f6749a83d36000000000000000000005628121aeaa4000000000000000a00007f6749a83d3000005628121aeaa400007f6718003f2000007f6749a83d3000007f6718003f70000000000000000200007f6718003f70000000000000001300007f6749a83d00000056281131961b0000000000010202002b0000000000330000000000000004000000000000000efffffffe7ffbba130000000000000008
May 20 19:49:33 freedom tvheadend5276: CRASH: STACKTRACE
May 20 19:49:33 freedom tvheadend5276: CRASH: ??:0 0x56281134d1aa 0x562811128000
May 20 19:49:33 freedom tvheadend5276: CRASH: ??:0 0x7f674b62a140 0x7f674b616000
May 20 19:49:33 freedom tvheadend5276: CRASH: ??:0 0x56281131961b 0x562811128000
May 20 19:49:33 freedom tvheadend5276: CRASH: ??:0 0x56281136127c 0x562811128000
May 20 19:49:33 freedom tvheadend5276: CRASH: ??:0 0x562811363838 0x562811128000
May 20 19:49:33 freedom tvheadend5276: CRASH: ??:0 0x562811422bcb 0x562811128000
May 20 19:49:33 freedom tvheadend5276: CRASH: ??:0 0x56281141e0b8 0x562811128000
May 20 19:49:33 freedom tvheadend5276: CRASH: ??:0 0x5628113dbfb2 0x562811128000
May 20 19:49:33 freedom tvheadend5276: CRASH: ??:0 0x5628113dd900 0x562811128000
May 20 19:49:33 freedom tvheadend5276: CRASH: ??:0 0x5628113353fb 0x562811128000
May 20 19:49:34 freedom tvheadend5276: CRASH: ??:0 0x562811335f3a 0x562811128000
May 20 19:49:34 freedom tvheadend5276: CRASH: ??:0 0x5628113317ea 0x562811128000
May 20 19:49:34 freedom tvheadend5276: CRASH: ??:0 0x56281133397a 0x562811128000
May 20 19:49:34 freedom tvheadend5276: CRASH: ??:0 0x562811333d62 0x562811128000
May 20 19:49:34 freedom tvheadend5276: CRASH: ??:0 0x5628113dbd5a 0x562811128000
May 20 19:49:34 freedom tvheadend5276: CRASH: ??:0 0x5628113eba51 0x562811128000
May 20 19:49:34 freedom tvheadend5276: CRASH: ??:0 0x5628113ebbe3 0x562811128000
May 20 19:49:34 freedom tvheadend5276: CRASH: ??:0 0x5628112febe9 0x562811128000
May 20 19:49:34 freedom tvheadend5276: CRASH: ??:0 0x56281130c44a 0x562811128000
May 20 19:49:34 freedom kernel: [ 1581.935655] tvh:mtimer5282: segfault at 8 ip 000056281131961b sp 00007f6749a83d00 error 4 in tvheadend[5628112cb000+ee0000]
May 20 19:49:34 freedom systemd1: tvheadend.service: Main process exited, code=killed, status=11/SEGV
May 20 19:49:34 freedom systemd1: tvheadend.service: Failed with result 'signal'.
May 20 19:49:34 freedom systemd1: tvheadend.service: Consumed 2.992s CPU time.

RE: crashed the config - need help to recover - Added by Dave Pickles over 2 years ago

I believe the iptv configuration is in /home/hts/.hts/tvheadend/input/iptv/networks. If you move the contents of that directory somewhere else then maybe you will be able to restart Tvheadend.

RE: crashed the config - need help to recover - Added by Sulla Sulla over 2 years ago

great, that worked! Thanx a lot!

I'm just reading an older thread about how to recover from the automatic backups in ~/.hts/tvheadend/backups but my last backup would have been half a year old...

RE: crashed the config - need help to recover - Added by Sulla Sulla over 2 years ago

note to myself:
always perform a backup before trying anything new
always perform a backup before trying anything new
always perform a backup before trying anything new

RE: crashed the config - need help to recover - Added by Dave Pickles over 2 years ago

Don't forget to test your backup!

    (1-5/5)