Disable Media Usage Index

Matthew Butler asked on August 12, 2022 00:04

I'm currently getting a lot of errors, with the media index so I'm looking to disable it.

I've disabled the local index task and set key="CMSProcessSearchTasksByScheduler" value="true", but I'm still getting the errors

Message: Error while processing index MediaFilesUsage: An error occurred while obtaining the index writer. This may be caused by a fatal error or index corruption. Consider rebuilding the index if the problem persists.

Correct Answer

Juraj Ondrus answered on October 6, 2022 13:03

It should be possible to disable the indexing in the upcoming hotfix no. 85. It is being currently tested.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on August 12, 2022 16:57

What are the errors you're receiving with the Media files usage? Manually disabling it actually breaks functionality in the Kentico UI, so you might want to reconsider that.

Documentation.

0 votesVote for this answer Mark as a Correct answer

Matthew Butler answered on August 12, 2022 22:12

I’m getting the error above, I thought the functionality was just a report on usage. Thank you

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on August 13, 2022 06:07

If you're having issues with smart search in general (which is where that media file usage index runs from), I'd suggest checking out the Smart Search troubleshooting documentation. The primary issue we see is read and write permissions to the App_Data directory of the CMS and MVC app.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on August 22, 2022 13:14

I would try the latest hotfix. There were some bugs fixed in this regards and also a new web.config key was introduced in hotfix no. 71: https://devnet.kentico.com/download/hotfixes

0 votesVote for this answer Mark as a Correct answer

Matthew Butler answered on August 30, 2022 09:13

Do I need the media index enabled? as I'm running from package in Azure.

0 votesVote for this answer Mark as a Correct answer

Matthew Butler answered on October 6, 2022 12:29

Any advice on this? I don't think I need the functionality the index provides so would like to disable, is it ok to do this? How do I do this?

0 votesVote for this answer Mark as a Correct answer

Matthew Butler answered on October 6, 2022 13:25

Thank you, Do you have a rough expected release date for the hotfix?

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on October 6, 2022 13:27

It should be released today, you can watch it here: https://devnet.kentico.com/download

0 votesVote for this answer Mark as a Correct answer

Matthew Butler answered on October 6, 2022 13:36

excellent thank you

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on October 6, 2022 14:10

Hotfix was released few minutes ago, you can download and apply it - there is a new setting introduced using which you can disable media files usage index.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.