View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 19 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Mar 01, 2009 1:31 am 
Offline
Joined: Sat Apr 01, 2006 10:06 pm
Posts: 31
Location: Vancouver, WA
I am working my way through an R6 install/upgrade

Currently it is not making it all the way through the start up scripts. And I can't tell where it is failing, everything on the start up screen says [DONE] after it. The last thing written to the screen is:

Code:
- runit: leavel stage: /etc/runit/1
- runit: enter stage: /etc/runit/2
: : Restoring ALSA Levels [DONE]
20 Feb 21:58:39 ntpdate[2983]: adjust time server 38.113.114.184 offset 0.020619 sec


mysqld, mythbackend, mythfrontend have not started yet

here is the last bit of dmesg:
Code:
tuner-simple 3-0061: attaching existing instance
tuner-simple 3-0061: type set to 64 (LG TDVS-H06xF)
DVB: registering adapter 1 frontend 0 (LG Electronics LGDT3303 VSB/QAM Frontend)...
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 8 ports detected
input: PS/2 Generic Mouse as /class/input/input5
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.14.0-ioctl (2008-04-23) initialised: dm-devel@redhat.com
ieee1394: Host added: ID:BUS[0-00:1023]  GUID[00016c20000f1cb5]
EXT3 FS on sda1, internal journal
SGI XFS with ACLs, security attributes, realtime, large block numbers, no debug enabled
SGI XFS Quota Management subsystem
Filesystem "dm-0": Disabling barriers, trial barrier write failed
XFS mounting filesystem dm-0
Ending clean XFS mount for filesystem: dm-0
Adding 1959920k swap on /dev/sda2.  Priority:-1 extents:1 across:1959920k
fbcondecor: console 0 using theme 'linhes'
fbcondecor: switched decor state to 'on' on console 0
cx88/2: cx2388x MPEG-TS Driver Manager version 0.0.6 loaded
cx88/2: cx2388x dvb driver version 0.0.6 loaded
cx88/2: registering cx8802 driver, type: dvb access: shared
warning: `avahi-daemon' uses 32-bit capabilities (legacy support in use)



In my investigation I think I've stumbled upon a possible clue:

Could someone show me their /etc/runit/2 from a working system?

Here is mine:
Code:
#!/bin/sh

PATH=/bin:/sbin:/usr/bin:/usr/sbin

#runsvchdir default >/dev/null

exec env - PATH=$PATH \
runsvdir -P /var/service 'log: ..........................................................................................
.........................................................................................................................
.........................................................................................................................
...............................................................'



System Specs:
DVICO Fusion 5 lite x2
HD-HomeRun
Athlon 64 X2 4200
2 GB RAM
Motherboard - Foxconn 6150K8MA-8EKRS Micro ATX AMD
Leadtek nVidia 6200TC 256 PCIe
WD 500GB SATA x2

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 12:20 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
That matches mine and is where it kicks off starting the services which are symlinked in the /var/service directory. Doing an ls -l in that directory should show a bunch of symlinks to scripts in the /etc/sv directory.

The whole point of using runit is simplicity, but the first time you see the start up and shut down scripts, they look disconcertingly lean. ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 1:10 pm 
Offline
Joined: Sat Apr 01, 2006 10:06 pm
Posts: 31
Location: Vancouver, WA
So where do I start to debug which service is not starting? I'd like to get it to continue forward, but don't know where it is getting hung up. What order do the services follow in the /var/services dir?

Thanks,

Cullen


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 1:39 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
No particular order unfortunately. Without looking at the runit code I'd suspect it goes through them in whatever order they're listed in the directory. To see this try:
Code:
find /var/service -ls

Ordering requirements are dealt with by the scripts themselves starting anything that they depend on. For example the script for netfs starts portmap and nfslock, which is harmless if they're already running, but ensures that the required services are available.
Code:
#!/bin/sh
exec 2>&1
sv start portmap
sv start nfslock
/etc/rc.d/netfs start

What you could probably do is go through and poke some debugging output into the scripts you suspect.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 1:58 pm 
Offline
Joined: Sat Apr 01, 2006 10:06 pm
Posts: 31
Location: Vancouver, WA
Can you tell me the contents of your /var/services dir? Mine seems to be lacking when compared to /etc/sv/. For instance there is no mention of the myth services. Should I be concerned that X is not mentioned?

Code:
[cullenp@MythTVboxen service]$ ls -la
total 8
drwxr-xr-x  2 root root 4096 2009-02-28 21:15 .
drwxr-xr-x 14 root root 4096 2009-02-20 18:37 ..
lrwxrwxrwx  1 root root   13 2009-02-28 19:19 acpid -> /etc/sv/acpid
lrwxrwxrwx  1 root root   18 2009-02-28 19:19 alsa-utils -> /etc/sv/alsa-utils
lrwxrwxrwx  1 root root   13 2009-02-28 19:19 avahi -> /etc/sv/avahi
lrwxrwxrwx  1 root root   12 2009-02-28 19:19 cron -> /etc/sv/cron
lrwxrwxrwx  1 root root   12 2009-02-28 19:19 dbus -> /etc/sv/dbus
lrwxrwxrwx  1 root root   16 2009-02-28 19:20 lighttpd -> /etc/sv/lighttpd
lrwxrwxrwx  1 root root   12 2009-02-28 19:19 ntpd -> /etc/sv/ntpd
lrwxrwxrwx  1 root root   15 2009-02-28 19:19 portmap -> /etc/sv/portmap
lrwxrwxrwx  1 root root   12 2009-02-28 19:19 sshd -> /etc/sv/sshd
lrwxrwxrwx  1 root root   17 2009-02-28 19:19 syslog-ng -> /etc/sv/syslog-ng
lrwxrwxrwx  1 root root   13 2009-02-28 19:19 tatir -> /etc/sv/tatir
lrwxrwxrwx  1 root root   12 2009-02-28 19:19 tty2 -> /etc/sv/tty2
lrwxrwxrwx  1 root root   12 2009-02-28 19:19 tty3 -> /etc/sv/tty3



Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 2:15 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
That is why they're separate. The /etc/sv directory is the set of "all" known service scripts, and /var/service is the active ones. Thus the contents of the second will generally be a subset of the first.

On the other hand yours definitely looks a bit under populated, possibly because the setup hasn't been completed. The good news for now is that it gives you fewer places to look for the hang.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 2:19 pm 
Offline
Joined: Sat Apr 01, 2006 10:06 pm
Posts: 31
Location: Vancouver, WA
Thanks i understand that the dirs won't be identical.

Is there a way to run the "setup" again? I've installed several times with the same result. This may be due to my /myth dir being an LVM that I have to add after the first reboot.

Or should I just add the services? (if you would sent me a ls-la of your /var/services)


Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 2:31 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
I deliberately didn't include them because that would just take you down the wrong path. Trust me on this, the list from my machine wouldn't really help you here. It's hanging because there's a problem with what is already there, adding more will just muddy the water.

First let me look at the details of your system... Given that you're using an nvidia card I suspect that something has gone wrong with the driver install. The most likely cause is some confusion about the motherboard's built-in video and the PCIe card. Check to see what nvidia driver package (if any) has been installed. The next step is going to be your xorg.conf since if X doesn't come up the config UI can't run.

OBTW - The other suspect I'd look at is the ALSA stuff, but only after you eliminate the X server. Don't forget to check /var/log/Xorg.0.log for any errors.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 4:49 pm 
Offline
Joined: Sat Apr 01, 2006 10:06 pm
Posts: 31
Location: Vancouver, WA
This was merely the tip of the iceberg, as you prob. suspected.

I found a lot of help in /var/log/mythvantage_install.log

Lots of . . .
from knoppmyth.net : Transient resolver failure

must have issues with when the network starts

I'm installing the packages now that the network is up. I'll try rebooting and see if the script gets further.

Thanks,

Cullen


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 6:26 pm 
Offline
Joined: Sat Apr 01, 2006 10:06 pm
Posts: 31
Location: Vancouver, WA
I appear to be missing the following file. . .

will you send me the contents of:

/usr/MythVantage/bin/initial_db_run

Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 01, 2009 7:31 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Code:
#!/bin/bash
. /etc/profile
. /etc/systemconfig
rundb=1

if [ -f /var/log/mfdb.first.log ]
then
    #check exit code
    rundb=`tail -1 /var/log/mfdb.first.log`
fi

if [ ! $rundb = 0 ]
then
    echo "Running 1st mythfilldatabase"
    echo "Do not remove this file.  This file is used to determine if mythfilldatabase needs to run before starting mythbackend" >  /var/log/mfdb.first.log


    /usr/bin/mythfilldatabase 2>&1 >> /var/log/mfdb.first.log

    echo $? >> /var/log/mfdb.first.log
fi


Top
 Profile  
 
PostPosted: Sun Mar 29, 2009 5:06 pm 
Offline
Joined: Sun Feb 13, 2005 3:34 pm
Posts: 65
cullenp wrote:
I am working my way through an R6 install/upgrade

Currently it is not making it all the way through the start up scripts. And I can't tell where it is failing, everything on the start up screen says [DONE] after it. The last thing written to the screen is:

Code:
- runit: leavel stage: /etc/runit/1
- runit: enter stage: /etc/runit/2
: : Restoring ALSA Levels [DONE]
20 Feb 21:58:39 ntpdate[2983]: adjust time server 38.113.114.184 offset 0.020619 sec


Thanks


As a second data point - i hit this as well.

Installing on
-ASUS P5N7A-VM with integrated 9300
- two IDE hard drives + SATA dvd.
- MCE remote.
- External USB sound unit.
- 2x DVICO tuner cards (I *think* they are DVICO HDTV 5 Lite cards... need to double check).

Doing an upgrade from R5.5. Everything *seemed* to go fine. Did the install, and I got into Myth. Saw some weirdness (i'll skip that since it's not strictly installation). I didn't get to checking liveTV so i can't confirm the cards/drivers were functional.

Started to poke in the new linHES menus:

I went into the config sound menu. Then it seemed to drop back from X into a text terminal. Printed out not being able to find alsa.sources and then hung hard. I wasn't able to recover or get to a shell. I did a hard reboot and hit the problem you are reporting in the startup.... gets as far as the ntpdate printout, and then hangs.

I couldn't figure out how to get past that point, or even get to a prompt. So I reinstalled R5.5 and don't think i lost anything.

Sorry this is a bit light, but was worried about getting back to a working system without losing data. If there is anything I can check under R5.5 to give info, just let me know. Since I know i can recover, I could do another R6 install to get more info if necessary.

Wonder if the tuner cards are the common problem? Anybody report success with DVICO Lite? (To the maintainers, i saw the flyspray ticket about the DVICO dual tuner cards. These aren't dual tuner and had always worked in versions < R6).

j


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 25, 2009 11:46 am 
Offline
Joined: Mon Oct 09, 2006 11:27 am
Posts: 75
Location: Raleigh, NC
@cullenp:

Did you ever get this resolved? I'm having a similar behavior.

I've had r6 running fine for a couple of days, but after a reboot today, it hangs somewhere around starting ntpd. The only change I made (i think) was to enable webmin in the linhes service menu and turning off the mythtv setting to watch for removable drives. I'm thinking perhaps something is up with the sequencing in the services.

I've tried progressively disabling services, but get same result. Interestingly, everything that starts seems fine. The backend is running, and webmin and mythweb are too. The xorg and fluxbox logs don't have anything since yesterday or so, so the startup doesn't seem to get that far.

reviewing the logs in /var/log isn't showing any obvious errors.

I'm unsure where to look next ... any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 25, 2009 4:50 pm 
Offline
Joined: Mon Oct 09, 2006 11:27 am
Posts: 75
Location: Raleigh, NC
Okay, I made some progress. I'm thinking jayb282 and I must have done the same thing in the LinHES service menu that broke something. I'll try to reproduce it so I can enter a ticket in flyspray.

Currently, the start up still appears to stop after starting the services. In doing some reading, though, I think that's all actually what it's supposed to do. There seems to be something after that that's going wrong.

I can get the UI started by running:

Code:
/usr/LH/bin/LinHES-start


I just can't figure out where that's supposed to get called, and what happened to make it so it doesn't For now, I'm operational again, even though the workaround isn't pretty.

Craig


Top
 Profile  
 
 Post subject: R6 installation woes
PostPosted: Tue May 26, 2009 12:24 am 
Offline
Joined: Sat Apr 01, 2006 10:06 pm
Posts: 31
Location: Vancouver, WA
@craigtv

I ended up back tracking to R5.5 and a DB restore. I couldn't live with a non working system for long. I'll try R6 again when it is out of preview stage.

Best of Luck,

Cullen


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 22 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu