I'm attempting to use drush to index the remaining portions of my site using the site-index command.

However, drush does not seem to move.

Here is the output:

Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]
Remaining items to be indexed: 23379 [ok]

And so on without ever processing a single item.

Comments

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)

does it work from the gui? this used to happen when you have a future dated node/user/whatever

sifuhall’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

the GUI returns an error, so it looks like this issue is with drupal core and not drush.

j0rd’s picture

Version: 6.x-3.2 »

I have it working through cron UI, but not Drush. Same problem as above with latest stable Drush & Drupal 6.x

The timezone on my local machine and dev machine differ, but on the dev machine, I've done a

mysql> SELECT * FROM node WHERE created > NOW();
Empty set (0.01 sec)

Not too sure where else to look. I've tried disabling suspicious modules which implement hook_cron as well to no avail.

Looks like it could be related to:
#880554: search-index never completes, but admin/settings/search shows site as 100% indexed, but I don't have realname module installed.

Also perhaps this
#652894: search index does not update search_total

j0rd’s picture

For me it appears the problem was a custom "domain access" type module, which was using $_SERVER['SERVER_NAME'] and performing redirects off the results. When using `drush` SERVER_NAME is not set and this was causing some redirects.

kenorb’s picture

Project: Drush » Drupal core
Version: » 7.18
Component: Core Commands » search.module
Status: Closed (works as designed) » Active

The same problem.
I don't have realname or domain modules.
But I've search, search_api, apachesolr and apachesolr_views modules.

$ drush -v search-index
Initialized Drupal 7.18 root directory at /home/ubuntu/mp/docroot                                                                                                                                                                                            [notice]
Initialized Drupal site default at sites/default                                                                                                                                                                                                                      [notice]
Remaining items to be indexed: 41                                                                                                                                                                                                                                  [ok]
/usr/bin/php /usr/local/src/drush/drush.php --php=/usr/bin/php  --backend=2 --verbose --root=/home/ubuntu/mp/docroot --uri=http://default  php-eval 'register_shutdown_function('\''search_update_totals'\''); module_invoke('\''node'\'',                   [notice]
'\''update_index'\''); module_invoke('\''user'\'', '\''update_index'\''); module_invoke('\''apachesolr_search'\'', '\''update_index'\'');' 2>&1
Initialized Drupal 7.18 root directory at /home/ubuntu/mp/docroot                                                                                                                                                                                            [notice]
Initialized Drupal site default at sites/default                                                                                                                                                                                                                      [notice]
Command dispatch complete                                                                                                                                                                                                                                             [notice]
Remaining items to be indexed: 41                                                                                                                                                                                                                                  [ok]
/usr/bin/php /usr/local/src/drush/drush.php --php=/usr/bin/php  --backend=2 --verbose --root=/home/ubuntu/mp/docroot --uri=http://default  php-eval 'register_shutdown_function('\''search_update_totals'\''); module_invoke('\''node'\'',                   [notice]
'\''update_index'\''); module_invoke('\''user'\'', '\''update_index'\''); module_invoke('\''apachesolr_search'\'', '\''update_index'\'');' 2>&1
Initialized Drupal 7.18 root directory at /home/ubuntu/mp/docroot                                                                                                                                                                                            [notice]
Initialized Drupal site default at sites/default                                                                                                                                                                                                                      [notice]
Command dispatch complete                                                                                                                                                                                                                                             [notice]
Remaining items to be indexed: 41                                                                                                                                                                                                                                  [ok]
/usr/bin/php /usr/local/src/drush/drush.php --php=/usr/bin/php  --backend=2 --verbose --root=/home/ubuntu/mp/docroot --uri=http://default  php-eval 'register_shutdown_function('\''search_update_totals'\''); module_invoke('\''node'\'',                   [notice]
'\''update_index'\''); module_invoke('\''user'\'', '\''update_index'\''); module_invoke('\''apachesolr_search'\'', '\''update_index'\'');' 2>&1
Initialized Drupal 7.18 root directory at /home/ubuntu/mp/docroot                                                                                                                                                                                            [notice]
Initialized Drupal site default at sites/default                                                                                                                                                                                                                      [notice]
Command dispatch complete                                                                                                                                                                                                                                             [notice]
Remaining items to be indexed: 41                                                                                                                                                                                                                                  [ok]
/usr/bin/php /usr/local/src/drush/drush.php --php=/usr/bin/php  --backend=2 --verbose --root=/home/ubuntu/mp/docroot --uri=http://default  php-eval 'register_shutdown_function('\''search_update_totals'\''); module_invoke('\''node'\'',                   [notice]
'\''update_index'\''); module_invoke('\''user'\'', '\''update_index'\''); module_invoke('\''apachesolr_search'\'', '\''update_index'\'');' 2>&1
Initialized Drupal 7.18 root directory at /home/ubuntu/mp/docroot        
kenorb’s picture

kenorb’s picture

Project: Drupal core » Drush
Version: 7.18 » 7.x-5.8
Component: search.module » User Commands
Status: Active » Closed (duplicate)

Status: Active » Closed (duplicate)