Aller au contenu

[TUTO] Plex via docker, avec ou sans transcodage matériel


Messages recommandés

Posté(e)
Le 19/01/2023 à 07:03, .Shad. a dit :

@TuringFan De souvenir, la première connexion à Plex doit se faire en direct. Donc tu dois au moins temporairement autoriser l'accès sans proxy inversé.

Bonjour @.Shad. et merci pour ton aide.

J'ai essayé en me connectant via mon IPv4 et le port 32400 depuis le WAN et toujours le même écran qui m'indique d'obtenir Plex Media Server...

D'ailleurs je ne comprends même pas le principe de cette erreur : en effet lors de ma connexion Plex m'indique bien qu'il s'agit d'une application hébergé sur mon serveur et pourtant il me propose après ma connexion d'obtenir PMS ... Un peu contre intuitif non ?

Voici mes logs (j'ai remplacé le PUID / GUID avec des *).

[migrations] started
[migrations] no migrations found
-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/
Brought to you by linuxserver.io
-------------------------------------
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid:    ****
User gid:    ***
-------------------------------------
**** Server is unclaimed, but no claim token has been set ****
#####################################################
#   Login via the webui at http://<ip>:32400/web    #
#   and restart the docker, because there was no    #
#   preference file found, possibly first startup.  #
#####################################################
[custom-init] No custom files found, skipping...
Starting Plex Media Server. . . (you can ignore the libusb_init error)
[ls.io-init] done.
Error in command line:the argument for option '--serverUuid' should follow immediately after the equal sign
Crash Uploader options (all are required):
  --directory arg       Directory to scan for crash reports
  --serverUuid arg      UUID of the server that crashed
  --userId arg          User that owns this product
  --platform arg        Platform string
  --platformVersion arg Platform version string
  --vendor arg          Vendor string
  --device arg          Device string
  --model arg           Device model string
  --sentryUrl arg       Sentry URL to upload to
  --sentryKey arg       Sentry Key for the project
  --version arg         Version of the product
  --allowRetries arg    Whether we will allow retries
Critical: libusb_init failed


A quoi correspond la ligne **** Server is unclaimed, but no claim token has been set **** ?

Le user NAS et les identifiants Plex pour log in n'ont bien aucun rapport ?

Merci d'avance pour ton aide.

PS à noter que mon IPv6 est activée au cas où cela jouerait.



 

Posté(e)

@TuringFan :

 

 

D ) Réclamer le serveur plex

Pour cette étape, il faudra être rapide, après obtention du token, vous aurez 4 minutes.

1 ) Visitez cette page Plex Token et copiez le token obtenu

2 ) Modifiez notre fichier "dockerplex.sh" puis rajoutez la variable :  

-e PLEX_CLAIM=tokenobtenu \

3 ) Exécutez manuellement de nouveau la tâche du point "II -> C"

4 ) Votre serveur est maintenant réclamé, supprimez la variable rajoutée au point "II -> D -> 2"


Effectivement il faudra que je veille à mettre à jour ce tutoriel

Posté(e)
Le 20/02/2018 à 22:20, Einsteinium a dit :

Maintenant ouvrez le fichier json créé, vous remplacez :

   "ddsm_bind_share" : "",
   "devices" : [],

Bonsoir @Einsteinium,

Je ne retrouve pas ces éléments dans mon json (cf. ci-dessous pour le contenu de mon fichier). Peux tu stp m'aider ?


Faut il utiliser ?

