View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 13 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: R5E50 - Save DB Only
PostPosted: Fri Jan 12, 2007 8:37 pm 
Offline
Joined: Wed Feb 01, 2006 12:49 pm
Posts: 42
Howdy-

Last weekend, I attempted the autoupgrade of R5D1 to R5E50 according to the sticky by TJC.

It seemed to work pretty well, but I could not get the sound working (soundblaster live) and for some reason, my DirecTV channel change script would not work with Myth (though it worked fine at the command prompt).

I do not run digital with the soundcard. I tried to run alsaconfig and messed with the mixer to no solution.

As for the DirecTV script, I am guessing there was some sort of permissions issue (even though I had the scripts as +x).

Rather than tool with these issues, I opted to use my backup and switch back to R5D1.

I am determined to get R5E50 this weekend! What I would like to do is almost a clean reinstall, but update my database to the new install from R5D1. I do not want to try to restore any other settings (LIRC, etc....I can get these working again)

From this previous post (http://mysettopbox.tv/phpBB2/viewtopic.php?t=10668&highlight=upgrade+database), I believe that all I have to do is:
1) Make sure my backup is current
2) Autoupgrade
3) When it reboots after the initial upgrade/install, do not log in. Instead, switch to a shell and delete all of the files except the SQL file.

Is this the best way...does it still apply with an R5D1 to R5E50 upgrade?

This is a great project and I never cease to be impressed with the support!

Thanks,
Loco


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 9:32 pm 
Offline
Joined: Fri Apr 21, 2006 8:15 pm
Posts: 14
Location: Cleveland, OH
I tried upgrading from R5C7 to R5E50 and my Soundblaster Live! also doesn't work now when watching TV recordings. I *DO* get sound when i use xine to watch videos via MythVideo however.

I was looking for a way to essentially do a clean install and just keep /myth - thanks for the link! I guess we will both find out this weekend if this method works or not.


Top
 Profile  
 
 Post subject: Re: R5E50 - Save DB Only
PostPosted: Fri Jan 12, 2007 10:07 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
loco_hombre wrote:
for some reason, my DirecTV channel change script would not work with Myth (though it worked fine at the command prompt).

Almost always because you made an assumption about the environment that doesn't hold true when the script is run automatically. Most commonly
1) The contents of the PATH variable
2) Permissions (testing as root when the script is run as mythtv)
3) The script is either not executable or missing #! magic on the first line to tell the system what interpreter to use.

As for deleting the files, I'd truncate (use the uncompressed forms of the names) rather than delete, or produce a custom file. I just discussed this with someone else in the Backup & Restore sticky thread.

Actually on second thought... The DB initialization script won't be run if you're doing an upgrade... This will result in some really funky file paths in the DB.

BTW - Whatever else you do, make a real backup first! If you've got a current rollover file you can still rollback if necessary.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 12, 2007 11:49 pm 
Offline
Joined: Wed Feb 01, 2006 12:49 pm
Posts: 42
10-4.

You are correct in (2)- I was testing the script as a root. I will have to make sure I get mythtv permissions to this script....this was not an issue in R5D1.

So, I will re-try the autoupgrade and then simply rename my backup files except for the database.

When you mention "funky file paths", you are not advising against this method, right?

Thanks,
Loco


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 10:21 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
loco_hombre wrote:
When you mention "funky file paths", you are not advising against this method, right?

If you don't have a DB the application uses default values based on different assumptions. That doesn't apply if you're restoring the DB. I plead latenss of the hour and friedness of my brain.

On the script side, do not ignore the PATH thing. When a script is run automatically this is almost never the same as when it is run interactively. Scripts intended to be run like that should always use the full path for executables for this reason. There was a recent bug in the rrd stuff because of this very issue.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 12:17 pm 
Offline
Joined: Wed Feb 01, 2006 12:49 pm
Posts: 42
I have successfully reinstalled R5E50 (I decided to just wipe everything).

I am still having an issue with my channel change script. When I run it as the default mythtv user I get,
Code:
Could not open /dev/ttyUSB0: Permission denied


I can actually manually fix this and get the channel change script to run with:
Code:
chown mythtv /dev/ttyUSB0


I have tried typing:
Code:
useradd -D -G dialout mythtv


....and the comnmand is not taking.

My question: How do I set the correct permissions for mythtv upon boot?

-Loco


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 12:38 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
How do you know it's not taking? Have you checked the /etc/group file?
Code:
grep dialout /etc/group


