Page 1 of 2

Possible errors in v6.9

PostPosted: 19.08.2011, 13:01
by someone2
this is from the command prompt window...

Renaming file ..\client\cpp\vcredist_x86.exe to vcredist2010_x86.exe...
Cleaning up client directory for C++ Runtime Libraries...
Verifying digital file signatures for C++ Runtime Libraries' installation files.
..
Creating integrity database for C++ Runtime Libraries' installation files...

Verifying integrity of existing updates for w61 glb...
hashdeep.exe: Audit passed
Files matched: 51
Files partially matched: 0
Files moved: 0
New files found: 0
Known files not found: 0
Determining statical update urls for w61 glb...
Extracting Microsoft's update catalog file package.xml...
16:48:35.71 - Determining superseded updates (please be patient, this will take
a while)...
Not enough main memory to complete the sort.

The system cannot find the file C:\Temp\SupersededFileIdsSorted.txt.
Could Not Find C:\Temp\SupersededFileIdsSorted.txt
FINDSTR: Cannot read strings from C:\Temp\SupersededFileIdsUnique.txt
Could Not Find C:\Temp\SupersededFileIdsUnique.txt
Could Not Find C:\Temp\SupersededCabExeLocations.txt
17:08:58.09 - Done.
17:09:02.87 - Determining dynamical update urls for w61 glb...





What is causing this ?
Should we be worried that some updates are being missed ?

my version is 6.9 which is the latest version as this time ( of writing this post )

Re: Possible errors in v6.9

PostPosted: 19.08.2011, 15:45
by -Iwan-
Please check, if you have full access to the folder C:\Temp

Re: Possible errors in v6.9

PostPosted: 19.08.2011, 16:57
by aker
Is C:\Temp your %TEMP% Folder?
Normal is C:\Users\<Username>\AppData\Local\Temp

Re: Possible errors in v6.9

PostPosted: 19.08.2011, 20:47
by WSUSUpdateAdmin
Hi!
someone2 wrote:this is from the command prompt window...

[...]
16:48:35.71 - Determining superseded updates (please be patient, this will take
a while)...
Not enough main memory to complete the sort.
[...]

How much RAM does your computer have?

RTW

Re: Possible errors in v6.9

PostPosted: 31.08.2011, 17:29
by someone2
my %temp% == c:\Temp

Full Access to %temp% is there

RAM = 4 GB and of the about 927 MB is used...

so that is not a problem

Re: Possible errors in v6.9

PostPosted: 31.08.2011, 17:33
by someone2
The system cannot find the file C:\Temp\SupersededFileIdsSorted.txt.

Could Not Find C:\Temp\SupersededFileIdsSorted.txt

FINDSTR: Cannot read strings from C:\Temp\SupersededFileIdsUnique.txt


how about adding if errorlevel 1 goto errorhandler: after findstr

Re: Possible errors in v6.9

PostPosted: 01.09.2011, 03:12
by someone2
the error is being caused by the following line in DownloadUpdates.cmd

Code: Select all
%SystemRoot%\system32\sort.exe "%TEMP%\SupersededFileIds.txt" /O "%TEMP%\SupersededFileIdsSorted.txt"



the sort.exe is throwing up this error


Not enough main memory to complete the sort.


am trying to find the cause of this error.

Re: Possible errors in v6.9

PostPosted: 01.09.2011, 03:20
by someone2
i found the solution to it

in DownloadUpdates.cmd
changing that line from


Code: Select all
%SystemRoot%\system32\sort.exe "%TEMP%\SupersededFileIds.txt" /O "%TEMP%\SupersededFileIdsSorted.txt"


to

Code: Select all
type "%TEMP%\SupersededFileIds.txt" | sort >  "%TEMP%\SupersededFileIdsSorted.txt"


This would enable sort to handle any size of file sizes without any problems

Re: Possible errors in v6.9

PostPosted: 01.09.2011, 08:22
by WSUSUpdateAdmin
Hmm...
Code: Select all
SORT [/R] [/+n] [/M kilobytes] [/L locale] [/REC recordbytes]
  [[drive1:][path1]filename1] [/T [drive2:][path2]]
  [/O [drive3:][path3]filename3]
  /+n                         Specifies the character number, n, to
                              begin each comparison.  /+3 indicates that
                              each comparison should begin at the 3rd
                              character in each line.  Lines with fewer
                              than n characters collate before other lines.
                              By default comparisons start at the first
                              character in each line.
  /L[OCALE] locale            Overrides the system default locale with
                              the specified one.  The ""C"" locale yields
                              the fastest collating sequence and is
                              currently the only alternative.  The sort
                              is always case insensitive.
  /M[EMORY] kilobytes         Specifies amount of main memory to use for
                              the sort, in kilobytes.  The memory size is
                              always constrained to be a minimum of 160
                              kilobytes.  If the memory size is specified
                              the exact amount will be used for the sort,
                              regardless of how much main memory is
                              available.

                              The best performance is usually achieved by
                              not specifying a memory size.  By default the
                              sort will be done with one pass (no temporary
                              file) if it fits in the default maximum
                              memory size, otherwise the sort will be done
                              in two passes (with the partially sorted data
                              being stored in a temporary file) such that
                              the amounts of memory used for both the sort
                              and merge passes are equal.  The default
                              maximum memory size is 90% of available main
                              memory if both the input and output are
                              files, and 45% of main memory otherwise.
  /REC[ORD_MAXIMUM] characters Specifies the maximum number of characters
                              in a record (default 4096, maximum 65535).
  /R[EVERSE]                  Reverses the sort order; that is,
                              sorts Z to A, then 9 to 0.
  [drive1:][path1]filename1   Specifies the file to be sorted.  If not
                              specified, the standard input is sorted.
                              Specifying the input file is faster than
                              redirecting the same file as standard input.
  /T[EMPORARY]
    [drive2:][path2]          Specifies the path of the directory to hold
                              the sort's working storage, in case the data
                              does not fit in main memory.  The default is
                              to use the system temporary directory.
  /O[UTPUT]
    [drive3:][path3]filename3 Specifies the file where the sorted input is
                              to be stored.  If not specified, the data is
                              written to the standard output.   Specifying
                              the output file is faster than redirecting
                              standard output to the same file.

Especially:
  • The best performance is usually achieved by not specifying a memory size. [...]
  • Specifying the input file is faster than redirecting the same file as standard input.
  • Specifying the output file is faster than redirecting standard output to the same file.
That's why I did it the way it is now.
I wonder why you get this prob and noone else...

RTW

Re: Possible errors in v6.9

PostPosted: 01.09.2011, 11:30
by someone2
i can copy the text files from %temp% at that step and email you if you want to investigate ...