Closed Bug 528272 Opened 15 years ago Closed 15 years ago

[AMO] Update addons.mozilla.org on Nov 12

Categories

(Infrastructure & Operations Graveyard :: WebOps: Other, task)

All
Other
task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: clouserw, Assigned: oremj)

Details

(Whiteboard: 11/12/2009 @ 5pm)

Attachments

(2 files)

Attached file 5.3.sql
This is a production AMO push for 5.3.  Steps are below, please paste the
output of all commands into this bug.  Steps to follow:

We should do this ahead of time (as soon as possible since it takes forever):

1) Grab this script and put in /bin/run_once/ : http://viewvc.svn.mozilla.org/vc/addons/trunk/bin/run_once/dump_all_blobs.py?view=log
1) Edit the "IT CHANGE THIS" section of /bin/run_once/dump_all_blobs.py to point to where we want the images to go.  It needs to be accessible and mounted on all the boxes.  Make sure it's read/write by all servers.  Ask us if you have questions about these settings.

2) make /site/app/webroot/img/uploads to the directory in #1.  This is so the apache rewrites work.

3) Run /bin/run_once/dump_all_blobs.py .  This will take many hours.

----------------------------------------------

This should be done once the site is ready to go:

0) Take the site down with a maintenance page.

1) Create a directory called NETAPP_STORAGE.'/HTMLPurifier' and make it writable

2) There are two new defines in config.php.default that start with REDIRECT_.  They should be copied to config.php and have correct values in them.  REDIRECT_URL is fine with the default, REDIRECT_SECRET_KEY needs to be the same value that is in outgoing.mozilla.org's config.

3) Run the attached 5.3 SQL.  It shouldn't take too long.

4) `svn up` addons.mozilla.org.  There are a couple local changes which need to
be reverted.

5) Run `php -f /bin/run_once/seed_purified_translations.php`.  This will take several minutes.

5) Update services.addons.mozilla.org with `svn up`

6) Restart apache to pick up gettext changes

7) Clear all caches (Zeus, memcache, local cake cache) on both AMO and SAMO.

I still need to tag the site so this bug is serving as advanced notice for now.
Attachment #412021 - Attachment mime type: application/octet-stream → text/plain
Flags: needs-downtime+
Whiteboard: 11/12/2009 @ 5pm
Running /bin/run_once/dump_all_blobs.py.
8) `svn up` outgoing.mozilla.org and clear any caches in front of it
Assignee: server-ops → jeremy.orem+bugs
1. Done
2. Done
Attached file 5.3.sql output
step 3.
Attachment #412114 - Attachment mime type: application/octet-stream → text/plain
4. done
5a. error
5b. done
6. done
7. done
8. done
5a: 
Now running:
	SELECT autoid,localized_string FROM translations where id IN (SELECT description FROM addons)
Now running:
	SELECT autoid,localized_string FROM translations where id IN (SELECT developercomments FROM addons)
Now running:
	SELECT autoid,localized_string FROM translations where id IN (SELECT releasenotes FROM versions)
Now running:
	SELECT autoid,localized_string FROM translations where id IN (SELECT bio FROM users)
Now running:
	SELECT autoid,localized_string FROM translations where id IN (SELECT summary FROM addons)
Now running:
	SELECT autoid,localized_string FROM translations where id IN (SELECT description FROM collections)
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Verified FIXED; we're seeing a couple issues, but we'll work to address them:

1) 500 errors (intermittent) while updating add-ons' descriptions from the Dev CP
2) Bug 528403

Everything else looks good.
Status: RESOLVED → VERIFIED
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: