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

Attempting to run nvidia-container-runtime returns nvidia-container-cli.ldconfig value "/usr/sbin/ldconfig" is not host-relative (does not start with a '@') error #830

Closed
BRTPOB opened this issue Dec 10, 2024 · 2 comments

Comments

@BRTPOB
Copy link

BRTPOB commented Dec 10, 2024

As the title says, when trying to run the nvidia-container-runtime, the command will return the following error:

ERRO[0000] error loading config: nvidia-container-cli.ldconfig value "/usr/sbin/ldconfig" is not host-relative (does not start with a '@') invalid config value

This came up because my Plex and Jellyfin containers, that I was previously using to access my video card for hardware transcoding, fail with the following error:

ERROR: for plex Cannot start service plex: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/moby/a5ba468b6173006778af9210677a89a0fbdc50f2d506e9cd86cbbed77b191aca/log.json: no such file or directory): nvidia-container-runtime did not terminate successfully: exit status 1: unknown

ERROR: for plex Cannot start service plex: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/moby/a5ba468b6173006778af9210677a89a0fbdc50f2d506e9cd86cbbed77b191aca/log.json: no such file or directory): nvidia-container-runtime did not terminate successfully: exit status 1: unknown ERROR: Encountered errors while bringing up the project.

These errors are new to the most recent container-toolkit upgrade. Running on Ubuntu 22.04.5 LTS prior to upgrading to 24.04.1 LTS as part of the troubleshooting process.

@cdesiniotis
Copy link
Contributor

@BRTPOB the latest release of NVIDIA Container Toolkit was updated to not allow container-relative paths for the ldconfig binary by default. An allow-ldconfig-from-container feature flag was added to allow for this default behavior to be changed. If required for your environment, you can enable this feature flag by running:

sudo nvidia-ctk config --in-place --set features.allow-ldconfig-from-container=true 

Refer to #690

@BRTPOB
Copy link
Author

BRTPOB commented Dec 11, 2024

Thanks, I had found the PR/issue related to that, and I was guessing it was due to that but wasn't sure.

The command fixed my issue, so again thanks for the info.

@BRTPOB BRTPOB closed this as completed Dec 11, 2024
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