LinuxMCE Forums
May 20, 2013, 08:01:49 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: ROYALLY PISSED! LINUXMCE BUILD TOASTED MY WHOLE DB!  (Read 1423 times)
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« on: November 03, 2007, 06:01:24 pm »

Note to all others, do not run the build scripts on your running DB.
(#$#@(%$@#%@#%*@# !!!!! good thing I have a ....semi-recent backup

FUCK!

-Thom
Logged
danielk
Guru
****
Posts: 153


View Profile
« Reply #1 on: November 03, 2007, 11:00:30 pm »

This just happened to me as well and I didn't have a backup.

I'll fix this portion of the script as soon as I've re-imaged my machine.

I'll post an update here after I do...
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #2 on: November 04, 2007, 12:45:50 am »

I was able to revert to a tarball i made of the system last week.. It didn't touch the mythconverg database, so I was able to restore that completely...

-Thom
Logged
danielk
Guru
****
Posts: 153


View Profile
« Reply #3 on: November 04, 2007, 01:16:22 am »

I'm almost 100% sure this happened due to the initialize_build_db step, if you comment out this line in Makefile.linux

     @${RUN} ${SVNROOT} Init_Build_Database ${DB_USER} ${DB_PASSWORD}

It should build all the Ubuntu packages and install all the build dependencies successfully. But I haven't tried this yet on an active LMCE machine.

I need to change the Init_Build_Database portion to use a different name for the build databases so they don't overwrite the LinuxMCE databases. Right now the script drops those databases as part of the build process... As you noted it does not do anything with the MythTV database. The MythTV database is mostly built by the MythTV suite of applications when first run, so there is no need to initialize any databases as part of it's build process. For the LMCE build databases I'll probably prepend "build_" or something similar to avoid the name collision.

On a positive note, I'm trying the Kubunu + LinuxMCE install now, so if there are differences between it and the DVD install that affect the build process I'll be able to adjust the build scripts accordingly.

I'm happy to hear someone else is trying to build the thing from scratch, that's the only way we'll work out all the problems... I'm also very glad you had a backup!
Logged
rafik24
Guru
****
Posts: 158


View Profile
« Reply #4 on: November 04, 2007, 01:33:07 am »

 I'm one of those that did not have a backup of the sql db and know my core is dead.

 Havent managed to find a way to get the db loaded from scratch.

 FYI

Rafik
Logged
tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #5 on: November 04, 2007, 02:25:19 am »

For those who haven't... do a backup of both your system drive (You do have your system drive separate from your media drive, don't you?), and do a separate backup of the database. It will save so much anguish, of course, this is after the initial horror and anger goes away. ;-)

-Thom
Logged
hari
Administrator
LinuxMCE God
*****
Posts: 2413



View Profile WWW
« Reply #6 on: November 04, 2007, 01:56:21 pm »

I'm one of those that did not have a backup of the sql db and know my core is dead.

 Havent managed to find a way to get the db loaded from scratch.
you can use sqlCVS to fix the database. Instructions are in the Wiki.

regards,
Hari
Logged

rock your home - http://www.agocontrol.com home automation
Zaerc
Alumni
LinuxMCE God
*
Posts: 2256


Department of Redundancy Department.


View Profile
« Reply #7 on: November 04, 2007, 05:43:03 pm »

I guess I could have told you that, but nobody seemed really interested at the time I "discovered" this: http://forum.linuxmce.org/index.php?topic=2053.msg9492#msg9492

Sorry to hear your frustration, for me it was a nice learning experience restoring a database backup from my production environment and I reckoned that most people wouldn't to use a production machine for development anyway. Undecided
Logged

"Change is inevitable. Progress is optional."
-- Anonymous

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!