"volume_bindings" : [

Merci d'avance,
 

{
   "CapAdd" : [],
   "CapDrop" : [],
   "cmd" : "",
   "cpu_priority" : 50,
   "enable_publish_all_ports" : false,
   "enable_restart_policy" : true,
   "enable_service_portal" : null,
   "enabled" : true,
   "env_variables" : [
      {
         "key" : "PATH",
         "value" : "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
      },
      {
         "key" : "HOME",
         "value" : "/root"
      },
      {
         "key" : "LANGUAGE",
         "value" : "en_US.UTF-8"
      },
      {
         "key" : "LANG",
         "value" : "en_US.UTF-8"
      },
      {
         "key" : "TERM",
         "value" : "xterm"
      },
      {
         "key" : "S6_CMD_WAIT_FOR_SERVICES_MAXTIME",
         "value" : "0"
      },
      {
         "key" : "S6_VERBOSITY",
         "value" : "1"
      },
      {
         "key" : "S6_STAGE2_HOOK",
         "value" : "/docker-mods"
      },
      {
         "key" : "NVIDIA_DRIVER_CAPABILITIES",
         "value" : "compute,video,utility"
      },
      {
         "key" : "DEBIAN_FRONTEND",
         "value" : "noninteractive"
      },
      {
         "key" : "PLEX_DOWNLOAD",
         "value" : "https://downloads.plex.tv/plex-media-server-new"
      },
      {
         "key" : "PLEX_ARCH",
         "value" : "amd64"
      },
      {
         "key" : "PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR",
         "value" : "/config/Library/Application Support"
      },
      {
         "key" : "PLEX_MEDIA_SERVER_HOME",
         "value" : "/usr/lib/plexmediaserver"
      },
      {
         "key" : "PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS",
         "value" : "6"
      },
      {
         "key" : "PLEX_MEDIA_SERVER_USER",
         "value" : "abc"
      },
      {
         "key" : "PLEX_MEDIA_SERVER_INFO_VENDOR",
         "value" : "Docker"
      },
      {
         "key" : "PLEX_MEDIA_SERVER_INFO_DEVICE",
         "value" : "Docker Container (LinuxServer.io)"
      },
      {
         "key" : "PGID",
         "value" : "100"
      },
      {
         "key" : "PUID",
         "value" : "1046"
      },
      {
         "key" : "VERSION",
         "value" : "latest"
      },
      {
         "key" : "TZ",
         "value" : "Europe/Paris"
      }
   ],
   "exporting" : false,
   "id" : "***",
   "image" : "linuxserver/plex:latest",
   "is_ddsm" : false,
   "is_package" : false,
   "links" : [],
   "memory_limit" : 5368709120,
   "name" : "Plex",
   "network" : [
      {
         "driver" : "host",
         "name" : "host"
      }
   ],
   "network_mode" : "host",
   "port_bindings" : [],
   "privileged" : false,
   "shortcut" : {
      "enable_shortcut" : false,
      "enable_status_page" : false,
      "enable_web_page" : false,
      "web_page_url" : ""
   },
   "use_host_network" : true,
   "volume_bindings" : [
      {
         "host_volume_file" : "/docker/Plex/config",
         "mount_point" : "/config",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/docker/Plex/data",
         "mount_point" : "/data",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/docker/Plex/transcode",
         "mount_point" : "/transcode",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/video/Films",
         "mount_point" : "/movies",
         "type" : "ro"
      },
      {
         "host_volume_file" : "/video/Sagas",
         "mount_point" : "/sagas",
         "type" : "ro"
      },
      {
         "host_volume_file" : "/video/Séries",
         "mount_point" : "/tv_shows",
         "type" : "ro"
      },
      {
         "host_volume_file" : "/video/Documentaires",
         "mount_point" : "/documentaries",
         "type" : "ro"
      },
      {
         "host_volume_file" : "/music",
         "mount_point" : "/music",
         "type" : "ro"
      }
   ]
}

 

  • 3 semaines après...
Posté(e)

Bonjour

trés simpa se tuto , je suis novice sur docker et je suis arrivé a étape IV mais dans mon fichier.json je n'ai pas la commande a remplacé 

"ddsm_bind_share" : "",
   "devices" : [],

Par :

   "devices" : [
      {
         "CgroupPermissions" : "rwm",
         "PathInContainer" : "/dev/dri",
         "PathOnHost" : "/dev/dri"
      }
   ],
Le 29/01/2023 à 20:24, TuringFan a dit :

Bonsoir @Einsteinium,

Je ne retrouve pas ces éléments dans mon json (cf. ci-dessous pour le contenu de mon fichier). Peux tu stp m'aider ?


Faut il utiliser ?

"volume_bindings" : [

Merci d'avance,
 

{
   "CapAdd" : [],
   "CapDrop" : [],
   "cmd" : "",
   "cpu_priority" : 50,
   "enable_publish_all_ports" : false,
   "enable_restart_policy" : true,
   "enable_service_portal" : null,
   "enabled" : true,
   "env_variables" : [
      {
         "key" : "PATH",
         "value" : "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
      },
      {
         "key" : "HOME",
         "value" : "/root"
      },
      {
         "key" : "LANGUAGE",
         "value" : "en_US.UTF-8"
      },
      {
         "key" : "LANG",
         "value" : "en_US.UTF-8"
      },
      {
         "key" : "TERM",
         "value" : "xterm"
      },
      {
         "key" : "S6_CMD_WAIT_FOR_SERVICES_MAXTIME",
         "value" : "0"
      },
      {
         "key" : "S6_VERBOSITY",
         "value" : "1"
      },
      {
         "key" : "S6_STAGE2_HOOK",
         "value" : "/docker-mods"
      },
      {
         "key" : "NVIDIA_DRIVER_CAPABILITIES",
         "value" : "compute,video,utility"
      },
      {
         "key" : "DEBIAN_FRONTEND",
         "value" : "noninteractive"
      },
      {
         "key" : "PLEX_DOWNLOAD",
         "value" : "https://downloads.plex.tv/plex-media-server-new"
      },
      {
         "key" : "PLEX_ARCH",
         "value" : "amd64"
      },
      {
         "key" : "PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR",
         "value" : "/config/Library/Application Support"
      },
      {
         "key" : "PLEX_MEDIA_SERVER_HOME",
         "value" : "/usr/lib/plexmediaserver"
      },
      {
         "key" : "PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS",
         "value" : "6"
      },
      {
         "key" : "PLEX_MEDIA_SERVER_USER",
         "value" : "abc"
      },
      {
         "key" : "PLEX_MEDIA_SERVER_INFO_VENDOR",
         "value" : "Docker"
      },
      {
         "key" : "PLEX_MEDIA_SERVER_INFO_DEVICE",
         "value" : "Docker Container (LinuxServer.io)"
      },
      {
         "key" : "PGID",
         "value" : "100"
      },
      {
         "key" : "PUID",
         "value" : "1046"
      },
      {
         "key" : "VERSION",
         "value" : "latest"
      },
      {
         "key" : "TZ",
         "value" : "Europe/Paris"
      }
   ],
   "exporting" : false,
   "id" : "***",
   "image" : "linuxserver/plex:latest",
   "is_ddsm" : false,
   "is_package" : false,
   "links" : [],
   "memory_limit" : 5368709120,
   "name" : "Plex",
   "network" : [
      {
         "driver" : "host",
         "name" : "host"
      }
   ],
   "network_mode" : "host",
   "port_bindings" : [],
   "privileged" : false,
   "shortcut" : {
      "enable_shortcut" : false,
      "enable_status_page" : false,
      "enable_web_page" : false,
      "web_page_url" : ""
   },
   "use_host_network" : true,
   "volume_bindings" : [
      {
         "host_volume_file" : "/docker/Plex/config",
         "mount_point" : "/config",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/docker/Plex/data",
         "mount_point" : "/data",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/docker/Plex/transcode",
         "mount_point" : "/transcode",
         "type" : "rw"
      },
      {
         "host_volume_file" : "/video/Films",
         "mount_point" : "/movies",
         "type" : "ro"
      },
      {
         "host_volume_file" : "/video/Sagas",
         "mount_point" : "/sagas",
         "type" : "ro"
      },
      {
         "host_volume_file" : "/video/Séries",
         "mount_point" : "/tv_shows",
         "type" : "ro"
      },
      {
         "host_volume_file" : "/video/Documentaires",
         "mount_point" : "/documentaries",
         "type" : "ro"
      },
      {
         "host_volume_file" : "/music",
         "mount_point" : "/music",
         "type" : "ro"
      }
   ]
}

 

j'ai le même problème tu a trouvé la solution svp ?

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Répondre à ce sujet…

×   Collé en tant que texte enrichi.   Coller en tant que texte brut à la place

  Seulement 75 émoticônes maximum sont autorisées.

×   Votre lien a été automatiquement intégré.   Afficher plutôt comme un lien

×   Votre contenu précédent a été rétabli.   Vider l’éditeur

×   Vous ne pouvez pas directement coller des images. Envoyez-les depuis votre ordinateur ou insérez-les depuis une URL.

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.