PDA

View Full Version : rc.sysinit.author PROBLEMS


dmrolyat
03-30-2004, 06:03 AM
I have extensively searched for help on this problem and although i have edited rc.sysinit.author in the past without any problems, this one is foxing me!
I am trying to get TivoWebPlus to run on boot up. I have edited rc.sysinit.author using Steve Jenkins walk through.
My rc.sysinit.author reads:-

/var/hack/endpad.tcl 1 2 -auto >> /dev/null &
/var/hack/tivoweb

The problem is that tivoweb is NOT running at boot. In order to access via http, i first have to telnet and use /var/hack/tivoweb

I caanot understand why it is not running.
Is there any way to check?
Also, according to Steve Jenkins walk through, I should have an active partition (either 4 or 7) and an unmounted partition (4 or 7). However, partition 4 is ALWAYS active and i cannot mount partition 7. Even after rebooting, it is always 4 which is the active partition. Consequently i cant follow SJ's walk through completely. Could this be anything to do with why tivoweb is not starting through sysinit.author?
Please can anyone throw any light???

sanderton
03-30-2004, 06:47 AM
That will be nothing to do with it. If your setup has been restored from a backup, the inactive partion will be blank.

Is rc.sysinit.author being called at all? Is EndPad running? Try running it with /var/hack/endpad.tcl 1 2 to check.

I thought TWP had an installer which automatically added the start-at-boot setup.

dmrolyat
03-30-2004, 07:29 AM
Dear Sanderton

Thanks for reply.
I did what you said (/var/hack/endpad.tcl 1 2) and got the following error:-

A stale PID file was found and has been deleted.
This means that this script terminated unexpectedly last time. Loading now.
The errors logged (if any) before the last termination were:
bash-2.02#

How can i be sure that rc.sysinit.author IS being called?

I bought the tivo from tivoland (healeydave) so i presume he just installs onto 120Gb disks from a backup. Is that a problem?

I tried for hours last night to get tivowebplus.twp to work without success. A chap in the USA wants to call me about that one. So it HAS NOT automatically added the start-at-boot.

sanderton
03-30-2004, 07:46 AM
Sounds like it isn't - you should have got a message that "EndPad is already running".

Two things:

1) Is the first line of rc.sysinit.author

#!/bin/bash

(it should be)

2) is it executable?

mount -o remount,rw /
chmod 755 /etc/rc.d/rc.sysinit.author
mount -o remount,ro /

To make it so.

Check in the kernel log via TiVoWeb for any error messages when rc.sysinit.author runs. The bold section below shows the kind of thing you might see,


Jan 1 00:02:35 (none) kernel: Updating system clock UID=0
Mar 29 21:33:04 (none) kernel: Time set to: Mon Mar 29 21:33:04 2004
Mar 29 21:33:04 (none) kernel: Have a nice day.
Mar 29 21:33:04 (none) kernel: Checking for additional disk...
Mar 29 21:33:04 (none) kernel: Starting EventSwitcher...
Mar 29 21:33:06 (none) kernel: Start fan control...
Mar 29 21:33:07 (none) kernel: Scanning for phase2 repair scripts
Mar 29 21:33:09 (none) kernel: Checking for database conversions...
Mar 29 21:33:10 (none) kernel: Checking new software installation
Mar 29 21:33:11 (none) kernel: SwSystem 2.5.5-01-1-023 is already active, nothing to do.
Mar 29 21:33:11 (none) kernel: Scanning for phase3 repair scripts
Mar 29 21:33:11 (none) kernel: Starting Services.
Mar 29 21:33:11 (none) kernel: Scanning for phase4 repair scripts
Mar 29 21:33:11 (none) kernel: /dev/hda^M: No such file or directory
Mar 29 21:33:11 (none) kernel: /dev/hdb^M: No such file or directory
Mar 29 21:33:12 (none) kernel: /etc/rc.d/rc.sysinit.author: MCP startup complete
Mar 29 21:33:12 (none) kernel: ^M: command not found
Mar 29 21:33:12 (none) kernel: /etc/rc.d/rc.sysinit.author: ^M: command not found
Mar 29 21:33:12 (none) last message repeated 6 times
Mar 29 21:33:12 (none) kernel: rc.sysinit is complete

