Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running container #1

Open
shah-deep opened this issue Apr 14, 2024 · 1 comment
Open

Error running container #1

shah-deep opened this issue Apr 14, 2024 · 1 comment

Comments

@shah-deep
Copy link

I can create an image and container from it. However, when I run ./run_container.sh, I get the following error:

Error invoking remote method 'docker-start-container’: Error: (HTTP code 500) server error - failed to create shim task OCI runtime create failed: runc create failed unable to start container process: error during container init error running hook #0, error running hook exit status 1, stdout, siderr. Auto-detected mode as ‘legacy' nvidia-container-cli: initialization error. WSL environment detected but no adapters were found: unknown

error

I tried to run on 3 different laptops (Mac Intel & Windows) & several debugging tips that I found online but to no avail.

I would highly appreciate it if you could look into the issue and suggest a solution.

Thank you!

@mqt0029
Copy link
Member

mqt0029 commented Apr 15, 2024

A couple of notes:

  1. This container was tested on Ubuntu 22.04 with NVIDIA GPU. On Windows (WSL2), a lot more settings must be set and pass to the container for full GPU access and rendering, as well as exposing the appropriate ports to access the ROS system within the container.
  2. MacOS is not recommended for this repository. The ROS CLI backend would still function, but anything UI will not. It is recommended that you do not run this on a Mac/Apple device.
  3. The error, especially this part Auto-detected mode as ‘legacy' nvidia-container-cli: initialization error. WSL environment detected but no adapters were found: unknown is probably caused by NVIDIA flags set in the dockerfile. Another likely culprit is that you do indeed have an NVIDIA GPU (unlikely on any modern Mac device) and have NVIDIA container toolkit installed, but configured wrong and it is not able to see any NVIDIA device.

With that in mind, I have updated the container to not rely on any GPU component and exposing only the port 10000 to the host, which is the port used by Unity connector component, and has tested it on a Windows machine running WSL2. Please pull the image via

user@DESKTOP:~$ docker pull mqt0029/robosim:noetic

and update your local copy of the repository with git pull and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants