Packaging Failed: Unknown Error

Hello there,

I am having an issue building my game. For some reason whenever I build my game, it shows this message at the bottom-right of my screen: “Packaging failed!” and this is the output:

Output:

LogAudioMixer: Display: Starting AudioMixerPlatformInterface::RunInternal(), InstanceID=8
LogAudioMixer: Display: FMixerPlatformXAudio2::SubmitBuffer() called for the first time. InstanceID=8
LogInit: FAudioDevice initialized with ID 8.
LogAudio: Display: Audio Device (ID: 8) registered with world 'L_LyraFrontEnd'.
LogAudioMixer: Initializing Audio Bus Subsystem for audio device with ID 8
LogEnhancedInput: Enhanced Input local player subsystem has initalized the user settings!
LogUIActionRouter: Display: Found 0 derived classes when attemping to create action router (CommonUIActionRouterBase)
LogCommonGame: AddLocalPlayer: Set LyraLocalPlayer_8 to Primary Player
LogSlate: InvalidateAllWidgets triggered.  All widgets were invalidated
LogSlate: Updating window title bar state: overlay mode, drag disabled, window buttons hidden, title bar hidden
LogLoad: Game class is 'B_LyraGameMode_C'
LogWorld: Bringing World /Game/System/FrontEnd/Maps/UEDPIE_0_L_LyraFrontEnd.L_LyraFrontEnd up for play (max tick rate 0) at 2024.03.31-17.08.59
LogWorld: Bringing up level for play took: 0.001194
LogCommonGame: [B_LyraUIPolicy_C_0] is adding player [LyraLocalPlayer_8]'s root layout [W_OverallUILayout_C_0] to the viewport
PIE: Server logged in
PIE: Play in editor total start time 0.171 seconds.
LogBackChannel: Listening on FBackChannelConnection Client Socket (localport: 2049)
LogRemoteSession: Started listening on port 2049
LogLyraExperience: Identified experience LyraExperienceDefinition:B_LyraFrontEnd_Experience (Source: WorldSettings)
LogLyraExperience: EXPERIENCE: StartExperienceLoad(CurrentExperience = LyraExperienceDefinition:B_LyraFrontEnd_Experience, Server)
LogLoadingScreen: Showing loading screen when 'IsShowingInitialLoadingScreen()' is false.
LogLoadingScreen: Experience still loading
LogLoadingScreen: Loading screen showing: 1. Reason: Experience still loading
LogLyraExperience: EXPERIENCE: OnExperienceLoadComplete(CurrentExperience = LyraExperienceDefinition:B_LyraFrontEnd_Experience, Server)
LogCommonSession: Session state is NoSession
LogViewport: Scene viewport resized to 1914x992, mode Windowed.
LogUIActionRouter: Display: Applying input config for leaf-most node [W_LyraFrontEnd_C_0]
LogUIActionRouter: Display: UIInputConfig being changed. bForceRefresh: 1
LogUIActionRouter: Display:     InputMode: Previous (None), New (ECommonInputMode::Menu)
LogViewport: Display: Viewport MouseCaptureMode Changed, CapturePermanently_IncludingInitialMouseDown -> NoCapture
LogViewport: Display: Viewport HideCursorDuringCapture Changed, False -> True
LogViewport: Display: Viewport MouseLockMode Changed, LockOnCapture -> DoNotLock
LogViewport: Display: Player bShowMouseCursor Changed, False -> True
LogUIActionRouter: Display: [User 0] Focused desired target StartGameButton
LogBlueprintUserMessages: [B_LoadRandomLobbyBackground_C_1] Lobby background loaded
LogLevelSequence: Starting new camera cut: 'CineCameraActor_A_1'
LogBlueprintUserMessages: [B_LoadRandomLobbyBackground_C_1] Lobby background shown
LogLoadingScreen: Hiding loading screen when 'IsShowingInitialLoadingScreen()' is false.
LogLoadingScreen: (nothing wants to show it anymore)
LogLoadingScreen: Garbage Collecting before dropping load screen
LogLoadingScreen: LoadingScreen was visible for 0.90s
LogUObjectHash: Compacting FUObjectHashTables data took   1.29ms
LogUIActionRouter: Cleaned out [1] inactive UI action bindings
LogUIActionRouter: Display: Applying input config for leaf-most node [W_ConfirmationDefault_C_0]
LogUIActionRouter: Display: [User 0] No focus target for leaf-most node [W_ConfirmationDefault_C_0], and the widget isn't focusable - focusing the game viewport.
Cmd: quit
LogCommonGame: RemoveLocalPlayer: Unsetting Primary Player from LyraLocalPlayer_8
LogCommonGame: [B_LyraUIPolicy_C_0] is removing player [LyraLocalPlayer_8]'s root layout [W_OverallUILayout_C_0] from the viewport
LogSlate: Updating window title bar state: overlay mode, drag disabled, window buttons hidden, title bar hidden
LogBackChannel: Closing connection FBackChannelConnection Client Socket
LogWorld: BeginTearingDown for /Game/System/FrontEnd/Maps/UEDPIE_0_L_LyraFrontEnd
LogSlate: Window 'LyraStarterGame Preview [NetMode: Standalone 0]  (64-bit/PC D3D SM6)' being destroyed
LogChartCreation: Stopped creating FPS charts at 16780830.923994 seconds
LogWorld: UWorld::CleanupWorld for L_LyraFrontEnd, bSessionEnded=true, bCleanupResources=true
LogSlate: InvalidateAllWidgets triggered.  All widgets were invalidated
LogPlayLevel: Display: Shutting down PIE online subsystems
LogSlate: InvalidateAllWidgets triggered.  All widgets were invalidated
LogAudio: Display: Audio Device unregistered from world 'None'.
LogAudioMixer: Deinitializing Audio Bus Subsystem for audio device with ID 8
LogSlate: InvalidateAllWidgets triggered.  All widgets were invalidated
LogAudioMixer: FMixerPlatformXAudio2::StopAudioStream() called. InstanceID=8
LogAudioMixer: FMixerPlatformXAudio2::StopAudioStream() called. InstanceID=8
LogUObjectHash: Compacting FUObjectHashTables data took   1.65ms
LogUObjectHash: Compacting FUObjectHashTables data took   1.86ms
LogPlayLevel: Display: Destroying online subsystem :Context_31
LogUObjectHash: Compacting FUObjectHashTables data took   1.98ms
LogTurnkeySupport: Selected target: LyraGame
LogLauncherProfile: Unable to use promoted target - ../../../../../../Users/zoner/OneDrive/Documents/Unreal Projects/LyraStarterGame/Binaries/Win64/LyraGame.target does not exist.
LogMonitoredProcess: Running Serialized UAT: [ cmd.exe /c ""C:/Program Files/Epic Games/UE_5.3/Engine/Build/BatchFiles/RunUAT.bat"  -ScriptsForProject="C:/Users/zoner/OneDrive/Documents/Unreal Projects/LyraStarterGame/LyraStarterGame.uproject" Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=58808  -project="C:/Users/zoner/OneDrive/Documents/Unreal Projects/LyraStarterGame/LyraStarterGame.uproject" BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook  -project="C:/Users/zoner/OneDrive/Documents/Unreal Projects/LyraStarterGame/LyraStarterGame.
uproject" -target=LyraGame  -unrealexe="C:\Program Files\Epic Games\UE_5.3\Engine\Binaries\Win64\UnrealEditor-Cmd.exe" -platform=Win64 -installed -stage -archive -package -build -pak -iostore -compressed -prereqs -archivedirectory="C:/Users/zoner/OneDrive/Documents/Unreal Projects/LyraStarterGame/Build/Windows" -manifests -clientconfig=Development" -nocompile -nocompileuat ]
UATHelper: Packaging (Windows): Running AutomationTool...
UATHelper: Packaging (Windows): Using bundled DotNet SDK version: 6.0.302
UATHelper: Packaging (Windows): Starting AutomationTool...
UATHelper: Packaging (Windows): Parsing command line: -ScriptsForProject="C:/Users/zoner/OneDrive/Documents/Unreal Projects/LyraStarterGame/LyraStarterGame.uproject" Turnkey -command=VerifySdk -platform=Win64 -UpdateIfNeeded -EditorIO -EditorIOPort=58808 -project="C:/Users/zoner/OneDrive/Documents/Unreal Projects/LyraStarterGame/LyraStarterGame.uproject" BuildCookRun -nop4 -utf8output -nocompileeditor -skipbuildeditor -cook -project="C:/Users/zoner/OneDrive/Documents/Unreal Projects/LyraStarterGame/LyraStarterGame.uproject" -target=LyraGame -unrealexe="C:\Program Files\Epic Games\UE_5.3\Engine
\Binaries\Win64\UnrealEditor-Cmd.exe" -platform=Win64 -installed -stage -archive -package -build -pak -iostore -compressed -prereqs -archivedirectory="C:/Users/zoner/OneDrive/Documents/Unreal Projects/LyraStarterGame/Build/Windows" -manifests -clientconfig=Development -nocompile -nocompileuat
UATHelper: Packaging (Windows): Initializing script modules...
UATHelper: Packaging (Windows): Total script module initialization time: 0.27 s.
UATHelper: Packaging (Windows): Executing commands...
UATHelper: Packaging (Windows): Installed Sdk validity:
UATHelper: Packaging (Windows): Win64: (Status=Valid, MinAllowed_Sdk=10.0.00000.0, MaxAllowed_Sdk=10.9.99999.0, Current_Sdk=10.0.18362.0, Allowed_AutoSdk=10.0.18362.0, Current_AutoSdk=, Flags="InstalledSdk_ValidVersionExists, Sdk_HasBestVersion")
UATHelper: Packaging (Windows): Scanning for envvar changes...
UATHelper: Packaging (Windows): ... done! 
UATHelper: Packaging (Windows): Cleaning Temp Paths...
UATHelper: Packaging (Windows): BUILD SUCCESSFUL
UATHelper: Packaging (Windows): Setting up ProjectParams for C:\Users\zoner\OneDrive\Documents\Unreal Projects\LyraStarterGame\LyraStarterGame.uproject
UATHelper: Packaging (Windows): LyraGameEOS and dynamic target options are disabled when packaging from an installed version of the engine
UATHelper: Packaging (Windows): Compiling GameFeaturePlugins in branch ++UE5+Release-5.3
UATHelper: Packaging (Windows): ********** BUILD COMMAND STARTED **********
UATHelper: Packaging (Windows): Running: C:\Program Files\Epic Games\UE_5.3\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe "C:\Program Files\Epic Games\UE_5.3\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" LyraGame Win64 Development -Project="C:\Users\zoner\OneDrive\Documents\Unreal Projects\LyraStarterGame\LyraStarterGame.uproject" -Manifest="C:\Users\zoner\OneDrive\Documents\Unreal Projects\LyraStarterGame\Intermediate\Build\Manifest.xml"  -remoteini="C:\Users\zoner\OneDrive\Documents\Unreal Projects\LyraStarterGame"  -skipdeploy  -log="C:\Users\zoner\AppData\Roami
ng\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.3\UBT-LyraGame-Win64-Development.txt"
UATHelper: Packaging (Windows): Log file: C:\Users\zoner\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.3\UBT-LyraGame-Win64-Development.txt
UATHelper: Packaging (Windows): Creating makefile for LyraGame (no existing makefile)
UATHelper: Packaging (Windows): LyraGameEOS and dynamic target options are disabled when packaging from an installed version of the engine
UATHelper: Packaging (Windows): Total execution time: 6.31 seconds
UATHelper: Packaging (Windows): Microsoft platform targets must be compiled with Visual Studio 2022 17.4 (MSVC 14.34.x) or later for the installed engine. Please update Visual Studio 2022 and ensure no configuration is forcing WindowsTargetRules.Compiler to VisualStudio2019. The current compiler version was detected as: 14.29.30153
UATHelper: Packaging (Windows): Took 6.81s to run dotnet.exe, ExitCode=6
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\zoner\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.3\UBT-LyraGame-Win64-Development.txt)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 9s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows): BUILD FAILED
PackagingResults: Error: Unknown Error

and you wanna know what’s the strangest part about this? I was able to build one of my games yesterday (or the day before) and it worked without an error. I reinstalled Unreal Engine 5 but, it didn’t work. I restarted my system and that didn’t work either. I even deleted the project made a new one but, that didn’t work either. Can you please help me? Thank you.