Difference between revisions of "Purging deleted users"

From Dreamwidth Notes
Jump to: navigation, search
(add page)
 
m (error diagnosis: Table signature for dboa(database src) doesn't match)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
(These instructions are for a production setup, and may or may not work on a Dreamhack.)
+
== For production environments ==
 +
 
 +
(These instructions may or may not work on a Dreamhack.)
  
 
The expunge-user worker purges accounts that have been deleted for at least 60 days. To run it, you also need to run some other commands in concert.
 
The expunge-user worker purges accounts that have been deleted for at least 60 days. To run it, you also need to run some other commands in concert.
Line 10: Line 12:
  
 
bin/moveucluster.pl --jobserver=127.0.0.1:2789</syntaxhighlight>
 
bin/moveucluster.pl --jobserver=127.0.0.1:2789</syntaxhighlight>
 +
 +
If you get errors along the lines of "Table signature for dboa(database src) doesn't match" make sure you have dropped any obsolete tables from the database before running the jobserver:
 +
 +
<syntaxhighlight lang="bash">bin/upgrading/update-db.pl -r --cluster=all --drop</syntaxhighlight>
 +
 +
== For Dreamhacks and stand-alone development servers ==
 +
 +
For these configurations, you're more likely to want to purge a specific deleted account now, and the following command does exactly that:
 +
 +
<syntaxhighlight lang="bash">$LJHOME/bin/moveucluster.pl --del --expungedel --earlyexpunge <username></syntaxhighlight>
 +
 +
Replace &lt;username&gt; with the username of the deleted account you want to purge.
  
 
[[Category: Development]]
 
[[Category: Development]]
[[Category:Administration]]
+
[[Category: Administration]]

Latest revision as of 20:40, 11 May 2016

For production environments

(These instructions may or may not work on a Dreamhack.)

The expunge-user worker purges accounts that have been deleted for at least 60 days. To run it, you also need to run some other commands in concert.

Open up three terminal windows. From $LJHOME, run the following commands, one in each window:

bin/moveuclusterd.pl -v
 
bin/worker/expunge-users -v
 
bin/moveucluster.pl --jobserver=127.0.0.1:2789

If you get errors along the lines of "Table signature for dboa(database src) doesn't match" make sure you have dropped any obsolete tables from the database before running the jobserver:

bin/upgrading/update-db.pl -r --cluster=all --drop

For Dreamhacks and stand-alone development servers

For these configurations, you're more likely to want to purge a specific deleted account now, and the following command does exactly that:

$LJHOME/bin/moveucluster.pl --del --expungedel --earlyexpunge <username>

Replace <username> with the username of the deleted account you want to purge.