Good morning,
We have been tracking down a problem with one of our mapped drives several users utilize. For some reason periodically during the day, at seemingly random times, for random amounts of time file names aren't able to be changed in this directory. We receive a 'file is open cannot change name' error.
Is there any way Everything application may be causing this issue? This directory is massive but I understand everything indexes very quickly.
We can create a folder then instantly try and change the name giving us the error.
Thanks in advance!
Locking files while indexing?
Re: Locking files while indexing?
files or folders?
If it's folders, it's a weird bug with ReadDirectoryChanges on Windows Server 2019+ and Windows 10+
ReadDirectoryChanges opens handles to ALL monitored folders and leaves them open for a long time.
They are eventually closed.
Some options are:
Run Everything 1.5 on the client with the Everything Server on the server.
Run Everything 1.5 with ReadDirectoryChanges disabled.
Everything will still detect changes made locally, but not remote changes. Daily rescans will keep your indexes up to date.
To disable ReadDirectoryChanges:
Everything will rescan daily to keep your indexes up to date.
Everything doesn't open files directly.
If it's files, then it might be a icon, thumbnail or preview handler.
Please try showing results in detail mode (View -> Details)
Disable the preview pane under View -> Preview
Disable icon handlers:
Copy and paste the following into your Everything search box:
/icon_shell_extensions=0
Press ENTER in your Everything search box.
If successful, icon_shell_extensions=0 is shown in the status bar for a few seconds.
Does the issue persist?
If it's folders, it's a weird bug with ReadDirectoryChanges on Windows Server 2019+ and Windows 10+
ReadDirectoryChanges opens handles to ALL monitored folders and leaves them open for a long time.
They are eventually closed.
Some options are:
Run Everything 1.5 on the client with the Everything Server on the server.
Run Everything 1.5 with ReadDirectoryChanges disabled.
Everything will still detect changes made locally, but not remote changes. Daily rescans will keep your indexes up to date.
To disable ReadDirectoryChanges:
- In Everything 1.5, from the Tools menu, click Options.
- Click the Advanced tab on the left.
- To the right of Show settings containing, search for:
changes - Select: read_directory_changes
- Set the value to: false
- Click OK.
Everything will rescan daily to keep your indexes up to date.
Everything doesn't open files directly.
If it's files, then it might be a icon, thumbnail or preview handler.
Please try showing results in detail mode (View -> Details)
Disable the preview pane under View -> Preview
Disable icon handlers:
Copy and paste the following into your Everything search box:
/icon_shell_extensions=0
Press ENTER in your Everything search box.
If successful, icon_shell_extensions=0 is shown in the status bar for a few seconds.
Does the issue persist?
Re: Locking files while indexing?
Thank you for the reply.
It is only folders, we haven't seen an issue with files yet. The server is Windows server 2025.
What you say seems to correlate with our experience as it will eventually fixed on its some some time later.
If we disable ReadDirectoryChanges, should we be able to schedule the scan midday and not create the issue? Right now the scan occurs at 3pm. Pushing that back to after hours may have an additional issue if the laptops/desktops are offline or not available during that time.
Thanks!
It is only folders, we haven't seen an issue with files yet. The server is Windows server 2025.
What you say seems to correlate with our experience as it will eventually fixed on its some some time later.
If we disable ReadDirectoryChanges, should we be able to schedule the scan midday and not create the issue? Right now the scan occurs at 3pm. Pushing that back to after hours may have an additional issue if the laptops/desktops are offline or not available during that time.
Thanks!
Re: Locking files while indexing?
The default scheduled rescan is daily at 3am.
This can be changed under Tools -> Options -> Folders -> Network share.
If a scheduled rescan is missed Everything will rescan as soon as possible. (the next time Everything is started)
To disable this behavior:
Copy and paste the following into your Everything search box:
/folder_update_rescan_asap=0
Press ENTER in your Everything search box.
If successful, folder_update_rescan_asap=0 is shown in the status bar for a few seconds.
Rescanning will temporarily open a folder handle and is quickly released so you shouldn't have any troubles with locked folders.
This can be changed under Tools -> Options -> Folders -> Network share.
If a scheduled rescan is missed Everything will rescan as soon as possible. (the next time Everything is started)
To disable this behavior:
Copy and paste the following into your Everything search box:
/folder_update_rescan_asap=0
Press ENTER in your Everything search box.
If successful, folder_update_rescan_asap=0 is shown in the status bar for a few seconds.
Rescanning will temporarily open a folder handle and is quickly released so you shouldn't have any troubles with locked folders.
Re: Locking files while indexing?
Ok, we have been playing with different options to try and resolve this and haven't been able to yet. We are using this on a business server that has a few clients connected for searching. We obtained a year trial key and are happy to pay for licensing moving forward if we can get this to work.
We installed the latest version of everything server plugin and configured it per the recommendations in this forum. viewtopic.php?t=9794#install
I have a couple computers that are accessing this directory but it still seems to happen. My assumption is, if I search from two computers, and only one of the clients is configured to use the everything server the files will still lock correct? On the server I can see the plugin under the options/tools but I'm not sure how to tell if its actually running. I'm wondering if I have missed a computer somewhere and someone is still accessing it without using the Everything server. Is that possible?
We installed the latest version of everything server plugin and configured it per the recommendations in this forum. viewtopic.php?t=9794#install
I have a couple computers that are accessing this directory but it still seems to happen. My assumption is, if I search from two computers, and only one of the clients is configured to use the everything server the files will still lock correct? On the server I can see the plugin under the options/tools but I'm not sure how to tell if its actually running. I'm wondering if I have missed a computer somewhere and someone is still accessing it without using the Everything server. Is that possible?
Re: Locking files while indexing?
Most likely there's still a client with folder indexes.I'm wondering if I have missed a computer somewhere and someone is still accessing it without using the Everything server. Is that possible?
Easiest way to check:
On the Server, from the Start menu, search for:
ComputerClick Computer Management
In Computer Management, navigate to:
Computer Management -> System Tools -> Shared Folders -> Open FilesCheck who the share is accessed by.
The Everything Server will not have any open files.
Clients using just the Everything server will not have any open files.