Skip to content

Unable to run in"Local Mode Quickstart" on OSX #305

@FranckGuillaud

Description

@FranckGuillaud

Hardware: M1
OS Version: 15.7.1
Docker Stack: Colima 0.9.1 + Docker 27.5.1 , Docker Compose 2.40.2

First, the ./start_local.sh script doesn't work "as is", I needed to replace "docker compose" to "docker-compose". Maybe specific to my setup.

Then, after script modification, the Postgres docker container complain:

plandex-postgres-1 exited with code 1 (restarting)
plandex-postgres-1  | Error: in 18+, these Docker images are configured to store database data in a
plandex-postgres-1  |        format which is compatible with "pg_ctlcluster" (specifically, using
plandex-postgres-1  |        major-version-specific directory names).  This better reflects how
plandex-postgres-1  |        PostgreSQL itself works, and how upgrades are to be performed.
plandex-postgres-1  |
plandex-postgres-1  |        See also https://github.com/docker-library/postgres/pull/1259
plandex-postgres-1  |
plandex-postgres-1  |        Counter to that, there appears to be PostgreSQL data in:
plandex-postgres-1  |          /var/lib/postgresql/data (unused mount/volume)
plandex-postgres-1  |
plandex-postgres-1  |        This is usually the result of upgrading the Docker image without
plandex-postgres-1  |        upgrading the underlying database using "pg_upgrade" (which requires both
plandex-postgres-1  |        versions).
plandex-postgres-1  |
plandex-postgres-1  |        The suggested container configuration for 18+ is to place a single mount
plandex-postgres-1  |        at /var/lib/postgresql which will then place PostgreSQL data in a
plandex-postgres-1  |        subdirectory, allowing usage of "pg_upgrade --link" without mount point
plandex-postgres-1  |        boundary issues.
plandex-postgres-1  |
plandex-postgres-1  |        See https://github.com/docker-library/postgres/issues/37 for a (long)
plandex-postgres-1  |        discussion around this process, and suggestions for how to do so.

I edited docker-compose.yml to modify the postgres entry:

plandex-db:/var/lib/postgresql/

After these modifications I was able to start plandex
Please find a complete patch attached.

diff.patch

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