Closed (fixed)
Project:
Drush
Version:
All-versions-3.3
Component:
Core Commands
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2011 at 15:25 UTC
Updated:
22 Oct 2011 at 18:00 UTC
Hi,
I'm trying to rebuild the search index for Drupal's core search. When running drush search-index on a site with ~60,000 nodes, drush dies with a fatal error (PHP memory limit of 200M not enough, OK). Then I raised the PHP memory limit to 2000M, started drush search-index again, and drush died again:
Remaining items to be indexed: 49073 [ok]
PHP Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate 60292 bytes) in /usr/share/drush/includes/backend.inc on line 116
Drush command could not be completed.
If two gigabytes of RAM don't suffice to build a bloody search index of ~60,000 nodes, then IMHO that is a bug.
Any suggestions?
Somehow related: #908094: Fatel Error: Allowed memory size exhausted at drush/includes/environment.inc on line 437 and/or line 350
Comments
Comment #1
asb commentedFunny,
etc/php5/cli/php.inihasmemory_limit = -1which seems to trigger Suhosin:OK, I have 24 gig of RAM, let's play this game...:
Now:
http://drupal.org/node/1208592 wtf?
Comment #2
moshe weitzman commentedjust keep rerunning it when it dies. the README suggests the following bash
while true; do drush search-index; sleep 5; doneComment #3
moshe weitzman commentedAnd drush3 is utterly unsupported.
Comment #4
asb commentedThanks, with the one-liner from #2 Drush keeps dying, gets revived, dies again... my shell looks a bit like an ugly Zombie flick ;)
I am aware of the major discrepancy of the dev branches of Drush and what comes packaged with the current Debian GNU/Linux (drush 3.3); it'd be really great to get a viable solution to combine a stable OS with a stable and supported version of Drush, as running tested and stable software in my production environments in crucial. Debian delivers that, but not every released version of Drush did.