I'm guessing that the real problem is that dialout is the group that owns that USB device. What does this show?
Code:
ls -l /dev/USB0


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 1:16 pm 
Offline
Joined: Wed Feb 01, 2006 12:49 pm
Posts: 42
Indeed, dialout does own ttyUSB0!
Code:
root@mythtv:/home/mythtv# ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Jan 13 13:09 /dev/ttyUSB0


The grep command kicks out:
Code:
root@mythtv:/home/mythtv# grep dialout /etc/group
dialout:x:20:


I am at a loss right now. I am researching ownerships and stuff.....


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 1:57 pm 
Offline
Joined: Wed Feb 01, 2006 12:49 pm
Posts: 42
I figured it out.

I edited my /etc/group file and added mythtv to dialout and it fixed it.

Thanks for the guidance!


Top
 Profile  
 
PostPosted: Sat Jan 13, 2007 5:07 pm 
Offline
Joined: Mon Dec 11, 2006 8:23 pm
Posts: 1
Please note: I am a complete newbie. I've been reading about this product for about a month; I got the hardware this week; I put it together last night and verified that everything worked; this morning, I installed KnoppMyth from the CD.

I have two noticeable problems but since this thread is about sound, I'll start there.

Video appears but I can't get any sound after a clean install of KnoppMythR5E50.iso dated 1/9/2007. I thought I had read somewhere that I didn't need a sound card to start this project. The computer makes sound out the internal speaker but no sound when video is playing.

The default sound is set to /dev/dsp. I've also tried /dev/dsp1 and /dev/adsp. I've tried changing the pass-though but that didn't make a difference.

Both loco_hombre and djc6 said they had sound issues with a card and this revision; I don't know if this applies to me.

Loco then said something about "still" having problems with a "Channel Change Script" and then something about "dialout." Do these issues have to do with sound? Or just video and modem connections...

I'm more than happy to read. I just am a bit confused about what to start reading.

Rob


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 5:25 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
When you're asking question like this you need to provide more hardware details. Without them we're just guessing. See my signature below for a (very compressed) example.

What does the following command show?
Code:
lspci | grep Multimedia

You should see at least the motherboards builtin audio, and your capture cards. If you don't see any audio device (if your MoBo has high def sound), change the command to:
Code:
lspci | grep -i audio


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 6:10 pm 
Offline
Joined: Wed Feb 01, 2006 12:49 pm
Posts: 42
I fixed the audio by creating a new file- /etc/modprobe.conf

Then, in the file, I added:
Code:
include /etc/modprobe.d


That fixed my SBLIVE sound issue.


I ended my round 2 install try of R5E50 and reverted back the R5D1. After I finally got all of the permissions, etc., correct, the darn machine started to not open the backend on reboot and dump a mythbackend.pid file in the /var/log/mythtv directory. I could almost sware I did not do anything to provoke that! I think I am going to give R5E a little time to ripen before I try again.

When it was running though, I was impressed!

-Loco


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 20, 2007 1:04 pm 
Offline
Joined: Fri Apr 21, 2006 8:15 pm
Posts: 14
Location: Cleveland, OH
I found these instructions:

http://www.mythtv.org/docs/mythtv-HOWTO-23.html#ss23.7

And they worked perfectly for what I wanted to do. I did an "Auto Install" and was able to restore ONLY the recordings - nothing else. Once I did this, my Soundblaster Live started working again! It was nice to start from scatch - I was greeted with a new theme that I much prefer.

Code:
mysqldump -u mythtv -pmythtv mythconverg -c > mythtv_backup.sql

grep "INSERT INTO \`record\` "          mythtv_backup.sql > restore.sql
grep "INSERT INTO \`recorded\` "        mythtv_backup.sql >> restore.sql
grep "INSERT INTO \`oldrecorded\` "     mythtv_backup.sql >> restore.sql
grep "INSERT INTO \`recordedprogram\` " mythtv_backup.sql >> restore.sql
grep "INSERT INTO \`recordedrating\` "  mythtv_backup.sql >> restore.sql
grep "INSERT INTO \`recordedmarkup\` "  mythtv_backup.sql >> restore.sql
grep "INSERT INTO \`recordedseek\` "    mythtv_backup.sql >> restore.sql


Once KnoppMyth was done installing, I restored the recording information with this command:

Code:
mysql -u mythtv -pmythtv mythconverg < restore.sql


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 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