I am trying to update my installation and this is what I am getting:

root@mail:/opt/mailcow-dockerized# ./update.sh
Checking internet connection… OK
Detecting which build your mailcow runs on…
You are receiving stable updates (master).
To change that run the update.sh Script one time with the –nightly parameter to switch to nightly builds.
Checking for newer update script…
Updated 0 paths from cd297314
Are you sure you want to update mailcow: dockerized? All containers will be stopped. [y/N] y
Great! Native IPv6 NAT is active.
Validating docker-compose stack configuration…
./update.sh: line 755: docker-compose: command not found
Oh no, something went wrong. Please check the error message above.

I have Docker Compose version v2.12.2 installed. Running Ubuntu 22.04.1 LTS .

Very confused. Any help would be appreciated?

  • DerLinkman
    ah there we go. Had to run remove what looked like 2 versions of docker-compose and then tried and failed a few more times but finally standalone script install instructions loaded everything up properly.

    Thank you very much for your help!

Hi,

is docker-compose in your path ? check the command : which docker-compose
it should return something like :
[root@mail ~]# which docker-compose
/usr/local/bin/docker-compose
[root@mail ~]#

    Have something to say?

    Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

    mayk

    I used the command and it returned blank.
    Guess that means its not in my path?

    Yes it cannot found docker compose then.

    Maybe you should try to install the plugin version of docker compose.

    I fixed this by running apt install docker-compose but now I get this error:

    ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:
    services.nginx-mailcow.ports contains an invalid type, it should be a number, or an object
    services.nginx-mailcow.ports contains an invalid type, it should be a number, or an object

    Oh no, something went wrong. Please check the error message above.

      tamerax Hm okay please do a git checkout origin/master docker-compose.yml then you should be able to run the update.sh again.

        DerLinkman
        I tried that and that I think it updated

        root@mail:/opt/mailcow-dockerized# git checkout origin/master docker-compose.yml
        Updated 1 path from cd297314

        But it gave me the same error as above when I ran the update script. 🙁

        Did you removed the old docker compose version ?

          DerLinkman
          like the docker-compose.yml from before? Yes I deleted it and then did the git command and got the new version.

            No I meant the docker compose executable it’s normally located at /usr/local/bin

            tamerax

              DerLinkman
              ah there we go. Had to run remove what looked like 2 versions of docker-compose and then tried and failed a few more times but finally standalone script install instructions loaded everything up properly.

              Thank you very much for your help!

              14 days later

              Hey,

              I have the same problem and got the same output by running the ./update.sh script.
              Can you describe what you exactely did? And where I get the standalone script?

              This would be very nice.

              Thank you

              No one is typing