4

I have a local environment and an online environment. Reindexing works locally but not online.

In the backend I'm getting the message:

One or more of the Indexes are not up to date: Product Attributes, Product Prices, Catalog URL Rewrites, Category Products, Catalog Search Index, Stock Status, Tag Aggregation Data. Click here to go to Index Management and rebuild required indexes.

If I try to do this on the Index Management Page like this:

enter image description here

Then I get a success message but as you can see Updated at is still at an older date and Status is still REINDEX REQUIRED. (also refreshed the page but no difference)

enter image description here

I also tried to do this through the command line like this:

enter image description here

And then the following:

enter image description here

But no difference .. What could be the problem of this?

1

Whenever you start an indexing process, Magento writes out a lock file to the var/locks folder.

$ cd /path/to/magento
$ ls var/locks
index_process_1.lock    index_process_4.lock    index_process_7.lock
index_process_2.lock    index_process_5.lock    index_process_8.lock
index_process_3.lock    index_process_6.lock    index_process_9.lock

The lock file prevents another user from starting an indexing process. However, if the indexing request times out or fails before it can complete, the lock file will be left in a lock state. That's probably what happened to you. I'd recommend you check the last modified dates on the lock files to make sure someone else isn't running the re-indexer right now, and then remove the lock files.

I hope this will help you.

  • I've removed all the lock files. But when I run the reindexing there are no lock files created .. . – nielsv Jan 5 '16 at 12:13
  • give proper folder and files permission. – denish vachhani Jan 5 '16 at 12:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.