You are not logged in.

#1 2008-04-03 06:38:57

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

MythTV problem 0.21 - after upgrading.

Hey Forum.

After waiting for the new MythTV packages - they're finally arrived.

After installing the all packages - I'd tried to log in to the webinterface to see the new changes:
All I see was the indexing of the dir /home/httpd/html/mythweb

So I log on using SSH to the server and made a ls -lah:

# ls -lah
totalt 20K
drwxr-xr-x 3 nobody nobody 4,0K  3 apr 08:12 .
drwxr-xr-x 3 root   root   4,0K 10 dec 22:35 ..
-rw-r--r-- 1 nobody nobody   55 11 dec 19:16 .htdigest
-rw-r--r-- 1 nobody nobody   39 15 jan 23:40 .htpasswd
drwxrwxr-x 4 nobody nobody 4,0K  3 apr 08:12 data
lrwxrwxrwx 1 nobody nobody   15 11 dec 10:21 movies -> /storage/movies
lrwxrwxrwx 1 nobody nobody   14 11 dec 10:21 music -> /storage/music
lrwxrwxrwx 1 nobody nobody   17 26 dec 14:02 pictures -> /storage/pictures
lrwxrwxrwx 1 nobody nobody   16 11 dec 10:21 records -> /storage/records

Where's all the files for the php, html etc etc ???
Isn't that oud - or am I the only one experimenting this little problem ????

----------------------------------------------------------------------------------------------------------------
The next problem is that my Mythbackend arent starting automaticly after rebooting the server:
find this in the mythbackend log:

2008-04-03 08:59:01.055 Main::Registering HttpStatus Extension
2008-04-03 08:59:01.057 mythbackend version: 0.21.20080304-1 www.mythtv.org
2008-04-03 08:59:01.057 Enabled verbose msgs: important
2008-04-03 08:59:01.061 AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min
2008-04-03 08:59:02.871 Seem to be woken up by USER
2008-04-03 09:00:19.831 AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min
2008-04-03 09:15:19.886 AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min
2008-04-03 09:19:00.998 Using runtime prefix = /usr, libdir = /usr/lib
2008-04-03 09:19:01.238 Cannot locate your home directory. Please set the environment variable HOME or MYTHCONFDIR
2008-04-03 09:19:01.465 Failed to init MythContext, exiting.

Then I can restart the server - and everything is working? So don't have a clue of what that can be


Cheers
P

Last edited by peque (2008-04-03 07:53:30)


Just getting better .... All the time

Offline

#2 2008-04-03 17:34:25

enrique
Member
Registered: 2005-10-25
Posts: 95
Website

Re: MythTV problem 0.21 - after upgrading.

mythweb has moved to /srv/www/ with phpmyadmin and other web apps. It's a minor annoyance, but still annoying smile


Kind regards, enrique

Offline

#3 2008-04-03 17:38:52

enrique
Member
Registered: 2005-10-25
Posts: 95
Website

Re: MythTV problem 0.21 - after upgrading.

And the post install message from mythweb is also wrong "You must create a symlink from /home/httpd/html/mythweb/video_dir"


Kind regards, enrique

Offline

#4 2008-04-04 06:30:35

clarence
Member
From: fremantle.au
Registered: 2005-10-12
Posts: 294

Re: MythTV problem 0.21 - after upgrading.

the new myth needs to upgrade the database schema.

run mythtv-setup to upgrade the schema.
restart mythbackend.
done.


fck art, lets dance.

Offline

#5 2008-04-04 14:34:12

QuimaxW
Member
From: Papua New Guinea
Registered: 2006-12-03
Posts: 228
Website

Re: MythTV problem 0.21 - after upgrading.

And now that I know where mythweb is now...I see there is an INSTALL file in there I should read tonight... smile


"He is no fool who gives what he cannot keep to gain that which he cannot lose." -Jim Elliot

Offline

#6 2008-04-04 15:58:37

enrique
Member
Registered: 2005-10-25
Posts: 95
Website

Re: MythTV problem 0.21 - after upgrading.

Hm, I'm having the problem with "Cannot locate your home directory. Please set the environment variable HOME or MYTHCONFDIR"

Maybe Arch needs a /etc/conf.d/mythbackend to set stuff like that?

Btw, I don't have mythtv's home dir in /home/mythtv but in /shared/mythtv


Kind regards, enrique

Offline

#7 2008-04-07 22:38:28

timm
Member
From: Wisconsin
Registered: 2004-02-25
Posts: 417

Re: MythTV problem 0.21 - after upgrading.

Did you get mythweb back up?  I'm about to dive into this but don't want to recreate the wheel.  wink  Any "tips" to share?

Offline

#8 2008-04-08 05:41:50

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: MythTV problem 0.21 - after upgrading.

I get the mythweb up and running - The only minor change was the move from /home/httpd/html to /srv/www according to the mythweb.

Still after rebooting my server Mythbackend aren't starting by it self, and only working when restarting it manually. Allso after running mythtv-setup again and everything. The mythbackend aren't starting at boot time at it self.
So untill later when fixing this problem - i made a manual restart in /etc/rc.local and then it'll work!


Just getting better .... All the time

Offline

#9 2008-04-08 12:41:55

clarence
Member
From: fremantle.au
Registered: 2005-10-12
Posts: 294

Re: MythTV problem 0.21 - after upgrading.


fck art, lets dance.

Offline

#10 2008-04-08 13:50:55

enrique
Member
Registered: 2005-10-25
Posts: 95
Website

Re: MythTV problem 0.21 - after upgrading.

I fixed by adding "HOME=/shared/mythtv" to /etc/conf.d/mythbackend (which I created) and "[ -f /etc/conf.d/mythbackend ] && . /etc/conf.d/mythbackend" to /etc/rc.d/mythbackend

It only fixes it until next update, and I should probably open a bug report on it smile


Kind regards, enrique

Offline

#11 2008-04-08 14:51:15

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: MythTV problem 0.21 - after upgrading.

Well - I just added my user than runs everything under MythTV user = myth to /etc/rc.d/mythbackend the line

export=MYTHCONFIGDIR=/home/myth

But again only fix the problem untill the next release!
And the backendserver starts upon reboot!

Dejligt at se en Dansker her  :-)


Just getting better .... All the time

Offline

#12 2008-04-13 14:15:34

timm
Member
From: Wisconsin
Registered: 2004-02-25
Posts: 417

Re: MythTV problem 0.21 - after upgrading.

I'm still having trouble getting myth to start up.

I tried both fixes noted; do these have to go in a particular place in /etc/rc.d/mythbackend?

I get an error with both, it flashes just before I get to the command line, but I cannot find the error in dmesg or any log file after I am at the command line, so it's difficult to track it down. 

Something about prefix and /usr.

Offline

#13 2008-04-13 16:36:27

enrique
Member
Registered: 2005-10-25
Posts: 95
Website

Re: MythTV problem 0.21 - after upgrading.

Try adding

read KEY

to the end of /etc/rc.local , then the startup sequence will wait there until you press a key

You should add one of the fixes at the beginning of  /etc/rc.d/mythbackend


Kind regards, enrique

Offline

#14 2008-04-21 12:59:16

retsaw
Member
From: London, UK
Registered: 2005-03-22
Posts: 132

Re: MythTV problem 0.21 - after upgrading.

I fixed this by adding

HOME=/root

to my /etc/rc.conf, since /etc/rc.d/mythbackend sources /etc/rc.conf. I feel this is a more appropriate solution than editing /etc/rc.d/mythbackend since it will survive a mythtv upgrade.

Offline

Board footer

Powered by FluxBB