plane icon indicating copy to clipboard operation
plane copied to clipboard

[bug]: variable in plane.env doesn't work (POSTGRES_PASSWORD, SECRET_KEY)

Open loutig opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current behavior

i figured it out that i can't use my own password and secret key in the plane.env. If i set a my own POSTGRES_PASSWORD, then the DB creation not working. If i set my own SECRET_KEY, then i can't upload anything to minio.

Have you hard-coded all the thing ??

image

Steps to reproduce

  1. install plane with setup.sh
  2. modify plane.env and set a password to POSTGRES_PASSWORD
  3. start plane with setup.sh

Environment

Production

Browser

Google Chrome

Variant

Self-hosted

Version

v0.21-dev

loutig avatar Jun 10 '24 12:06 loutig

I really wanted to like this but a simply bug like this and still not fixed since 2 months? Wow... we can't even install the app as your docker script is broken.

igmarketing avatar Aug 11 '24 15:08 igmarketing

@loutig, @igmarketing sorry for missing this.

if you change the postgres password you have to update update the DATABASE_URL environment as well as this is used by the application to connect to database.

regarding the minio issue can you share the network log when you are trying to upload the image.

on the install script part what is the issue you are facing @igmarketing ?

pablohashescobar avatar Aug 12 '24 06:08 pablohashescobar

Anybody still having trouble setting a password for postgres? I tried updating the DATABASE_URL as mentioned here, which btw is DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${PGHOST}/${PGDATABASE}. When starting the container, it fails with:

migrator-1 | File "/usr/local/lib/python3.12/urllib/parse.py", line 182, in port migrator-1 | raise ValueError(f"Port could not be cast to integer value as {port!r}") migrator-1 | ValueError: Port could not be cast to integer value as 'h+'

dassels avatar Feb 02 '25 09:02 dassels