Aller au contenu

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

Featured Replies

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.



 

  • Réponses 1 k
  • Vues 221.3 k
  • Créé
  • Dernière réponse

Meilleurs contributeurs dans ce sujet

Most Popular Posts

  • Merci @MilesTEG1 il est bien en host ... Visiblement d'autres rencontrent le même problème plex token not written to preferences on first run · Issue #100 · linuxserver/docker-plex · GitHub

  • Merci @Einsteinium pour ce tuto. Je viens de le mettre en place, c'est top. Efficace et fonctionnel. De même pour le transcodage Hardware (transcodage de vidéos 4k sur smartphone à distance en 4G

  • Bonjour, Ça dépend si tu l'as activé ou non. C'est dans "Panneau de configuration > Réseau > Interface réseau > Gérer > Paramétre d'Open vSwitch" C'est disponible sur les NA

Images postées

Posté(e)

Merci @MilesTEG1 il est bien en host ...

Visiblement d'autres rencontrent le même problème plex token not written to preferences on first run · Issue #100 · linuxserver/docker-plex · GitHub

Sans comprendre pourquoi j'ai suivi un des posts de cette page en utilisant http://<ip>/web/index.html et là ca a fonctionné !

Modifié par TuringFan

Posté(e)
il y a 2 minutes, TuringFan a dit :

Merci @MilesTEG1 il est bien en host ...

PS : visiblement d'autres rencontrent le même problème plex token not written to preferences on first run · Issue #100 · linuxserver/docker-plex · GitHub

Oué enfin ça date de 2019 mine de rien...

Tu as créé le conteneur via l'interface de DSM ?

Esaye de mettre une variable d'environnement PLEX_CLAIM=

 

Posté(e)
il y a 1 minute, MilesTEG1 a dit :

Tu as créé le conteneur via l'interface de DSM ?

Oui

PS : je viens d'edit mon message car ça marche !

Posté(e)
  • Auteur

@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…

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.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.