Bug: halt when deleting unneeded update files

If WSUS installed on a heavy IO loaded harddrive (LUN) of a VM, when deleting unneeded update files by Server Cleanup Wizard, MMC node may halt.
Server OS: Windows Server 2012 Standard
Errors can be located in Event Log:
An unhandled exception occurred and the process was terminated.
Application ID: /LM/W3SVC/1881423753/ROOT/ServerSyncWebService
Process ID: 3288
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace:    at Microsoft.UpdateServices.Internal.DataAccess.GetRevisionIdListForCache(Int64 deploymentChangeNumber, Int64& highestChangeNumber, CategoryIdCacheEntry[]&
newCategoryDeployments, CategoryIdCacheEntry[]& deletedCategoryDeployments, RevisionIdCacheEntry[]& newRevisionDeployments, RevisionIdCacheEntry[]& deletedRevisionDeployments)
at Microsoft.UpdateServices.Internal.RevisionIdCache.UpdateCategoryAndRevisionIdCache(Int64 deploymentChangeNumberAtRefresh)
at Microsoft.UpdateServices.Internal.ServerImplementation.UpdateCache()
at Microsoft.UpdateServices.Internal.ServerImplementation.DatabaseChangeHandler(Object byTimer)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireNextTimers()
Application: w3wp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
Stack:
at Microsoft.UpdateServices.Internal.DataAccess.GetRevisionIdListForCache(Int64, Int64 ByRef, Microsoft.UpdateServices.Internal.CategoryIdCacheEntry[] ByRef, Microsoft.UpdateServices.Internal.CategoryIdCacheEntry[]
ByRef, Microsoft.UpdateServices.Internal.RevisionIdCacheEntry[] ByRef, Microsoft.UpdateServices.Internal.RevisionIdCacheEntry[] ByRef)
at Microsoft.UpdateServices.Internal.RevisionIdCache.UpdateCategoryAndRevisionIdCache(Int64)
at Microsoft.UpdateServices.Internal.ServerImplementation.UpdateCache()
at Microsoft.UpdateServices.Internal.ServerImplementation.DatabaseChangeHandler(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.TimerQueueTimer.CallCallback()
at System.Threading.TimerQueueTimer.Fire()
at System.Threading.TimerQueue.FireNextTimers()
Faulting application name: w3wp.exe, version: 8.0.9200.16384, time stamp: 0x50108835
Faulting module name: KERNELBASE.dll, version: 6.2.9200.16384, time stamp: 0x5010ab2d
Exception code: 0xe0434352
Fault offset: 0x00000000000189cc
Faulting process id: 0xcd8
Faulting application start time: 0x01cdcff0fa98da3e
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\Windows\system32\KERNELBASE.dll
Report Id: 332ed25c-3c39-11e2-93f1-005056b26389
Faulting package full name: 
Faulting package-relative application ID:
Step to repo:
1 Open Update Services MMC.
2 Click Options from the left panel.
3 Select Server Cleanup Wizard from the right.
4 Press Next.
MMC node MAY(only when lots of files need to be deleted) be prompted to be reset when deleting unneeded files if it's running longer than usual. Re-open Update Services MMC will fix it. But
it will be appeared again another day when many unneeded files exist.
Eternal Snow

Nothing to me indicated that his previous disks weren't functional.
In the very first two lines of the first post of this thread, the drive was described as "heavily loaded". Specifically the scenario was:
If WSUS installed on a heavy IO loaded harddrive (LUN) of a VM
Running the Server Cleanup Wizard, particularly performing the "Delete unneeded updates..." action is a highly database intensive action. If that task is competing for IOPS on the disk system, then there's absolutely a high probability that the task
will "timeout" before the stored proc being called can complete it's task.
The "fix" is to put the application on a properly equipped machine.
If the guys who wrote the system can't create it to not fall over if the HDs it's on happen to be a wee bit slow, then yes it's a bug and they've written it badly.
We're not talking about "a wee bit slow", though, are we?
As for timeout issues, it's a natural artifact of a WSUS server these days. Read every tenth thread in this forum and somebody is having issues with timeout errors.
There are two contributing factors. The first is that the number of updates currently contained in the MU catalog is about 100x the number of updates that existed when WSUS v3 was originally written in 2007.
The second is that in 95% of the cases, the administrator reporting the issue failed to properly performed needed administrative and maintenance activities on the WSUS server over the lifespan of the server.
Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
SolarWinds Head Geek
Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2013)
My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence R Garvin
http://www.solarwinds.com/gotmicrosoft
The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

