files incorrectly locked?

  • Thread starter Thread starter Michiel
  • Start date Start date
M

Michiel

Hello,

I have a problem with a web server running Windows 2000 Server Service
Pack 4.

After the server has been running for a while (not sure how long),
attempts to delete certain files fail. This has happened with old IIS
log files. The system seems to think the file is locked ("Cannot
delete ...: There has been a sharing violation. The source or
destination file may be in use.").

However, I have no indication that the file is actually open by any
other process. The log file is over a year old and IIS is set to start
a new log file once a week. The file is not listed in Computer
Management/Shares/Open Files. I've used the Sysinternals Handle and
Process Explorer and the log file doesn't show up anywhere. I've tried
closing various processes (including IIS), but it doesn't make a
difference.

One more detail: the file is compressed. I can turn the compressed
state off and back on without errors. I can even open the file in
Notepad, edit it and save it. But I cannot delete it.

Nothing in the Event Log that seems related. No disk errors.

After a server restart everything is back to normal.

Please advise.

Thank you,

Michiel
 
Hi,

just a shot in the dark but have you tried dragging it to
another location and then try deleting?
 
Jason,

Sure. The file cannot be moved. I can copy it and delete the copy, but
that doesn't help me.

Thank you for following up. The fact that I received only one
follow-up makes me think that this is very unusual.

Michiel
 
Hello,

I have a problem with a web server running Windows 2000 Server Service
Pack 4.

After the server has been running for a while (not sure how long),
attempts to delete certain files fail. This has happened with old IIS
log files. The system seems to think the file is locked ("Cannot
delete ...: There has been a sharing violation. The source or
destination file may be in use.").
I use a little util called "Who Lock Me?". Great english, I know.
It shows up in the context menu when I right click a file and if the
file is actually locked, brings up a window with the info on what
process or app locked it up. I can also click on the app and a greyed
out Kill Process button comes active..... might be worthwhile for
ya...
However, I have no indication that the file is actually open by any
other process. The log file is over a year old and IIS is set to start
a new log file once a week. The file is not listed in Computer
Management/Shares/Open Files. I've used the Sysinternals Handle and
Process Explorer and the log file doesn't show up anywhere. I've tried
closing various processes (including IIS), but it doesn't make a
difference.

One more detail: the file is compressed. I can turn the compressed
state off and back on without errors. I can even open the file in
Notepad, edit it and save it. But I cannot delete it.

Nothing in the Event Log that seems related. No disk errors.

After a server restart everything is back to normal.

Please advise.

Thank you,

Michiel

~~~~~~
Bait for spammers:
root@localhost
postmaster@localhost
admin@localhost
abuse@localhost
postmaster@[127.0.0.1]
(e-mail address removed)
~~~~~~
Remove "spamless" to email me.
 
Have you tried MOVING the files?

I have a similar problem on my system, can't delete files sometimes, but
usually CAN if I move them first.
I have lots of folders littered about named "Delete Me"... and routinely
move such problem files there as a first step to deletion.

Also... I would love to try out that "Who Lock Me" utility... got a URL?



Overlord said:
Hello,

I have a problem with a web server running Windows 2000 Server Service
Pack 4.

After the server has been running for a while (not sure how long),
attempts to delete certain files fail. This has happened with old IIS
log files. The system seems to think the file is locked ("Cannot
delete ...: There has been a sharing violation. The source or
destination file may be in use.").
I use a little util called "Who Lock Me?". Great english, I know.
It shows up in the context menu when I right click a file and if the
file is actually locked, brings up a window with the info on what
process or app locked it up. I can also click on the app and a greyed
out Kill Process button comes active..... might be worthwhile for
ya...
However, I have no indication that the file is actually open by any
other process. The log file is over a year old and IIS is set to start
a new log file once a week. The file is not listed in Computer
Management/Shares/Open Files. I've used the Sysinternals Handle and
Process Explorer and the log file doesn't show up anywhere. I've tried
closing various processes (including IIS), but it doesn't make a
difference.

One more detail: the file is compressed. I can turn the compressed
state off and back on without errors. I can even open the file in
Notepad, edit it and save it. But I cannot delete it.

Nothing in the Event Log that seems related. No disk errors.

After a server restart everything is back to normal.

Please advise.

Thank you,

Michiel

~~~~~~
Bait for spammers:
root@localhost
postmaster@localhost
admin@localhost
abuse@localhost
postmaster@[127.0.0.1]
(e-mail address removed)
~~~~~~
Remove "spamless" to email me.
 
Have you tried MOVING the files?

I have a similar problem on my system, can't delete files sometimes, but
usually CAN if I move them first.
I have lots of folders littered about named "Delete Me"... and routinely
move such problem files there as a first step to deletion.

Also... I would love to try out that "Who Lock Me" utility... got a URL?
Dere ya go!
http://www.dr-hoiby.com/WhoLockMe/index.html
Also shows screen shots.
Overlord said:
Hello,

I have a problem with a web server running Windows 2000 Server Service
Pack 4.

After the server has been running for a while (not sure how long),
attempts to delete certain files fail. This has happened with old IIS
log files. The system seems to think the file is locked ("Cannot
delete ...: There has been a sharing violation. The source or
destination file may be in use.").
I use a little util called "Who Lock Me?". Great english, I know.
It shows up in the context menu when I right click a file and if the
file is actually locked, brings up a window with the info on what
process or app locked it up. I can also click on the app and a greyed
out Kill Process button comes active..... might be worthwhile for
ya...
However, I have no indication that the file is actually open by any
other process. The log file is over a year old and IIS is set to start
a new log file once a week. The file is not listed in Computer
Management/Shares/Open Files. I've used the Sysinternals Handle and
Process Explorer and the log file doesn't show up anywhere. I've tried
closing various processes (including IIS), but it doesn't make a
difference.

One more detail: the file is compressed. I can turn the compressed
state off and back on without errors. I can even open the file in
Notepad, edit it and save it. But I cannot delete it.

Nothing in the Event Log that seems related. No disk errors.

After a server restart everything is back to normal.

Please advise.

Thank you,

Michiel

~~~~~~
Bait for spammers:
root@localhost
postmaster@localhost
admin@localhost
abuse@localhost
postmaster@[127.0.0.1]
(e-mail address removed)
~~~~~~
Remove "spamless" to email me.

~~~~~~
Bait for spammers:
root@localhost
postmaster@localhost
admin@localhost
abuse@localhost
postmaster@[127.0.0.1]
(e-mail address removed)
~~~~~~
Remove "spamless" to email me.
 
Back
Top