"File hash does not match stored value"

Re: "File hash does not match stored value"

Postby boco » 02.03.2012, 01:09

No, you're quite right--the log was from the updater. I was just seeing if it provided any clues to sort this out... Is there a generator log I could post? Would that be helpful
So did you at least did one download run? Only the generator can make a possibly inconsistend repository consistent again and rebuild the hashes. The updater cannot do that.
Microsoft update catalog: http://catalog.update.microsoft.com/v7/site/
Windows Install media download: https://support.microsoft.com/en-us/help/15088/windows-create-installation-media
boco
 
Posts: 2391
Joined: 24.11.2009, 17:00
Location: Germany

Re: "File hash does not match stored value"

Postby si_updates » 02.03.2012, 01:18

boco wrote:So did you at least did one download run? Only the generator can make a possibly inconsistent repository consistent again and rebuild the hashes. The updater cannot do that.
What I've been doing is: try to get the required folders right in 'root' and 'client' (there have been a few configurations suggested... ), delete the contents of /client/md/, run UpdateGenerator, run UpdateInstaller. So, yes, I have run the generator every time and have never had a problem with it. It is the installer that quits and gives the error. Perhaps it is worth noting that all the files in 'client' have been downloaded by WSUSOU--I have not added any manually as per the FAQs. So I think the file names should be correct.
si_updates
 
Posts: 19
Joined: 17.02.2012, 01:39

Re: "File hash does not match stored value"

Postby WSUSUpdateAdmin » 02.03.2012, 10:30

Hi.

Well, I can't read all the postings of this thread, so why don't start "from scratch":

1) Download http://download.wsusoffline.net/wsusoffline73.zip
2) Unpack its content to, let's say, C:\wou_new
3) Under C:\wou_new\client, you'll then find
Code: Select all
 Verzeichnis von C:\wou_new\client

02.03.2012  10:15    <DIR>          .
02.03.2012  10:15    <DIR>          ..
05.12.2010  11:15                39 Autorun.inf
02.03.2012  10:15    <DIR>          bin
02.03.2012  10:15    <DIR>          cmd
02.03.2012  10:15    <DIR>          exclude
02.03.2012  10:15    <DIR>          opt
02.03.2012  10:15    <DIR>          static
25.10.2011  18:10                52 Update.cmd
19.01.2012  09:07            41.129 UpdateInstaller.au3
19.01.2012  15:03           648.485 UpdateInstaller.exe
21.12.2011  14:40               477 UpdateInstaller.ini
               5 Datei(en),        690.182 Bytes

4) Open an Explorer and navigate to your existing "installation", let's say, C:\wou_old
5) Under C:\wou_old\client, you'll find a lot, for example
Code: Select all
 Verzeichnis von C:\wou_old\client

01.03.2012  08:19    <DIR>          .
01.03.2012  08:19    <DIR>          ..
05.12.2010  11:15                39 Autorun.inf
15.02.2012  08:58    <DIR>          bin
29.02.2012  01:41                12 builddate.txt
15.02.2012  08:57    <DIR>          cmd
07.02.2012  17:19    <DIR>          cpp
03.05.2011  11:03    <DIR>          dotnet
01.12.2011  13:42    <DIR>          exclude
01.03.2012  08:20    <DIR>          md
28.02.2011  16:25    <DIR>          msse
29.06.2011  15:59    <DIR>          o2k10
21.12.2010  15:26    <DIR>          o2k3
23.06.2011  13:38    <DIR>          o2k7
01.03.2012  08:20    <DIR>          ofc
18.10.2011  18:05    <DIR>          opt
18.10.2011  18:05    <DIR>          static
25.10.2011  18:10                52 Update.cmd
19.01.2012  09:07            41.129 UpdateInstaller.au3
15.02.2012  00:09           648.485 UpdateInstaller.exe
21.12.2011  14:40               477 UpdateInstaller.ini
26.11.2010  10:27    <DIR>          w2k3
26.11.2010  10:24    <DIR>          w2k3-x64
26.11.2010  10:23    <DIR>          w60
26.11.2010  10:21    <DIR>          w60-x64
16.06.2011  13:13    <DIR>          w61
16.06.2011  13:13    <DIR>          w61-x64
28.02.2011  16:25    <DIR>          wddefs
22.12.2011  10:33    <DIR>          win
01.03.2012  08:20    <DIR>          wsus
26.11.2010  10:19    <DIR>          wxp
               6 Datei(en),        690.194 Bytes

6) Now, please read carefully, select every directory under C:\wou_old\client except for "bin", "cmd", "exclude", "opt", "static" (the distributed ones) and "md" and copy or move all of these directories to C:\wou_new\client.
7) Run C:\wou_new\UpdateGenerator.exe and download whatever you want, with or without verification.
8) Remove C:\wou_old on success.

Regards
Torsten Wittrock
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: "File hash does not match stored value"

Postby aker » 02.03.2012, 21:06

I wrote a script, which will create a clean WSUSOU folder.
You have to correct the paths in the config section.
Then run the script and restart downloading.
That will fix your problem.

CreateNewWSUSOU.cmd
Code: Select all
@echo off
setlocal enableextensions enabledelayedexpansion

rem BEGIN config section
set OLD_WSUSOU=C:\wsusou\old
set NEW_WSUSOU=C:\wsusou\new
rem END config section

echo Creating a new WSUSOU tree in "%NEW_WSUSOU%"...
echo Using base in "%OLD_WSUSOU%".

echo Cleaning up new folder...
if exist "%NEW_WSUSOU%\." (
   rd /s /q "%NEW_WSUSOU%"
)

echo Checkeing old WSUSOU folder...
md "%NEW_WSUSOU%\"
if not exist "%OLD_WSUSOU%\bin\wget.exe" goto NoWGet
if not exist "%OLD_WSUSOU%\bin\unzip.exe" goto NoUnZip

echo Downloading newest WSUSOU version...
"%OLD_WSUSOU%\bin\wget.exe" -q -N -P "%NEW_WSUSOU%" http://download.wsusoffline.net/StaticDownloadLink-recent.txt
"%OLD_WSUSOU%\bin\wget.exe" -q -N -i "%NEW_WSUSOU%\StaticDownloadLink-recent.txt" -P "%NEW_WSUSOU%"
for /f "tokens=3 delims=/" %%w in (%NEW_WSUSOU%\StaticDownloadLink-recent.txt) do (
   if not "%%w"=="" (
      set FILENAME=%%w
   )
)
"%OLD_WSUSOU%\bin\unzip.exe" -uq "%NEW_WSUSOU%\%FILENAME%" -d %NEW_WSUSOU% > nul
xcopy "%NEW_WSUSOU%\wsusoffline" "%NEW_WSUSOU%" /S /Q /Y > nul
rd /s /q "%NEW_WSUSOU%\wsusoffline" > nul
del "%NEW_WSUSOU%\StaticDownloadLink-recent.txt" /f /q > nul
del "%NEW_WSUSOU%\%FILENAME%" /f /q > nul

echo Copying updates you already downloaded to the new WSUSOU tree...
for %%f in (wsus dotnet cpp wddefs msse win md wxp w2k3 w2k3-x64 w60 w60-x64 w61 w61-x64) do (
   if exist "%OLD_WSUSOU%\client\%%f\." (
      if not exist "%NEW_WSUSOU%\client\%%f" md "%NEW_WSUSOU%\client\%%f"
      xcopy "%OLD_WSUSOU%\client\%%f" "%NEW_WSUSOU%\client\%%f" /S /Q /Y > nul
   )
   if exist "%OLD_WSUSOU%\client\client\%%f\." (
      if not exist "%NEW_WSUSOU%\client\%%f" md "%NEW_WSUSOU%\client\%%f"
      xcopy "%OLD_WSUSOU%\client\client\%%f" "%NEW_WSUSOU%\client\%%f" /S /Q /Y > nul
   )
)
if exist "%OLD_WSUSOU%\UpdateGenerator.ini" (
   copy "%OLD_WSUSOU%\UpdateGenerator.ini" "%NEW_WSUSOU%\" /y > nul
)

rem Deleting Hashes
echo Deleting hashes...
del "%NEW_WSUSOU%\client\md\*" /f /s /q > nul

rem Starting UpdateGenerator
start "" "%NEW_WSUSOU%\UpdateGenerator.exe"

goto endnoerr

:NoWGet
echo.
echo ERROR: Download utility "%OLD_WSUSOU%\bin\wget.exe" not found.
echo.
goto end

:NoUnZip
echo.
echo ERROR: Utility "%OLD_WSUSOU%\bin\unzip.exe" not found.
echo.
goto end

:endnoerr
echo Done!
:end
endlocal
pause > nul
exit /b

Tested on Windows 7
Last edited by aker on 06.03.2012, 12:15, edited 1 time in total.
Wer Rechtschreibfehler findet, darf sie behalten oder an den Meistbietenden versteigern. / Everybody finding a misspelling is allowed to keep or sell it.
aker

WSUS Offline Update „Community Edition“
https://gitlab.com/wsusoffline/wsusoffline/-/releases
aker
 
Posts: 3999
Joined: 02.03.2011, 15:32

Re: "File hash does not match stored value"

Postby si_updates » 03.03.2012, 06:01

WSUSUpdateAdmin wrote:Hi.