Similar Messages

  • Error when deleting or updating document from indexed database

    I have a transactionally protected encrypted, indexed database for which I want to update and delete documents. When I try to delete or update the documents I get an exception stating that the document does not exist (even if I retrieved it, modified its contents and attempted to update it). If I do the same procedure on an identical database (with no indexing) I have no issues and am able to both delete and update. I have experienced this problem from both the dbxml shell and from a C++ program. I am using version 2.2.13.
    Has anyone experienced this before or know of a workaround?
    Doug

    I have narrowed it down to a single boolean index. I cannot figure out why this specific index is causing the issues. I use the same function to write the xml entry as for all of the other boolean values that are indexed. All of its values seem valid (true or false), so I am puzzled.
    Doug

  • Can I delete software update files?

    Hi,
    I have found out some files call ADBEDRWVCS4LS1.dmg,ADBEFLPRCS4LS1.dmg,.... in my hard disk.
    Are they important? Can i delete them?
    Thank you.

    You can delete them as long as you no longer need their content. If you double click them an installer should appear. Is this one you might need in the future to keep In backup?
    If not, delete it. Note pkg files sitting in receipts folders are needed for repairing permissions.

  • Is it safe to delete iOS update files? (in this case 4.3.4, from DocsAndSets/username/AppData/Apple Computer/iTunes/iPod Software Updates/iPod4,1_4.3.4_8K2_Restore.ipsw)

    Im just updated my iOS on iPod Touch 4 to version 4.3.4, but I do not have enough space on my hard drive to keep this on my PC. Thanks for answer.

    You can, but if you do, the next time you have to restore your device, it'll have to download the software again.

  • Ios 8 update file downlode only

    ios 8 update file downlode only

    Demo wrote:
    Phil0124 wrote:
    You cannot delete the update file in iOS 6 directly. That was a feature introduced in iOS 7 as far as I remember.
    Thanks for the update Phil. I would have never remembered that, which I think is obvious at this point.
    I remember that situation well. An iOS update file, automatically downloaded to MANY iOS devices without the user's permission & no easy way (aside from actually installing it) to remove it to regain the storage space (multiple GBs) that was stolen. It's still a sore spot to me...

  • When I update itunes it deletes the library file, and when I restore that file from the previous libraries or my backup, itunes will run but tell me "the iTunes library file cannot be saved. A folder was specified instead of a file" How do I fix this?

    When I update itunes it deletes the library file, and when I restore that file from the previous libraries or my backup, itunes will run but tell me "the iTunes library file cannot be saved. A folder was specified instead of a file" How do I fix this?

    Hi there Br0x,
    You may want to try rebuilding the iTunes library as an initial troubleshooting step. Take a look at the article below for more information.
    iTunes: How to re-create your iTunes library and playlists
    http://support.apple.com/kb/ht1451
    -Griff W.

  • Since Maverick update, when I try to share a video I get Error 1 frame. I have duplicated the project, I have deleted all rendered files. I have tried it several times and always gives me a different frame.

    Since Maverick update, when I try to share a video I get Error 1 and a frame number. I have duplicated the project and tried to share. I have deleted all rendered files and then render again. I deleted all rendered and then tried to share it before rendering. Nothing works. I shared the project a couple of weeks ago and was fine. I only changed a small clip and can't share to burn a dvd.

    What software version? What computer?
    Trash preferences. Switch off background rendering. Trash project and event render files. Do not render. Export. Do not do anything on the computer during export. Make sure App Nap is switched off in the Finder.

  • I have a hp C410 all-in-one series printer.  When I updated to 10.8.1 it was no longer supported.  HP told me to go to the Apple system updates and download an installation program.  I can't find that program in my Apple updates file.

    I have a hp C410 all-in-one series printer.  When I updated to 10.8.1 it was no longer supported.  HP told me to go to the Apple system updates and download an installation program update.  I can't find that program in my Apple updates file.  Please help.

    From the HP Support site, this may help:)
    "Re: Problem with latest HP software update for Mountain Lion and HP Photosmart Premier C410.
    Options 
    08-10-2012 10:54 AM
    Download and install this: http://support.apple.com/kb/DL907
    Reset the printing system:
    - Go to System Preferences > Print & Scan
    - Right (or control) click in the rectangle listing your printers and select Reset Printing System.
    WARNING - this will delete ALL of your printers!
    - Select the plus sign to re-add a printer. Select the Defualt tab on the top of the window. Look for the printer, select it and wait until the "Add" button becomes available. Click it."
    Hope this helps

  • FM 10 xref format changes when updating file

    I'm authoring in structured FM 10 using a DITA 1.2 application on Windows 7, but working with FM documents rather than XML files. I was having problems updating cross-references in my existing (structured FM 7.2) files after upgrading to FM 10 -- FM was changing all xref formats to DITA Default Format, which blew away all of my defined formats. So I opened one of the standard structured templates included with FM 10 (DITA_1.2/app/technicalContent/template/topic.template.fm), thinking that I set up my structured application incorrectly.
    I know I must be missing something simple, but this is what happens when I create and update a cross-reference:
    Using the unmodified structured  template and the unmodified DITA 1.2 application that comes with FM 10, add an fm-xref element.
    Using the DITA-Cross-Reference dialog box, create the xref (doesn't  matter if it's an internal or external xref).
    Select See_Title_and_Page xref format. Xref looks fine in the source document.
    Select Edit > Update Reference, and select All Cross-References.
    When I click Update, FM updates the xref but changes the xref format to DITA Default Format. I can see that the See_Title_and_Page format included in the template uses the <$paratext> building block instead of <$elemtext>, but  I can't delete or modify this format and I can't create a new xref format, either, since the DITA  Cross-Reference dialog box doesn't give me those options.
    However, if I create a new FM book and add this file to it, and then  select Edit > Update Book, and select All Cross-References, FM  updates the xref and maintains the xref format I chose.
    So, why does updating a file remove the selected formats from all xrefs and replace them with DITA Default Format, while updating a book does what I'd expect (and what FM has always done)? And why can't I modify an xref format using the template/DITA 1.2 application that comes with FM10?
    Thanks for any assistance.
      --Steve

    Hi Saurabh,
    Thanks for the reply. I guess it's reassuring to know that the automatic reformatting of xrefs by FM isn't due to something I've overlooked. As long as there's a workaround, I'll keep updating xrefs from a book. Not a great workflow, but it won't block our writing for now.
    On the other issue: Thanks, I do know how to edit xref formats and import them from a template. My confusion, however, stems from two things:
    I can't edit xref formats in the DITA Cross-Reference dialog box, which is all you see if you're using the DITA 1.2 template that ships with FM 10. I can edit the formats from the Cross-Reference dialog box, but I can't figure out how to access that when using Adobe's template. Adding a new xref or selected an existing one just activates the DITA dialog box, which doesn't have an Edit Format option (shouldn't it? wouldn't you want to be able to edit those formats? or do you always have to do that from one of the application files?).
    The DITA Default Format won't go away. In my own docs (DITA 1.1 FM files), I can get to the Cross-Reference dialog box and edit xref formats. If I delete the DITA Default Format, save the file, close it, and then reopen it, the unwanted DITA Default Format is back. I can reapply the formats and element defintitions from the template as much as I like, but any time the file is reopened the deleted format reappears. It won't die, and I have no idea where it's coming from (definitely not the template or the EDD, which I've checked and reimported). Is this some odd default behavior of ditafm_app.dll?
    Again, thanks for responding.
      --Steve

  • Firfox is ceashing when I attepmt to download a file. Everything works until I close Firfox and then attempt to re-open the browser then it crashes. I tried deleting the download file in my profile folder but it didn't work.

    Firefox is crashing when I attempt to download a file. Everything works until I close Firefox and then attempt to re-open the browser then it crashes. I tried deleting the download file in my profile folder but it didn't work.

    Downgrade to an older nightly that works for a week or so, then test again to see if the bug's still there. In the mean time, report the bug on Bugzilla if it hasn't already been. There's really nothing you can do about bugs in nightlies.
    (A similar sort of bug that triggered 60 seconds after opening, every time, was what got me out of using nightlies as my main browser.)

  • I'm running Windows 7 and iTunes and the other Apple programs wouldn't automatically update. Went through all the options and finally had to delete all Apple files and re-download iTunes. Worked fine, until the next update. Is there a glitch in the system

    I'm running Windows 7 and iTunes (and the other Apple programs) wouldn't automatically update. Went through all the options and finally had to delete all Apple files and re-download iTunes. Worked fine, until the next update. Is there a glitch in the system? Does someone know of some proprietory block (I think it is related to Quicktime)? Also, once I re-downloaded everything, cleaned everything up, and deleted duplicate files, I closed down my computer. When I re-started it, iTunes was "brand new" -- all of my music, organization, tagging, etc. was gone and had to start over. Idea?

    Ok, so after like 4 days of going through all these different issues, I figured out that several programs weren't downloading, and it was an issue with my wireless connectivity messing up the digital signatures, so if you plug in your comp to the modem and delete your temp files, it should start to work!

  • Keynote files deleting after update to 10.8.4

    I performed a small edit to a Keynote file today after updating to 10.8.4 last night (used the combo updater).  The file crashed during a presentation and I though "no big deal, I'll just re-open it."  When I went to find it, it was completely gone.  Vanished.
    I booted up Time Machine back at the office, restored the file, and chalked it up to some fluke.  Then I edited a different Keynote file.  It kept popping error messages about not being able to locate media files and I eventually closed it.  Again, I went to find the orginal file to re-open and it too has dissappeared.  This time, Time Machine wouldn't even let me restore it from a backup.
    I ran disk utility and it found minor errors in the volume bitmap and free space remaining.  So I booted to the recorvery partition and repaired successfully.
    I'm up and running again, but my Keynote file is still missing.  I'm afraid to open Keynote again for fear of this happening again.
    Is there any known issue with 10.8.4 corrupting the file system, particulary when opening and editing Keynote files?
    (15 " Retina MBP, latest model with 768 GB)

    GordonGecko9:
    - First, make sure you back up all remaining Keynote presentations. Hopefully, you have a backup of the one that got deleted.  I had to get a copy from another folder. Once the file was deleted, Time Machine suddenly thought it was never there in the first place too.  That's right, the deleted file was also deleted from Time Machine--even months back.
    - Once you have backups of your files, run Disk Utility and see if there are any errors.  I had a few, so booted into the Recovery partition and repaired.
    - Remove all your Keynote .plist files from the directory: /Users/your username/Library/Preferences.  Your Library folder will be hidden unless you hold the OPTION key and then select the GO menu at the top.  You can just move these files out of that folder and keep them elsewhere if you want them again.
    - Check your console log to see if any errors were reported about the time of the crash.  I had some message about Flip4Mac confilciting with another video codec, so I deleted Flip4Mac.  Not sure if it mattered, but I didnt' really need it anyway.
    - Since you have backups of your files now, you can start playing around with Keynote again to see if your problem is solved.  Here is what I found:
    > After deleting the .plist files, I sill had issues after editing presenations.  The changes would take, but then when I went to save the file, I got an error message that the location couldn't be found.  When I chose "Save As" isntead, Keynote crashed.  However, when I rellaunced Keyonte, the file was saved in its orginal location. (Before I deleted the .plist files, the presenation was gone after Keynote crashed).
    > Subsequent edits and saves worked normally on the same file.  As I opened other presenations from the same folder in the finder, I got the same errors (crashing and file not saving).  But then, upon relaunch everything seemed fine.
    It seems that something with 10.8.4 is causing directory errors with Keynote files.  When you go to save an edited presenation, it gets confused about where to put it and the file gets deleted instead.
    Please keep me posted on if the above "fix" works for you and if you notice anything else.

  • When trying to edit a photo, it disappears (black screen) or screen is full of lines. Is this a bug with the latest software update?

    After updating with the latest software, when trying to edit a photo, it disappears (black screen) or screen is full of lines. If I blindly crop or edit the photo, when I exit edit mode, those changes have been made, but obviously this is unacceptable. Is this a bug with the latest software update?

    There are several possible causes for the Black Screen issue
    1. Permissions in the Library: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Include the option to check and repair permissions.
    2. Minor Database corruption: Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild.
    3. A Damaged Photo: Select one of the affected photos in the iPhoto Window and right click on it. From the resulting menu select 'Show File (or 'Show Original File' if that's available). (On iPhoto 11 this option is under the File -> Reveal in Finder.) Will the file open in Preview? If not then the file is damaged. Time to restore from your back up.
    4. A corrupted iPhoto Cache: Trash the com.apple.iPhoto folder from HD/Users/Your Name/ Library/ Caches...
    5. A corrupted preference file: Trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    If none of these help: As a Test:
    Hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • HT204088 When trying to update an app, it partially downloads and then displays the message "unable to download item" Please try again later. This happens on any app I try. I have tried deleting the app and reinstalling with same results. What can I do?

    When trying to update an app, it partially downloads and then displays the message "unable to download item" Please try again later. This happens on any app I try. I have tried deleting the app and reinstalling with same results. What can I do?

    I have the same thing happening on my iPod Touch 5th gen. Been happening for at least a month. I have updated to the most recent version of iOS which hasn't solved the issue. Must be a bug that they didn't get around to resolving yet, a year later. Really annoying to have it pop up when you are in the middle of a game though.

  • How to update my ipod without deleting the old files?

    i have 2 pc and different songs on them..but whenever i want to update my ipod from the second one ..it keeps telling that my ipod is linked to another itune and uploading will delete the old file..would someone tell me how to go around it?..thanks
      Windows XP Pro  

    Connect your iPod and when you get the message that it is linked to a different library and asking if you want to link to this one and replace all your songs etc, press *No*. Pressing "Yes" will irretrievably remove all songs from your iPod. Your iPod should appear in the iTunes source list from where you can change the update setting to manual as per the link below.
    You can also use a keyboard command to prevent your iPod auto-syncing with iTunes. While connecting the iPod to the computer on Windows hold down the Shift + Ctrl keys (on a Mac hold down the Option and Command (⌥ and ⌘) keys). This will stop the iPod from auto-syncing with iTunes and the iPod will appear in the source list. Wait until you are sure the iPod has mounted, and that it will not auto sync and then you can let the keys go. This may take between 20 to 30 seconds depending on your computer. Then go to Edit>Preferences>iPod and check the "Manually manage songs and playlists" box: Managing Your Songs Manually

Maybe you are looking for