Skip to content

Presto: deployment fails to start when running CLP with an uncommented etc/clp-config.yml file. #1140

@quinntaylormitchell

Description

@quinntaylormitchell

I built clp-json with an uncommented clp-config.yml file (to specify custom ports during development). In the uncommented file, the archive output dir is stated as var/data/archives. Using this uncommented file causes the docker compose up command to fail with the following message:

service "presto-worker" refers to undefined volume var/data/archives: invalid compose project

@kirkrodrigues identified that I can get around this by adding

if Path(clp_archives_dir).is_absolute():
    env_vars["CLP_ARCHIVES_DIR"] = clp_archives_dir
else:
    env_vars["CLP_ARCHIVES_DIR"] = str(clp_package_dir / clp_archives_dir)

in place of line 114: env_vars["CLP_ARCHIVES_DIR"] = clp_archives_dir in clp/tools/deployment/presto-clp/scripts/generate-user-env-vars-file.py, which solved the issue.

Environment

Ubuntu Jammy
CLP v0.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions