LinHES Forums
http://forums.linhes.org/

Backend not starting properly
http://forums.linhes.org/viewtopic.php?f=21&t=20642
Page 1 of 1

Author:  Girkers [ Sat Dec 05, 2009 6:55 am ]
Post subject:  Backend not starting properly

I have just upgraded to 0.22-svn through pacman and I can't get the backend to start. The backend log continues to repeat:
Code:
2009-12-05 22:53:10.842 mythbackend version: branches/release-0-22-fixes [22783] www.mythtv.org
2009-12-05 22:53:10.844 Using runtime prefix = /usr
2009-12-05 22:53:10.845 Using configuration directory = /home/mythtv/.mythtv
2009-12-05 22:53:10.847 Empty LocalHostName.
2009-12-05 22:53:10.851 Using localhost value of mythtv
2009-12-05 22:53:10.861 New DB connection, total: 1
2009-12-05 22:53:10.868 Connected to database 'mythconverg' at host: 192.168.254.100
2009-12-05 22:53:10.869 Closing DB connection named 'DBManager0'
2009-12-05 22:53:10.871 Connected to database 'mythconverg' at host: 192.168.254.100
2009-12-05 22:53:10.877 Current MythTV Schema Version (DBSchemaVer): 1244
2009-12-05 22:53:10.880 MythBackend: Starting up as the master server.
2009-12-05 22:53:10.885 New DB connection, total: 2
2009-12-05 22:53:10.888 Connected to database 'mythconverg' at host: 192.168.254.100
2009-12-05 22:53:10.891 mythbackend: MythBackend started as master server
2009-12-05 22:53:10.902 New DB connection, total: 3
2009-12-05 22:53:10.903 Connected to database 'mythconverg' at host: 192.168.254.100


On a side note, also VNC is running like a dog, that is when it works and I am on a GB LAN, but first things first.

Author:  nharris [ Mon Dec 07, 2009 7:32 am ]
Post subject: 

After I did a full reinstall of 6.01, I had an issue where mythbackend was crashing and sv would keep restarting it over and over again. This sounds like what you are seeing too.

I had mucked something up. I ended up tweaking something and fixed it. I can't remember if it was my /etc/my.cnf (MySQL) with my IP address, or something else. From a command line, I ran "mythbackend -v all" for lots of debug output and I believe it pointed me in the right direction. It might have been my HDHomeRun (I have it shared between two machines) and it was crashing when trying to tune a channel. Unfortunately, I can't remember exactly.

Author:  Girkers [ Mon Dec 07, 2009 3:22 pm ]
Post subject: 

nharris,

I believe you are right, I don't have time to investigate now but this is the end of the error from the command you suggested:
Code:
2009-12-08 07:19:32.803 Connected to database 'mythconverg' at host: 192.168.254.100
2009-12-08 07:19:32.804 MSqlQuery::exec() "DELETE FROM mythlog WHERE logid= '85318' ;"
2009-12-08 07:19:32.805 mythbackend: MythBackend started as master server
2009-12-08 07:19:32.805 MSqlQuery::exec("UPDATE recorded SET basename = CONCAT(chanid, '_', DATE_FORMAT(starttime, '%Y%m%d%H%i00'), '_', DATE_FORMAT(endtime, '%Y%m%d%H%i00'), '.nuv') WHERE basename = '';")
2009-12-08 07:19:32.806 MSqlQuery::exec("UPDATE channel SET callsign=chanid WHERE callsign IS NULL OR callsign='';")
2009-12-08 07:19:32.807 MSqlQuery::exec("SELECT MIN(chanid) FROM channel;")
2009-12-08 07:19:32.807 MSqlQuery::exec("UPDATE record SET chanid = 65001 WHERE chanid IS NULL;")
2009-12-08 07:19:32.808 MSqlQuery::exec() "SELECT record.chanid, channel.callsign FROM record LEFT JOIN channel ON record.chanid = channel.chanid WHERE record.station='';"
2009-12-08 07:19:32.808 MSqlQuery::exec("SELECT cardid, hostname FROM capturecard ORDER BY cardid")
2009-12-08 07:19:32.809 MSqlQuery::exec() "SELECT cardinputid, inputgroupid from inputgroup"
2009-12-08 07:19:32.809 MSqlQuery::exec() "SELECT cardinputid, cardid from cardinput"
2009-12-08 07:19:32.810 MSqlQuery::exec() "SELECT cardinputid, inputgroupid from inputgroup"
2009-12-08 07:19:32.810 MSqlQuery::exec() "SELECT cardinputid, cardid from cardinput"
2009-12-08 07:19:32.810 MSqlQuery::exec() "SELECT cardinputid, inputgroupid from inputgroup"
2009-12-08 07:19:32.811 MSqlQuery::exec() "SELECT cardinputid, cardid from cardinput"
2009-12-08 07:19:32.811 MSqlQuery::exec() "SELECT cardinputid, inputgroupid from inputgroup"
2009-12-08 07:19:32.811 MSqlQuery::exec() "SELECT cardinputid, cardid from cardinput"
2009-12-08 07:19:32.812 MSqlQuery::exec() "SELECT videodevice,      vbidevice,           audiodevice,            audioratelimit,   defaultinput,        cardtype,               skipbtaudio,      signal_timeout,      channel_timeout,        dvb_wait_for_seqstart,        dvb_on_demand,    dvb_tuning_delay,    dvb_eitscan,       firewire_speed,   firewire_model,      firewire_connection,        dbox2_port,       dbox2_host,          dbox2_httpport   FROM capturecard WHERE cardid = '7'"
2009-12-08 07:19:32.812 MSqlQuery::exec() "SELECT startchan FROM cardinput WHERE cardinput.cardid   = '7'    AND       inputname          = 'MPEG2TS'"
2009-12-08 07:19:32.812 TVRec(7): Start channel: 1.
2009-12-08 07:19:32.830 HDHRChan(12103C69-0): Opening HDHR channel
2009-12-08 07:19:33.018 HDHRSH(12103C69-0): Successfully connected to device
2009-12-08 07:19:33.018 HDHRSH: Creating new stream handler 12103C69-0 for 12103C69-0
2009-12-08 07:19:33.019 MSqlQuery::exec() "SELECT cardinputid,        inputname,   startchan,        tunechan,    externalcommand,        sourceid FROM cardinput WHERE cardid = '7'"
2009-12-08 07:19:33.019 New DB connection, total: 3
2009-12-08 07:19:33.020 Connected to database 'mythconverg' at host: 192.168.254.100
2009-12-08 07:19:33.020 MSqlQuery::exec() "SELECT data FROM settings WHERE value = 'ChannelOrdering' AND hostname = 'mythtv' ;"
2009-12-08 07:19:33.021 MSqlQuery::exec() "SELECT channum, callsign, channel.chanid,        atsc_major_chan, atsc_minor_chan,        name, icon, mplexid, visible FROM channel WHERE sourceid='65' "
2009-12-08 07:19:33.023 ChannelBase(7): Input #7: 'MPEG2TS' schan(1) sourceid(65) ccid(7)
2009-12-08 07:19:33.023 ChannelBase(7): Current Input #7: 'MPEG2TS'
2009-12-08 07:19:33.023 MSqlQuery::exec() "SELECT inputgroupid FROM inputgroup WHERE cardinputid = '7' ORDER BY inputgroupid, cardinputid, inputgroupname"
2009-12-08 07:19:33.023 HDHRChan(12103C69-0): SetChannelByString(1)
2009-12-08 07:19:33.023 HDHRChan(12103C69-0): Opening HDHR channel
2009-12-08 07:19:33.024 MSqlQuery::exec() "SELECT channel.chanid FROM channel, capturecard, cardinput WHERE channel.channum      = '1'           AND       channel.sourceid     = cardinput.sourceid AND       cardinput.inputname  = 'MPEG2TS'             AND       cardinput.cardid     = capturecard.cardid AND       capturecard.cardid   = '7'            AND       capturecard.hostname = 'mythtv'"
2009-12-08 07:19:33.024 MSqlQuery::exec() "SELECT inputgroupid FROM inputgroup WHERE cardinputid = '7' ORDER BY inputgroupid, cardinputid, inputgroupname"
2009-12-08 07:19:33.025 MSqlQuery::exec() "SELECT finetune, freqid, tvformat, freqtable,        commmethod, mplexid,        atsc_major_chan, atsc_minor_chan, serviceid FROM channel, videosource WHERE videosource.sourceid = channel.sourceid AND       channum              = '1'         AND       channel.sourceid     = '65'"
2009-12-08 07:19:33.025 MSqlQuery::exec() "SELECT transportid, networkid, frequency, modulation, sistandard FROM dtv_multiplex WHERE mplexid = '3'"
2009-12-08 07:19:33.025 HDHRChan(12103C69-0): Tuning to :219500000
2009-12-08 07:19:33.025 HDHRSH(12103C69-0): Tuning channel :219500000 (was none)
Segmentation fault


As you can see it generates a segmentation fault when it tries to tune to the HDHomeRun. I got somewhere to start, not sure where to next though???

Thanks for the push in the right direction though.

Author:  nharris [ Mon Dec 07, 2009 3:58 pm ]
Post subject: 

I removed my HDHR -0 tuner and this allowed everything to move forward. Could be a bug, but I have not had time to investigate further. Maybe others with HDHRs will come forward. You might want to delete your tuners and add them again. I noticed a bogus tuner is still reported in mythweb. So, I need to look into this. Probably database issues from the 0.21 to 0.22 conversion or such (since I started clean).

Author:  Girkers [ Tue Dec 08, 2009 2:12 am ]
Post subject: 

It is related to the HDHomeRun as if I delete the HDHR tuners the backend starts fine.

I did find this bug report: http://cvs.mythtv.org/trac/ticket/7624 that relates the exact problem that I was having. From looking at the version that we have I don't believe this patch is in it.

Something to be very wary of I think.

Author:  craigtv [ Sat Dec 12, 2009 6:38 am ]
Post subject: 

Girkers:

Did you get this resolved? You say the backend started when you dropped the HDHomeRun tuners, but were you able to add them back?

I'd like to go to 0.22, but cant' do it if it puts the HDHomeRun out of service.

Craig

Author:  Girkers [ Thu Dec 17, 2009 8:24 pm ]
Post subject: 

Not at the moment, as soon as I add them it won't start.

When I find time over Xmas I plan on doing a fresh install and an upgrade straight away, but this is a little ways off yet.

Sorry I can't be much help to you.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/