dmrolyat
03-30-2004, 07:59 AM
i do get the following error message in the kernel log:-

Mar 30 11:54:59 (none) kernel: EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended

Is that OK?
Also, could you explain why i don't have active/inactive partitions and is that really any concern? I thought that the fact of having an active/inactive partition meant that it swapped each time it booted and had better disaster recovery if anything went wrong on one of the partitions?

dmrolyat
03-30-2004, 08:02 AM
Also spotted this error message...

Mar 30 11:15:25 (none) kernel: /etc/rc.d/rc.sysinit: /var/hack/tivoweb-tcl/tivoweb: No such file or directory

I no longer have a /var/hack/tivoweb-tcl/ directory as tivowebplus is now installed to /var/hack/

How can i remove this (SAFELY) from the rc.sysinit ?

dmrolyat
03-30-2004, 08:15 AM
How can i go about MOVING tivoweb from its current location (/var/hack) to the original location (/var/hack/tivoweb-tcl)?
I have tried moving the files/folders using my ftp client (flashfxp) but it says it failed. I tried remounting to rw but still wouldnt move the files using my ftp client.
I guess if i could move everything to its origanl location, then i wouldnt need the entry in rc.sysinit.author and also i would NOT need to change rc.sysinit.
Any ideas how to move these?

sanderton
03-30-2004, 08:38 AM
The backup process doesn't bother backing up the inactive partion, so it is blank on restore. This doesn't matter at all. It's inactive!

The error message is nothing to worry about.

The line which calls TiVoweb was put in by you, according to your first post - edit it to point to the real location in the exact same way. If you don't have an editor on the TiVo, just delete it and create a new one.

You can move whole folders with the mv command, but the way you've done it would make that rather fiddly as you dont want to move everything in /var/hack into /var/hack/tivoweb-tcl

dmrolyat
03-30-2004, 11:37 AM
Is it not possible to move the files via ftp?
or does it have to be done on the tivo?
If i moved ALL the files/folders as you suggest, how would i copy back the files which i wanted leaving alone. I just think that would be easier because there are only maybe half a dozen files which need to stay where they are...

sanderton
03-30-2004, 11:43 AM
Why would you want to use FTP? That's not what it's for.

But no, AFAIK tivoftp does not support moving files.

Use a telnet connection.

If I were you 'd just adjust rc.sysinit.author - miles easier.

Or just re-install it from scratch in the right place, then delete the old instalation piecemeal.

Move files with mv oldname newname
copy files with cp original copy
remove files with rm filename

dmrolyat
03-30-2004, 12:45 PM
Where can i get a copy of commands available?
For example, can i use wild cards? eg. li*.*
That would certainly make the move a bit easier

chaeberle
03-30-2004, 12:58 PM
Where can i get a copy of commands available?
For example, can i use wild cards? eg. li*.*
That would certainly make the move a bit easier
Any beginners book on Linux would be a good source to start with. :)

RKone
03-30-2004, 03:56 PM
First off, you should have continued this in the original thread instead of starting another - people are more capable of helping you if they know the back story.

You don't want tivoweb installed to var/hack. Luckily the tpm installer also comes with an uninstaller, just run the setup for tivowebplus again, and it should ask you if you want to uninstall the old version. Then you can install tivowebplus in a better directory, like /var/hack/tivowebplus.

The installer sets up tivoweb to be executed from rc.sysinit.tpm, which itself should be executed by your rc.sysinit.author file (the installer will put this in automatically for you). Therefore you need to manually remove all the lines in rc.sysinit.author that reference tivoweb.

Sleeper
03-30-2004, 05:35 PM
a) RKrone is correct.

b) I strongly urge you to start with a new copy of TivoWebPlus. I am not convinced that your original file is good. Insure that it was transferred in BINARY mode.

c) Just type "bash TivoWebPlus-1.0-rc5.tivo.tpm" The installer will tell you that a version is already installed and will uninstall it.