UE4 4.27 Cook Failed

Hello:

UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogDerivedDataCache: Warning: FFileSystemDerivedDataBackend: Could not write temp file C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache/8/2/5/temp.DA9D0F1A4C95B19EE67F48A9055B64A9! Error: 1392 (The file or directory is corrupted and unreadable.)
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogDerivedDataCache: Warning: FFileSystemDerivedDataBackend: Could not write temp file C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache/8/2/5/temp.B5B55F4B41BF35982A466E9399D9FA82! Error: 1392 (The file or directory is corrupted and unreadable.)
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogDerivedDataCache: Warning: FFileSystemDerivedDataBackend: Could not write temp file C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache/8/2/5/temp.ECB56CFD4187E532BF831B8FF37D7384! Error: 1392 (The file or directory is corrupted and unreadable.)
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogDerivedDataCache: Warning: FFileSystemDerivedDataBackend: Could not write temp file C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache/8/2/5/temp.1ED4EE6243A33BCFE98A75833D5D4F2B! Error: 1392 (The file or directory is corrupted and unreadable.)
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogDerivedDataCache: Warning: FFileSystemDerivedDataBackend: Could not write temp file C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache/8/2/5/temp.D09636A642D1BB73292F27BDF74AD5DF! Error: 1392 (The file or directory is corrupted and unreadable.)
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogDerivedDataCache: Warning: FFileSystemDerivedDataBackend: Could not write temp file C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache/8/2/5/temp.8FA0DD3B4754FB695F230B90EB160E4C! Error: 1392 (The file or directory is corrupted and unreadable.)
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogDerivedDataCache: Warning: C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache is very slow (0.24MB/s) when accessing C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache/4/7/1/TEXTURE_E01F4250BECD420DA9CE63B5EECEC2C2_OODLE_AUTODXT_11_66F9CD774E4D3A0ACE8F__7BCC551E0447
82EFCA998EB620C4B09A448459AE.udd, consider disabling it.
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogDerivedDataCache: Warning: C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache is very slow (0.01MB/s) when accessing C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache/6/3/5/TEXTURE_E01F4250BECD420DA9CE63B5EECEC2C2_OODLE_AUTODXT_11_0F5BC24842CBE398CD80__6A8933170638
69BC2BFDAC061CB49F21FEFEF50B.udd, consider disabling it.
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogDerivedDataCache: Warning: C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache is very slow (0.05MB/s) when accessing C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache/7/6/2/TEXTURE_E01F4250BECD420DA9CE63B5EECEC2C2_OODLE_BC5_11_7609402B4853562226181FA4__1B9940AD83AE
C2B119A99B17EBCD038193543B22.udd, consider disabling it.
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogDerivedDataCache: Warning: C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache is very slow (0.18MB/s) when accessing C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache/1/8/6/TEXTURE_E01F4250BECD420DA9CE63B5EECEC2C2_OODLE_BC5_11_7609402B4853562226181FA4__75BE755F87FF
43E79EACDD34E2BFD2FD77A489A5.udd, consider disabling it.
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: LogDerivedDataCache: Warning: C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache is very slow (0.01MB/s) when accessing C:/Users/gguro/AppData/Local/UnrealEngine/Common/DerivedDataCache/4/9/1/TEXTURE_E01F4250BECD420DA9CE63B5EECEC2C2_OODLE_AUTODXT_11_947BB7234CE852FBE7EC__B2AF3C4ED862
8C96343FD5ADCB3F662A95673122.udd, consider disabling it.
UATHelper: Packaging (Windows (64-bit)): LogInit: Display:
UATHelper: Packaging (Windows (64-bit)): LogInit: Display: Failure - 1 error(s), 27 warning(s)
UATHelper: Packaging (Windows (64-bit)): LogInit: Display:
UATHelper: Packaging (Windows (64-bit)):
UATHelper: Packaging (Windows (64-bit)): Execution of commandlet took: 263.23 seconds
UATHelper: Packaging (Windows (64-bit)): LogShaderCompilers: Display: === FShaderJobCache stats ===
UATHelper: Packaging (Windows (64-bit)): LogShaderCompilers: Display: Total job queries 0, among them cache hits 0 (0.00%)
UATHelper: Packaging (Windows (64-bit)): LogShaderCompilers: Display: Tracking 0 distinct input hashes that result in 0 distinct outputs (0.00%)
UATHelper: Packaging (Windows (64-bit)): LogShaderCompilers: Display: RAM used: 0.00 MB (0.00 GB) of 819.20 MB (0.80 GB) budget. Usage: 0.00%
UATHelper: Packaging (Windows (64-bit)): LogShaderCompilers: Display: ================================================
UATHelper: Packaging (Windows (64-bit)): LogHttp: Display: cleaning up 0 outstanding Http requests.
UATHelper: Packaging (Windows (64-bit)): LogContentStreaming: Display: There are 1 unreleased StreamingManagers
UATHelper: Packaging (Windows (64-bit)): Took 392.2325701s to run UE4Editor-Cmd.exe, ExitCode=1
UATHelper: Packaging (Windows (64-bit)): ERROR: Cook failed.
UATHelper: Packaging (Windows (64-bit)): (see C:\Users\gguro\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Epic+Games+UE_4.27\Log.txt for full exception trace)
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Cook Failure
LogAudioMixer: Display: Audio Buffer Underrun (starvation) detected.

The log messages indicate that Unreal Engine is encountering issues when trying to write temp files to the cache directory. This is due to the file or directory being corrupted and unreadable. The log also indicates that the cache directory is very slow, potentially impacting performance. So I would suggest that you consider to disabling it.

I would also suggest that you try to package a completely new template project to see if you still have any issues.

1 Like

I also encountered the same problem, but after changing the project and packaging it again, there will still be errors