#musicbrainz-devel

/

      • ruaok
        very odd.
      • 2011-05-16 13652, 2011

      • ocharles
        Cannot upgrade #236638: This data is corrupt and cannot be upgraded at /home/acid2/musicbrainz-server/admin/sql/updates/../../../lib/MusicBrainz/Server/Edit/Historic/EditTrackNum.pm line 48.
      • 2011-05-16 13654, 2011

      • ocharles
        that's the last line for me
      • 2011-05-16 13602, 2011

      • ocharles
        ruaok: well if it crashes I didn't have anything to display the error
      • 2011-05-16 13606, 2011

      • ocharles
        but I've got a commit for that too
      • 2011-05-16 13612, 2011

      • ocharles
        shall I push and resume migration from this script?
      • 2011-05-16 13618, 2011

      • ruaok
        I didin't see any error either.
      • 2011-05-16 13628, 2011

      • ocharles
        yea, it dies silently
      • 2011-05-16 13630, 2011

      • ruaok
        but since you had it in a transaction, you can re-run it, right?
      • 2011-05-16 13641, 2011

      • ocharles
        yep
      • 2011-05-16 13655, 2011

      • ruaok
        right-o.
      • 2011-05-16 13659, 2011

      • ruaok
        I'm coming up on 2am here.
      • 2011-05-16 13603, 2011

      • ruaok
        djce: you here right now?
      • 2011-05-16 13607, 2011

      • djce
        ping
      • 2011-05-16 13621, 2011

      • ruaok
        ok, I'd like to hand over the reigns to both of you and get some sleep.
      • 2011-05-16 13625, 2011

      • ruaok
        first: reboot astro.
      • 2011-05-16 13628, 2011

      • ruaok
        can we do that now?
      • 2011-05-16 13633, 2011

      • djce
        go for it...
      • 2011-05-16 13605, 2011

      • djce
        ocharles: you've got root, close off your sessions and last man out gets to reboot it ...
      • 2011-05-16 13637, 2011

      • ocharles
        i'm out!
      • 2011-05-16 13645, 2011

      • ocharles puts some bacon on
      • 2011-05-16 13656, 2011

      • ruaok
        dont go anywhere!@
      • 2011-05-16 13612, 2011

      • ruaok
        astro is rebooting.
      • 2011-05-16 13610, 2011

      • ocharles
        i'm here
      • 2011-05-16 13615, 2011

      • ruaok
        ok.
      • 2011-05-16 13636, 2011

      • ruaok
        ocharles will need to make sure all is well.
      • 2011-05-16 13649, 2011

      • ruaok
        and that the right branch is loaded and read to go.
      • 2011-05-16 13604, 2011

      • ruaok
        once ocharles is happy with the branch, we need to start executing the migration plan.
      • 2011-05-16 13607, 2011

      • murdos_ joined the channel
      • 2011-05-16 13613, 2011

      • ruaok
        djce: can you please be the master of ceremonies?
      • 2011-05-16 13621, 2011

      • djce
        I'll try :-)
      • 2011-05-16 13626, 2011

      • ocharles
        :)
      • 2011-05-16 13633, 2011

      • ocharles
        have we stolen djce for the day?
      • 2011-05-16 13639, 2011

      • ruaok
        2 days!
      • 2011-05-16 13641, 2011

      • djce occasionally prods ocharles until he says "no it's your turn"
      • 2011-05-16 13650, 2011

      • ruaok
        lets go through what we needs to happen in the next 8 hours.
      • 2011-05-16 13654, 2011

      • ocharles
        cool :)
      • 2011-05-16 13656, 2011

      • ruaok
      • 2011-05-16 13606, 2011

      • ruaok
        Disallow any changes to MB.
      • 2011-05-16 13618, 2011

      • ruaok
        for that, svn up the codebase on tails, stimpy, dexter.
      • 2011-05-16 13631, 2011

      • djce
        does that stop modbot?
      • 2011-05-16 13635, 2011

      • ruaok
        no.
      • 2011-05-16 13638, 2011

      • ruaok
        > Change the data download URL in admin/replication/LoadReplicationChanges
      • 2011-05-16 13642, 2011

      • ruaok
        we can skip that til later.
      • 2011-05-16 13644, 2011

      • ruaok
        I'll move it.
      • 2011-05-16 13650, 2011

      • ruaok
        > stop all cron jobs on classic
      • 2011-05-16 13604, 2011

      • ruaok
        you illustrated that to me earlier djce. should be no issue.
      • 2011-05-16 13609, 2011

      • djce
        I can do that.
      • 2011-05-16 13612, 2011

      • ruaok
        > Close all open edits
      • 2011-05-16 13629, 2011

      • ruaok
        set the expire and close time of all edits in moderation_open to now().
      • 2011-05-16 13635, 2011

      • ruaok
        the run CheckVotes.pl
      • 2011-05-16 13650, 2011

      • ruaok
        the end results should be an emty moderation_open table
      • 2011-05-16 13607, 2011

      • ruaok
        (oh and ofter the web servers need to be restarted once svn up is done above)
      • 2011-05-16 13614, 2011

      • djce
        sure
      • 2011-05-16 13630, 2011

      • ruaok
        and get nikki or reoscarksiorsky to check to make sure that no one can edit anything.
      • 2011-05-16 13638, 2011

      • ruaok
        > Dump the MB Classic data for the last time.
      • 2011-05-16 13639, 2011

      • nikki
        poor reosarevok :P
      • 2011-05-16 13648, 2011

      • ruaok
        easy, you know what needs to happen.
      • 2011-05-16 13653, 2011

      • djce nods
      • 2011-05-16 13600, 2011

      • ruaok
        > Move the last classic data dump to permanently saved location on the FTP server.
      • 2011-05-16 13606, 2011

      • ruaok
        move it out of the data dir.
      • 2011-05-16 13614, 2011

      • ruaok
        maybe into the classic dir.
      • 2011-05-16 13621, 2011

      • djce
        ok
      • 2011-05-16 13624, 2011

      • ruaok
        or a dir called classic
      • 2011-05-16 13635, 2011

      • ruaok
        > Copy the data to astro and start import into clean DB.
      • 2011-05-16 13652, 2011

      • ruaok
        don't forget the private data file in /usr/local/mb_server/backup.
      • 2011-05-16 13657, 2011

      • ruaok
        on scooby that is.
      • 2011-05-16 13622, 2011

      • ruaok
        > Start migration immediately. igrate to musicbrainz_db and musicbrainz_db_raw, and set type to RT_MASTER in the migration codebase
      • 2011-05-16 13613, 2011

      • ruaok
      • 2011-05-16 13617, 2011

      • ocharles
        are we going to have ngs.mb up while migration is running?
      • 2011-05-16 13645, 2011

      • ruaok
        djce: you'll recognize what is going on here. this step requires that the export be called with --without-replication
      • 2011-05-16 13652, 2011

      • ruaok
        ocharles: should be possible. your call.
      • 2011-05-16 13611, 2011

      • ocharles
        yep, it will be possible, just a tiny bit more load
      • 2011-05-16 13613, 2011

      • ocharles
        shouldn't be a problem
      • 2011-05-16 13618, 2011

      • ruaok
        djce: still with me?
      • 2011-05-16 13619, 2011

      • ocharles
        shall I commit --without-replication to upgrade.sh?
      • 2011-05-16 13632, 2011

      • djce
        so the final export from classic needs to be --without-replication ?
      • 2011-05-16 13642, 2011

      • ruaok
        no.
      • 2011-05-16 13601, 2011

      • ruaok
        actually that step can probably wait.
      • 2011-05-16 13605, 2011

      • ruaok
        ignore that for now.
      • 2011-05-16 13617, 2011

      • MBChatLogger
      • 2011-05-16 13617, 2011

      • ruaok
        once the replication finishes, bring it up on ngs.mb.org and poke at it.
      • 2011-05-16 13627, 2011

      • ruaok
        get everyone and their mom to poke at it. see if it has problems.
      • 2011-05-16 13632, 2011

      • djce
        Sorry, I'm lost. What step can wait?
      • 2011-05-16 13643, 2011

      • ruaok
      • 2011-05-16 13646, 2011

      • djce
        ok
      • 2011-05-16 13647, 2011

      • ocharles
        djce: ./upgrade.sh will fail, right at the end
      • 2011-05-16 13652, 2011

      • ocharles
        but you don't need to worry about that, iirc
      • 2011-05-16 13605, 2011

      • ruaok
        oh, its part of migration.
      • 2011-05-16 13608, 2011

      • ruaok
        hum, one sec.
      • 2011-05-16 13617, 2011

      • ocharles
        ruaok: that's why I said shall I add the flag to upgrade.sh
      • 2011-05-16 13635, 2011

      • ocharles
        hrm, it has --without-replication in the export in upgrade.sh
      • 2011-05-16 13645, 2011

      • ruaok
        yeah.
      • 2011-05-16 13647, 2011

      • ruaok
        not sure wtf.
      • 2011-05-16 13620, 2011

      • ruaok
        it dies because the dbmirror* tables are not present.
      • 2011-05-16 13636, 2011

      • ruaok
        ocharles: add this line before the vacuum:
      • 2011-05-16 13642, 2011

      • djce
        Not entirely sure I understand what's going on. The import of the final classic export, on astro, into totoro, uses what codebase?
      • 2011-05-16 13659, 2011

      • ruaok
        ./admin/psql READWRITE <./admin/sql/CreateReplicationSetup.sql
      • 2011-05-16 13607, 2011

      • ocharles
        djce: the 'production' branch
      • 2011-05-16 13623, 2011

      • ocharles
        can I use astro yet btw?
      • 2011-05-16 13623, 2011

      • djce
        So that knows how to import a classic db?
      • 2011-05-16 13628, 2011

      • ruaok
        and ocharles will be in charge of making sure that branch is ready to go.
      • 2011-05-16 13632, 2011

      • ocharles
        djce: indeed
      • 2011-05-16 13636, 2011

      • ruaok
        it doesn't.
      • 2011-05-16 13651, 2011

      • djce detects conflicting answers
      • 2011-05-16 13654, 2011

      • ocharles
        yea...
      • 2011-05-16 13605, 2011

      • ruaok
        ok, hold on a sec ocharles
      • 2011-05-16 13610, 2011

      • ocharles shuts up
      • 2011-05-16 13622, 2011

      • ruaok
        1. copy all the dump files to astro.
      • 2011-05-16 13631, 2011

      • ruaok
        2. double check the private data file is there too
      • 2011-05-16 13642, 2011

      • pecastro joined the channel
      • 2011-05-16 13609, 2011

      • ruaok
        3. import the classic data with the mb_server codebase in ~musicbrainz on astro.
      • 2011-05-16 13614, 2011

      • djce
        ah
      • 2011-05-16 13621, 2011

      • ruaok
        4. Once the classic data is imported, start migration.
      • 2011-05-16 13632, 2011

      • djce
        using the musicbrainz-server production branch?
      • 2011-05-16 13638, 2011

      • ruaok
        yes.
      • 2011-05-16 13645, 2011

      • djce
        ocharles: you know how to do that step presumably.
      • 2011-05-16 13600, 2011

      • ruaok
        ocharles: did you note to add the ReplicationSetup.sql step?
      • 2011-05-16 13612, 2011

      • ocharles
        yes, that's commited to edit-fixes
      • 2011-05-16 13617, 2011

      • ruaok
        get.
      • 2011-05-16 13623, 2011

      • ocharles
        which assuming this all works on astro/my machine will be commited straight to master shortly
      • 2011-05-16 13635, 2011

      • ruaok
        echo "PLEASE BACKUP these exported dumps from /tmp/mbexport-XXXX!!!!!!"
      • 2011-05-16 13652, 2011

      • ruaok
        those are the tmp tables we need to save so save them in some place on put them on the ftp site.
      • 2011-05-16 13617, 2011

      • djce
        so catalyst needs to be stopped presumably while the migration occurs?
      • 2011-05-16 13629, 2011

      • ocharles
        djce: nope, just using a different database
      • 2011-05-16 13637, 2011

      • ocharles
        hm
      • 2011-05-16 13638, 2011

      • djce
        so, a different codebase copy too then?
      • 2011-05-16 13643, 2011

      • ruaok
        yep
      • 2011-05-16 13648, 2011

      • ocharles
        probably best to just stop it
      • 2011-05-16 13656, 2011

      • ocharles
        rather than making more work for ourselves
      • 2011-05-16 13611, 2011

      • djce
        And the migration is what, "./upgrade.sh" ?
      • 2011-05-16 13616, 2011

      • ocharles
        yep
      • 2011-05-16 13623, 2011

      • ocharles
        once you've set DBDefs.pm up, of course
      • 2011-05-16 13623, 2011

      • djce
        and it takes roughly how long?
      • 2011-05-16 13637, 2011

      • ocharles
        ~6 hours?
      • 2011-05-16 13647, 2011

      • ruaok
        thereabouts.
      • 2011-05-16 13651, 2011

      • ruaok
        should be faster now with a reboot.
      • 2011-05-16 13603, 2011

      • ocharles
        can I kick the script off again now, btw?
      • 2011-05-16 13604, 2011

      • ruaok
      • 2011-05-16 13606, 2011

      • ruaok
        please review.
      • 2011-05-16 13615, 2011

      • ruaok
        the artist fix? yes.
      • 2011-05-16 13610, 2011

      • djce
        "RT_MASTER in the migration codebase " happens /before/ running upgrade.sh ?
      • 2011-05-16 13634, 2011

      • ruaok
        I don't think it mattes.
      • 2011-05-16 13638, 2011

      • djce
        k
      • 2011-05-16 13646, 2011

      • ruaok
        I've always done it as RT-STANDALONE come to think of it.
      • 2011-05-16 13658, 2011

      • ruaok
        and then promote it to master by hand by doing the replication stuff.
      • 2011-05-16 13628, 2011

      • djce
        tbh by the time we get to this point, I think you'll be back with us again.
      • 2011-05-16 13635, 2011

      • ocharles
        yea, that's about 8 hours away
      • 2011-05-16 13611, 2011

      • ruaok
        yep.
      • 2011-05-16 13615, 2011

      • ruaok
        I just updated the times in the wiki page.