Unreal Engine 5 falha para criar um projeto por UnauthorizedAccessException [RESOLVIDO]

1. Unreal Engine 5 falha para criar um projeto por UnauthorizedAccessException [RESOLVIDO]

Gustavo Jesien Pinent
gustavopinent

(usa Linux Mint)

Enviado em 16/11/2022 - 16:01h

Estou na missão de instalar o UE5 no meu PC Gamer. Segue as especificações:

System: Kernel: 5.4.0-131-generic x86_64 bits: 64 compiler: gcc v: 9.4.0
Desktop: Cinnamon 5.2.7 wm: muffin dm: LightDM Distro: Linux Mint 20.3 Una
base: Ubuntu 20.04 focal
Machine: Type: Desktop Mobo: ASUSTeK model: M5A78L-M LX/BR v: Rev X.0x serial: <filter>
BIOS: American Megatrends v: 1201 date: 03/04/2017
CPU: Topology: 6-Core model: AMD FX-6300 bits: 64 type: MCP arch: Bulldozer
L2 cache: 2048 KiB
flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 42190
Speed: 1614 MHz min/max: 1400/3500 MHz Core speeds (MHz): 1: 1771 2: 1875 3: 1957
4: 1953 5: 1721 6: 1945
Graphics: Device-1: AMD Baffin [Radeon RX 460/560D / Pro 450/455/460/555/555X/560/560X]
vendor: XFX Pine Polaris 21 XL driver: amdgpu v: kernel bus ID: 01:00.0
chip ID: 1002:67ef
Display: x11 server: X.Org 1.20.13 driver: amdgpu,ati
unloaded: fbdev,modesetting,radeon,vesa resolution: 1280x1024~60Hz
OpenGL: renderer: AMD Radeon RX 460 Graphics (POLARIS11 DRM 3.35.0 5.4.0-131-generic
LLVM 12.0.0)
v: 4.6 Mesa 21.2.6 direct render: Yes
Audio: Device-1: AMD SBx00 Azalia vendor: ASUSTeK M5A78L LE driver: snd_hda_intel v: kernel
bus ID: 00:14.2 chip ID: 1002:4383
Device-2: AMD Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X] vendor: XFX Pine
driver: snd_hda_intel v: kernel bus ID: 01:00.1 chip ID: 1002:aae0
Sound Server: ALSA v: k5.4.0-131-generic
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK P8P67 and other motherboards driver: r8169 v: kernel port: d800
bus ID: 02:00.0 chip ID: 10ec:8168
IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Device-2: Realtek RTL8812AE 802.11ac PCIe Wireless Network Adapter driver: rtl8821ae
v: kernel port: e800 bus ID: 03:00.0 chip ID: 10ec:8812
IF: wlp3s0 state: down mac: <filter>
Drives: Local Storage: total: 223.57 GiB used: 575.34 GiB (257.3%)
ID-1: /dev/sda vendor: Kingston model: SV300S37A240G size: 223.57 GiB speed: 3.0 Gb/s
serial: <filter>
Partition: ID-1: / size: 218.51 GiB used: 202.42 GiB (92.6%) fs: ext4 dev: /dev/sda5
Sensors: System Temperatures: cpu: 47.0 C mobo: 29.0 C gpu: amdgpu temp: 37 C
Fan Speeds (RPM): cpu: 2556 case-1: 2235 gpu: amdgpu fan: 1537
Voltages: 12v: 12.08 5v: N/A 3.3v: 3.36 vbat: N/A
Repos: No active apt repos in: /etc/apt/sources.list
No active apt repos in: /etc/apt/sources.list.d/amdgpu-proprietary.list
Active apt repos in: /etc/apt/sources.list.d/amdgpu.list
1: deb https: //repo.radeon.com/amdgpu/22.20/ubuntu jammy main
Active apt repos in: /etc/apt/sources.list.d/expandrive.list
1: deb [arch=amd64 signed-by=/usr/share/keyrings/packages.expandrive.gpg] https: //packages.expandrive.com/expandrive stable main
Active apt repos in: /etc/apt/sources.list.d/lutris-team-lutris-focal.list
1: deb http: //ppa.launchpad.net/lutris-team/lutris/ubuntu focal main
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb http: //packages.linuxmint.com una main upstream import backport #id:linuxmint_main
2: deb http: //archive.ubuntu.com/ubuntu focal main restricted universe multiverse
3: deb http: //archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
4: deb http: //archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
6: deb http: //archive.canonical.com/ubuntu/ focal partner
Active apt repos in: /etc/apt/sources.list.d/rocm.list
1: deb [arch=amd64] https: //repo.radeon.com/rocm/apt/5.2 ubuntu main
Active apt repos in: /etc/apt/sources.list.d/steam.list
1: deb [arch=amd64,i386] https: //repo.steampowered.com/steam/ stable steam
2: deb-src [arch=amd64,i386] https: //repo.steampowered.com/steam/ stable steam
Active apt repos in: /etc/apt/sources.list.d/vscode.list
1: deb [arch=amd64,arm64,armhf] http: //packages.microsoft.com/repos/code stable main
Active apt repos in: /etc/apt/sources.list.d/winehq-focal.sources
1: deb [arch=amd64 i386] https: //dl.winehq.org/wine-builds/ubuntu focal main
Info: Processes: 346 Uptime: 2h 22m Memory: 7.75 GiB used: 4.82 GiB (62.2%) Init: systemd
v: 245 runlevel: 5 Compilers: gcc: 9.4.0 alt: 9 Client: Unknown python3.8 client
inxi: 3.0.38


As instruções são mais ou menos assim: aqui estão os arquivos, te vira. Só que em inglês, é claro. Então coloquei no diretório /opt e após alguns perrengues, o editor abriu. Quero desenvolver projetos em C++ e sair da Unity. Mas quando tento criar o meu primeiro projeto, dá erro:

An error occurred while trying to generate project files.

Running /opt/ue5/Engine/Build/BatchFiles/Linux/Build.sh -projectfiles -project="/home/gustavopinent/Documentos/ue5projects/MyProject/MyProject.uproject" -game -rocket -progress
Setting up bundled DotNet SDK
Running command : dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll -projectfiles -project=/home/gustavopinent/Documentos/ue5projects/MyProject/MyProject.uproject -game -rocket -progress
Log file: /home/gustavopinent/.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...
WARNING: Exception while generating include data for UnrealEditor: System.UnauthorizedAccessException: Access to the path '/opt/ue5/Engine/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/Launch' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateDirectory(String fullPath)
at System.IO.Directory.CreateDirectory(String path)
at EpicGames.Core.DirectoryReference.CreateDirectory(DirectoryReference Location) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/Shared/EpicGames.Core/DirectoryReference.cs:line 291
at UnrealBuildTool.Utils.WriteFileIfChanged(FileItem FileItem, String Contents, StringComparison Comparison) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/System/Utils.cs:line 1572
at UnrealBuildTool.NullActionGraphBuilder.CreateIntermediateTextFile(FileItem FileItem, String Contents) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/System/ActionGraphBuilder.cs:line 93
at UnrealBuildTool.ActionGraphBuilderExtensions.CreateIntermediateTextFile(IActionGraphBuilder Graph, FileReference AbsolutePath, String Contents) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/System/ActionGraphBuilder.cs:line 304
at UnrealBuildTool.UEBuildModuleCPP.CreateHeaderForDefinitions(CppCompileEnvironment CompileEnvironment, DirectoryReference IntermediateDirectory, String HeaderSuffix, IActionGraphBuilder Graph) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildModuleCPP.cs:line 1185
at UnrealBuildTool.UEBuildModuleCPP.CreateCompileEnvironmentForIntellisense(ReadOnlyTargetRules Target, CppCompileEnvironment BaseCompileEnvironment) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildModuleCPP.cs:line 1363
at UnrealBuildTool.ProjectFileGenerator.GenerateIntelliSenseData(String[] Arguments, List`1 Targets) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 1947
Generating data for project indexing... 100%
Discovering modules, targets and source code for project...
Generating data for project indexing...
WARNING: Exception while generating include data for UnrealEditor: System.UnauthorizedAccessException: Access to the path '/opt/ue5/Engine/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/Launch' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateDirectory(String fullPath)
at System.IO.Directory.CreateDirectory(String path)
at EpicGames.Core.DirectoryReference.CreateDirectory(DirectoryReference Location) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/Shared/EpicGames.Core/DirectoryReference.cs:line 291
at UnrealBuildTool.Utils.WriteFileIfChanged(FileItem FileItem, String Contents, StringComparison Comparison) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/System/Utils.cs:line 1572
at UnrealBuildTool.NullActionGraphBuilder.CreateIntermediateTextFile(FileItem FileItem, String Contents) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/System/ActionGraphBuilder.cs:line 93
at UnrealBuildTool.ActionGraphBuilderExtensions.CreateIntermediateTextFile(IActionGraphBuilder Graph, FileReference AbsolutePath, String Contents) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/System/ActionGraphBuilder.cs:line 304
at UnrealBuildTool.UEBuildModuleCPP.CreateHeaderForDefinitions(CppCompileEnvironment CompileEnvironment, DirectoryReference IntermediateDirectory, String HeaderSuffix, IActionGraphBuilder Graph) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildModuleCPP.cs:line 1185
at UnrealBuildTool.UEBuildModuleCPP.CreateCompileEnvironmentForIntellisense(ReadOnlyTargetRules Target, CppCompileEnvironment BaseCompileEnvironment) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildModuleCPP.cs:line 1363
at UnrealBuildTool.VSCodeProjectFileGenerator.AddTargetForIntellisense(UEBuildTarget Target) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 353
at UnrealBuildTool.ProjectFileGenerator.GenerateIntelliSenseData(String[] Arguments, List`1 Targets) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 1930
WARNING: Exception while generating include data for MyProjectEditor: System.UnauthorizedAccessException: Access to the path '/opt/ue5/Engine/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/Launch' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateDirectory(String fullPath)
at System.IO.Directory.CreateDirectory(String path)
at EpicGames.Core.DirectoryReference.CreateDirectory(DirectoryReference Location) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/Shared/EpicGames.Core/DirectoryReference.cs:line 291
at UnrealBuildTool.Utils.WriteFileIfChanged(FileItem FileItem, String Contents, StringComparison Comparison) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/System/Utils.cs:line 1572
at UnrealBuildTool.NullActionGraphBuilder.CreateIntermediateTextFile(FileItem FileItem, String Contents) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/System/ActionGraphBuilder.cs:line 93
at UnrealBuildTool.ActionGraphBuilderExtensions.CreateIntermediateTextFile(IActionGraphBuilder Graph, FileReference AbsolutePath, String Contents) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/System/ActionGraphBuilder.cs:line 304
at UnrealBuildTool.UEBuildModuleCPP.CreateHeaderForDefinitions(CppCompileEnvironment CompileEnvironment, DirectoryReference IntermediateDirectory, String HeaderSuffix, IActionGraphBuilder Graph) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildModuleCPP.cs:line 1185
at UnrealBuildTool.UEBuildModuleCPP.CreateCompileEnvironmentForIntellisense(ReadOnlyTargetRules Target, CppCompileEnvironment BaseCompileEnvironment) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/Configuration/UEBuildModuleCPP.cs:line 1363
at UnrealBuildTool.VSCodeProjectFileGenerator.AddTargetForIntellisense(UEBuildTarget Target) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 353
at UnrealBuildTool.ProjectFileGenerator.GenerateIntelliSenseData(String[] Arguments, List`1 Targets) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 1930
Generating data for project indexing... 100%
Writing project files...
Writing project files... 67%
ERROR: Unhandled exception: System.UnauthorizedAccessException: Access to the path '/opt/ue5/.vscode' is denied.
---> System.IO.IOException: Permission denied
--- End of inner exception stack trace ---
at System.IO.FileSystem.CreateDirectory(String fullPath)
at System.IO.Directory.CreateDirectory(String path)
at EpicGames.Core.DirectoryReference.CreateDirectory(DirectoryReference Location) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/Shared/EpicGames.Core/DirectoryReference.cs:line 291
at UnrealBuildTool.VSCodeProjectFileGenerator.WriteCppPropertiesFile(DirectoryReference OutputDirectory, ProjectData Projects) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 580
at UnrealBuildTool.VSCodeProjectFileGenerator.WritePrimaryProjectFile(ProjectFile UBTProject, PlatformProjectGeneratorCollection PlatformProjectGenerators) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 287
at UnrealBuildTool.ProjectFileGenerator.WriteProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 2806
at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, String[] Arguments) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 1153
at UnrealBuildTool.GenerateProjectFilesMode.Execute(CommandLineArguments Arguments) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/Modes/GenerateProjectFilesMode.cs:line 234
at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in /mnt/horde/++UE5/Sync/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.cs:line 612



Pelo que entendi, o erro em si é uma não autorização de acesso aos diretórios necessários. Postei lá no forum da UE, mas ninguém respondeu, até porque talvez seja mais uma questão Linux do que do aplicativo em si.

Alguma ideia?


  


2. Re: Unreal Engine 5 falha para criar um projeto por UnauthorizedAccessException [RESOLVIDO]

Samuel Leonardo
SamL

(usa XUbuntu)

Enviado em 16/11/2022 - 17:03h

Basicamente é só erro de permissão:
WARNING: Exception while generating include data for UnrealEditor: System.UnauthorizedAccessException: Access to the path '/opt/ue5/Engine/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/Launch' is denied.
---> System.IO.IOException: Permission denied

Abra um terminal e siga os comandos:
cd /opt
sudo chmod -R 777 ue5
NOTA: escreva exatamente a linha acima sem mudar nada pra não fazer m3rda no sistema.
Isso fará com que qualquer usuário possa escrever na pasta ue5, incluindo o seu atual que criou o projeto.
Antes somente o root poderia fazer isso. É bem parecido com uma gambiarra mas resolve de boa seu problema.
Depois, basta dar build de novo e ver a mágica acontecendo.


https://nerdki.blogspot.com/ acessa ai, é grátis


3. Re: Unreal Engine 5 falha para criar um projeto por UnauthorizedAccessException [RESOLVIDO]

Gustavo Jesien Pinent
gustavopinent

(usa Linux Mint)

Enviado em 17/11/2022 - 09:14h

Agora sim, funfou direitinho! Desconfiava que era algo do gênero. Valeu!







Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts