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

Some sort of issue with the backend not starting
http://forums.linhes.org/viewtopic.php?f=21&t=23748
Page 1 of 1

Author:  tophee [ Tue May 07, 2013 3:13 pm ]
Post subject:  Some sort of issue with the backend not starting

-sigh-

Well, it was all looking promising. I'd been able to get some tv recorded and some watched. Then, my LinHES box crashed. I've not had much time to try and trouble shoot this yet, but basically on saturday I was watching a recording. Myth started recording Dr Who and I went out for a drink with some friends.

When I sat down on sunday, myth wouldn't start. It boots ok, but it does not get past the point where it shows the message its waiting for the backend to start.

I've looked at its web page, and the backend isn't up. I have started the backend as it hasn't, but this doesn't help.

I think ip address has been changed by my router, so instead of being 192.168.0.20 on my internal network its something else. This seems be the cause.

The backend log shows this:

Quote:
2013-05-07T20:09:15.939068+01:00 lust mythbackend[3960]: C thread_unknown mythcommandlineparser.cpp:2534 (ConfigureLogging) mythbackend version: fixes/0.25 [v0.25.3-32-g79a2$
2013-05-07T20:09:15.939093+01:00 lust mythbackend[3960]: C thread_unknown mythcommandlineparser.cpp:2536 (ConfigureLogging) Qt version: compile: 4.8.2, runtime: 4.8.2
2013-05-07T20:09:15.939098+01:00 lust mythbackend[3960]: N thread_unknown mythcommandlineparser.cpp:2538 (ConfigureLogging) Enabled verbose msgs: general
2013-05-07T20:09:15.939101+01:00 lust mythbackend[3960]: N thread_unknown logging.cpp:1176 (logStart) Setting Log Level to LOG_INFO
2013-05-07T20:09:15.939104+01:00 lust mythbackend[3960]: I thread_unknown logging.cpp:229 (FileLogger) Added logging to the console
2013-05-07T20:09:15.939108+01:00 lust mythbackend[3960]: I thread_unknown logging.cpp:369 (SyslogLogger) Added syslogging to facility local6
2013-05-07T20:09:15.939111+01:00 lust mythbackend[3960]: I thread_unknown logging.cpp:425 (DatabaseLogger) Added database logging to table logging
2013-05-07T20:09:15.939114+01:00 lust mythbackend[3960]: N thread_unknown logging.cpp:1215 (logStart) Setting up SIGHUP handler
2013-05-07T20:09:15.939117+01:00 lust mythbackend[3960]: N thread_unknown mythdirs.cpp:51 (InitializeMythDirs) Using runtime prefix = /usr
2013-05-07T20:09:15.939120+01:00 lust mythbackend[3960]: N thread_unknown mythdirs.cpp:64 (InitializeMythDirs) Using configuration directory = /home/mythtv/.mythtv
2013-05-07T20:09:15.939123+01:00 lust mythbackend[3960]: I CoreContext mythcorecontext.cpp:227 (Init) Assumed character encoding: C
2013-05-07T20:09:15.939157+01:00 lust mythbackend[3960]: W CoreContext mythcorecontext.cpp:234 (Init) This application expects to be running a locale that specifies a UTF-8 $
2013-05-07T20:09:15.939161+01:00 lust mythbackend[3960]: I CoreContext mythcontext.cpp:481 (LoadDatabaseSettings) Using localhost value of mythconverg
2013-05-07T20:09:15.939164+01:00 lust mythbackend[3960]: I CoreContext mythcontext.cpp:608 (TestDBconnection) Testing network connectivity to 'mythtv'
2013-05-07T20:09:16.039302+01:00 lust mythbackend[3960]: I SystemManager system-unix.cpp:263 (run) Starting process manager
2013-05-07T20:09:16.039328+01:00 lust mythbackend[3960]: I SystemIOHandlerW system-unix.cpp:90 (run) Starting IO manager (write)
2013-05-07T20:09:16.039334+01:00 lust mythbackend[3960]: I SystemSignalManager system-unix.cpp:485 (run) Starting process signal handler
2013-05-07T20:09:16.039340+01:00 lust mythbackend[3960]: I SystemIOHandlerR system-unix.cpp:90 (run) Starting IO manager (read)
2013-05-07T20:09:16.149718+01:00 lust mythbackend[3960]: A CoreContext mythcontext.cpp:414 (FindDatabase) Cannot find (ping) database host mythtv on the network
2013-05-07T20:09:16.149737+01:00 lust mythbackend[3960]: E CoreContext mythmiscutil.cpp:1035 (getResponse) Read from stdin failed
2013-05-07T20:09:16.149741+01:00 lust mythbackend[3960]: C CoreContext main.cpp:108 (main) Failed to init MythContext
.

Anyhow, I tried to run Mythtv-setup and I entered the Database Configuration rather than mythtv-setup. I changed the address of the box to the local loopback 127.0.0.1 and I was able to get into myth-setup, but my tuner cards are missing and it thing mybox is now called mythconverg.

So, how do I get my box back to where it was?

Thanks

Author:  kmkittre [ Tue May 07, 2013 3:33 pm ]
Post subject:  Re: Some sort of issue with the backend not starting

Sounds like a database issue. Either you have some corruption, or for some reason the database server isn't running or you're not pointed at the proper database.

First of all, if you can get access to the box you should be able to easily know what your IP is. Just type ifconfig on the command line and observe the output.
Second, make sure you have space on your hard drive. In the past, whenever my backend has just stopped working for no apparent reason it was because I'd run out of drive space due to something like and overzealous log. To verify disk space, type df -h on the command line and verify that the Use % for your / mount isn't at 100%.

What version of Linhes are you running? (cat /etc/LinHES-release)

Author:  mattbatt [ Tue May 07, 2013 10:31 pm ]
Post subject:  Re: Some sort of issue with the backend not starting

Set up your network so that at minimum mythtv is assigned a static ip.

Author:  tophee [ Fri May 10, 2013 1:24 am ]
Post subject:  Re: Some sort of issue with the backend not starting

Hi,

So, I ssh'd into my mythbox and the first thing I see is this:

Code:
Couldn't connect to MythTV service for status
Exception AttributeError: "'MythBE' object has no attribute 'hostname'" in  ignored


So, cat /etc/LinHES-release gives me
Code:
LinHES 8.0 (Trip the bits)


I have now reserved an ip address on my router for my LinHES box: 192.168.0.10

That should now be there forever more :wink:

Space looks ok to me,

Code:
Filesystem      Size  Used Avail Use% Mounted on
rootfs          4.9G  2.2G  2.4G  48% /
dev             2.0G     0  2.0G   0% /dev
run             2.0G  516K  2.0G   1% /run
/dev/sda1       4.9G  2.2G  2.4G  48% /
shm             2.0G     0  2.0G   0% /dev/shm
/dev/sda7       449G  7.4G  442G   2% /data/storage/disk0
/dev/sda5       2.9G  203M  2.6G   8% /home
/dev/sda6       4.9G  220M  4.4G   5% /data/srv/mysql
/dev/sda7       449G  7.4G  442G   2% /data/storage/SAMSUNGHD501LJ_S0MUJ1KLB32497
/dev/sdb1       932G  240G  692G  26% /data/storage/SAMSUNGHD103UJ_S1PVJ1BQ604616


I think (though i'm no expert by any stretch) that the db needs a bit of a fix. But any other suggestions or things to do, short of reinstalling, though that is possible... I'm willing to try.

Many thanks

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