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

VERIFIED FIXED

Status

Infrastructure & Operations
WebOps: Other
VERIFIED FIXED
8 years ago
4 years ago

People

(Reporter: clouserw, Assigned: oremj)

Tracking

other
All
Other
Bug Flags:
needs-downtime +

Details

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

Attachments

(2 attachments)

(Reporter)

Description

8 years ago
Created attachment 412021 [details]
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.
(Reporter)

Updated

8 years ago
Attachment #412021 - Attachment mime type: application/octet-stream → text/plain

Updated

8 years ago
Flags: needs-downtime+
Whiteboard: 11/12/2009 @ 5pm
(Assignee)

Comment 1

8 years ago
Running /bin/run_once/dump_all_blobs.py.
8) `svn up` outgoing.mozilla.org and clear any caches in front of it
(Assignee)

Updated

8 years ago
Assignee: server-ops → jeremy.orem+bugs
(Assignee)

Comment 3

8 years ago
1. Done
2. Done
(Assignee)

Comment 4

8 years ago
Created attachment 412114 [details]
5.3.sql output

step 3.
(Assignee)

Updated

8 years ago
Attachment #412114 - Attachment mime type: application/octet-stream → text/plain
(Assignee)

Comment 5

8 years ago
4. done
5a. error
5b. done
6. done
7. done
8. done
(Assignee)

Comment 6

8 years ago
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
Last Resolved: 8 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
You need to log in before you can comment on or make changes to this bug.