Unreal engine 5 packaging for windows fail

UATHelper: Packaging (Windows): LogWindows: Error: === Critical error: ===
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error: Assertion failed: File != nullptr [File:D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Misc\KeyChainUtilities.h] [Line: 153]
UATHelper: Packaging (Windows): LogWindows: Error: Specified crypto keys cache ‘C:\Users\BuildMachine(VR2’ does not exist!
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffc1d7c35e5 UnrealPak-PakFileUtilities.dll!KeyChainUtilities::LoadKeyChainFromFile() []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffc1d7c261b UnrealPak-PakFileUtilities.dll!LoadKeyChain() []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffc1d7b3530 UnrealPak-PakFileUtilities.dll!ExecuteUnrealPak() []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff7c7d0be27 UnrealPak.exe!wmain() []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ff7c7d0ce2c UnrealPak.exe!__scrt_common_main_seh() []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffcf96826bd KERNEL32.DLL!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error: [Callstack] 0x00007ffcfa1edfb8 ntdll.dll!UnknownFunction []
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error:
UATHelper: Packaging (Windows): LogWindows: Error:

This error message indicates that there is an issue with the crypto keys cache when trying to package a game with UnrealPak. Specifically, it seems that the cache directory specified in the command line arguments does not exist.

To resolve this issue, you should try:

  • Double-check that the specified crypto keys cache directory exists and is spelled correctly.
  • If the directory does not exist, create it manually and try again.
  • If the issue persists, try deleting any existing cache directories and creating a new one.
  • Check that you are using the latest version of Unreal Engine and that your project settings are configured correctly for packaging.
1 Like

I managed to solve this problem with warhulk1745’s solution from here : Specified crypto keys cache does not exist!.
Basically there are parentheses in the username as shown here Specified crypto keys cache ‘C:\Users\BuildMachine(VR2’ does not exist!. So I moved the project files and problem solved

Thank you for responding, it leads me to googling what crypto keys cache is and found the solution

1 Like