Help with Docker compose Plex file

  • I'm trying to setup Plex on my EONNAS running RPI "Bookworm" OMV7 is up and running but when I try to get Plex compose file up I get the following error:


    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/compose/plex/plex.yml' --env-file '/srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/compose/plex/plex.env' --env-file '/srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/compose/global.env' stop 2>&1': yaml: line 7: could not find expected ':'


    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/compose/plex/plex.yml' --env-file '/srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/compose/plex/plex.env' --env-file '/srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/compose/global.env' stop 2>&1': yaml: line 7: could not find expected ':' in /usr/share/openmediavault/engined/rpc/compose.inc:805

    Stack trace:

    #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(622): OMVRpcServiceCompose->{closure}()

    #1 /usr/share/openmediavault/engined/rpc/compose.inc(780): OMV\Rpc\ServiceAbstract->execBgProc()

    #2 [internal function]: OMVRpcServiceCompose->doCommand()

    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()

    #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()

    #5 /usr/sbin/omv-engined(544): OMV\Rpc\Rpc::call()

    #6 {main}


    I've tried to modify the file multiple times but get the same error!


    Here is a copy of my Plex file:


    version: "2.1"‬

    ‭ services:‬

    ‭ plex:‬

    ‭ image: lscr.io/linuxserver/plex:latest‬

    ‭ container_name:plex‬

    ‭network_mode:host‬

    environment:

    ‭ - PUID=10001

    ‭ - PGID=100

    ‭ - TZ=America/New_York‬

    ‭ - VERSION=docker‬

    ‭‭ volumes:‬

    ‭ - /srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/Config

    - /srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/compose

    - /srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/containers

    - /srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/Kids_Movies

    - /srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/Kids_TV

    - /srv/dev-disk-by-uuid-27c09db7-c5f4-46b5-a23e-0f49844e2209/Movies

    - /srv/dev-disk-by-uuid-9db08f09-45c7-48b4-afc5-17fd6cf58b9e/TV_Shows

    - /srv/dev-disk-by-uuid-27c09db7-c5f4-46b5-a23e-0f49844e2209/Music

    ‭ restart: unless-stopped


    Any help will be appreciated

  • macom

    Approved the thread.
    • Official Post

    line 7: could not find expected ':'

    You are missing the right part of the volumes definition. The part that should right of a ":"


    Have a look at the compose file here


    Or use the example in the compose plugin

  • OK I verified that the UID for "dockeruser is "1001" and corrected it to 1001


    In regards to the ":" issue after volumes I had it right after, does it need a space between the "s" and the ":"?

    Do all ":" need a space after the left argument?

  • I made the changes above and now get this error:


    500 - Internal Server Error


    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/compose/plex/plex.yml' --env-file '/srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/compose/plex/plex.env' --env-file '/srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/compose/global.env' up -d 2>&1': yaml: line 7: could not find expected ':'


    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; docker compose --file '/srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/compose/plex/plex.yml' --env-file '/srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/compose/plex/plex.env' --env-file '/srv/dev-disk-by-uuid-ab56014e-18d0-4bee-9cc6-b9cfc449513b/compose/global.env' up -d 2>&1': yaml: line 7: could not find expected ':' in /usr/share/openmediavault/engined/rpc/compose.inc:805

    Stack trace:

    #0 /usr/share/php/openmediavault/rpc/serviceabstract.inc(622): OMVRpcServiceCompose->{closure}()

    #1 /usr/share/openmediavault/engined/rpc/compose.inc(780): OMV\Rpc\ServiceAbstract->execBgProc()

    #2 [internal function]: OMVRpcServiceCompose->doCommand()

    #3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()

    #4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()

    #5 /usr/sbin/omv-engined(544): OMV\Rpc\Rpc::call()

    #6 {main}

  • I want to ask if the problem I'm having is that I'm using the Linux Mint Text Editor or the Notepadqq to edit the Plex compose file and then paste into Docker compose. what is the best editor Vim, Nano or any other?


    Could that corrupt the document?


    I also check that all folders referenced in the file are shared and referenced!


    So I'm at a loss as what's wrong.

    • Official Post

    I want to ask if the problem I'm having is that I'm using the Linux Mint Text Editor or the Notepadqq to edit the Plex compose file and then paste into Docker compose.

    Why would you not edit it in the compose plugin?

    what is the best editor Vim or Nano"

    vim but it has a steep learning curve.

    omv 7.7.9-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.6 | compose 7.6.6 | cterm 7.8.5 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.2


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • version: statements are no longer required and if included will trigger a harmless warning which can be ignored.

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.


  • As ryeco said, just use the editor on the compose plugin GUI.

    Paste the following code and save:


  • Soma thank you so much! You solved my problem. After I copied you code I was successful in changing the status to "UP"


    I then put in my IP address : 32400/web and I got the Plex account screen and signed into my account.


    The problem you identified is that I did not put the relative path after the Absolute Path of each volume!


    Again thank you ^^ ^^ ^^

  • chente

    Added the Label resolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!