none
Media creation fails with "The hash value is not correct" and "Cannot open source file"

    Question

  • Hello, trying to create standalone media OR Prestaged Media.  I get the above error and when looking at CreateTsMedia.log it always has to do with my Configuration Management client.  If I take that out of the TS it succeeds, however, obviously, I can't do this for standalone media.  The log file shows:

    <![LOG[Staging package FWC00002]LOG]!><time="08:07:21.086+240" date="04-30-2013" component="CreateTsMedia" context="" type="1" thread="8156" file="stagepackage.cpp:139">
    <![LOG[VerifyContentHash: Hash algorithm is 32780]LOG]!><time="08:07:24.944+240" date="04-30-2013" component="CreateTsMedia" context="" type="1" thread="8156" file="downloadcontent.cpp:1788">
    <![LOG[Cannot open source file d:\tmp\2\_tsmedia_8156\stage\sms\pkg\fwc00002\i386\client.msi, Win32 Error = 32]LOG]!><time="08:07:27.361+240" date="04-30-2013" component="CreateTsMedia" context="" type="3" thread="8156" file="hashdir.cpp:247">
    <![LOG[Failed to hash file, Win32 error = 32]LOG]!><time="08:07:27.361+240" date="04-30-2013" component="CreateTsMedia" context="" type="3" thread="8156" file="hashdir.cpp:785">
    <![LOG[Hash could not be matched for the downloded content. Original ContentHash = 5EF3A189C48F3469440A83026EC8ECD36EAD6EAF3B5D35663F8201BDE175413C, Downloaded ContentHash = ]LOG]!><time="08:07:27.361+240" date="04-30-2013" component="CreateTsMedia" context="" type="3" thread="8156" file="downloadcontent.cpp:1833">
    <![LOG[Failed to verify hash value of package FWC00002]LOG]!><time="08:07:27.361+240" date="04-30-2013" component="CreateTsMedia" context="" type="3" thread="8156" file="packagemgr.cpp:480">
    <![LOG[Failed to stage package FWC00002 (0x80091007)]LOG]!><time="08:07:27.361+240" date="04-30-2013" component="CreateTsMedia" context="" type="3" thread="8156" file="stagepackage.cpp:175">
    <![LOG[Failed to create media (0x80091007)]LOG]!><time="08:07:27.361+240" date="04-30-2013" component="CreateTsMedia" context="" type="3" thread="8156" file="createtsmedia.cpp:340">
    <![LOG[CreateTsMedia failed with error 0x80091007, details='FWC00002']LOG]!><time="08:07:27.361+240" date="04-30-2013" component="CreateTsMedia" context="" type="1" thread="8156" file="createtsmedia.cpp:350">

    Running as administrator and as I said all other packages/wim's get staged in the same location successfully.  I've updated the DP's several times, even updated with KB2801987 which I read about hash problems with the Config Mgment client but no workie.

    I've disabled AntiVirus as well

    thanks for any assistance

    Tuesday, April 30, 2013 12:33 PM

Answers

  • The media creator is trying to read the files in the package so that it can check for the package hash. It is failing to open a file, and so the hash validation fails.

    The error code 32 translates to:

    "The process cannot access the file because it is being used by another process."

    I suggest that you use ProcessExplorer to determine which process has the file open. I'm guessing that it is some AntiVirus program.

    • Marked as answer by DougFWC Thursday, May 02, 2013 2:07 PM
    Wednesday, May 01, 2013 12:38 AM

All replies

  • The media creator is trying to read the files in the package so that it can check for the package hash. It is failing to open a file, and so the hash validation fails.

    The error code 32 translates to:

    "The process cannot access the file because it is being used by another process."

    I suggest that you use ProcessExplorer to determine which process has the file open. I'm guessing that it is some AntiVirus program.

    • Marked as answer by DougFWC Thursday, May 02, 2013 2:07 PM
    Wednesday, May 01, 2013 12:38 AM
  • The media creator is trying to read the files in the package so that it can check for the package hash. It is failing to open a file, and so the hash validation fails.

    The error code 32 translates to:

    "The process cannot access the file because it is being used by another process."

    I suggest that you use ProcessExplorer to determine which process has the file open. I'm guessing that it is some AntiVirus program.

    Well, looks like this is it.  I read about that in use by another process - anti virus but swore this server (development) did NOT have AV installed yet.  Nothing in the taskbar icon as usual.  When i check process explorer, sure enough, there is Trend Micro.  Disabled the process and it then worked.

    thanks for making me triple-check!

    Thursday, May 02, 2013 2:04 PM