UE5.1 Ubuntu Permission denied

Lost in Game Studio
Tue, 02 Apr 2024 17:13:44 +0000
Platform & Builds

Hello everyone!

I’m currently developing a plugin and I’d like to make it compatible with Linux. So I’ve installed Linux on my PC, grabbed version 5.1.1 of the Unreal Engine and dotnet 6. I can now launch the Unreal Engine and create a blueprint project. When I try to compile a C++ project, generate project files or package a blueprint project, I get the following errors

Package Blueprint Projet
PackagingResults: Error: System.ComponentModel.Win32Exception (13): An error occurred trying to start process ‘/media/ligs/Data/UNREAL/Linux/UE_5.1/Engine/Binaries/Linux/UnrealPak’ with working directory ‘/media/ligs/Data/UNREAL/Linux/UE_5.1’. Permission denied
UATHelper: Packaging (Linux): RunUAT ERROR: AutomationTool was unable to run successfully. Exited with code: 1

Compiling C++ Project
An error occurred while trying to generate project files.

Running /media/ligs/Data/UNREAL/Linux/UE_5.1/Engine/Build/BatchFiles/Linux/Build.sh -projectfiles -project=“/home/ligs/Documents/Unreal Projects/CodeProject/CodeProject.uproject” -game -rocket -progress
Setting up bundled DotNet SDK
Running command : dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll -projectfiles -project=/home/ligs/Documents/Unreal Projects/CodeProject/CodeProject.uproject -game -rocket -progress
Log file: /home/ligs/.config/Epic/UnrealBuildTool/Log_GPF.txt

Some Platforms were skipped due to invalid SDK setup: Android.
See the log file for detailed information

Discovering modules, targets and source code for project…
Generating data for project indexing…
Exception while generating include data for UnrealEditor: System.ComponentModel.Win32Exception (13): An error occurred trying to start process ‘/media/ligs/Data/UNREAL/Linux/UE_5.1/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang++’ with working directory ‘/media/ligs/Data/UNREAL/Linux/UE_5.1/Engine/Source’. Permission denied
at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String argv, String envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32 groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at UnrealBuildTool.LinuxToolChain.CheckDefaultCompilerSettings() in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/LinuxToolChain.cs:line 275
at UnrealBuildTool.LinuxToolChain…ctor(String InArchitecture, LinuxPlatformSDK InSDK, ClangToolChainOptions InOptions, ILogger InLogger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/LinuxToolChain.cs:line 62
at UnrealBuildTool.LinuxPlatform.CreateToolChain(ReadOnlyTargetRules Target) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/UEBuildLinux.cs:line 633
at UnrealBuildTool.UEBuildTarget.CreateToolchain(UnrealTargetPlatform Platform) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildTarget.cs:line 2431
at UnrealBuildTool.UEBuildTarget.CreateCompileEnvironmentForProjectFiles(ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildTarget.cs:line 1765
at UnrealBuildTool.ProjectFileGenerator.GenerateIntelliSenseData(String Arguments, List1 Targets, ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 1960 Exception while generating include data for CodeProjectEditor: System.ComponentModel.Win32Exception (13): An error occurred trying to start process '/media/ligs/Data/UNREAL/Linux/UE_5.1/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang++' with working directory '/media/ligs/Data/UNREAL/Linux/UE_5.1/Engine/Source'. Permission denied at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at UnrealBuildTool.LinuxToolChain.CheckDefaultCompilerSettings() in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/LinuxToolChain.cs:line 275 at UnrealBuildTool.LinuxToolChain..ctor(String InArchitecture, LinuxPlatformSDK InSDK, ClangToolChainOptions InOptions, ILogger InLogger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/LinuxToolChain.cs:line 62 at UnrealBuildTool.LinuxPlatform.CreateToolChain(ReadOnlyTargetRules Target) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/UEBuildLinux.cs:line 633 at UnrealBuildTool.UEBuildTarget.CreateToolchain(UnrealTargetPlatform Platform) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildTarget.cs:line 2431 at UnrealBuildTool.UEBuildTarget.CreateCompileEnvironmentForProjectFiles(ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildTarget.cs:line 1765 at UnrealBuildTool.ProjectFileGenerator.GenerateIntelliSenseData(String[] Arguments, List1 Targets, ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 1960
Generating data for project indexing… 100%
Discovering modules, targets and source code for project…
Generating data for project indexing…
Exception while generating include data for UnrealEditor: System.ComponentModel.Win32Exception (13): An error occurred trying to start process ‘/media/ligs/Data/UNREAL/Linux/UE_5.1/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang++’ with working directory ‘/media/ligs/Data/UNREAL/Linux/UE_5.1/Engine/Source’. Permission denied
at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String argv, String envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32 groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at UnrealBuildTool.LinuxToolChain.CheckDefaultCompilerSettings() in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/LinuxToolChain.cs:line 275
at UnrealBuildTool.LinuxToolChain…ctor(String InArchitecture, LinuxPlatformSDK InSDK, ClangToolChainOptions InOptions, ILogger InLogger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/LinuxToolChain.cs:line 62
at UnrealBuildTool.LinuxPlatform.CreateToolChain(ReadOnlyTargetRules Target) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/UEBuildLinux.cs:line 633
at UnrealBuildTool.UEBuildTarget.CreateToolchain(UnrealTargetPlatform Platform) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildTarget.cs:line 2431
at UnrealBuildTool.UEBuildTarget.CreateCompileEnvironmentForProjectFiles(ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildTarget.cs:line 1765
at UnrealBuildTool.VSCodeProjectFileGenerator.AddTargetForIntellisense(UEBuildTarget Target, ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 356
at UnrealBuildTool.ProjectFileGenerator.GenerateIntelliSenseData(String Arguments, List1 Targets, ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 1957 Exception while generating include data for CodeProjectEditor: System.ComponentModel.Win32Exception (13): An error occurred trying to start process '/media/ligs/Data/UNREAL/Linux/UE_5.1/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang++' with working directory '/media/ligs/Data/UNREAL/Linux/UE_5.1/Engine/Source'. Permission denied at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at UnrealBuildTool.LinuxToolChain.CheckDefaultCompilerSettings() in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/LinuxToolChain.cs:line 275 at UnrealBuildTool.LinuxToolChain..ctor(String InArchitecture, LinuxPlatformSDK InSDK, ClangToolChainOptions InOptions, ILogger InLogger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/LinuxToolChain.cs:line 62 at UnrealBuildTool.LinuxPlatform.CreateToolChain(ReadOnlyTargetRules Target) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Platform/Linux/UEBuildLinux.cs:line 633 at UnrealBuildTool.UEBuildTarget.CreateToolchain(UnrealTargetPlatform Platform) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildTarget.cs:line 2431 at UnrealBuildTool.UEBuildTarget.CreateCompileEnvironmentForProjectFiles(ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildTarget.cs:line 1765 at UnrealBuildTool.VSCodeProjectFileGenerator.AddTargetForIntellisense(UEBuildTarget Target, ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 356 at UnrealBuildTool.ProjectFileGenerator.GenerateIntelliSenseData(String[] Arguments, List1 Targets, ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 1957
Generating data for project indexing… 100%
Writing project files…
Writing project files… 67%
Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object.
at UnrealBuildTool.VSCodeProjectFileGenerator.WriteConfiguration(String Name, String ProjectName, IEnumerable1 SourceFiles, CppStandardVersion CppStandard, FileReference CompilerPath, DirectoryReference SysRootPath, Dictionary2 ModuleCommandLines, JsonFile OutFile, DirectoryReference OutputDirectory) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 670
at UnrealBuildTool.VSCodeProjectFileGenerator.WriteCppPropertiesFile(DirectoryReference OutputDirectory, ProjectData Projects) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 656
at UnrealBuildTool.VSCodeProjectFileGenerator.WritePrimaryProjectFile(ProjectFile UBTProject, PlatformProjectGeneratorCollection PlatformProjectGenerators, ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 281
at UnrealBuildTool.ProjectFileGenerator.WriteProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 2821
at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, String Arguments, ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 1176
at UnrealBuildTool.GenerateProjectFilesMode.Execute(CommandLineArguments Arguments, ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Modes/GenerateProjectFilesMode.cs:line 233
at UnrealBuildTool.UnrealBuildTool.Main(String ArgumentsArray) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.cs:line 648

With Generate Project Files
I use the following command:
./GenerateProjectFiles.sh “media/ligs/Data/PROJETS/TouchInterfaceDesigner/TouchPlugin510.uproject” -game -engine

Error:
Setting up Unreal Engine project files…

Setting up bundled DotNet SDK
Log file: /home/ligs/.config/Epic/UnrealBuildTool/Log_GPF.txt
Unhandled exception: System.Exception: Unable to find project file based on argument media/ligs/Data/PROJETS/TouchInterfaceDesigner/TouchPlugin510.uproject
at UnrealBuildTool.GenerateProjectFilesMode.TryParseProjectFileArgument(CommandLineArguments Arguments, ILogger Logger, FileReference& ProjectFile) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Modes/GenerateProjectFilesMode.cs:line 297
at UnrealBuildTool.GenerateProjectFilesMode.Execute(CommandLineArguments Arguments, ILogger Logger) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/Modes/GenerateProjectFilesMode.cs:line 78
at UnrealBuildTool.UnrealBuildTool.Main(String ArgumentsArray) in /mnt/horde/++UE5/Sync/Engine/Saved/CsTools/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.cs:line 648

I’m relatively new to linux and I must admit I’m a bit lost. I understand that there is a permission problem but I don’t know how to solve it… Can an experienced Linux user help me? Thank you for your help.

1 post - 1 participant