Thread
#prefect-server
    Michael Hadorn

    Michael Hadorn

    1 year ago
    hi there 🙂 it seems, that in the latest prefect release the backend is not working: ubuntu 18, Docker version 20.10.2, build 2291f61 pip install prefect==0.14.8
    > prefect server start
    ERROR: The Compose file './docker-compose.yml' is invalid because:
    services.ui.depends_on contains an invalid type, it should be an array
    services.apollo.depends_on contains an invalid type, it should be an array
    services.towel.depends_on contains an invalid type, it should be an array
    services.graphql.depends_on contains an invalid type, it should be an array
    services.hasura.depends_on contains an invalid type, it should be an array
    Exception caught; killing services (press ctrl-C to force)
    ERROR: The Compose file './docker-compose.yml' is invalid because:
    services.ui.depends_on contains an invalid type, it should be an array
    services.apollo.depends_on contains an invalid type, it should be an array
    services.towel.depends_on contains an invalid type, it should be an array
    services.graphql.depends_on contains an invalid type, it should be an array
    services.hasura.depends_on contains an invalid type, it should be an array
    Traceback (most recent call last):
      File "/home/poc/miniconda3/envs/etlp/lib/python3.8/site-packages/prefect/cli/server.py", line 346, in start
        subprocess.check_call(
      File "/home/poc/miniconda3/envs/etlp/lib/python3.8/subprocess.py", line 364, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['docker-compose', 'pull']' returned non-zero exit status 1.
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "/home/poc/miniconda3/envs/etlp/bin/prefect", line 8, in <module>
        sys.exit(cli())
      File "/home/poc/miniconda3/envs/etlp/lib/python3.8/site-packages/click/core.py", line 829, in __call__
        return self.main(*args, **kwargs)
      File "/home/poc/miniconda3/envs/etlp/lib/python3.8/site-packages/click/core.py", line 782, in main
        rv = self.invoke(ctx)
      File "/home/poc/miniconda3/envs/etlp/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
      File "/home/poc/miniconda3/envs/etlp/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
      File "/home/poc/miniconda3/envs/etlp/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "/home/poc/miniconda3/envs/etlp/lib/python3.8/site-packages/click/core.py", line 610, in invoke
        return callback(*args, **kwargs)
      File "/home/poc/miniconda3/envs/etlp/lib/python3.8/site-packages/prefect/cli/server.py", line 384, in start
        subprocess.check_output(
      File "/home/poc/miniconda3/envs/etlp/lib/python3.8/subprocess.py", line 411, in check_output
        return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
      File "/home/poc/miniconda3/envs/etlp/lib/python3.8/subprocess.py", line 512, in run
        raise CalledProcessError(retcode, process.args,
    subprocess.CalledProcessError: Command '['docker-compose', 'down']' returned non-zero exit status 1.
    Michael Adkins

    Michael Adkins

    1 year ago
    Ah interesting this appears to be related to the healthcheck changes, cc @Jim Crist-Harif
    @Michael Hadorn could you also provide your
    docker-compose --version
    ? I don't get this error.
    Michael Hadorn

    Michael Hadorn

    1 year ago
    sure. ah ok.. docker-compose version 1.25.5, build 8a1c60f6
    Michael Adkins

    Michael Adkins

    1 year ago
    I'm on
    docker-compose version 1.28.2
    Would you mind upgrading and see if that fixes it? At a glance I don't see anything in their changelog that would do this but it's working fine for me
    Michael Hadorn

    Michael Hadorn

    1 year ago
    I can do it next week. thanks a lot for your support (multipletimes this week)! btw: 0.14.6 is working on the same machine. enjoy your weekend! Michael
    ok, it's working (docker-compose update and also current prefect version 0.14.9)
    Michael Adkins

    Michael Adkins

    1 year ago
    Wonderful! @josh can you marvin an issue from this for a minimum docker-compose version now that we have health checks using some newer syntax?
    j

    josh

    1 year ago
    @Marvin archive “Minimum docker-compose version for server” in server
    Marvin

    Marvin

    1 year ago
    j

    josh

    1 year ago
    Hmm that’s not the right repo lol, moving it. Edit: Actually keeping it in prefect repo since it uses the prefect CLI
    Jim Crist-Harif

    Jim Crist-Harif

    1 year ago
    I didn't add
    archive ...
    support for other repos, only
    open ...
    support.
    Michael Adkins

    Michael Adkins

    1 year ago
    I think it should be open anyway since we should document this