-
-
Notifications
You must be signed in to change notification settings - Fork 62
Description
(base) root@gpu-109d9d3d473198e4d7c96-1-la09nlbr2cao:/carla# cd CARLA_ROOT/carla# ./CarlaUE4.sh --world-port=2000 -opengl
bash: cd: CARLA_ROOT: No such file or directory
(base) root@gpu-109d9d3d473198e4d7c96-1-la09nlbr2cao:
Refusing to run with the root privileges.
I'm encountering an issue when trying to launch CARLA using the CarlaUE4.sh script as the root user. The script refuses to run with the root privileges and I cannot find a way to bypass this restriction.
Here are the details of the issue:
CARLA Version: [0.9.13]
OS: Ubuntu 22.04 (Running on a server)
Steps to reproduce:
- Run the command
sudo ./CarlaUE4.sh --world-port=2000 -opengl. - Get the error:
Refusing to run with the root privileges.
File Path: The script and CARLA binaries are located in /root/carla.
I have already tried the following:
Checking the file permissions and ensuring the CarlaUE4.sh script and the binary (CarlaUE4-Linux-Shipping) are executable (chmod +x).
Modifying ownership using sudo chown root:root to ensure the root user has access.
Manually setting the $UE4_PROJECT_ROOT environment variable to ensure the correct file paths.
Attempted using sudo -u $(whoami) to run as the current user, but this didn't work either.
Additionally, the script does not appear to have explicit checks for root privileges, so the issue seems to be related to some internal CARLA restrictions.
Would appreciate any guidance on how to bypass or disable this root privilege check, or any suggestions on how to get CARLA running as root.
Let me know if any additional information is needed. Thank you in advance!