Can't compact -c log.nsf, in use even when offline?

I’ve been able to upgrade the ODS for all my databases now except log.nsf. I still get the error “database in use by you or another person” even when the server is down. Is the ncompact.exe program trying to write to the log.nsf even when trying to compact it?

Subject: remove it?

If you delete log.nsf (or, more cautiously, move it to someplace else) when the server is down, it will get recreated when the server starts. If CREATE_R85_DATABASES=1 is in notes.ini, you will have your latest ODS.

Subject: No way to upgrade?

There’s no way to be able to do it without loosing the log?

Subject: umm…

after 7 days, the information in your log file would be deleted anyway. Keep the old one around for 7 days then delete it.

Subject: Re: Can’t compact -c log.nsf, in use ev…

Not really…because the compact process itself writes to the “log.nsf” file.

Having said that…here’s a trick to try:

  1. Shut down the Domino server

  2. from the OS command prompt, rename the log.nsf file to something else (ren log.nsf savelog.nsf)

  3. run the compact against the “savelog.nsf” file

  4. rename/erase the log file created by the compact command.

  5. rename “savelog.nsf” back to “log.nsf”

That should do it…but it’s probably easier/best just to rename it then let the server create a new copy from scratch with the desired ODS level.

Subject: compact log.nsf works…

  • shutdown domino- open a command prompt and go to the domino directory

  • ncompact.exe -c log.nsf

  • after its done start domino

Subject: ncompact will work

On some Windows Servers I have seen this issue. If you stop domino sometimes there is a task or two left running called belnapi.exe, you can see this in task manager. I used Unlocker.exe and when I attempted to move the log file a message popped up saying that the file was in use, close the dialog and Unlocker springs into life with a list of processes that have log.nsf, it also tells you the PID. If you kill the relevent PID you will be able to run “ncompact log.nsf -c”. Hope this helps.