Developer forum

Forum » Development » Index file locked

Index file locked

Karol Barkowski
Reply

Hello,

I've made some changes in  my products and I wanted to rebuild the indexes. And for some reason I started to recieve errors saying that "process cannot access the file", like on the image below.

What on earth is going on there? I already tried killing the app few times by making some dummy changes in config file so the IIS restarted the page (seriously, there's no other way, by the way?).

Anyone seen this before? Is there anything I can do to unlock those files?

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Karol

Take a look at the reported file location if the file is there, and if it is, delete it. This can happen if i.e. antivirus happens to lock the file and fails to release it, or it can be missing permissions or the file somehow got to be read-only. It can also be a hanging thread in IIS that locks the file - then IISreset is the only option to release it.

On the index you also have a balancer - you have 2 options - you can also try to switch to the other balancer than the one you are currently using, and then hope that it will release the .lock file.

BR Nicolai

Votes for this answer: 1
 
Karol Barkowski
Reply

Thank Nikolai.

changing the balancer did the trick. But it's damn worrying that such things happen on the hosting environment. Those will be used by our clients and their users. I cannot just give them similar information that they cannot browse products anymore because something locked a file. Thoes are internal DW tools there so they should be reliable and not cause such issues.
 

 

You must be logged in to post in the forum