Closed Bug 541982 Opened 16 years ago Closed 15 years ago

Set up Live Chat login migration on support-stage.mozilla.org

Categories

(mozilla.org Graveyard :: Server Operations, task)

x86
Linux
task
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: zzxc, Assigned: oremj)

References

Details

In order to complete the test plan for Live Chat login migration (https://wiki.mozilla.org/Support/Live_Chat/SUMO_login/Testing), we need this set up on staging. Openfire and TikiWiki each need to connect to each others' databases during the migration, so the configuration must be updated on each. Instructions for setting this up on support-stage.mozilla.org: # Update db/local.php by filling in the Openfire database host, name, username, and password # Run scripts/livechat/migration-script.php to complete automatic migration. (Make sure sending mail from staging is turned off at this stage, to avoid spamming all live chat contributors) Once these steps are completed, testing of auto-migrated accounts and tiki-livechat_migration.php can begin.
This is blocking the test of the migration script, so it should be done ASAP.
Severity: major → critical
Depends on: 542025
I have to go down to the colo today, so I will ping folks in server-ops and see if they can handle this.
Assignee: server-ops → aravind
Which openfire instance/database should this point to?
On support-stage, it should point to chat-support-stage's database. On production, it will point to chat-support, but this bug only concerns staging.
Assignee: aravind → jeremy.orem+bugs
cat local.php.dist <?php $db_tiki='mysql'; $dbversion_tiki='1.10'; $host_tiki='localhost'; $user_tiki='mysqluser'; $pass_tiki='mysqluserpw'; $dbs_tiki='mysqldbname'; $memcached_options = array( 'enabled' => TRUE, 'expiration' => 3600, 'key_prefix' => 'sumo_', 'flags' => MEMCACHE_COMPRESSED, 'cache_forum_output' => TRUE, 'cache_wiki_output' => TRUE, 'cache_wiki_data' => FALSE ); $memcached_servers = array( array( 'host' => '127.0.0.1', 'port' => '11211', 'weight' => '1' ) ); ?> Where do the openfire db settings go?
Severity: critical → major
Matthew, please respond to comment 5; thanks!
It looks like a boilerplate for this was never checked in. It should be: $host_of=''; //hostname $user_of=''; //username $pass_of=''; //password $dbs_of='openfire_chat'; //database name (Just add the above lines under the tiki database lines)
(This is blocking my testing of an already-delayed release; expediency is appreciated :-)
Severity: major → critical
local.php has been updated and migration script was run.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
This needs to be run again, after the change from bug 543115 is picked up. The query in bug 542025 should be run just before executing this script.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
[root@mrapp-stage02 livechat]# php -f migration-script.php 1a. Updating Tiki database for same-email users... 1 distinct emails... Done. 1b. Emailing the above Openfire users... Done. 1c. Removing them from the Openfire database... Done. 2. Emailing rest of OpenFire accounts (with email set)... 3 distinct emails... Done 3. Creating livechat_id for non-conflicting TikiWiki accounts... 149734 rows..
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Note: need to run "UPDATE users_users SET livechat_id=NULL;" before the migration.
Now that the RPM is available in https://bugzilla.mozilla.org/show_bug.cgi?id=541983#c7, will this need to be re-run, Matthew?
We should go ahead and run this script again, with updated databases, now that bug 543115 has been patched. The steps that need to happen this time: 1. Import a fresh copy of the Openfire database from production to staging 2. Restart Openfire 3. On tikiwiki's database, run the query in comment 12 4. Execute the automatic import script (./migration-script.php --no-email)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
1. Done in a different bug 2. Done. 3. mysql> UPDATE users_users SET livechat_id=NULL; Query OK, 149198 rows affected (12.03 sec) Rows matched: 149739 Changed: 149198 Warnings: 0 4. Running...
1a. Updating Tiki database for same-email users... 298 distinct emails... Done. 1c. Removing them from the Openfire database... Done. 3. Creating livechat_id for non-conflicting TikiWiki accounts... 148876 rows...
Status: REOPENED → RESOLVED
Closed: 16 years ago15 years ago
Resolution: --- → FIXED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.