[AMO] Run a script on preview

RESOLVED FIXED

Status

mozilla.org Graveyard
Server Operations
RESOLVED FIXED
9 years ago
3 years ago

People

(Reporter: clouserw, Assigned: fox2mike)

Tracking

Details

(Reporter)

Description

9 years ago
We need to run a script for bug 343573.  This needs to be run on preview.amo:

$ cd bin
$ php -f run_once/seed_purified_translations.php

It took about 12 minutes for me. Thanks.
(Assignee)

Updated

9 years ago
Assignee: server-ops → shyam
(Assignee)

Comment 1

9 years ago
[root@mradm02 bin]# time php -f run_once/seed_purified_translations.php 
Now running:
        SELECT autoid,localized_string FROM translations where id IN (SELECT description FROM addons)
PHP Warning:  Base directory /mnt/netapp_amo/addons.mozilla.org-preview/shared_storage/HTMLPurifier does not exist,
                    please create or change using %Cache.SerializerPath in /data/amo/www/addons.mozilla.org-preview/site/vendors/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 117
PHP Warning:  Base directory /mnt/netapp_amo/addons.mozilla.org-preview/shared_storage/HTMLPurifier does not exist,
                    please create or change using %Cache.SerializerPath in /data/amo/www/addons.mozilla.org-preview/site/vendors/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 117
PHP Warning:  Base directory /mnt/netapp_amo/addons.mozilla.org-preview/shared_storage/HTMLPurifier does not exist,
                    please create or change using %Cache.SerializerPath in /data/amo/www/addons.mozilla.org-preview/site/vendors/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 117
PHP Warning:  Base directory /mnt/netapp_amo/addons.mozilla.org-preview/shared_storage/HTMLPurifier does not exist,
                    please create or change using %Cache.SerializerPath in /data/amo/www/addons.mozilla.org-preview/site/vendors/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 117
PHP Warning:  Base directory /mnt/netapp_amo/addons.mozilla.org-preview/shared_storage/HTMLPurifier does not exist,
                    please create or change using %Cache.SerializerPath in /data/amo/www/addons.mozilla.org-preview/site/vendors/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 117
PHP Warning:  Base directory /mnt/netapp_amo/addons.mozilla.org-preview/shared_storage/HTMLPurifier does not exist,
                    please create or change using %Cache.SerializerPath in /data/amo/www/addons.mozilla.org-preview/site/vendors/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 117
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)
PHP Warning:  Base directory /mnt/netapp_amo/addons.mozilla.org-preview/shared_storage/HTMLPurifier does not exist,
                    please create or change using %Cache.SerializerPath in /data/amo/www/addons.mozilla.org-preview/site/vendors/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 117
PHP Warning:  Base directory /mnt/netapp_amo/addons.mozilla.org-preview/shared_storage/HTMLPurifier does not exist,
                    please create or change using %Cache.SerializerPath in /data/amo/www/addons.mozilla.org-preview/site/vendors/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 117
PHP Warning:  Base directory /mnt/netapp_amo/addons.mozilla.org-preview/shared_storage/HTMLPurifier does not exist,
                    please create or change using %Cache.SerializerPath in /data/amo/www/addons.mozilla.org-preview/site/vendors/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 117
PHP Warning:  Base directory /mnt/netapp_amo/addons.mozilla.org-preview/shared_storage/HTMLPurifier does not exist,
                    please create or change using %Cache.SerializerPath in /data/amo/www/addons.mozilla.org-preview/site/vendors/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 117
PHP Warning:  Base directory /mnt/netapp_amo/addons.mozilla.org-preview/shared_storage/HTMLPurifier does not exist,
                    please create or change using %Cache.SerializerPath in /data/amo/www/addons.mozilla.org-preview/site/vendors/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 117
PHP Warning:  Base directory /mnt/netapp_amo/addons.mozilla.org-preview/shared_storage/HTMLPurifier does not exist,
                    please create or change using %Cache.SerializerPath in /data/amo/www/addons.mozilla.org-preview/site/vendors/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 117
Now running:
        SELECT autoid,localized_string FROM translations where id IN (SELECT description FROM collections)

real    11m2.292s
user    3m21.765s
sys     0m2.950s
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
(Reporter)

Comment 2

9 years ago
It worked, the errors are it complaining about not having a writable cache directory.  If you could create and make that directory writable (/mnt/netapp_amo/addons.mozilla.org-preview/shared_storage/HTMLPurifier) it would save us a bug.  Otherwise I'll file another one in the morning.

Thanks.
(Assignee)

Comment 3

9 years ago
Done and chown'd.
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.