INETSRV seems to be locked, but i can still create and delete file

INETSRV seems to be locked, but i can still create and delete file

am 27.11.2007 00:37:01 von Rappresentante

I have a big problem on my (IIS 6 - Win2k3 web edition) server.
IIS is unable to write on disk its configuration because files like
metaBase.xml and MBSchema.bin.00000000h are "locked".
I tried do to it myself, and I noticed that I'm able to create and delete
files, but not to rename them.

Even if I try with an empty .txt file, I have an error like "being used by
another program or person" just before I created it.

In the system32\ directory I have NO problem.

INETSRV subfolders are locked too.

So, I CANNOT REBOOT my server because if I do I lost my IIS configuration.
Actually there is no updated IIS configuration on my disk.

Can you help me?
Thanks,
RP

Re: INETSRV seems to be locked, but i can still create and delete

am 27.11.2007 05:42:08 von Corey

On Nov 26, 6:37 pm, Rappresentante
wrote:
> I have a big problem on my (IIS 6 - Win2k3 web edition) server.
> IIS is unable to write on disk its configuration because files like
> metaBase.xml and MBSchema.bin.00000000h are "locked".
> I tried do to it myself, and I noticed that I'm able to create and delete
> files, but not to rename them.
>
> Even if I try with an empty .txt file, I have an error like "being used by
> another program or person" just before I created it.
>
> In the system32\ directory I have NO problem.
>
> INETSRV subfolders are locked too.

> So, I CANNOT REBOOT my server because if I do I lost my IIS configuration.
> Actually there is no updated IIS configuration on my disk.
>
> Can you help me?
> Thanks,
> RP

Did you try to export your IIS config? it seems that a reboot is a
must but I would try restarting the IIS services first.
There are not much in the IIS configs that you can loose. note them
down if the IIS export doesnt work.

Re: INETSRV seems to be locked, but i can still create and delete

am 27.11.2007 11:31:10 von David Wang

On Nov 26, 3:37 pm, Rappresentante
wrote:
> I have a big problem on my (IIS 6 - Win2k3 web edition) server.
> IIS is unable to write on disk its configuration because files like
> metaBase.xml and MBSchema.bin.00000000h are "locked".
> I tried do to it myself, and I noticed that I'm able to create and delete
> files, but not to rename them.
>
> Even if I try with an empty .txt file, I have an error like "being used by
> another program or person" just before I created it.
>
> In the system32\ directory I have NO problem.
>
> INETSRV subfolders are locked too.
>
> So, I CANNOT REBOOT my server because if I do I lost my IIS configuration.
> Actually there is no updated IIS configuration on my disk.
>
> Can you help me?
> Thanks,
> RP


Use a tool like Process Explorer / Process Monitor to determine what
process has a lock on the inetsrv directory and the metabase.xml file.
If it is not inetinfo.exe, then terminate those processes.

If you cannot get rid of the processes locking up IIS files (or you
find that IIS is the only one opening the file), then your only choice
is to export IIS configuration using the IIS Manager UI or commandline
tools. IIS6 configuration exists in two places -- on disk inside of
metabase.xml, and in-memory in inetinfo.exe when IIS Admin service is
started. Thus, if IIS Admin service is running but cannot write to
metabase.xml, then you still have IIS configuration in memory -- just
not synchronized to disk. Exporting IIS configuration is one way to
serialize the in-memory configuration to another XML file on disk.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Re: INETSRV seems to be locked, but i can still create and delete

am 27.11.2007 15:54:02 von Rappresentante

> Did you try to export your IIS config? it seems that a reboot is a
> must but I would try restarting the IIS services first.

Yes, I did.
But I have the same error, either with "save configurazion to disk" and with
"backup". I cannot choose the target path, so I think IIS tries always in
inetSRV and MetaBack, that are "locked".

The only way is to use the command line and iisCnfg.vbs, writing to another
folder.
But I think that If I reboot now, I will have to reimport the content of
this file, because IIS will read first the old conf, losing changes.

> There are not much in the IIS configs that you can loose. note them
> down if the IIS export doesnt work.

I don't understand.
IIS configs file are full of settings... usernames, logs formats, header's
names... everyting about my web sites and ftp sites!
Writing them by hand is ... about impossibles!

Thanks
RP

Re: INETSRV seems to be locked, but i can still create and delete

am 27.11.2007 19:21:29 von Trevor Benedict R

If you need to find which app/process is locking the file
use http://www.dr-hoiby.com/WhoLockMe/

Regards,

Trevor Benedict
MCSD

"Rappresentante" wrote in message
news:18B090D9-05BF-471D-B74C-E2D887F06D96@microsoft.com...
>> Did you try to export your IIS config? it seems that a reboot is a
>> must but I would try restarting the IIS services first.
>
> Yes, I did.
> But I have the same error, either with "save configurazion to disk" and
> with
> "backup". I cannot choose the target path, so I think IIS tries always in
> inetSRV and MetaBack, that are "locked".
>
> The only way is to use the command line and iisCnfg.vbs, writing to
> another
> folder.
> But I think that If I reboot now, I will have to reimport the content of
> this file, because IIS will read first the old conf, losing changes.
>
>> There are not much in the IIS configs that you can loose. note them
>> down if the IIS export doesnt work.
>
> I don't understand.
> IIS configs file are full of settings... usernames, logs formats, header's
> names... everyting about my web sites and ftp sites!
> Writing them by hand is ... about impossibles!
>
> Thanks
> RP

Re: INETSRV seems to be locked, but i can still create and delete

am 27.11.2007 20:13:04 von Rappresentante

> Use a tool like Process Explorer / Process Monitor to determine what
> process has a lock on the inetsrv directory and the metabase.xml file.
> If it is not inetinfo.exe, then terminate those processes.

Using handle.exe from sysinternals I have:


Handle v3.2
Copyright (C) 1997-2006 Mark Russinovich
Sysinternals - www.sysinternals.com

winlogon.exe pid: 700 1DC: C:\WINDOWS\system32\inetsrv
winlogon.exe pid: 700 29C: C:\WINDOWS\system32\inetsrv\iisadmpwd
inetinfo.exe pid: 1944 174:
C:\WINDOWS\system32\inetsrv\MBSchema.bin.00000000h
inetinfo.exe pid: 1944 1D4: C:\WINDOWS\system32\inetsrv
inetinfo.exe pid: 1944 224: C:\WINDOWS\system32\inetsrv\MBSchema.xml
w3wp.exe pid: 1272 10: C:\WINDOWS\system32\inetsrv
w3wp.exe pid: 1272 240: C:\WINDOWS\system32\inetsrv\asp.dll
w3wp.exe pid: 1272 248: C:\WINDOWS\system32\inetsrv\asp.dll
w3wp.exe pid: 1272 3B4: C:\WINDOWS\system32\inetsrv\asp.dll
w3wp.exe pid: 1272 5F8: C:\WINDOWS\system32\inetsrv

So I think all is normal here!

RP