1) Download http://download.wsusoffline.net/wsusoffline73.zip
2) Unpack its content to, let's say, C:\wou_new
3) Under C:\wou_new\client, you'll then find
4) Open an Explorer and navigate to your existing "installation", let's say, C:\wou_old
5) Under C:\wou_old\client, you'll find a lot, for example
6) Now, please read carefully, select every directory under C:\wou_old\client except for "bin", "cmd", "exclude", "opt", "static" (the distributed ones) and "md" and copy or move all of these directories to C:\wou_new\client.
7) Run C:\wou_new\UpdateGenerator.exe and download whatever you want, with or without verification.
8) Remove C:\wou_old on success.

Regards
Torsten Wittrock

Thank you for the clear instructions! I followed them and ran WSUSOU without verification... and it worked. What are the implications of that?
si_updates
 
Posts: 19
Joined: 17.02.2012, 01:39

Re: "File hash does not match stored value"

Postby rednaxela » 03.03.2012, 12:49

si_updates wrote:Thank you for the clear instructions!

That´s it was here is needed :!: and not the "most tricky mod".
Maybe less is sometimes more and maybe it´s not helpfull for a "simple user" to offer him solutions which are too much complicate, and for all: unnecessarily complcate :!:
Die Mehrheit der Mitglieder dieses Forums hat sich dafür ausgesprochen höflich und respektvoll miteinander umzugehen. Neue Mitglieder werden gebeten diese Entscheidung zu respektieren und sich ebenfalls so zu verhalten ;)
Bin ab und zu mal hier...
rednaxela
 
Posts: 164
Joined: 15.09.2010, 09:22
Location: Niedersachsen

Re: "File hash does not match stored value"

Postby -Iwan- » 03.03.2012, 14:04

si_updates wrote:Thank you for the clear instructions! I followed them and ran WSUSOU without verification... and it worked. What are the implications of that?

Without verification? So there was no hash check.... :roll:
-Iwan-
 
Posts: 364
Joined: 02.11.2009, 17:49
Location: NRW, Germany

Re: "File hash does not match stored value"

Postby si_updates » 04.03.2012, 04:06

-Iwan- wrote:
si_updates wrote:Thank you for the clear instructions! I followed them and ran WSUSOU without verification... and it worked. What are the implications of that?

Without verification? So there was no hash check.... :roll:
Well, no, there wasn't a hash check. Torsten (WSUSApdateAdmin) wrote in step 7 of his very clear post that the Generator could be run with or without verification. Since I've been having so much trouble with the hashes not matching, I decided to follow his advice. If you have some valuable help to share, I'd love to hear it. That's why I'm asking what the implications are. As I said in my fourth post, "Pretend I don't know anything!" But I must say I don't find 'rolling eyes' very helpful...
si_updates
 
Posts: 19
Joined: 17.02.2012, 01:39

Re: "File hash does not match stored value"

Postby WSUSUpdateAdmin » 05.03.2012, 00:35

Moin!

aker wrote:I wrote a script, which will create a clean WSUSOU folder.
´
Entschuldigung, aber die Mühe hätten Sie sich sparen können; das ist doch völlig "oversized"!
Das hier ist bzw. war doch ein einmaliges Problem, und man schreibt doch nicht ein 80-Zeilen-Skript, das eigentlich nur ein paar Verzeichnisse umkopieren soll, dafür aber Fehler enthalten kann, zur einmaligen Verwendung!
Im übrigen ist das Problem ja gelöst und hätte mit etwas mehr Pragmatismus nach dem KISS-Prinzip ("keep it short and simple") sicherlich auch früher gelöst werden können.

aker wrote:You have to correct the paths in the config section.

Und genau an solchen vermeintlichen Banalitäten scheitert es ja schon oft genug:
- Wo muss das Skript abgelegt werden?
- Wo ist die "config section"?
- Dürfen die Pfadangaben dort relativ sein?
- ...

Ich denke, es geht in diesen (und anderen) Foren in erster Linie darum, Anwenderprobleme zu lösen und nicht darum, eigene Fertigkeiten zu belegen.

@si_updates: Thanks for feedback! :)

Gruß
Torsten Wittrock
WSUSUpdateAdmin
Administrator
 
Posts: 2245
Joined: 07.07.2009, 14:38

Re: "File hash does not match stored value"

Postby si_updates » 05.03.2012, 07:45

Well, I ran UpdateGenerator with "Verify downloaded updates" checked. Then I tried to run UpdateInstaller with "Verify installation packages" checked. But this returned the hash mismatch error. Running UpdateInstaller with "Verify installation packages" unchecked worked fine. So I'm thinking I'll continue running the Generator with "Verification" checked and the Installer with "Verification" unchecked. Any red flags with that approach? If not, no response necessary. ;)
si_updates
 
Posts: 19
Joined: 17.02.2012, 01:39

PreviousNext

Return to Verschiedenes / Miscellaneous

Who is online

Users browsing this forum: No registered users and 255 guests