plane icon indicating copy to clipboard operation
plane copied to clipboard

[bug]: cannot start plane: invalid interpolation format for x-app-env.environment.

Open BinaryAlps opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current behavior

I followed the instructions but after running ./setup.sh -> Start I get the following error:

invalid interpolation format for x-app-env.environment.[]. You may need to escape any $ with another $. redis://${REDIS_HOST

Content of .env is untouched with no edits: image

Steps to reproduce

  1. mkdir plane-selfhost
  2. cd plane-selfhost
  3. curl -fsSL -o setup.sh https://raw.githubusercontent.com/makeplane/plane/master/deploy/selfhost/install.sh
  4. chmod +x setup.sh
  5. ./setup.sh --> 1
  6. either modify plane-app/.env or leave it untouched
  7. ./setup.sh --> 2
  8. error will come up

Browser

Google Chrome

Version

Self-hosted

BinaryAlps avatar Dec 22 '23 15:12 BinaryAlps

In the docker-compose.yaml file, I encountered an issue with the $ character in the REDIS_URL value.

To resolve this, double the $ character to make Docker Compose interpret it as a literal $, preventing variable substitution.

Before:

- REDIS_URL=${REDIS_URL:-redis://${REDIS_HOST}:6379/}

After:

- REDIS_URL=${REDIS_URL:-redis://$${REDIS_HOST}:6379/}

This addresses the variable interpretation issue in the REDIS_URL field.

Reference: Link to the article with the solution

johnpaulo0602 avatar Dec 25 '23 23:12 johnpaulo0602