Trying to install portainer from the compose service under OMV7

  • Hello,

    I just reinstalled a new OMV7 system.

    I installed through the shell omv-extras.

    I installed the compose pluging.

    Then, I go to Compose->Files-> Add from example.

    I choose portainer, which appears as "down".

    When clicking "Up", I get the following error message :


    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-54e4c1a4-2515-4fdf-a714-e060e7726ce5/compose/portainer/portainer.yml' --env-file '/srv/dev-disk-by-uuid-54e4c1a4-2515-4fdf-a714-e060e7726ce5/compose/portainer/portainer.env' --env-file '/srv/dev-disk-by-uuid-54e4c1a4-2515-4fdf-a714-e060e7726ce5/compose/global.env' up -d 2>&1': service "portainer" refers to undefined volume CHANGE_TO_COMPOSE_DATA_PATH/portainer/data: invalid compose project


    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-54e4c1a4-2515-4fdf-a714-e060e7726ce5/compose/portainer/portainer.yml' --env-file '/srv/dev-disk-by-uuid-54e4c1a4-2515-4fdf-a714-e060e7726ce5/compose/portainer/portainer.env' --env-file '/srv/dev-disk-by-uuid-54e4c1a4-2515-4fdf-a714-e060e7726ce5/compose/global.env' up -d 2>&1': service "portainer" refers to undefined volume CHANGE_TO_COMPOSE_DATA_PATH/portainer/data: invalid compose project in /usr/share/openmediavault/engined/rpc/compose.inc:693

    Stack trace:

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

    #1 /usr/share/openmediavault/engined/rpc/compose.inc(668): 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(535): OMV\Rpc\Rpc::call()

    #6 {main}


    What did I do badly ?

    Thanks,

    Harold

    • Official Post

    What did I do badly ?

    You are using portainer lol. Not really but you didn't set the Data shared folder on the Settings tab. The wiki linked to in the plugin will help.

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    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!

  • Thank you.

    I did create the data folder.

    When I try now to UP portainer I have :


    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-54e4c1a4-2515-4fdf-a714-e060e7726ce5/compose/portainer/portainer.yml' --env-file '/srv/dev-disk-by-uuid-54e4c1a4-2515-4fdf-a714-e060e7726ce5/compose/portainer/portainer.env' --env-file '/srv/dev-disk-by-uuid-54e4c1a4-2515-4fdf-a714-e060e7726ce5/compose/global.env' up -d 2>&1': external volume "portainer_data" not found


    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-54e4c1a4-2515-4fdf-a714-e060e7726ce5/compose/portainer/portainer.yml' --env-file '/srv/dev-disk-by-uuid-54e4c1a4-2515-4fdf-a714-e060e7726ce5/compose/portainer/portainer.env' --env-file '/srv/dev-disk-by-uuid-54e4c1a4-2515-4fdf-a714-e060e7726ce5/compose/global.env' up -d 2>&1': external volume "portainer_data" not found in /usr/share/openmediavault/engined/rpc/compose.inc:693

    Stack trace:

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

    #1 /usr/share/openmediavault/engined/rpc/compose.inc(668): 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(535): OMV\Rpc\Rpc::call()

    #6 {main}

    • Official Post

    Looks like you used the portainer-omvextras example but it doesn't need the data sharedfolder. Not sure what you have changed but post your compose file.

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    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!

  • Hello,

    here is my file :


    ---

    version: "3"

    services:

    portainer:

    image: portainer/portainer-ce:latest

    container_name: portainer

    restart: unless-stopped

    security_opt:

    - no-new-privileges:true

    volumes:

    - /etc/localtime:/etc/localtime:ro

    - /var/run/docker.sock:/var/run/docker.sock:ro

    - portainer-data:/data

    ports:

    - 9000:9000

    volumes:

    portainer-data:

    external: true

    name: portainer_data



    Thank you,

    Harold

    • Official Post

    You shouldn't use that example unless your are trying to import your existing portainer install from omv6.


    omv6:docker_in_omv [omv-extras.org]

    omv6:omv6_plugins:docker_compose [omv-extras.org]

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

    plugins :: omvextrasorg 7.0.2 | kvm 7.1.8 | compose 7.6.10 | cterm 7.8.7 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.3.1


    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!

Participate now!

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