The official blog for Windows Server Essentials and Small Business Server support and product group communications.
[Today's tip comes to us courtesy of Mark Stanfill]
Update: The steps below are no longer needed. To get past the errors, below, please download Service Pack 2 using the steps outlined in http://support.microsoft.com/default.aspx?scid=kb;EN-US;940276.
We're currently tracking an issue where Windows Server 2003 SP2 may fail to install for some Automatic Update clients. There is a limitation in the database that Automatic Updates uses to track hotfix and service pack installations that may result in AU being unable to apply new patches if a very large number of fixes have been installed (>100). This number is reset when a service pack is applied, so it is relatively hard to reach this threshold unless you are installing individual updates and have not upgraded to SP1. That said, there are a certain number of SBS customers installed from the original 2003 media (i.e. pre-SP1 media), who may fall in to this category.
You can also see this error if you try to manually install SP2 manually. In this case, you will receive the following pop-up error:
Failed to install catalog files.
The main symptom you will see in this case is that Automatic Updates/Windows Update/Microsoft Update will fail and you will see an error similar to the one below logged in svcpack.log:
960.484: InstallSingleCatalogFile: MyInstallCatalog failed for Tmp.0.ntprint.cat; error=0xfffffbfe.
There may be other issues that cause automatic updates to fail. Unless you see the 0xfffffbfe error, you are dealing with another issue. These are documented in the following articles:
925931 You may be unable to apply more updates at a certain point on a Windows Server 2003-based computer
http://support.microsoft.com/default.aspx?scid=kb;EN-US;925931
822798 You cannot install some updates or programs
http://support.microsoft.com/default.aspx?scid=kb;EN-US;822798
Manual Method
To resolve this issue and allow SP2 to install, either use the manual steps below, or, alternatively, use the batch file below:
Batch File Version
[Edit - batch file modified 11-09-2007]
Copy and paste between the "; --------" portions to a file called fixcatalog.bat and execute the batch file. Watch for line wraps.):
; ----------------------------- @ECHO OFFSETLOCAL EnableDelayedExpansion net stop cryptsvccd /d %WINDIR%\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}attrib -s *.*md %WINDIR%\system32\CatRoot\backup FOR /F "delims=" %%a in ('REG QUERY "HKLM\Software\microsoft\Windows NT\CurrentVersion\Hotfix"') DO (REG QUERY "%%a" /v "Service Pack" | findstr /c:"0x2"if !ERRORLEVEL!==0 (For /f "delims=\ tokens=7" %%i in ('REG QUERY "%%a" /v "Service Pack"') do (move %%i.cat %WINDIR%\system32\CatRoot\backup ))) if exist %WINDIR%\system32\CatRoot\backup\kb912354.cat copy %WINDIR%\system32\CatRoot\backup\kb912354.cat %WINDIR%\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}ren %WINDIR%\system32\catroot2 catroot2.oldmd %WINDIR%\system32\CatRoot2net start cryptsvc @echo Ready for SP2 install. You can now restart the SP2 installation. ; ------------------------------
; -----------------------------
@ECHO OFFSETLOCAL EnableDelayedExpansion
net stop cryptsvccd /d %WINDIR%\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}attrib -s *.*md %WINDIR%\system32\CatRoot\backup
FOR /F "delims=" %%a in ('REG QUERY "HKLM\Software\microsoft\Windows NT\CurrentVersion\Hotfix"') DO (REG QUERY "%%a" /v "Service Pack" | findstr /c:"0x2"if !ERRORLEVEL!==0 (For /f "delims=\ tokens=7" %%i in ('REG QUERY "%%a" /v "Service Pack"') do (move %%i.cat %WINDIR%\system32\CatRoot\backup )))
if exist %WINDIR%\system32\CatRoot\backup\kb912354.cat copy %WINDIR%\system32\CatRoot\backup\kb912354.cat
%WINDIR%\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}ren %WINDIR%\system32\catroot2 catroot2.oldmd %WINDIR%\system32\CatRoot2net start cryptsvc
@echo Ready for SP2 install. You can now restart the SP2 installation.
; ------------------------------
Like the last line of the batch file says, SP2 installation must be restarted after running the batch file.
Notes
In some situations, you may not be able to use the steps above (either manual or batch file) because of one or both of the following conditions:
If you are unable to complete any of the steps above, you will need to boot in to safe mode to complete the process
Uninstalling SP2 After Using These Steps
One of the side-effects of using this procedure is that we are effectively removing your update history. In the event that you need to remove SP2 afterwards, you will need to use these steps:
Uninstall Batch File Version
Copy and paste between the "; --------" portions to a file called fixuninstall.bat and execute the batch file):
; ----------------------------- net stop cryptsvc copy %WINDIR%\system32\CatRoot\backup\* %WINDIR%\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE} ren %WINDIR%\system32\catroot2 catroot2.old md %WINDIR%\system32\CatRoot2 net start cryptsvc @echo Ready for SP2 uninstall. ; ------------------------------
net stop cryptsvc
copy %WINDIR%\system32\CatRoot\backup\* %WINDIR%\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}
ren %WINDIR%\system32\catroot2 catroot2.old
md %WINDIR%\system32\CatRoot2
net start cryptsvc
@echo Ready for SP2 uninstall.
Today's SBS blog moment is brought to you by Mark Stanfill: Service Pack 2 may fail to install if
Can't install Windows 2003 sp2? I am trying to install Windows Server 2003 SP on a Small Business
Well, I have a server with exactly this problem. The only other issue with doing the manual roll-up is that I seem to be missing the all important KB912354.CAT file so I guess I am out of luck.
I did the batch process and tried to install SP2 and it failed with the same error. Then I tried the manual process with the same result.
Like Kelly above I don't have the KB912354.CAT file either.
What do I need to do to fix this?
I had this problem recently when installing SP1 on a client's server. The steps above allowed the install to complete without error. Thank you so much!
[Today's tip comes to us courtesy of Chris Puckett] The batch file in June's post, SP2 May Fail to Install
So how many have not installed SBS 2003 sp1 (not SP2, but SP1)? Because if you haven't, you are getting
I recently worked on a case where we were unable to install SP2 on a Small Business Server 2003. Normally
Gestern wollt ich auf der Arbeit unseren schändlich vernachlässigten Windows 2003 Small Business Sever updaten, der gefährlicherweise auch noch direkt am Internet hängt (ich hab´s nicht eingerichtet!). Kam nur leider immer eine Fehlermeldung Die Integrit