Skip to content

[BUG] error while loading shared libraries: libva.so.2: cannot open shared object file: No such file or directory #114

@dexter74

Description

@dexter74

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Bonjour,

Le conteneur présente un problème de dépendance.

Matériel

Intel core i7 6700t

Check

clear;
docker exec -it Emby /app/emby/extra/bin/vainfo

start.sh
Le script suivant sert de palliatif au problème.

#!/bin/sh
echo "#########################################################################"
echo "=== VA-API Init ==="
echo "#########################################################################"
if ! dpkg -l 2>/dev/null | grep -q libva2; then
    echo "Installing VA-API...";
    apt-get update -qq >/dev/null;
    apt-get install -y -q libva2 vainfo intel-media-va-driver-non-free >/dev/null;
    ldconfig;
fi
echo "=== VA-API Ready ===";
volumes:
  - "..../vaapi.sh:/custom-cont-init.d/vaapi.sh:ro"

Information

La variable DOCKER_VOL est gérer dans l'environnement dans OMV-Compose et mène à un stockage qui contient   tout le contenu de docker. 

Expected Behavior

libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.20 (libva 2.22.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.1.0 ()
vainfo: Supported profile and entrypoints
     VAProfileNone                   : VAEntrypointVideoProc
     VAProfileNone                   : VAEntrypointStats
     VAProfileMPEG2Simple            : VAEntrypointVLD
     VAProfileMPEG2Simple            : VAEntrypointEncSlice
     VAProfileMPEG2Main              : VAEntrypointVLD
     VAProfileMPEG2Main              : VAEntrypointEncSlice
     VAProfileH264Main               : VAEntrypointVLD
     VAProfileH264Main               : VAEntrypointEncSlice
     VAProfileH264Main               : VAEntrypointFEI
     VAProfileH264Main               : VAEntrypointEncSliceLP
     VAProfileH264High               : VAEntrypointVLD
     VAProfileH264High               : VAEntrypointEncSlice
     VAProfileH264High               : VAEntrypointFEI
     VAProfileH264High               : VAEntrypointEncSliceLP
     VAProfileVC1Simple              : VAEntrypointVLD
     VAProfileVC1Main                : VAEntrypointVLD
     VAProfileVC1Advanced            : VAEntrypointVLD
     VAProfileJPEGBaseline           : VAEntrypointVLD
     VAProfileJPEGBaseline           : VAEntrypointEncPicture
     VAProfileH264ConstrainedBaseline: VAEntrypointVLD
     VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
     VAProfileH264ConstrainedBaseline: VAEntrypointFEI
     VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
     VAProfileVP8Version0_3          : VAEntrypointVLD
     VAProfileVP8Version0_3          : VAEntrypointEncSlice
     VAProfileHEVCMain               : VAEntrypointVLD
     VAProfileHEVCMain               : VAEntrypointEncSlice
     VAProfileHEVCMain               : VAEntrypointFEI

Steps To Reproduce

  1. Installer OpenMediaVault
  2. Vérifier les permissions des périphériques via ls -la /dev/dri/
  3. Installer Docker, Docker-compose
  4. Ajouter l'utilisateur 1000
  5. Ajouter l'utilisateur dans le groupe 100
  6. Créer le script
  7. Permission + Propriétaire
  8. Lancer le conteneur sans le script (VA-API KO)
  9. Créer le conteneur avec le fichier start.sh monter
  10. Lancer la commande vaainfo dans le conteneur

Environment

- OS: Debian 12
- How docker service was installed: Documentation officiel

CPU architecture

x86-64

Docker creation

###########
services: #
###########
#
#
############################################################
# Emby: (root:users)                                       #
############################################################
 Emby:                                                     #
  # ------------------------------------------------------ #
  image: 'linuxserver/emby'                                # :arm64v8-beta
  # ------------------------------------------------------ #
  container_name: 'Emby'                                   #
  network_mode: 'bridge'                                   #
  restart: 'unless-stopped'                                # unless-stopped
  hostname: 'Emby'                                         #
  # ------------------------------------------------------ #
  group_add:                                               #
   - '44'                                                  # Video
   - '105'                                                 # Render
  # ------------------------------------------------------ #
  environment:                                             #
   TZ: 'Europe/Paris'                                      #
   PUID: '1000'                                            #
   PGID: '100'                                             #
  # ------------------------------------------------------ #
  ports:                                                   #
   - '8096:8096'                                           #
  # ------------------------------------------------------ #
  devices:                                                 #
   - '/dev/dri:/dev/dri'                                   #
  # ------------------------------------------------------ #
  volumes:                                                 #
   # ----------------------------------------------------- #
   - "$DOCKER_VOL/Emby/script/vaapi.sh:/custom-cont-init.d/vaapi.sh:ro"
   # ----------------------------------------------------- #
   - "$DOCKER_VOL/Emby/config:/config"                     # BACKUP
   - "$DOCKER_VOL/Emby/tmp:/tmp"                           # BACKUP
  # ------------------------------------------------------ #
  healthcheck:                                             #
   test: ["CMD", "curl", "-f", "http://localhost:8096"]    #
   start_period: '6s'                                      #
   # ----------------------------------------------------- #
   timeout:  '3s'                                          #
   retries:  '3'                                           #
   interval: '120s'                                        #
############################################################

Container logs

error while loading shared libraries: libva.so.2: cannot open shared object file: No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions