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

frontend crashes! I can't see anything in logs.
http://forums.linhes.org/viewtopic.php?f=17&t=6958
Page 1 of 2

Author:  zetoune [ Wed Nov 16, 2005 6:42 pm ]
Post subject:  frontend crashes! I can't see anything in logs.

I have just installed MythTV

I looked at syslog and mythbackend.log and I can't see why it crashes.

It can run approximatly for several hours before crashing.
Actually I started the box yesterday night to let it run all the night and this morning , it was up and running. I went to work (8:30 am) and came back today (5:30), and the frontend was not there anymore.
It's like it has exited.

I'm a newbie and I don't speak english fluently, but I tried to do my best and look at the forums to see similar problems. The only thing I saw that could be a problem was my chipset. (KT400). But the backend is still running. I can log in with ssh, use mythWeb. I also started a recording tonight through mythWeb and try to watch it in mythstream. I can open it in Window Media player. I have sound and video.

this is my config: (frontend and backend are on the same machine).
KnoppMyth R5A22
Ahanix D.Vine 4
gigabyte GA-7VAXP
Win TV 150
Maxtor DM 10 250 GB
1 GB RAM Elixir (I' ve tested it for more than 8 hours in memtest with success, no error).
MSI Nvidia FX5200 128 MB
Pioneer DVR-110D

Any help will be appreciated!!

Author:  nigelpearson [ Wed Nov 16, 2005 6:44 pm ]
Post subject: 

You can often view frontend errors by looking in the file ~mythtv/.xsession-errrors

Author:  zetoune [ Wed Nov 16, 2005 6:45 pm ]
Post subject: 

I'm gonna look right now !

Author:  zetoune [ Wed Nov 16, 2005 6:52 pm ]
Post subject: 

Nothing after 10:30 am this morning.

Code:
stream: start_time: -9223372036854.775 duration: -9223372036854.775 bitrate=638$
2005-11-16 10:30:13.820 AVFD: Opened codec 0x82e34e0, id(MPEG2VIDEO) type(Video)
2005-11-16 10:30:13.820 AVFD: Opened codec 0x82e2040, id(MP2) type(Audio)
2005-11-16 10:30:13.821 Opening audio device '/dev/dsp'.
2005-11-16 10:30:13.822 Opening OSS audio device '/dev/dsp'.
2005-11-16 10:30:14.026 SyncPositionMap liveTV, from Encoder: 5 entries
2005-11-16 10:30:14.274 Changing from None to WatchingLiveTV
2005-11-16 10:30:14.284 Realtime priority would require SUID as root.
2005-11-16 10:30:14.431 SyncPositionMap liveTV, from Encoder: 6 entries
2005-11-16 10:30:14.582 Video timing method: USleep with busy wait

Author:  mjl [ Wed Nov 16, 2005 9:36 pm ]
Post subject: 

Hi,
Open an xterm and do df -h Note the cache size then do mythtv-setup and in general page ~2, set the cache 1 gig less than the cache value you got with df -h and try again. Also you may have to clean out some logs as when the error occurs the system can generate some large logs.

Mike

Author:  zetoune [ Wed Nov 16, 2005 9:43 pm ]
Post subject: 

mjl,
the cache size I got from the command you gave me was 14 GB.
the cache size in general page 2 was 15 GB.

I changed it at 13 GB as you advice me. I hope it would help.
I will let it run all the night and tomorrow. I will see tomorrow when I'll come back from job.

thx

Author:  tjc [ Wed Nov 16, 2005 10:08 pm ]
Post subject: 

Looks like the original of this got lost to an off topic post that Cecil cleaned up. Here is a little script to verify this:
Code:
root@black2:~# cat checkSize.sh
fatal () { echo "$*" ; exit 1 ; }
DB_BufferSize=$(mysql mythconverg -Bse \
"select data from settings where value = 'BufferSize'")
Real_BufferSize=$(df -B 1G /cache | awk '/\/cache/ {print $2}')
[ -z "$DB_BufferSize" ] && fatal "Could not read BufferSize from DB"
[ -z "$Real_BufferSize" ] && fatal "Could not get cache partition size"
echo "Size of /cache partiton is $Real_BufferSize Gb"
echo "BufferSize setting in DB is $DB_BufferSize Gb"
[ $DB_BufferSize -ge $Real_BufferSize ] &&
fatal "The BufferSize setting in the DB is too big for your partition!"
echo "That sounds pretty sane to me!"
exit 0
root@black2:~# ./checkSize.sh
Size of /cache partiton is 16 Gb
BufferSize setting in DB is 14 Gb
That sounds pretty sane to me!

Author:  khrusher [ Thu Nov 17, 2005 8:11 am ]
Post subject: 

you can try running mythfrontend from an xterm window...often errors will be written to stdout and/or stderr (i.e. to the screen)

Author:  zetoune [ Thu Nov 17, 2005 8:59 am ]
Post subject: 

khrusher : I'm newbie. So just to be sure. I have to exit mythfrontend and start it from xterm? that's it? For now, I've changed to cache size. I'm waiting if it can fix the problem.

Author:  zetoune [ Thu Nov 17, 2005 9:12 am ]
Post subject: 

tjc : I run the script you gave me. And I got.

Code:
Size of /cache partition is 16 Gb
BufferSize setting in DB is 13 Gb
That sounds pretty sane to me!


I'm so stupid, yesterday I looked at the "available value", so the problem doesn't come from the cache size. It was set to 15 GB and I have a 16 GB cache partition.(Not 14 GB).

Author:  mjl [ Thu Nov 17, 2005 9:37 pm ]
Post subject: 

Hi,

For grins, leave the mythtv-setup setting at 13g and try it. If it works try the 14g and then the 15g.

Mike

Author:  zetoune [ Thu Nov 17, 2005 9:57 pm ]
Post subject: 

For now, it runs for 24 hours now without any crash.
I will let it run for the next 24 hours just to be sure.
I cross my finger.


something I'm wondering: with command dh -f, it's says 16 GB for the cache partition, with dh only, it says: 15750200

but 15750200 / 1024 / 1024 = 15 GB. Am I right?

Author:  tjc [ Thu Nov 17, 2005 10:34 pm ]
Post subject: 

The difference is between decimal and real k/m/g.
    1000 vs. 1024 (2**10)
    1000000 vs. 1048576 (2**20)
    1000000000 vs. 1073741824 (2**30)

The script is very careful to use the same units.

Author:  zetoune [ Thu Nov 17, 2005 10:50 pm ]
Post subject: 

So I'm wrong when I divide by 1024. I have to divide by 1000.

I always thought:
1024k = 1M
1024M = 1G.

Author:  zetoune [ Fri Nov 18, 2005 10:01 am ]
Post subject: 

frontend didn't crash but watching TV crashed.
now I'm trying frontend from xterm.
I'm gonna see.

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